@worm-print-platform/echarts 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -86
- package/dist/bind.d.ts +1 -1
- package/dist/browser/executor.iife.d.ts +1 -1
- package/dist/browser-bundle.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/defaults.d.ts +1 -1
- package/dist/echarts.d.ts +1 -1
- package/dist/echarts.js +8 -8
- package/dist/executor.iife.global.d.ts +1 -1
- package/dist/executor.iife.global.js +14 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/kinds.d.ts +1 -1
- package/dist/kit.cjs +1 -1
- package/dist/kit.d.ts +1 -1
- package/dist/kit.js +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +1 -1
- package/dist/normalize.d.ts +1 -1
- package/dist/option-utils.d.ts +1 -1
- package/dist/plugin-Bf6QDbHO.cjs +1 -1
- package/dist/plugin-CUoE2jMs.js +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/type-augmentation.d.ts +1 -1
- package/dist/ui.cjs +23 -28
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +23 -28
- package/dist/units.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @worm-print-platform/echarts v1.5.
|
|
2
|
+
* @worm-print-platform/echarts v1.5.2
|
|
3
3
|
* Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
|
|
4
4
|
* SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
|
|
5
5
|
* SPDX-License-Identifier: MIT
|
|
6
6
|
*/
|
|
7
|
-
"use strict";var __wormEchartsExecutor=(()=>{var nd=Object.defineProperty;var K5=Object.getOwnPropertyDescriptor;var Z5=Object.getOwnPropertyNames;var Q5=Object.prototype.hasOwnProperty;var jt=(t,e)=>{for(var r in e)nd(t,r,{get:e[r],enumerable:!0})},J5=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Z5(e))!Q5.call(t,i)&&i!==r&&nd(t,i,{get:()=>e[i],enumerable:!(n=K5(e,i))||n.enumerable});return t};var eM=t=>J5(nd({},"__esModule",{value:!0}),t);var Tk={};jt(Tk,{CHART_EXECUTOR_VERSION:()=>y_,installChartExecutor:()=>j5,renderAssets:()=>q5});var id=function(t,e){return id=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])},id(t,e)};function P(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");id(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var se={};jt(se,{EPSILON:()=>yM,HashMap:()=>w_,RADIAN_TO_DEGREE:()=>Yi,assert:()=>Ue,assignProps:()=>fd,bind:()=>fe,clone:()=>J,concatArray:()=>cd,createCanvas:()=>cM,createHashMap:()=>K,createObject:()=>In,curry:()=>Ce,defaults:()=>ee,disableUserSelect:()=>gM,each:()=>w,eqNaN:()=>Fn,extend:()=>N,filter:()=>Fe,find:()=>Zs,guid:()=>qs,hasOwn:()=>Ie,indexOf:()=>ue,inherits:()=>Ks,isArray:()=>k,isArrayLike:()=>Je,isBuiltInObject:()=>sd,isDom:()=>Hi,isFunction:()=>Y,isGradientObject:()=>Gi,isImagePatternObject:()=>hM,isNumber:()=>ie,isObject:()=>W,isPrimitive:()=>ho,isRegExp:()=>dM,isString:()=>U,isStringSafe:()=>mo,isTypedArray:()=>$e,keys:()=>ne,logError:()=>js,map:()=>z,merge:()=>me,mergeAll:()=>fM,mixin:()=>nt,noop:()=>Be,normalizeCssArray:()=>$i,reduce:()=>At,retrieve:()=>Wi,retrieve2:()=>X,retrieve3:()=>Zt,setAsPrimitive:()=>ti,slice:()=>Qs,trim:()=>dt});var Wl=12,ad="sans-serif",Kt=Wl+"px "+ad,tM=20,rM=100,nM="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function iM(t){var e={};if(typeof JSON=="undefined")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-tM)/rM;e[n]=i}return e}var aM=iM(nM),lt={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=lt.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Kt),t.measureText(r);r=r||"",n=n||Kt;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Wl,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=aM[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}};function $l(t){for(var e in lt)lt.hasOwnProperty(e)&&t[e]&&(lt[e]=t[e])}var x_=At(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),S_=At(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),vo=Object.prototype.toString,Xl=Array.prototype,oM=Xl.forEach,sM=Xl.filter,ud=Xl.slice,uM=Xl.map,__=function(){}.constructor,Yl=__?__.prototype:null,ld="__proto__",od=2311,lM=Math.pow(2,53)-1;function qs(){return od>=lM&&(od=0),od++}function js(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console!="undefined"&&console.error.apply(console,t)}function J(t){if(t==null||typeof t!="object")return t;var e=t,r=vo.call(t);if(r==="[object Array]"){if(!ho(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=J(t[n])}}else if(S_[r]){if(!ho(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!x_[r]&&!ho(t)&&!Hi(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==ld&&(e[o]=J(t[o]))}return e}function me(t,e,r){if(!W(e)||!W(t))return r?J(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==ld){var i=t[n],a=e[n];W(a)&&W(i)&&!k(a)&&!k(i)&&!Hi(a)&&!Hi(i)&&!sd(a)&&!sd(i)&&!ho(a)&&!ho(i)?me(i,a,r):(r||!(n in t))&&(t[n]=J(e[n]))}return t}function fM(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=me(r,t[n],e);return r}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==ld&&(t[r]=e[r]);return t}function fd(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function ee(t,e,r){for(var n=ne(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var cM=lt.createCanvas;function ue(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function Ks(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function nt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else ee(t,e,r)}function Je(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function w(t,e,r){if(t&&e)if(t.forEach&&t.forEach===oM)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function z(t,e,r){if(!t)return[];if(!e)return Qs(t);if(t.map&&t.map===uM)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function At(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Fe(t,e,r){if(!t)return[];if(!e)return Qs(t);if(t.filter&&t.filter===sM)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Zs(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function ne(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function pM(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(ud.call(arguments)))}}var fe=Yl&&Y(Yl.bind)?Yl.call.bind(Yl.bind):pM;function Ce(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(ud.call(arguments)))}}function k(t){return Array.isArray?Array.isArray(t):vo.call(t)==="[object Array]"}function Y(t){return typeof t=="function"}function U(t){return typeof t=="string"}function mo(t){return vo.call(t)==="[object String]"}function ie(t){return typeof t=="number"}function W(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function sd(t){return!!x_[vo.call(t)]}function $e(t){return!!S_[vo.call(t)]}function Hi(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Gi(t){return t.colorStops!=null}function hM(t){return t.image!=null}function dM(t){return vo.call(t)==="[object RegExp]"}function Fn(t){return t!==t}function Wi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function X(t,e){return t!=null?t:e}function Zt(t,e,r){return t!=null?t:e!=null?e:r}function Qs(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return ud.apply(t,e)}function $i(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ue(t,e){if(!t)throw new Error(e)}function dt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var b_="__ec_primitive__";function ti(t){t[b_]=!0}function ho(t){return t[b_]}var vM=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ne(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),E_=typeof Map=="function";function mM(){return E_?new Map:new vM}var w_=(function(){function t(e){var r=k(e);this.data=mM();var n=this;e instanceof t?e.each(i):e&&w(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return E_?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function K(t){return new w_(t)}function cd(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function In(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&N(r,e),r}function gM(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Ie(t,e){return t.hasOwnProperty(e)}function Be(){}var Yi=180/Math.PI,yM=Number.EPSILON||Math.pow(2,-52);var _M=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),xM=(function(){function t(){this.browser=new _M,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!="undefined"}return t})(),ri=new xM;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ri.wxa=!0,ri.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?ri.worker=!0:!ri.hasGlobalWindow||"Deno"in window||typeof navigator!="undefined"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ri.node=!0,ri.svgSupported=!0):SM(navigator.userAgent,ri);function SM(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);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),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document!="undefined";if(s){var u=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var ce=ri;var bM=".",Xi="___EC__COMPONENT__CONTAINER___",C_="___EC__EXTENDED_CLASS___";function Qt(t){var e={main:"",sub:""};if(t){var r=t.split(bM);e.main=r[0]||"",e.sub=r[1]||""}return e}function EM(t){Ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function A_(t){return!!(t&&t[C_])}function go(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return wM(n)?i=(function(a){P(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Ks(i,this)),N(i.prototype,r),i[C_]=!0,i.extend=this.extend,i.superCall=AM,i.superApply=DM,i.superClass=n,i}}function wM(t){return Y(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function ql(t,e){t.extend=e.extend}var CM=Math.round(Math.random()*10);function D_(t){var e=["__\0is_clz",CM++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function AM(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function DM(t,e,r){return this.superClass.prototype[e].apply(t,r)}function ni(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){EM(i),n.prototype.type=i;var a=Qt(i);if(!a.sub)e[a.main]=n;else if(a.sub!==Xi){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Xi]&&(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},t.getClassesByMainType=function(n){var i=Qt(n),a=[],o=e[i.main];return o&&o[Xi]?w(o,function(s,u){u!==Xi&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=Qt(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return w(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=Qt(n),a=e[i.main];return a&&a[Xi]};function r(n){var i=e[n.main];return(!i||!i[Xi])&&(i=e[n.main]={},i[Xi]=!0),i}}function nn(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(i&&ue(i,u)>=0||a&&ue(a,u)<0)){var l=n.getShallow(u,e);l!=null&&(o[t[s][0]]=l)}}return o}}var TM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],MM=nn(TM),T_=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return MM(this,e,r)},t})();var M_=(function(){function t(e){this.value=e}return t})();var FM=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new M_(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var IM=(function(){function t(e){this._list=new FM,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==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 M_(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),an=IM;var hd=new an(50);function I_(t){if(typeof t=="string"){var e=hd.get(t);return e&&e.image}else return t}function Js(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=hd.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!yo(e)&&a.pending.push(o)):(e=lt.loadImage(t,F_,F_),e.__zrImageSrc=t,hd.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function F_(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function yo(t){return t&&t.width&&t.height}var Pn={};jt(Pn,{clone:()=>LM,copy:()=>qi,create:()=>St,identity:()=>xr,invert:()=>lr,mul:()=>zr,rotate:()=>ji,scale:()=>dd,translate:()=>_o});function St(){return[1,0,0,1,0,0]}function xr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function qi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function zr(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t}function _o(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function ji(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],u=e[3],l=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+u*f,t[3]=-a*f+c*u,t[4]=c*(o-n[0])+f*(l-n[1])+n[0],t[5]=c*(l-n[1])-f*(o-n[0])+n[1],t}function dd(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function lr(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],u=r*o-a*n;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*s-o*i)*u,t[5]=(a*i-r*s)*u,t):null}function LM(t){var e=St();return qi(e,t),e}var Er={};jt(Er,{add:()=>jl,applyTransform:()=>et,clone:()=>vd,copy:()=>BM,create:()=>Ln,dist:()=>xo,distSquare:()=>ii,distance:()=>ru,distanceSquare:()=>P_,div:()=>zM,dot:()=>UM,len:()=>gd,lenSquare:()=>yd,length:()=>RM,lengthSquare:()=>NM,lerp:()=>nu,max:()=>br,min:()=>Sr,mul:()=>kM,negate:()=>VM,normalize:()=>_d,scale:()=>tu,scaleAndAdd:()=>OM,set:()=>eu,sub:()=>md});function Ln(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function BM(t,e){return t[0]=e[0],t[1]=e[1],t}function vd(t){return[t[0],t[1]]}function eu(t,e,r){return t[0]=e,t[1]=r,t}function jl(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function OM(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function md(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function gd(t){return Math.sqrt(yd(t))}var RM=gd;function yd(t){return t[0]*t[0]+t[1]*t[1]}var NM=yd;function kM(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function zM(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function UM(t,e){return t[0]*e[0]+t[1]*e[1]}function tu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function _d(t,e){var r=gd(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function ru(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var xo=ru;function P_(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ii=P_;function VM(t,e){return t[0]=-e[0],t[1]=-e[1],t}function nu(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function et(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Sr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function br(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var HM=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),pe=HM;var ea=Math.min,So=Math.max,bd=Math.abs,L_=["x","y"],GM=["width","height"],Ki=new pe,Zi=new pe,Qi=new pe,Ji=new pe,fr=wd(),iu=fr.minTv,Ed=fr.maxTv,au=[0,0],Bn=(function(){function t(e,r,n,i){xd(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=ea(e.x,this.x),n=ea(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=So(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=So(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return WM(St(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&pe.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=xd($M,e.x,e.y,e.width,e.height)),r instanceof t||(r=xd(YM,r.x,r.y,r.width,r.height));var s=!!n;fr.reset(i,s);var u=fr.touchThreshold,l=e.x+u,f=e.x+e.width-u,c=e.y+u,p=e.y+e.height-u,h=r.x+u,d=r.x+r.width-u,v=r.y+u,m=r.y+r.height-u;if(l>f||c>p||h>d||v>m)return!1;var g=!(f<h||d<l||p<v||m<c);return(s||a)&&(au[0]=1/0,au[1]=0,O_(l,f,h,d,0,s,a,o),O_(c,p,v,m,1,s,a,o),s&&pe.copy(n,g?fr.useDir?fr.dirMinTv:iu:Ed)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){B_(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&B_(e,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];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ki.x=Qi.x=r.x,Ki.y=Ji.y=r.y,Zi.x=Ji.x=r.x+r.width,Zi.y=Qi.y=r.y+r.height,Ki.transform(n),Ji.transform(n),Zi.transform(n),Qi.transform(n),e.x=ea(Ki.x,Zi.x,Qi.x,Ji.x),e.y=ea(Ki.y,Zi.y,Qi.y,Ji.y);var u=So(Ki.x,Zi.x,Qi.x,Ji.x),l=So(Ki.y,Zi.y,Qi.y,Ji.y);e.width=u-e.x,e.height=l-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=xr(e||[]),_o(e,e,eu(Sd,-r.x,-r.y)),dd(e,e,eu(Sd,i,a)),_o(e,e,eu(Sd,n.x,n.y)),e},t})(),Gk=Bn.create,xd=Bn.set,B_=Bn.copy,WM=Bn.calculateTransform,Wk=Bn.applyTransform,$k=Bn.contain,$M=new Bn(0,0,0,0),YM=new Bn(0,0,0,0),Sd=[];function O_(t,e,r,n,i,a,o,s){var u=bd(e-r),l=bd(n-t),f=ea(u,l),c=L_[i],p=L_[1-i],h=GM[i];e<r||n<t?u<l?(a&&(Ed[c]=-u),s&&(o[c]=e,o[h]=0)):(a&&(Ed[c]=l),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=So(t,r),o[h]=ea(e,n)-o[c]),a&&(f<au[0]||fr.useDir)&&(au[0]=ea(f,au[0]),(u<l||!fr.bidirectional)&&(iu[c]=u,iu[p]=0,fr.useDir&&fr.calcDirMTV()),(u>=l||!fr.bidirectional)&&(iu[c]=-l,iu[p]=0,fr.useDir&&fr.calcDirMTV())))}function wd(){var t=0,e=new pe,r=new pe,n={minTv:new pe,maxTv:new pe,useDir:!1,dirMinTv:new pe,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=So(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(t),l=Math.cos(t),f=u*a.y+l*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return bd(a)<1e-10}return n}var re=Bn;function Vr(t){Kl||(Kl=new an(100)),t=t||Kt;var e=Kl.get(t);return e||(e={font:t,strWidthCache:new an(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:lt.measureText("\u56FD",t).width,asciiCharWidth:lt.measureText("a",t).width},Kl.put(t,e)),e}var Kl;function XM(t){if(!(Cd>=R_)){t=t||Kt;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=lt.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Cd=R_:i>2&&Cd++,e}}var Cd=0,R_=5;function Ad(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=XM(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Hr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=lt.measureText(e,t.font).width,r.put(e,n)),n}function N_(t,e,r,n){var i=Hr(Vr(e),t),a=ta(e),o=ai(0,i,r),s=On(0,a,n),u=new re(o,s,i,a);return u}function Zl(t,e,r,n){var i=((t||"")+"").split(`
|
|
8
|
-
`),a=i.length;if(a===1)return N_(i[0],e,r,n);for(var o=new re(0,0,0,0),s=0;s<i.length;s++){var u=N_(i[s],e,r,n);s===0?o.copy(u):o.union(u)}return o}function ai(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function On(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function ta(t){return Vr(t).stWideCharWidth}function Ur(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ra(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",c="top";if(n instanceof Array)u+=Ur(n[0],r.width),l+=Ur(n[1],r.height),f=null,c=null;else switch(n){case"left":u-=i,l+=s,f="right",c="middle";break;case"right":u+=i+o,l+=s,c="middle";break;case"top":u+=o/2,l-=i,f="center",c="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",c="middle";break;case"insideLeft":u+=i,l+=s,c="middle";break;case"insideRight":u+=o-i,l+=s,f="right",c="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",c="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,c="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",c="bottom";break}return t=t||{},t.x=u,t.y=l,t.align=f,t.verticalAlign=c,t}var
|
|
7
|
+
"use strict";var __wormEchartsExecutor=(()=>{var nd=Object.defineProperty;var K5=Object.getOwnPropertyDescriptor;var Z5=Object.getOwnPropertyNames;var Q5=Object.prototype.hasOwnProperty;var jt=(t,e)=>{for(var r in e)nd(t,r,{get:e[r],enumerable:!0})},J5=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Z5(e))!Q5.call(t,i)&&i!==r&&nd(t,i,{get:()=>e[i],enumerable:!(n=K5(e,i))||n.enumerable});return t};var eM=t=>J5(nd({},"__esModule",{value:!0}),t);var Mk={};jt(Mk,{CHART_EXECUTOR_VERSION:()=>y_,installChartExecutor:()=>j5,renderAssets:()=>q5});var id=function(t,e){return id=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])},id(t,e)};function P(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");id(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var se={};jt(se,{EPSILON:()=>yM,HashMap:()=>w_,RADIAN_TO_DEGREE:()=>Yi,assert:()=>Ue,assignProps:()=>fd,bind:()=>fe,clone:()=>J,concatArray:()=>cd,createCanvas:()=>cM,createHashMap:()=>K,createObject:()=>In,curry:()=>Ce,defaults:()=>ee,disableUserSelect:()=>gM,each:()=>w,eqNaN:()=>Fn,extend:()=>N,filter:()=>Fe,find:()=>Zs,guid:()=>qs,hasOwn:()=>Ie,indexOf:()=>ue,inherits:()=>Ks,isArray:()=>k,isArrayLike:()=>Je,isBuiltInObject:()=>sd,isDom:()=>Hi,isFunction:()=>Y,isGradientObject:()=>Gi,isImagePatternObject:()=>hM,isNumber:()=>ie,isObject:()=>W,isPrimitive:()=>ho,isRegExp:()=>dM,isString:()=>U,isStringSafe:()=>mo,isTypedArray:()=>$e,keys:()=>ne,logError:()=>js,map:()=>z,merge:()=>me,mergeAll:()=>fM,mixin:()=>nt,noop:()=>Be,normalizeCssArray:()=>$i,reduce:()=>Dt,retrieve:()=>Wi,retrieve2:()=>X,retrieve3:()=>Zt,setAsPrimitive:()=>ti,slice:()=>Qs,trim:()=>dt});var Wl=12,ad="sans-serif",Kt=Wl+"px "+ad,tM=20,rM=100,nM="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function iM(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-tM)/rM;e[n]=i}return e}var aM=iM(nM),lt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=lt.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Kt),t.measureText(r);r=r||"",n=n||Kt;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Wl,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=aM[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}};function $l(t){for(var e in lt)lt.hasOwnProperty(e)&&t[e]&&(lt[e]=t[e])}var x_=Dt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),S_=Dt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),vo=Object.prototype.toString,Xl=Array.prototype,oM=Xl.forEach,sM=Xl.filter,ud=Xl.slice,uM=Xl.map,__=function(){}.constructor,Yl=__?__.prototype:null,ld="__proto__",od=2311,lM=Math.pow(2,53)-1;function qs(){return od>=lM&&(od=0),od++}function js(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function J(t){if(t==null||typeof t!="object")return t;var e=t,r=vo.call(t);if(r==="[object Array]"){if(!ho(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=J(t[n])}}else if(S_[r]){if(!ho(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!x_[r]&&!ho(t)&&!Hi(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==ld&&(e[o]=J(t[o]))}return e}function me(t,e,r){if(!W(e)||!W(t))return r?J(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==ld){var i=t[n],a=e[n];W(a)&&W(i)&&!k(a)&&!k(i)&&!Hi(a)&&!Hi(i)&&!sd(a)&&!sd(i)&&!ho(a)&&!ho(i)?me(i,a,r):(r||!(n in t))&&(t[n]=J(e[n]))}return t}function fM(t,e){for(var r=t[0],n=1,i=t.length;n<i;n++)r=me(r,t[n],e);return r}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==ld&&(t[r]=e[r]);return t}function fd(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function ee(t,e,r){for(var n=ne(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var cM=lt.createCanvas;function ue(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function Ks(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function nt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else ee(t,e,r)}function Je(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function w(t,e,r){if(t&&e)if(t.forEach&&t.forEach===oM)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function z(t,e,r){if(!t)return[];if(!e)return Qs(t);if(t.map&&t.map===uM)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function Dt(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Fe(t,e,r){if(!t)return[];if(!e)return Qs(t);if(t.filter&&t.filter===sM)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Zs(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function ne(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function pM(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(ud.call(arguments)))}}var fe=Yl&&Y(Yl.bind)?Yl.call.bind(Yl.bind):pM;function Ce(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(ud.call(arguments)))}}function k(t){return Array.isArray?Array.isArray(t):vo.call(t)==="[object Array]"}function Y(t){return typeof t=="function"}function U(t){return typeof t=="string"}function mo(t){return vo.call(t)==="[object String]"}function ie(t){return typeof t=="number"}function W(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function sd(t){return!!x_[vo.call(t)]}function $e(t){return!!S_[vo.call(t)]}function Hi(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Gi(t){return t.colorStops!=null}function hM(t){return t.image!=null}function dM(t){return vo.call(t)==="[object RegExp]"}function Fn(t){return t!==t}function Wi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function X(t,e){return t??e}function Zt(t,e,r){return t??e??r}function Qs(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return ud.apply(t,e)}function $i(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ue(t,e){if(!t)throw new Error(e)}function dt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var b_="__ec_primitive__";function ti(t){t[b_]=!0}function ho(t){return t[b_]}var vM=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ne(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),E_=typeof Map=="function";function mM(){return E_?new Map:new vM}var w_=(function(){function t(e){var r=k(e);this.data=mM();var n=this;e instanceof t?e.each(i):e&&w(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return E_?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function K(t){return new w_(t)}function cd(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function In(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&N(r,e),r}function gM(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Ie(t,e){return t.hasOwnProperty(e)}function Be(){}var Yi=180/Math.PI,yM=Number.EPSILON||Math.pow(2,-52);var _M=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),xM=(function(){function t(){this.browser=new _M,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),ri=new xM;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ri.wxa=!0,ri.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ri.worker=!0:!ri.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ri.node=!0,ri.svgSupported=!0):SM(navigator.userAgent,ri);function SM(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);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),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var ce=ri;var bM=".",Xi="___EC__COMPONENT__CONTAINER___",C_="___EC__EXTENDED_CLASS___";function Qt(t){var e={main:"",sub:""};if(t){var r=t.split(bM);e.main=r[0]||"",e.sub=r[1]||""}return e}function EM(t){Ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function D_(t){return!!(t&&t[C_])}function go(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return wM(n)?i=(function(a){P(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Ks(i,this)),N(i.prototype,r),i[C_]=!0,i.extend=this.extend,i.superCall=DM,i.superApply=AM,i.superClass=n,i}}function wM(t){return Y(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function ql(t,e){t.extend=e.extend}var CM=Math.round(Math.random()*10);function A_(t){var e=["__\0is_clz",CM++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function DM(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function AM(t,e,r){return this.superClass.prototype[e].apply(t,r)}function ni(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){EM(i),n.prototype.type=i;var a=Qt(i);if(!a.sub)e[a.main]=n;else if(a.sub!==Xi){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Xi]&&(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},t.getClassesByMainType=function(n){var i=Qt(n),a=[],o=e[i.main];return o&&o[Xi]?w(o,function(s,u){u!==Xi&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=Qt(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return w(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=Qt(n),a=e[i.main];return a&&a[Xi]};function r(n){var i=e[n.main];return(!i||!i[Xi])&&(i=e[n.main]={},i[Xi]=!0),i}}function nn(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var u=t[s][1];if(!(i&&ue(i,u)>=0||a&&ue(a,u)<0)){var l=n.getShallow(u,e);l!=null&&(o[t[s][0]]=l)}}return o}}var TM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],MM=nn(TM),T_=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return MM(this,e,r)},t})();var M_=(function(){function t(e){this.value=e}return t})();var FM=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new M_(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var IM=(function(){function t(e){this._list=new FM,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==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 M_(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),an=IM;var hd=new an(50);function I_(t){if(typeof t=="string"){var e=hd.get(t);return e&&e.image}else return t}function Js(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=hd.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!yo(e)&&a.pending.push(o)):(e=lt.loadImage(t,F_,F_),e.__zrImageSrc=t,hd.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function F_(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function yo(t){return t&&t.width&&t.height}var Pn={};jt(Pn,{clone:()=>LM,copy:()=>qi,create:()=>St,identity:()=>xr,invert:()=>lr,mul:()=>zr,rotate:()=>ji,scale:()=>dd,translate:()=>_o});function St(){return[1,0,0,1,0,0]}function xr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function qi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function zr(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],u=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t}function _o(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function ji(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],u=e[3],l=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+u*f,t[3]=-a*f+c*u,t[4]=c*(o-n[0])+f*(l-n[1])+n[0],t[5]=c*(l-n[1])-f*(o-n[0])+n[1],t}function dd(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function lr(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],u=r*o-a*n;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-n*u,t[3]=r*u,t[4]=(n*s-o*i)*u,t[5]=(a*i-r*s)*u,t):null}function LM(t){var e=St();return qi(e,t),e}var Er={};jt(Er,{add:()=>jl,applyTransform:()=>et,clone:()=>vd,copy:()=>BM,create:()=>Ln,dist:()=>xo,distSquare:()=>ii,distance:()=>ru,distanceSquare:()=>P_,div:()=>zM,dot:()=>UM,len:()=>gd,lenSquare:()=>yd,length:()=>RM,lengthSquare:()=>NM,lerp:()=>nu,max:()=>br,min:()=>Sr,mul:()=>kM,negate:()=>VM,normalize:()=>_d,scale:()=>tu,scaleAndAdd:()=>OM,set:()=>eu,sub:()=>md});function Ln(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function BM(t,e){return t[0]=e[0],t[1]=e[1],t}function vd(t){return[t[0],t[1]]}function eu(t,e,r){return t[0]=e,t[1]=r,t}function jl(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function OM(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function md(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function gd(t){return Math.sqrt(yd(t))}var RM=gd;function yd(t){return t[0]*t[0]+t[1]*t[1]}var NM=yd;function kM(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function zM(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function UM(t,e){return t[0]*e[0]+t[1]*e[1]}function tu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function _d(t,e){var r=gd(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function ru(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var xo=ru;function P_(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ii=P_;function VM(t,e){return t[0]=-e[0],t[1]=-e[1],t}function nu(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function et(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Sr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function br(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var HM=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),pe=HM;var ea=Math.min,So=Math.max,bd=Math.abs,L_=["x","y"],GM=["width","height"],Ki=new pe,Zi=new pe,Qi=new pe,Ji=new pe,fr=wd(),iu=fr.minTv,Ed=fr.maxTv,au=[0,0],Bn=(function(){function t(e,r,n,i){xd(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=ea(e.x,this.x),n=ea(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=So(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=So(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return WM(St(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&pe.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=xd($M,e.x,e.y,e.width,e.height)),r instanceof t||(r=xd(YM,r.x,r.y,r.width,r.height));var s=!!n;fr.reset(i,s);var u=fr.touchThreshold,l=e.x+u,f=e.x+e.width-u,c=e.y+u,p=e.y+e.height-u,h=r.x+u,d=r.x+r.width-u,v=r.y+u,m=r.y+r.height-u;if(l>f||c>p||h>d||v>m)return!1;var g=!(f<h||d<l||p<v||m<c);return(s||a)&&(au[0]=1/0,au[1]=0,O_(l,f,h,d,0,s,a,o),O_(c,p,v,m,1,s,a,o),s&&pe.copy(n,g?fr.useDir?fr.dirMinTv:iu:Ed)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){B_(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&B_(e,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];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ki.x=Qi.x=r.x,Ki.y=Ji.y=r.y,Zi.x=Ji.x=r.x+r.width,Zi.y=Qi.y=r.y+r.height,Ki.transform(n),Ji.transform(n),Zi.transform(n),Qi.transform(n),e.x=ea(Ki.x,Zi.x,Qi.x,Ji.x),e.y=ea(Ki.y,Zi.y,Qi.y,Ji.y);var u=So(Ki.x,Zi.x,Qi.x,Ji.x),l=So(Ki.y,Zi.y,Qi.y,Ji.y);e.width=u-e.x,e.height=l-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=xr(e||[]),_o(e,e,eu(Sd,-r.x,-r.y)),dd(e,e,eu(Sd,i,a)),_o(e,e,eu(Sd,n.x,n.y)),e},t})(),Wk=Bn.create,xd=Bn.set,B_=Bn.copy,WM=Bn.calculateTransform,$k=Bn.applyTransform,Yk=Bn.contain,$M=new Bn(0,0,0,0),YM=new Bn(0,0,0,0),Sd=[];function O_(t,e,r,n,i,a,o,s){var u=bd(e-r),l=bd(n-t),f=ea(u,l),c=L_[i],p=L_[1-i],h=GM[i];e<r||n<t?u<l?(a&&(Ed[c]=-u),s&&(o[c]=e,o[h]=0)):(a&&(Ed[c]=l),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=So(t,r),o[h]=ea(e,n)-o[c]),a&&(f<au[0]||fr.useDir)&&(au[0]=ea(f,au[0]),(u<l||!fr.bidirectional)&&(iu[c]=u,iu[p]=0,fr.useDir&&fr.calcDirMTV()),(u>=l||!fr.bidirectional)&&(iu[c]=-l,iu[p]=0,fr.useDir&&fr.calcDirMTV())))}function wd(){var t=0,e=new pe,r=new pe,n={minTv:new pe,maxTv:new pe,useDir:!1,dirMinTv:new pe,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=So(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(t),l=Math.cos(t),f=u*a.y+l*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return bd(a)<1e-10}return n}var re=Bn;function Vr(t){Kl||(Kl=new an(100)),t=t||Kt;var e=Kl.get(t);return e||(e={font:t,strWidthCache:new an(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:lt.measureText("\u56FD",t).width,asciiCharWidth:lt.measureText("a",t).width},Kl.put(t,e)),e}var Kl;function XM(t){if(!(Cd>=R_)){t=t||Kt;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=lt.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Cd=R_:i>2&&Cd++,e}}var Cd=0,R_=5;function Dd(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=XM(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Hr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=lt.measureText(e,t.font).width,r.put(e,n)),n}function N_(t,e,r,n){var i=Hr(Vr(e),t),a=ta(e),o=ai(0,i,r),s=On(0,a,n),u=new re(o,s,i,a);return u}function Zl(t,e,r,n){var i=((t||"")+"").split(`
|
|
8
|
+
`),a=i.length;if(a===1)return N_(i[0],e,r,n);for(var o=new re(0,0,0,0),s=0;s<i.length;s++){var u=N_(i[s],e,r,n);s===0?o.copy(u):o.union(u)}return o}function ai(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function On(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function ta(t){return Vr(t).stWideCharWidth}function Ur(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ra(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",c="top";if(n instanceof Array)u+=Ur(n[0],r.width),l+=Ur(n[1],r.height),f=null,c=null;else switch(n){case"left":u-=i,l+=s,f="right",c="middle";break;case"right":u+=i+o,l+=s,c="middle";break;case"top":u+=o/2,l-=i,f="center",c="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",c="middle";break;case"insideLeft":u+=i,l+=s,c="middle";break;case"insideRight":u+=o-i,l+=s,f="right",c="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",c="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,c="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",c="bottom";break}return t=t||{},t.x=u,t.y=l,t.align=f,t.verticalAlign=c,t}var Ad=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Md(t,e,r,n,i){var a={};return H_(a,t,e,r,n,i),a.text}function H_(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
9
9
|
`);a=G_(r,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)W_(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;t.text=o.join(`
|
|
10
|
-
`),t.isTruncated=s}function G_(t,e,r,n){n=n||{};var i=N({},n);r=X(r,"..."),i.maxIterations=X(n.maxIterations,2);var a=i.minChar=X(n.minChar,0),o=i.fontMeasureInfo=Vr(e),s=o.asciiCharWidth;i.placeholder=X(n.placeholder,"");for(var u=t=Math.max(0,t-1),l=0;l<a&&u>=s;l++)u-=s;var f=Hr(o,r);return f>u&&(r="",f=0),u=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=u,i.containerWidth=t,i}function W_(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=Hr(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var u=s===0?qM(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,u),o=Hr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function qM(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=
|
|
11
|
-
`):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);d=d||g.length>_,g=g.slice(0,_),y=g.length*p}if(i&&f&&v!=null)for(var x=G_(v,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)W_(S,g[b],x),g[b]=S.textLine,d=d||S.isTruncated;for(var E=m,
|
|
10
|
+
`),t.isTruncated=s}function G_(t,e,r,n){n=n||{};var i=N({},n);r=X(r,"..."),i.maxIterations=X(n.maxIterations,2);var a=i.minChar=X(n.minChar,0),o=i.fontMeasureInfo=Vr(e),s=o.asciiCharWidth;i.placeholder=X(n.placeholder,"");for(var u=t=Math.max(0,t-1),l=0;l<a&&u>=s;l++)u-=s;var f=Hr(o,r);return f>u&&(r="",f=0),u=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=u,i.containerWidth=t,i}function W_(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=Hr(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var u=s===0?qM(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,u),o=Hr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function qM(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=Dd(r,t.charCodeAt(i));return i}function $_(t,e,r,n){var i=Id(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=e.font,f=a==="truncate",c=ta(l),p=X(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&r!=null&&(v=r-s);var m=e.height;m==null&&n!=null&&(m=n-u);var g;v!=null&&(a==="break"||a==="breakAll")?g=i?X_(i,e.font,v,a==="breakAll",0).lines:[]:g=i?i.split(`
|
|
11
|
+
`):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);d=d||g.length>_,g=g.slice(0,_),y=g.length*p}if(i&&f&&v!=null)for(var x=G_(v,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)W_(S,g[b],x),g[b]=S.textLine,d=d||S.isTruncated;for(var E=m,D=0,A=Vr(l),b=0;b<g.length;b++)D=Math.max(Hr(A,g[b]),D);v==null&&(v=D);var C=v;return E+=u,C+=s,{lines:g,height:m,outerWidth:C,outerHeight:E,lineHeight:p,calculatedLineHeight:c,contentWidth:D,contentHeight:y,width:v,isTruncated:d}}var jM=(function(){function t(){}return t})(),z_=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),KM=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function Y_(t,e,r,n,i){var a=new KM,o=Id(t);if(!o)return a;var s=e.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-u);var c=e.height;c==null&&n!=null&&(c=n-l);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,d=Ad.lastIndex=0,v;(v=Ad.exec(o))!=null;){var m=v.index;m>d&&Td(a,o.substring(d,m),e,h),Td(a,v[2],e,h,v[1]),d=Ad.lastIndex}d<o.length&&Td(a,o.substring(d,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",b={};function E(ge,Xe,We){ge.width=Xe,ge.lineHeight=We,y+=We,_=Math.max(_,Xe)}e:for(var D=0;D<a.lines.length;D++){for(var A=a.lines[D],C=0,T=0,F=0;F<A.tokens.length;F++){var M=A.tokens[F],I=M.styleName&&e.rich[M.styleName]||{},L=M.textPadding=I.padding,B=L?L[1]+L[3]:0,R=M.font=I.font||e.font;M.contentHeight=ta(R);var O=X(I.height,M.contentHeight);if(M.innerHeight=O,L&&(O+=L[0]+L[2]),M.height=O,M.lineHeight=Zt(I.lineHeight,e.lineHeight,O),M.align=I&&I.align||i,M.verticalAlign=I&&I.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var V=a.lines.length;F>0?(A.tokens=A.tokens.slice(0,F),E(A,T,C),a.lines=a.lines.slice(0,D+1)):a.lines=a.lines.slice(0,D),a.isTruncated=a.isTruncated||a.lines.length<V;break e}var G=I.width,H=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")M.percentWidth=G,g.push(M),M.contentWidth=Hr(Vr(R),M.text);else{if(H){var q=I.backgroundColor,Q=q&&q.image;Q&&(Q=I_(Q),yo(Q)&&(M.width=Math.max(M.width,Q.width*O/Q.height)))}var j=x&&f!=null?f-T:null;j!=null&&j<M.width?!H||j<B?(M.text="",M.width=M.contentWidth=0):(H_(b,M.text,j-B,R,e.ellipsis,{minChar:e.truncateMinChar}),M.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,M.width=M.contentWidth=Hr(Vr(R),M.text)):M.contentWidth=Hr(Vr(R),M.text)}M.width+=B,T+=M.width,I&&(C=Math.max(C,M.lineHeight))}E(A,T,C)}a.outerWidth=a.width=X(f,_),a.outerHeight=a.height=X(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var D=0;D<g.length;D++){var M=g[D],oe=M.percentWidth;M.width=parseInt(oe,10)/100*a.width}return a}function Td(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,u=o.font||r.font,l=!1,f,c;if(n){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Ur(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
|
|
12
12
|
`),l=!0),n.accumWidth=d}else{var v=X_(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,c=v.linesWidths,f=v.lines}}f||(f=e.split(`
|
|
13
|
-
`));for(var m=Vr(u),g=0;g<f.length;g++){var y=f[g],_=new jM;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Hr(m,y),!g&&!l){var x=(s[s.length-1]||(s[0]=new z_)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new z_([_]))}}function ZM(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var QM=
|
|
14
|
-
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=Ad(c,h.charCodeAt(0)),v=n?!1:!JM(h);if(a.length?f+d>r:i+f+d>r){f?(s||u)&&(v?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=h,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(u),o.push(l),u=h,l=d):(a.push(h),o.push(d));continue}f+=d,v?(u+=h,l+=d):(u&&(s+=u,u="",l=0),s+=h)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Fd(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;re.set(U_,ai(r,o,i),On(n,s,a),o,s),re.intersect(e,U_,null,V_);var u=V_.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=ai(u.x,u.width,i,!0),t.baseY=On(u.y,u.height,a,!0)}}var U_=new re(0,0,0,0),V_={outIntersectRect:{},clamp:!0};function Id(t){return t!=null?t+="":t=""}function q_(t){var e=Id(t.text),r=t.font,n=Hr(Vr(r),e),i=ta(r);return Ql(t,n,i,null)}function Ql(t,e,r,n){var i=new re(ai(t.x||0,e,t.textAlign),On(t.y||0,r,t.textBaseline),e,r),a=n!=null?n:Pd(t)?t.lineWidth:0;return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Pd(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var j_=xr,K_=5e-5;function na(t){return t>K_||t<-K_}var ia=[],bo=[],Ld=St(),Bd=Math.abs,Z_=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return eF(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return na(this.rotation)||na(this.x)||na(this.y)||na(this.scaleX-1)||na(this.scaleY-1)||na(this.skewX)||na(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(j_(n),this.invTransform=null);return}n=n||St(),r?this.getLocalTransform(n):j_(n),e&&(r?zr(n,e,n):qi(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||St(),lr(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ia);var n=ia[0]<0?-1:1,i=ia[1]<0?-1:1,a=((ia[0]-n)*r+n)/ia[0]||0,o=((ia[1]-i)*r+i)/ia[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||St(),zr(bo,e.invTransform,r),r=bo);var n=this.originX,i=this.originY;(n||i)&&(Ld[4]=n,Ld[5]=i,zr(bo,r,Ld),bo[4]-=n,bo[5]-=i,r=bo),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&et(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&et(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Bd(e[0]-1)>1e-10&&Bd(e[3]-1)>1e-10?Math.sqrt(Bd(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){oi(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,u=e.anchorY,l=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||u){var d=n+s,v=i+u;r[4]=-d*a-p*v*o,r[5]=-v*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,l&&ji(r,r,l),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),eF=Z_.getLocalTransform;var Eo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function oi(t,e){return fd(t,e,Eo)}var wo=Z_;var Jl={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Jl.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Jl.bounceIn(t*2)*.5:Jl.bounceOut(t*2-1)*.5+.5}},ef=Jl;var tf=Math.pow,ui=Math.sqrt,nf=1e-8,J_=1e-4,Q_=ui(3),rf=1/3,on=Ln(),wr=Ln(),Co=Ln();function si(t){return t>-nf&&t<nf}function ex(t){return t>nf||t<-nf}function Ve(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function Od(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function aa(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),u=3*(e-t),l=t-i,f=s*s-3*o*u,c=s*u-9*o*l,p=u*u-3*s*l,h=0;if(si(f)&&si(c))if(si(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[h++]=d)}else{var v=c*c-4*f*p;if(si(v)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(v>0){var y=ui(v),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-tf(-_,rf):_=tf(_,rf),x<0?x=-tf(-x,rf):x=tf(x,rf);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var S=(2*f*s-3*o*c)/(2*ui(f*f*f)),b=Math.acos(S)/3,E=ui(f),A=Math.cos(b),d=(-s-2*E*A)/(3*o),g=(-s+E*(A+Q_*Math.sin(b)))/(3*o),D=(-s+E*(A-Q_*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),D>=0&&D<=1&&(a[h++]=D)}}return h}function af(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,u=0;if(si(o)){if(ex(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(si(f))i[0]=-a/(2*o);else if(f>0){var c=ui(f),l=(-a+c)/(2*o),p=(-a-c)/(2*o);l>=0&&l<=1&&(i[u++]=l),p>=0&&p<=1&&(i[u++]=p)}}return u}function Ao(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,c=(f-l)*i+l;a[0]=t,a[1]=o,a[2]=l,a[3]=c,a[4]=c,a[5]=f,a[6]=u,a[7]=n}function tx(t,e,r,n,i,a,o,s,u,l,f){var c,p=.005,h=1/0,d,v,m,g;on[0]=u,on[1]=l;for(var y=0;y<1;y+=.05)wr[0]=Ve(t,r,i,o,y),wr[1]=Ve(e,n,a,s,y),m=ii(on,wr),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<J_);_++)d=c-p,v=c+p,wr[0]=Ve(t,r,i,o,d),wr[1]=Ve(e,n,a,s,d),m=ii(wr,on),d>=0&&m<h?(c=d,h=m):(Co[0]=Ve(t,r,i,o,v),Co[1]=Ve(e,n,a,s,v),g=ii(Co,on),v<=1&&g<h?(c=v,h=g):p*=.5);return f&&(f[0]=Ve(t,r,i,o,c),f[1]=Ve(e,n,a,s,c)),ui(h)}function rx(t,e,r,n,i,a,o,s,u){for(var l=t,f=e,c=0,p=1/u,h=1;h<=u;h++){var d=h*p,v=Ve(t,r,i,o,d),m=Ve(e,n,a,s,d),g=v-l,y=m-f;c+=Math.sqrt(g*g+y*y),l=v,f=m}return c}function ft(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Rd(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function nx(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,u=0;if(si(a)){if(ex(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(si(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var c=ui(f),l=(-o+c)/(2*a),p=(-o-c)/(2*a);l>=0&&l<=1&&(i[u++]=l),p>=0&&p<=1&&(i[u++]=p)}}return u}function of(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Do(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function ix(t,e,r,n,i,a,o,s,u){var l,f=.005,c=1/0;on[0]=o,on[1]=s;for(var p=0;p<1;p+=.05){wr[0]=ft(t,r,i,p),wr[1]=ft(e,n,a,p);var h=ii(on,wr);h<c&&(l=p,c=h)}c=1/0;for(var d=0;d<32&&!(f<J_);d++){var v=l-f,m=l+f;wr[0]=ft(t,r,i,v),wr[1]=ft(e,n,a,v);var h=ii(wr,on);if(v>=0&&h<c)l=v,c=h;else{Co[0]=ft(t,r,i,m),Co[1]=ft(e,n,a,m);var g=ii(Co,on);m<=1&&g<c?(l=m,c=g):f*=.5}}return u&&(u[0]=ft(t,r,i,l),u[1]=ft(e,n,a,l)),ui(c)}function ax(t,e,r,n,i,a,o){for(var s=t,u=e,l=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=ft(t,r,i,p),d=ft(e,n,a,p),v=h-s,m=d-u;l+=Math.sqrt(v*v+m*m),s=h,u=d}return l}var tF=/cubic-bezier\(([0-9,\.e ]+)\)/;function To(t){var e=t&&tF.exec(t);if(e){var r=e[1].split(","),n=+dt(r[0]),i=+dt(r[1]),a=+dt(r[2]),o=+dt(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:aa(0,n,a,1,u,s)&&Ve(0,i,o,1,s[0])}}}var rF=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Be,this.ondestroy=e.ondestroy||Be,this.onrestart=e.onrestart||Be,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-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=e-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Y(e)?e:ef[e]||To(e)},t})(),ox=rF;var ff={};jt(ff,{fastLerp:()=>fx,fastMapToColor:()=>oF,lerp:()=>lf,lift:()=>Vd,liftColor:()=>Io,lum:()=>oa,mapToColor:()=>sF,modifyAlpha:()=>uF,modifyHSL:()=>Fo,parse:()=>vt,parseCssFloat:()=>fi,parseCssInt:()=>uf,random:()=>lF,stringify:()=>sn,toHex:()=>aF});var sx={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 Gr(t){return t=Math.round(t),t<0?0:t>255?255:t}function nF(t){return t=Math.round(t),t<0?0:t>360?360:t}function ou(t){return t<0?0:t>1?1:t}function uf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Gr(parseFloat(e)/100*255):Gr(parseInt(e,10))}function fi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ou(parseFloat(e)/100):ou(parseFloat(e))}function kd(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function li(t,e,r){return t+(e-t)*r}function Cr(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function zd(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var lx=new an(20),sf=null;function Mo(t,e){sf&&zd(sf,e),sf=lx.put(t,sf||e.slice())}function vt(t,e){if(t){e=e||[];var r=lx.get(t);if(r)return zd(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in sx)return zd(e,sx[n]),Mo(t,e),e;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)){Cr(e,0,0,0,1);return}return Cr(e,(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),Mo(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Cr(e,0,0,0,1);return}return Cr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Mo(t,e),e}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?Cr(e,+l[0],+l[1],+l[2],1):Cr(e,0,0,0,1);f=fi(l.pop());case"rgb":if(l.length>=3)return Cr(e,uf(l[0]),uf(l[1]),uf(l[2]),l.length===3?f:fi(l[3])),Mo(t,e),e;Cr(e,0,0,0,1);return;case"hsla":if(l.length!==4){Cr(e,0,0,0,1);return}return l[3]=fi(l[3]),Ud(l,e),Mo(t,e),e;case"hsl":if(l.length!==3){Cr(e,0,0,0,1);return}return Ud(l,e),Mo(t,e),e;default:return}}Cr(e,0,0,0,1)}}function Ud(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=fi(t[1]),i=fi(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Cr(e,Gr(kd(o,a,r+1/3)*255),Gr(kd(o,a,r)*255),Gr(kd(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function iF(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-n)/6+o/2)/o;e===a?u=p-c:r===a?u=1/3+f-p:n===a&&(u=2/3+c-f),u<0&&(u+=1),u>1&&(u-=1)}var h=[u*360,l,s];return t[3]!=null&&h.push(t[3]),h}}function Vd(t,e){var r=vt(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return sn(r,r.length===4?"rgba":"rgb")}}function aF(t){var e=vt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function fx(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],u=n-i;return r[0]=Gr(li(o[0],s[0],u)),r[1]=Gr(li(o[1],s[1],u)),r[2]=Gr(li(o[2],s[2],u)),r[3]=ou(li(o[3],s[3],u)),r}}var oF=fx;function lf(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=vt(e[i]),s=vt(e[a]),u=n-i,l=sn([Gr(li(o[0],s[0],u)),Gr(li(o[1],s[1],u)),Gr(li(o[2],s[2],u)),ou(li(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}var sF=lf;function Fo(t,e,r,n){var i=vt(t);if(t)return i=iF(i),e!=null&&(i[0]=nF(Y(e)?e(i[0]):e)),r!=null&&(i[1]=fi(Y(r)?r(i[1]):r)),n!=null&&(i[2]=fi(Y(n)?n(i[2]):n)),sn(Ud(i),"rgba")}function uF(t,e){var r=vt(t);if(r&&e!=null)return r[3]=ou(e),sn(r,"rgba")}function sn(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function oa(t,e){var r=vt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function lF(){return sn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var ux=new an(100);function Io(t){if(U(t)){var e=ux.get(t);return e||(e=Vd(t,-.1),ux.put(t,e)),e}else if(Gi(t)){var r=N({},t);return r.colorStops=z(t.colorStops,function(n){return{offset:n.offset,color:Vd(n.color,-.1)}}),r}return t}var pf=Math.round;function ci(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=vt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e==null?1:e}}var cx=1e-4;function un(t){return t<cx&&t>-cx}function cf(t){return pf(t*1e3)/1e3}function hf(t){return pf(t*1e4)/1e4}function px(t){return"matrix("+cf(t[0])+","+cf(t[1])+","+cf(t[2])+","+cf(t[3])+","+hf(t[4])+","+hf(t[5])+")"}var hx={left:"start",right:"end",center:"middle",middle:"middle"};function dx(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function vx(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function mx(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Hd(t){return t&&!!t.image}function fF(t){return t&&!!t.svgElement}function su(t){return Hd(t)||fF(t)}function df(t){return t.type==="linear"}function vf(t){return t.type==="radial"}function mf(t){return t&&(t.type==="linear"||t.type==="radial")}function uu(t){return"url(#"+t+")"}function gf(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function yf(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Yi,i=X(t.scaleX,1),a=X(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,u=[];return(e||r)&&u.push("translate("+e+"px,"+r+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+pf(o*Yi)+"deg, "+pf(s*Yi)+"deg)"),u.join(" ")}var gx=(function(){return typeof Buffer!="undefined"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var Wd=Array.prototype.slice;function Rn(t,e,r){return(e-t)*r+t}function Gd(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Rn(e[a],r[a],n);return t}function cF(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Rn(e[o][s],r[o][s],n)}return t}function _f(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function yx(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function pF(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,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 hF(t,e,r){var n=t,i=e;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]:Wd.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 cu(t){if(Je(t)){var e=t.length;if(Je(t[0])){for(var r=[],n=0;n<e;n++)r.push(Wd.call(t[n]));return r}return Wd.call(t)}return t}function bf(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function dF(t){return Je(t&&t[0])?2:1}var xf=0,Ef=1,Sx=2,fu=3,$d=4,Yd=5,_x=6;function xx(t){return t===$d||t===Yd}function Sf(t){return t===Ef||t===Sx}var lu=[0,0,0,0],vF=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_x,u=r;if(Je(r)){var l=dF(r);s=l,(l===1&&!ie(r[0])||l===2&&!ie(r[0][0]))&&(o=!0)}else if(ie(r)&&!Fn(r))s=xf;else if(U(r))if(!isNaN(+r))s=xf;else{var f=vt(r);f&&(u=f,s=fu)}else if(Gi(r)){var c=N({},u);c.colorStops=z(r.colorStops,function(h){return{offset:h.offset,color:vt(h.color)}}),df(r)?s=$d:vf(r)&&(s=Yd),u=c}a===0?this.valType=s:(s!==this.valType||s===_x)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:u,rawValue:r,percent:0};return n&&(p.easing=n,p.easingFunc=Y(n)?n:ef[n]||To(n)),i.push(p),p},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,m){return v.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Sf(i),l=xx(i),f=0;f<a;f++){var c=n[f],p=c.value,h=o.value;c.percent=c.time/e,s||(u&&f!==a-1?hF(p,h,i):l&&pF(p.colorStops,h.colorStops))}if(!s&&i!==Yd&&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===xf?n[f].additiveValue=n[f].value-d:i===fu?n[f].additiveValue=_f([],n[f].value,d,-1):Sf(i)&&(n[f].additiveValue=i===Ef?_f([],n[f].value,d,-1):yx([],n[f].value,d,-1))}},t.prototype.step=function(e,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===fu,f,c=this._lastFr,p=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var v=p(c+1,s-1);for(f=v;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:l?lu:e[u];if((Sf(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)e[u]=g<1?h.rawValue:d.rawValue;else if(Sf(a))a===Ef?Gd(y,h[i],d[i],g):cF(y,h[i],d[i],g);else if(xx(a)){var _=h[i],x=d[i],S=a===$d;e[u]={type:S?"linear":"radial",x:Rn(_.x,x.x,g),y:Rn(_.y,x.y,g),colorStops:z(_.colorStops,function(E,A){var D=x.colorStops[A];return{offset:Rn(E.offset,D.offset,g),color:bf(Gd([],E.color,D.color,g))}}),global:x.global},S?(e[u].x2=Rn(_.x2,x.x2,g),e[u].y2=Rn(_.y2,x.y2,g)):e[u].r=Rn(_.r,x.r,g)}else if(l)Gd(y,h[i],d[i],g),n||(e[u]=bf(y));else{var b=Rn(h[i],d[i],g);n?this._additiveValue=b:e[u]=b}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===xf?e[n]=e[n]+i:r===fu?(vt(e[n],lu),_f(lu,lu,i,1),e[n]=bf(lu)):r===Ef?_f(e[n],e[n],i,1):r===Sx&&yx(e[n],e[n],i,1)},t})(),mF=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){js("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ne(r),n)},t.prototype.whenWithKeys=function(e,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 vF(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];l=p&&p.value,f.valType===fu&&l&&(l=bf(l))}else l=this._target[s];if(l==null)continue;e>0&&u.addKeyframe(0,cu(l),i),this._trackKeys.push(s)}u.addKeyframe(e,cu(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){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 c=l[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var p=new ox({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return z(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[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},t.prototype.saveTo=function(e,r,n){if(e){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&&(e[a]=cu(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ne(e);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,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),pu=mF;var gF=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[e].length-1,f=a[e][l];return f&&f.callAtLast?a[e].splice(l,0,u):a[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],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(e,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(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],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(e,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(e),this},t})(),Nt=gF;var bx=1;ce.hasGlobalWindow&&(bx=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Xd=bx,hu=.4,du="#333",vu="#ccc",Ex="#eee";var Dt=1,sa=2,pi=4;var qd="__zr_normal__",jd=Eo.concat(["ignore"]),yF=At(Eo,function(t,e){return t[e]=!0,t},{ignore:!1}),Po={},_F=new re(0,0,0,0),wf=[],Cf=0,Lo=1,Qd=(function(){function t(e){this.id=qs(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){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;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,p=void 0;if((c||f)&&(p=_F,n.layoutRect?p.copy(n.layoutRect):p.copy(this.getBoundingRect()),i||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Po,n,p):ra(Po,n,p),a.x=Po.x,a.y=Po.y,o=Po.align,s=Po.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,v=void 0;h==="center"?(d=p.width*.5,v=p.height*.5):(d=Ur(h[0],p.width),v=Ur(h[1],p.height)),l=!0,a.originX=-a.x+d+(i?0:p.x),a.originY=-a.y+v+(i?0:p.y)}}n.rotation!=null&&(a.rotation=n.rotation);var m=n.offset;m&&(a.x+=m[0],a.y+=m[1],l||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new re(0,0,0,0);a.getLocalTransform(wf),lr(wf,wf),re.copy(y,p),y.applyTransform(wf)}else g.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,x=void 0,S=void 0,b=void 0;_&&this.canBeInsideText()?(x=n.insideFill,S=n.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=n.outsideFill,S=n.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(u=!0,g.fill=x,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Dt,u&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?vu:du},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&vt(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,sn(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},N(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(W(e))for(var n=e,i=ne(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);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!==qd)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,jd)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(qd,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===qd,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(ue(s,e)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!a){js("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=this._textContent,c=Cx(this,f,l,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,l,this._normalState,r,Dx(this,n,u),u);var p=this._textGuide;return f&&f.useState(e,r,n,!!c),p&&p.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Cf,this.__dirty&=~Dt),l}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(e[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=e[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,e)),f||(f=this.states[l]),f&&i.push(f)}var c=i[o-1],p=this._textContent,h=Cx(this,p,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Dx(this,r,v),v);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Cf,this.__dirty&=~Dt)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ue(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=ue(i,e),o=ue(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];N(r,a),a.textConfig&&(n=n||{},N(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==Lo){var s=!(r&&i);r&&r.textConfig?(this.textConfig=N({},i?this.textConfig:n.textConfig),N(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<jd.length;f++){var c=jd[f],p=a&&yF[c];r&&r[c]!=null?p?(l=!0,u[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(p?(l=!0,u[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(e,u,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new wo,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Dt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new pu(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ue(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){Kd(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Kd(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Kd(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Cf,e.__dirty=Dt;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,u){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];l(this,f)}return this[o]},set:function(f){this[s]=f[0],this[u]=f[1],this[o]=f,l(this,f)}});function l(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[u]},set:function(p){f[u]=p}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),t})();nt(Qd,Nt);nt(Qd,wo);function Kd(t,e,r,n,i){r=r||{};var a=[];Tx(t,"",t,e,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())},c=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,v){r.during(v)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Zd(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function xF(t){return Je(t[0])}function SF(t,e,r){if(Je(e[r]))if(Je(t[r])||(t[r]=[]),$e(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Zd(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(xF(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?Zd(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else Zd(a,i,o);a.length=i.length}else t[r]=e[r]}function bF(t,e){return t===e||Je(t)&&Je(e)&&EF(t,e)}function EF(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Tx(t,e,r,n,i,a,o,s){for(var u=ne(n),l=i.duration,f=i.delay,c=i.additive,p=i.setToFinal,h=!W(a),d=t.animators,v=[],m=0;m<u.length;m++){var g=u[m],y=n[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(W(y)&&!Je(y)&&!Gi(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}Tx(t,g,r[g],y,i,a&&a[g],o,s)}else v.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),v.push(g))}var _=v.length;if(!c&&_)for(var x=0;x<d.length;x++){var S=d[x];if(S.targetName===e){var b=S.stopTracks(v);if(b){var E=ue(d,S);d.splice(E,1)}}}if(i.force||(v=Fe(v,function(T){return!bF(n[T],r[T])}),_=v.length),_>0||i.force&&!o.length){var A=void 0,D=void 0,C=void 0;if(s){D={},p&&(A={});for(var x=0;x<_;x++){var g=v[x];D[g]=r[g],p?A[g]=n[g]:r[g]=n[g]}}else if(p){C={};for(var x=0;x<_;x++){var g=v[x];C[g]=cu(r[g]),SF(r,n,g)}}var S=new pu(r,!1,!1,c?Fe(d,function(F){return F.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),p&&A&&S.whenWithKeys(0,A,v),C&&S.whenWithKeys(0,C,v),S.whenWithKeys(l==null?500:l,s?D:n,v).delay(f||0),t.addAnimator(S,e),o.push(S)}}function Cx(t,e,r,n){return!(r&&r.hoverLayer||n)||Ax(t)||e&&Ax(e)?Cf:Lo}function Ax(t){return t.type==="text"||t.type==="tspan"}function Dx(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Af=Qd;var tv="__zr_style_"+Math.round(Math.random()*10),ln={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ua={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ln[tv]=!0;var Mx=["z","z2","invisible"],wF=["invisible"],CF=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=ne(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&AF(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){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},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.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 re(0,0,0,0)),n?re.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},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new re(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:N(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=sa,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&sa)},e.prototype.styleUpdated=function(){this.__dirty&=~sa},e.prototype.createStyle=function(r){return In(ln,r)},e.prototype.useStyle=function(r){r[tv]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[tv]},e.prototype._innerSaveToNormal=function(r){t.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,Mx)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l=this.__inHover===Lo,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):u&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var p=ne(c),h=0;h<p.length;h++){var d=p[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var v=ne(f),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else l?this._useHoverStyle(f):this.useStyle(f);if(!l)for(var m=this.__inHover?wF:Mx,h=0;h<m.length;h++){var d=m[h];n&&n[d]!=null?this[d]=n[d]:u&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.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},e.prototype._mergeStyle=function(r,n){return N(r,n),r},e.prototype.getAnimationStyleProps=function(){return ua},e.initDefaultProps=(function(){var r=e.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=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Dt|sa})(),e})(Af),Jd=new re(0,0,0,0),ev=new re(0,0,0,0);function AF(t,e,r){return Jd.copy(t.getBoundingRect()),t.transform&&Jd.applyTransform(t.transform),ev.width=e,ev.height=r,!Jd.intersect(ev)}var fn=CF;var Ar=Math.min,Dr=Math.max,rv=Math.sin,nv=Math.cos,la=Math.PI*2,Df=Ln(),Tf=Ln(),Mf=Ln();function iv(t,e,r,n,i,a){i[0]=Ar(t,r),i[1]=Ar(e,n),a[0]=Dr(t,r),a[1]=Dr(e,n)}var Fx=[],Ix=[];function Px(t,e,r,n,i,a,o,s,u,l){var f=af,c=Ve,p=f(t,r,i,o,Fx);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<p;h++){var d=c(t,r,i,o,Fx[h]);u[0]=Ar(d,u[0]),l[0]=Dr(d,l[0])}p=f(e,n,a,s,Ix);for(var h=0;h<p;h++){var v=c(e,n,a,s,Ix[h]);u[1]=Ar(v,u[1]),l[1]=Dr(v,l[1])}u[0]=Ar(t,u[0]),l[0]=Dr(t,l[0]),u[0]=Ar(o,u[0]),l[0]=Dr(o,l[0]),u[1]=Ar(e,u[1]),l[1]=Dr(e,l[1]),u[1]=Ar(s,u[1]),l[1]=Dr(s,l[1])}function Lx(t,e,r,n,i,a,o,s){var u=of,l=ft,f=Dr(Ar(u(t,r,i),1),0),c=Dr(Ar(u(e,n,a),1),0),p=l(t,r,i,f),h=l(e,n,a,c);o[0]=Ar(t,i,p),o[1]=Ar(e,a,h),s[0]=Dr(t,i,p),s[1]=Dr(e,a,h)}function Bx(t,e,r,n,i,a,o,s,u){var l=Sr,f=br,c=Math.abs(i-a);if(c%la<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,u[0]=t+r,u[1]=e+n;return}if(Df[0]=nv(i)*r+t,Df[1]=rv(i)*n+e,Tf[0]=nv(a)*r+t,Tf[1]=rv(a)*n+e,l(s,Df,Tf),f(u,Df,Tf),i=i%la,i<0&&(i=i+la),a=a%la,a<0&&(a=a+la),i>a&&!o?a+=la:i<a&&o&&(i+=la),o){var p=a;a=i,i=p}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Mf[0]=nv(h)*r+t,Mf[1]=rv(h)*n+e,l(s,Mf,s),f(u,Mf,u))}var Te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fa=[],ca=[],cn=[],hi=[],pn=[],hn=[],av=Math.min,ov=Math.max,pa=Math.cos,ha=Math.sin,Nn=Math.abs,lv=Math.PI,di=lv*2,sv=typeof Float32Array!="undefined",mu=[];function uv(t){var e=Math.round(t/lv*1e8)/1e8;return e%2*lv}function gu(t,e){var r=uv(t[0]);r<0&&(r+=di);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=di?i=r+di:e&&r-i>=di?i=r-di:!e&&r>i?i=r+(di-uv(r-i)):e&&r<i&&(i=r-(di-uv(i-r))),t[0]=r,t[1]=i}var DF=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Nn(n/Xd/e)||0,this._uy=Nn(n/Xd/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Te.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Nn(e-this._xi),i=Nn(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Te.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Te.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Te.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),mu[0]=i,mu[1]=a,gu(mu,o),i=mu[0],a=mu[1];var s=a-i;return this.addData(Te.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=pa(a)*n+e,this._yi=ha(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Te.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Te.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&sv&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(sv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=e[a].data,s=0;s<u.length;s++)this.data[i++]=u[s];this._len=i}},t.prototype.addData=function(e,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 c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sv&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){cn[0]=cn[1]=pn[0]=pn[1]=Number.MAX_VALUE,hi[0]=hi[1]=hn[0]=hn[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],u=o===1;switch(u&&(r=e[o],n=e[o+1],i=r,a=n),s){case Te.M:r=i=e[o++],n=a=e[o++],pn[0]=i,pn[1]=a,hn[0]=i,hn[1]=a;break;case Te.L:iv(r,n,e[o],e[o+1],pn,hn),r=e[o++],n=e[o++];break;case Te.C:Px(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],pn,hn),r=e[o++],n=e[o++];break;case Te.Q:Lx(r,n,e[o++],e[o++],e[o],e[o+1],pn,hn),r=e[o++],n=e[o++];break;case Te.A:var l=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],d=e[o++]+h;o+=1;var v=!e[o++];u&&(i=pa(h)*c+l,a=ha(h)*p+f),Bx(l,f,c,p,h,d,v,pn,hn),r=pa(d)*c+l,n=ha(d)*p+f;break;case Te.R:i=r=e[o++],a=n=e[o++];var m=e[o++],g=e[o++];iv(i,a,i+m,a+g,pn,hn);break;case Te.Z:r=i,n=a;break}Sr(cn,cn,pn),br(hi,hi,hn)}return o===0&&(cn[0]=cn[1]=hi[0]=hi[1]=0),new re(cn[0],cn[1],hi[0]-cn[0],hi[1]-cn[1])},t.prototype._calculateLength=function(){var e=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,c=0,p=0;p<r;){var h=e[p++],d=p===1;d&&(a=e[p],o=e[p+1],s=a,u=o);var v=-1;switch(h){case Te.M:a=s=e[p++],o=u=e[p++];break;case Te.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(Nn(y)>n||Nn(_)>i||p===r-1)&&(v=Math.sqrt(y*y+_*_),a=m,o=g);break}case Te.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],E=e[p++];v=rx(a,o,x,S,m,g,b,E,10),a=b,o=E;break}case Te.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];v=ax(a,o,x,S,m,g,10),a=m,o=g;break}case Te.A:var A=e[p++],D=e[p++],C=e[p++],T=e[p++],F=e[p++],M=e[p++],I=M+F;p+=1,d&&(s=pa(F)*C+A,u=ha(F)*T+D),v=ov(C,T)*av(di,Math.abs(M)),a=pa(I)*C+A,o=ha(I)*T+D;break;case Te.R:{s=a=e[p++],u=o=e[p++];var L=e[p++],B=e[p++];v=L*2+B*2;break}case Te.Z:{var y=s-a,_=u-o;v=Math.sqrt(y*y+_*_),a=s,o=u;break}}v>=0&&(l[c++]=v,f+=v)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,c,p,h=r<1,d,v,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b<o;){var E=n[b++],A=b===1;switch(A&&(l=n[b],f=n[b+1],s=l,u=f),E!==Te.L&&_>0&&(e.lineTo(x,S),_=0),E){case Te.M:s=l=n[b++],u=f=n[b++],e.moveTo(l,f);break;case Te.L:{c=n[b++],p=n[b++];var D=Nn(c-l),C=Nn(p-f);if(D>i||C>a){if(h){var T=d[g++];if(m+T>y){var F=(y-m)/T;e.lineTo(l*(1-F)+c*F,f*(1-F)+p*F);break e}m+=T}e.lineTo(c,p),l=c,f=p,_=0}else{var M=D*D+C*C;M>_&&(x=c,S=p,_=M)}break}case Te.C:{var I=n[b++],L=n[b++],B=n[b++],R=n[b++],O=n[b++],V=n[b++];if(h){var T=d[g++];if(m+T>y){var F=(y-m)/T;Ao(l,I,B,O,F,fa),Ao(f,L,R,V,F,ca),e.bezierCurveTo(fa[1],ca[1],fa[2],ca[2],fa[3],ca[3]);break e}m+=T}e.bezierCurveTo(I,L,B,R,O,V),l=O,f=V;break}case Te.Q:{var I=n[b++],L=n[b++],B=n[b++],R=n[b++];if(h){var T=d[g++];if(m+T>y){var F=(y-m)/T;Do(l,I,B,F,fa),Do(f,L,R,F,ca),e.quadraticCurveTo(fa[1],ca[1],fa[2],ca[2]);break e}m+=T}e.quadraticCurveTo(I,L,B,R),l=B,f=R;break}case Te.A:var G=n[b++],H=n[b++],q=n[b++],Q=n[b++],j=n[b++],oe=n[b++],ge=n[b++],Xe=!n[b++],We=q>Q?q:Q,Ae=Nn(q-Q)>.001,Le=j+oe,he=!1;if(h){var T=d[g++];m+T>y&&(Le=j+oe*(y-m)/T,he=!0),m+=T}if(Ae&&e.ellipse?e.ellipse(G,H,q,Q,ge,j,Le,Xe):e.arc(G,H,We,j,Le,Xe),he)break e;A&&(s=pa(j)*q+G,u=ha(j)*Q+H),l=pa(Le)*q+G,f=ha(Le)*Q+H;break;case Te.R:s=l=n[b],u=f=n[b+1],c=n[b++],p=n[b++];var Se=n[b++],Xt=n[b++];if(h){var T=d[g++];if(m+T>y){var qe=y-m;e.moveTo(c,p),e.lineTo(c+av(qe,Se),p),qe-=Se,qe>0&&e.lineTo(c+Se,p+av(qe,Xt)),qe-=Xt,qe>0&&e.lineTo(c+ov(Se-qe,0),p+Xt),qe-=Se,qe>0&&e.lineTo(c,p+ov(Xt-qe,0));break e}m+=T}e.rect(c,p,Se,Xt);break;case Te.Z:if(h){var T=d[g++];if(m+T>y){var F=(y-m)/T;e.lineTo(l*(1-F)+s*F,f*(1-F)+u*F);break e}m+=T}e.closePath(),l=s,f=u}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Te,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),bt=DF;function da(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)u=(e-n)/(t-r),l=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=u*a-o+l,c=f*f/(u*u+1);return c<=s/2*s/2}function Ox(t,e,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var c=u;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||l>t+c&&l>r+c&&l>i+c&&l>o+c||l<t-c&&l<r-c&&l<i-c&&l<o-c)return!1;var p=tx(t,e,r,n,i,a,o,s,l,f,null);return p<=c/2}function Rx(t,e,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>e+l&&u>n+l&&u>a+l||u<e-l&&u<n-l&&u<a-l||s>t+l&&s>r+l&&s>i+l||s<t-l&&s<r-l&&s<i-l)return!1;var f=ix(t,e,r,n,i,a,s,u,null);return f<=l/2}var Nx=Math.PI*2;function yu(t){return t%=Nx,t<0&&(t+=Nx),t}var _u=Math.PI*2;function kx(t,e,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=t,u-=e;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-i)%_u<1e-4)return!0;if(a){var c=n;n=yu(i),i=yu(c)}else n=yu(n),i=yu(i);n>i&&(i+=_u);var p=Math.atan2(u,s);return p<0&&(p+=_u),p>=n&&p<=i||p+_u>=n&&p+_u<=i}function Tr(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var u=o*(r-t)+t;return u===i?1/0:u>i?s:0}var vi=bt.CMD,va=Math.PI*2,PF=1e-4;function LF(t,e){return Math.abs(t-e)<PF}var kt=[-1,-1,-1],Mr=[-1,-1];function BF(){var t=Mr[0];Mr[0]=Mr[1],Mr[1]=t}function OF(t,e,r,n,i,a,o,s,u,l){if(l>e&&l>n&&l>a&&l>s||l<e&&l<n&&l<a&&l<s)return 0;var f=aa(e,n,a,s,l,kt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,d=void 0,v=0;v<f;v++){var m=kt[v],g=m===0||m===1?.5:1,y=Ve(t,r,i,o,m);y<u||(p<0&&(p=af(e,n,a,s,Mr),Mr[1]<Mr[0]&&p>1&&BF(),h=Ve(e,n,a,s,Mr[0]),p>1&&(d=Ve(e,n,a,s,Mr[1]))),p===2?m<Mr[0]?c+=h<e?g:-g:m<Mr[1]?c+=d<h?g:-g:c+=s<d?g:-g:m<Mr[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function RF(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var u=nx(e,n,a,s,kt);if(u===0)return 0;var l=of(e,n,a);if(l>=0&&l<=1){for(var f=0,c=ft(e,n,a,l),p=0;p<u;p++){var h=kt[p]===0||kt[p]===1?.5:1,d=ft(t,r,i,kt[p]);d<o||(kt[p]<l?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=kt[0]===0||kt[0]===1?.5:1,d=ft(t,r,i,kt[0]);return d<o?0:a<e?h:-h}}function NF(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);kt[0]=-u,kt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=va-1e-4){n=0,i=va;var f=a?1:-1;return o>=kt[0]+t&&o<=kt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=va,i+=va);for(var p=0,h=0;h<2;h++){var d=kt[h];if(d+t>o){var v=Math.atan2(s,d),f=a?1:-1;v<0&&(v=va+v),(v>=n&&v<=i||v+va>=n&&v+va<=i)&&(v>Math.PI/2&&v<Math.PI*1.5&&(f=-f),p+=f)}}return p}function zx(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,u=0,l=0,f=0,c=0,p,h,d=0;d<o;){var v=a[d++],m=d===1;switch(v===vi.M&&d>1&&(r||(s+=Tr(u,l,f,c,n,i))),m&&(u=a[d],l=a[d+1],f=u,c=l),v){case vi.M:f=a[d++],c=a[d++],u=f,l=c;break;case vi.L:if(r){if(da(u,l,a[d],a[d+1],e,n,i))return!0}else s+=Tr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case vi.C:if(r){if(Ox(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=OF(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 vi.Q:if(r){if(Rx(u,l,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=RF(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case vi.A:var g=a[d++],y=a[d++],_=a[d++],x=a[d++],S=a[d++],b=a[d++];d+=1;var E=!!(1-a[d++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=Tr(u,l,p,h,n,i);var A=(n-g)*x/_+g;if(r){if(kx(g,y,x,S,S+b,E,e,A,i))return!0}else s+=NF(g,y,x,S,S+b,E,A,i);u=Math.cos(S+b)*_+g,l=Math.sin(S+b)*x+y;break;case vi.R:f=u=a[d++],c=l=a[d++];var D=a[d++],C=a[d++];if(p=f+D,h=c+C,r){if(da(f,c,p,c,e,n,i)||da(p,c,p,h,e,n,i)||da(p,h,f,h,e,n,i)||da(f,h,f,c,e,n,i))return!0}else s+=Tr(p,c,p,h,n,i),s+=Tr(f,h,f,c,n,i);break;case vi.Z:if(r){if(da(u,l,f,c,e,n,i))return!0}else s+=Tr(u,l,f,c,n,i);u=f,l=c;break}}return!r&&!LF(l,c)&&(s+=Tr(u,l,f,c,n,i)||0),s!==0}function Ux(t,e,r){return zx(t,0,!1,e,r)}function Vx(t,e,r,n){return zx(t,e,!0,r,n)}var Bo=ee({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ln),zF={style:ee({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ua.style)},fv=Eo.concat(["invisible","culling","z","z2","zlevel","parent"]),UF=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.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<fv.length;++s)i[fv[s]]=this[fv[s]];i.__dirty|=Dt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=ne(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?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(U(r)){var n=oa(r,0);return n>.5?du:n>.2?Ex:vu}else if(r)return vu}return du},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(U(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=oa(r,0)<hu;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~pi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new bt(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.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&pi)&&(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==null?4:f)}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},e.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)),Vx(s,u/l,r,n)))return!0}if(this.hasFill())return Ux(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=pi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:N(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&pi)},e.prototype.createStyle=function(r){return In(Bo,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=N({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==Lo){var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=N({},i.shape),N(l,n.shape)):(l=N({},a?this.shape:i.shape),N(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=N({},this.shape);for(var f={},c=ne(l),p=0;p<c.length;p++){var h=c[p];typeof l[h]=="object"?this.shape[h]=l[h]:f[h]=l[h]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.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},e.prototype.getAnimationStyleProps=function(){return zF},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){P(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 J(r.style)},o.prototype.getDefaultShape=function(){return J(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Dt|sa|pi})(),e})(fn),ae=UF;var VF=ee({strokeFirst:!0,font:Kt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Bo),Hx=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Pd(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return In(VF,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=q_(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(fn);Hx.prototype.type="tspan";var ma=Hx;var HF=ee({x:0,y:0},ln),GF={style:ee({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ua.style)};function WF(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Gx=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return In(HF,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=WF(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},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return GF},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new re(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(fn);Gx.prototype.type="image";var je=Gx;function Wx(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.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 c;s+u>i&&(c=s+u,s*=i/c,u*=i/c),l+f>i&&(c=l+f,l*=i/c,f*=i/c),u+l>a&&(c=u+l,u*=a/c,l*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-u,n),u!==0&&t.arc(r+i-u,n+u,u,-Math.PI/2,0),t.lineTo(r+i,n+a-l),l!==0&&t.arc(r+i-l,n+a-l,l,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Oo=Math.round;function Ff(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Oo(n*2)===Oo(i*2)&&(t.x1=t.x2=mi(n,s,!0)),Oo(a*2)===Oo(o*2)&&(t.y1=t.y2=mi(a,s,!0))),t}}function If(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=mi(n,s,!0),t.y=mi(i,s,!0),t.width=Math.max(mi(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(mi(i+o,s,!1)-t.y,o===0?0:1)),t}}function mi(t,e,r){if(!e)return t;var n=Oo(t*2);return(n+Oo(e))%2===0?n/2:(n+(r?1:-1))/2}var XF=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var qF={},$x=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XF},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=If(qF,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?Wx(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ae);$x.prototype.type="rect";var Ee=$x;var Yx={fill:"#000"},Xx=2,dn={},jF={style:ee({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},ua.style)},tS=(function(t){P(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Yx,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.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}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,QF(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new re(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},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Yx},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return N(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=ne(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},N(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return jF},e.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},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Kt,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";Fd(dn,a.overflowRect,o,s,u,l),o=dn.baseX,s=dn.baseY;var f=eS(r),c=$_(f,r,dn.outerWidth,dn.outerHeight),p=cv(r),h=!!r.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=On(s,c.contentHeight,l);if(p||i){var x=ai(o,v,u),S=On(s,d,l);p&&this._renderBackground(r,r,x,S,v,d)}_+=g/2,i&&(y=Jx(o,u,i),l==="top"?_+=i[0]:l==="bottom"&&(_-=i[2]));for(var b=0,E=!1,A=!1,D=Qx("fill"in r?r.fill:(A=!0,a.fill)),C=Zx("stroke"in r?r.stroke:!h&&(!a.autoStroke||A)?(b=Xx,E=!0,a.stroke):null),T=r.textShadowBlur>0,F=0;F<m.length;F++){var M=this._getOrCreateChild(ma),I=M.createStyle();M.useStyle(I),I.text=m[F],I.x=y,I.y=_,u&&(I.textAlign=u),I.textBaseline="middle",I.opacity=r.opacity,I.strokeFirst=!0,T&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||"transparent",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=C,I.fill=D,C&&(I.lineWidth=r.lineWidth||b,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=n,jx(I,r),_+=g,M.setBoundingRect(Ql(I,c.contentWidth,c.calculatedLineHeight,E?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Fd(dn,n.overflowRect,o,s,i,a),o=dn.baseX,s=dn.baseY;var u=eS(r),l=Y_(u,r,dn.outerWidth,dn.outerHeight,i),f=l.width,c=l.outerWidth,p=l.outerHeight,h=r.padding;this.isTruncated=!!l.isTruncated;var d=ai(o,c,i),v=On(s,p,a),m=d,g=v;h&&(m+=h[3],g+=h[0]);var y=m+f;cv(r)&&this._renderBackground(r,r,d,v,c,p);for(var _=!!r.backgroundColor,x=0;x<l.lines.length;x++){for(var S=l.lines[x],b=S.tokens,E=b.length,A=S.lineHeight,D=S.width,C=0,T=m,F=y,M=E-1,I=void 0;C<E&&(I=b[C],!I.align||I.align==="left");)this._placeToken(I,r,A,g,T,"left",_),D-=I.width,T+=I.width,C++;for(;M>=0&&(I=b[M],I.align==="right");)this._placeToken(I,r,A,g,F,"right",_),D-=I.width,F-=I.width,M--;for(T+=(f-(T-m)-(y-F)-D)/2;C<=M;)I=b[C],this._placeToken(I,r,A,g,T+I.width/2,"center",_),T+=I.width,C++;g+=A}},e.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var p=!r.isLineHolder&&cv(l);p&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!l.backgroundColor,d=r.textPadding;d&&(o=Jx(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var v=this._getOrCreateChild(ma),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=Qx("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),b=Zx("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!u&&(!g.autoStroke||y)?(_=Xx,x=!0,g.stroke):null),E=l.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,E&&(m.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,m.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Kt,m.opacity=Zt(l.opacity,n.opacity,1),jx(m,l),b&&(m.lineWidth=Zt(l.lineWidth,n.lineWidth,_),m.lineDash=X(l.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),v.setBoundingRect(Ql(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,c=u&&u.image,p=u&&!c,h=r.borderRadius,d=this,v,m;if(p||r.lineHeight||l&&f){v=this._getOrCreateChild(Ee),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=h,v.dirtyShape()}if(p){var y=v.style;y.fill=u||null,y.fillOpacity=X(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(je),m.onload=function(){d.dirtyStyle()};var _=m.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var y=v.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=X(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(v||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Zt(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return hv(r)&&(n=[r.fontStyle,r.fontWeight,pv(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&dt(n)||r.textFont||r.font},e})(fn),KF={left:!0,right:1,center:1},ZF={top:1,bottom:1,middle:1},qx=["fontStyle","fontWeight","fontSize","fontFamily"];function pv(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Wl+"px":t+"px"}function jx(t,e){for(var r=0;r<qx.length;r++){var n=qx[r],i=e[n];i!=null&&(t[n]=i)}}function hv(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function QF(t){return Kx(t),w(t.rich,Kx),t}function Kx(t){if(t){t.font=tS.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||KF[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||ZF[r]?r:"top";var n=t.padding;n&&(t.padding=$i(t.padding))}}function Zx(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Qx(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Jx(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function eS(t){var e=t.text;return e!=null&&(e+=""),e}function cv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var be=tS;var rS=1e-4,Pf=20,nS=14;function JF(t){return t.replace(/^\s+|\s+$/g,"")}var He=Math.min,ve=Math.max,Oe=Math.abs,Jt=Math.round,Fr=Math.floor,yi=Math.ceil,_i=Math.pow,gi=Math.log,xu=Math.LN10,e2=Math.PI,t2=Math.random;function mt(t,e,r,n){var i=e[0],a=e[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(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/u*l+o}var te=r2;function r2(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Lf(t,e,r)}function Lf(t,e,r){return U(t)?n2(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function n2(t){return!!JF(t).match(/%$/)}function ye(t,e,r){return isNaN(e)?r?""+t:+t:(e=He(ve(0,e),Pf),t=(+t).toFixed(e),r?t:+t)}function iS(t,e,r){return e==null&&(e=10),ye(t,e,r)}function xi(t){return t.sort(function(e,r){return e-r}),t}function cr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Jt(t*e)/e===t)return r}return dv(t)}function dv(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return ve(0,o-n)}function aS(t,e){var r=Fr(gi(t[1]-t[0])/xu),n=Jt(gi(Oe(e[1]-e[0]))/xu),i=He(ve(-r+n,0),Pf);return isFinite(i)?i:Pf}function oS(t,e,r){var n=Oe(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=gi(2*Oe(r||1)*Oe(n))/xu,a=gi(Oe(e))/xu,o=ve(0,yi(-i+a));return isFinite(o)||(o=NaN),o}function sS(t,e,r){if(!t[e])return 0;var n=vv(t,r);return n[e]||0}function vv(t,e){var r=At(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=_i(10,e),i=z(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=z(i,function(h){return Fr(h)}),s=At(o,function(h,d){return h+d},0),u=z(i,function(h,d){return h-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,c=0,p=u.length;c<p;++c)u[c]>l&&(l=u[c],f=c);++o[f],u[f]=0,++s}return z(o,function(h){return h/n})}function uS(t,e){var r=ve(cr(t),cr(e)),n=t+e;return r>Pf?n:ye(n,r)}var Su=_i(2,53)-1;function bu(t){var e=e2*2;return(t%e+e)%e}function ga(t){return t>-rS&&t<rS}var i2=/^(?:(\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 zt(t){if(t instanceof Date)return t;if(U(t)){var e=i2.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Jt(t))}function Ro(t){return _i(10,No(t))}function No(t){if(t===0)return 0;var e=Fr(gi(t)/xu);return t/_i(10,e)>=10&&e++,e}var mv=2;function kn(t,e){var r=No(t),n=_i(10,r),i=t/n,a;return e===mv?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,ye(t,-r)}function lS(t,e){var r=(t.length-1)*e+1,n=Fr(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function fS(t){t.sort(function(u,l){return s(u,l,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function Ir(t){var e=parseFloat(t);return e==t&&(e!==0||!U(t)||t.indexOf("x")<=0)?e:NaN}function Eu(t){return!isNaN(Ir(t))}function wu(){return Jt(t2()*9)}function cS(t,e){return e===0?t:cS(e,t%e)}function gv(t,e){return t==null?e:e==null?t:t*e/cS(t,e)}function it(t){return t!=null&&isFinite(t)}var a2="[ECharts] ",pS={},o2=typeof console!="undefined"&&console.warn&&console.log;function s2(t,e,r){if(o2){if(r){if(pS[e])return;pS[e]=!0}console[t](a2+e)}}function _v(t,e){s2("error",t,e)}function gt(t){throw new Error(t)}function hS(t,e,r){return(e-t)*r+t}var dS="series\0",u2="\0_ec_\0";function Ge(t){return t instanceof Array?t:t==null?[]:[t]}function ya(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var xv=["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 zn(t){return W(t)&&!k(t)&&!(t instanceof Date)?t.value:t}function vS(t){return W(t)&&!(t instanceof Array)}function mS(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=K();w(e,function(u,l){if(!W(u)){e[l]=null;return}});var s=l2(t,o,r);return(n||i)&&f2(s,t,o,e),n&&c2(s,e),n||i?p2(s,e,i):a&&h2(s,e),d2(s),s}function l2(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||ko(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function f2(t,e,r,n){w(n,function(i,a){if(!(!i||i.id==null)){var o=Cu(i.id),s=r.get(o);if(s!=null){var u=t[s];Ue(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=e[s],n[a]=null}}})}function c2(t,e){w(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!ko(r)&&!ko(a)&&gS("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function p2(t,e,r){w(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||ko(i.existing)||i.existing&&n.id!=null&&!gS("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function h2(t,e){w(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function d2(t){var e=K();w(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),w(t,function(r){var n=r.newOption;Ue(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),w(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(W(a)){if(o.name=a.name!=null?Cu(a.name):i?i.name:dS+n,i)o.id=Cu(i.id);else if(a.id!=null)o.id=Cu(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function gS(t,e,r){var n=pr(e[t],null),i=pr(r[t],null);return n!=null&&i!=null&&n===i}function Cu(t){return pr(t,"")}function pr(t,e){return t==null?e:U(t)?t:ie(t)||mo(t)?t+"":e}function zo(t){var e=t.name;return!!(e&&e.indexOf(dS))}function ko(t){return t&&t.id!=null&&Cu(t.id).indexOf(u2)===0}function yS(t,e,r){w(t,function(n){var i=n.newOption;W(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=v2(e,i,n.existing,r))})}function v2(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Pr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return k(e.dataIndex)?z(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return k(e.name)?z(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function le(){var t="__ec_inner_"+m2++;return function(e){return e[t]||(e[t]={})}}var m2=wu();function Bf(t,e,r){var n=Au(e,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 c=Si(t,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Au(t,e){var r;if(U(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=K(),a={},o=!1;return w(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],c=(l[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ue(e.includeMainTypes,f)<0)){o=o||!!f;var p=i.get(f)||i.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Et={useDefault:!0,enableAll:!1,enableNone:!1};function Si(t,e,r,n){n=n||Et;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=t.getComponent(e))?[u]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function _S(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function Sv(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function xS(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function SS(t){return t==="auto"?ce.domSupported?"html":"richText":t||"html"}function Of(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(ie(n)){var o=hS(r||0,n,i);return ye(o,a?Math.max(cr(r||0),cr(n)):e)}else{if(U(n))return i<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(i<1&&u?u:l)[c];else{var h=u&&u[c]?u[c]:0,d=l[c],o=hS(h,d,i);s[c]=ye(o,a?Math.max(cr(h),cr(d)):e)}}return s}}var G4=(function(){function t(){}return t.prototype.reset=function(e,r,n,i){return this._list=e,this._step=i=i||1,this._idx=r,this._end=n!=null?n:i>0?e.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function wt(){return[1/0,-1/0]}function Du(t,e){Wr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function bv(t,e){Wr(e)&&e<t[0]&&(t[0]=e)}function Ev(t,e){Wr(e)&&e>t[1]&&(t[1]=e)}function bS(t,e){Un(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Wr(t){return t!=null&&isFinite(t)}function Un(t,e){return Wr(t)&&Wr(e)&&t<=e}function ES(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function wS(t){Un(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Rf(){var t="__ec_once_"+g2++;return function(e,r){Ie(e,t)||(e[t]=1,r())}}var g2=wu();function Uo(t,e,r){var n=K(),i=0;w(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function CS(t){return t.value+""}function AS(t){return t+""}function Nf(t,e){return X(e,!0)?t.seriesIndex+2:0}function kf(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Vo(t,e){return{seriesType:t,overallReset:e}}function Ho(t){return{overallReset:t}}var de=le(),Tu=function(t,e,r,n){if(n){var i=de(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=de(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var Ei="undefined",zf="series",Uf=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ct="original",at="arrayRows",Tt="objectRows",er="keyedColumns",hr="typedArray",wv="unknown",Ut="column",vn="row";var y2=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],_2=(function(){function t(e){w(y2,function(r){this[r]=fe(e[r],e)},this)}return t})();function DS(t,e){return e.mainType===zf?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Vf=_2;var TS=1,MS={},BS=le(),Dv=le(),Tv=0,Mu=1,Fu=2,Vt=["emphasis","blur","select"],Wo=["normal","emphasis","blur","select"],x2=10,S2=9,wi="highlight",Iu="downplay",Pu="select",Gf="unselect",Lu="toggleSelect",Wf="selectchanged";function Go(t){return t!=null&&t!=="none"}function $f(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function OS(t){$f(t,"emphasis",Fu)}function RS(t){t.hoverState===Fu&&$f(t,"normal",Tv)}function Mv(t){$f(t,"blur",Mu)}function NS(t){t.hoverState===Mu&&$f(t,"normal",Tv)}function b2(t){t.selected=!0}function E2(t){t.selected=!1}function FS(t,e,r){e(t,r)}function Vn(t,e,r){FS(t,e,r),t.isGroup&&t.traverse(function(n){FS(n,e,r)})}function Fv(t,e){switch(e){case"emphasis":t.hoverState=Fu;break;case"normal":t.hoverState=Tv;break;case"blur":t.hoverState=Mu;break;case"select":t.selected=!0}}function w2(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],u=i[s];a[s]=u==null?n&&n[s]:u}for(var o=0;o<t.animators.length;o++){var l=t.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,e)}return a}function C2(t,e,r,n){var i=r&&ue(r,"select")>=0,a=!1;if(t instanceof ae){var o=BS(t),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Go(s)||Go(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=N({},n),l=N({},l),l.fill=s):!Go(l.fill)&&Go(s)?(a=!0,n=N({},n),l=N({},l),l.fill=Io(s)):!Go(l.stroke)&&Go(u)&&(a||(n=N({},n),l=N({},l)),l.stroke=Io(u)),n.style=l}}if(n&&n.z2==null){a||(n=N({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f!=null?f:x2)}return n}function A2(t,e,r){if(r&&r.z2==null){r=N({},r);var n=t.z2SelectLift;r.z2=t.z2+(n!=null?n:S2)}return r}function D2(t,e,r){var n=ue(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:w2(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=N({},r),o=N({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Cv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return C2(this,t,e,r);if(t==="blur")return D2(this,t,r);if(t==="select")return A2(this,t,r)}return r}function T2(t){t.stateProxy=Cv;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Cv),r&&(r.stateProxy=Cv)}function IS(t,e){!zS(t,e)&&!t.__highByOuter&&Vn(t,OS)}function PS(t,e){!zS(t,e)&&!t.__highByOuter&&Vn(t,RS)}function _a(t,e){t.__highByOuter|=1<<(e||0),Vn(t,OS)}function xa(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Vn(t,RS)}function kS(t){Vn(t,Mv)}function Iv(t){Vn(t,NS)}function Pv(t){Vn(t,b2)}function Lv(t){Vn(t,E2)}function zS(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Bv(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Dv(a),s=DS(t,a),u=i==="series";!u&&n.push(s),o.isBlured&&(s.group.traverse(function(l){NS(l)}),u&&r.push(a)),o.isBlured=!1}),w(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Av(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var c=0;c<f.length;c++){var p=l.getItemGraphicEl(f[c]);p&&Iv(p)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,c=l.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=n.getViewOfSeriesModel(l);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||Mv(m)}),Je(e))a(l.getData(),e);else if(W(e))for(var d=ne(e),v=0;v<d.length;v++)a(l.getData(d[v]),e[d[v]]);u.push(l),Dv(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,i)}})}}function Hf(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Dv(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Mv(a)})}}}function US(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Pr(i,e);a=(k(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=de(o);Av(n,l.focus,l.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Av(n,f,c,r)}}}function Yf(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);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(de(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function VS(t,e,r){var n=de(t),i=Yf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Hf(n.componentMainType,n.componentIndex,r),w(a,function(s){return IS(s,e)})):(Av(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Hf(n.componentMainType,n.componentIndex,r),IS(t,e))}function HS(t,e,r){Bv(r);var n=de(t),i=Yf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?w(i,function(a){return PS(a,e)}):PS(t,e)}function GS(t,e,r){if(Xf(e)){var n=e.dataType,i=t.getData(n),a=Pr(i,e);k(a)||(a=[a]),t[e.type===Lu?"toggleSelect":e.type===Pu?"select":"unselect"](a,n)}}function Ov(t){var e=t.getAllData();w(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Pv(a):Lv(a)})})}function WS(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();w(n,function(i){var a=i.data,o=i.type,s=r.getSelectedDataIndices();if(s.length>0){var u={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(u.dataType=o),e.push(u)}})}),e}function $o(t,e,r){$S(t,!0),Vn(t,T2),F2(t,e,r)}function M2(t){$S(t,!1)}function Mt(t,e,r,n){n?M2(t):$o(t,e,r)}function F2(t,e,r){var n=de(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var LS=["emphasis","blur","select"],I2={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ht(t,e,r,n){r=r||"itemStyle";for(var i=0;i<LS.length;i++){var a=LS[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=n?n(o):o[I2[r]]()}}function $S(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Bu(t){return!!(t&&t.__highDownDispatcher)}function YS(t){var e=MS[t];return e==null&&TS<=32&&(e=MS[t]=TS++),e}function Xf(t){var e=t.type;return e===Pu||e===Gf||e===Lu}function Rv(t){var e=t.type;return e===wi||e===Iu}function XS(t){var e=BS(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var Ne={};jt(Ne,{Arc:()=>Ea,BezierCurve:()=>zu,BoundingRect:()=>re,Circle:()=>Hn,CompoundPath:()=>qo,Ellipse:()=>Ru,Group:()=>_e,HOVER_LAYER_FOR_INCREMENTAL:()=>Vu,HOVER_LAYER_FROM_THRESHOLD:()=>qv,HOVER_LAYER_NO:()=>Xv,Image:()=>je,IncrementalDisplayable:()=>ic,Line:()=>Pt,LinearGradient:()=>jo,OrientedBoundingRect:()=>nc,Path:()=>ae,Point:()=>pe,Polygon:()=>Yr,Polyline:()=>Gt,RadialGradient:()=>Jf,Rect:()=>Ee,Ring:()=>ba,Sector:()=>It,Text:()=>be,WH:()=>Ci,XY:()=>yn,applyTransform:()=>sc,calcZ2Range:()=>vI,clipPointsByRect:()=>em,clipRectByRect:()=>tm,createIcon:()=>Ta,decomposeTransform:()=>gI,ensureCopyRect:()=>ts,ensureCopyTransform:()=>lc,expandOrShrinkRect:()=>Jo,extendPath:()=>Kv,extendShape:()=>jv,getCurrentCanvasPainter:()=>yI,getShapeClass:()=>Zv,getTransform:()=>Qv,groupTransition:()=>Jv,initProps:()=>Me,isBoundingRectAxisAligned:()=>uc,isElementRemoved:()=>Aa,lineLineIntersect:()=>w1,linePolygonIntersect:()=>hI,makeImage:()=>Hu,makePath:()=>Zo,mergePath:()=>Qo,payloadDisableAnimation:()=>mI,registerShape:()=>dr,removeElement:()=>Ko,removeElementWithFadeOut:()=>gn,resizePath:()=>oc,retrieveZInfo:()=>rm,setTooltipConfig:()=>es,subPixelOptimize:()=>fI,subPixelOptimizeLine:()=>Da,subPixelOptimizeRect:()=>lI,transformDirection:()=>cI,traverseElements:()=>Ma,traverseUpdateZ:()=>nm,updateProps:()=>we});var Yo=bt.CMD,P2=[[],[],[]],qS=Math.sqrt,L2=Math.atan2;function Nv(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,u,l,f=Yo.M,c=Yo.C,p=Yo.L,h=Yo.R,d=Yo.A,v=Yo.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case p:a=1;break;case c:a=3;break;case v:a=2;break;case d:var m=e[4],g=e[5],y=qS(e[0]*e[0]+e[1]*e[1]),_=qS(e[2]*e[2]+e[3]*e[3]),x=L2(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:l[0]=r[o++],l[1]=r[o++],et(l,l,e),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],et(l,l,e),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var S=P2[u];S[0]=r[o++],S[1]=r[o++],et(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var kv=Math.sqrt,qf=Math.sin,jf=Math.cos,Ou=Math.PI;function jS(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function zv(t,e){return(t[0]*e[0]+t[1]*e[1])/(jS(t)*jS(e))}function KS(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(zv(t,e))}function ZS(t,e,r,n,i,a,o,s,u,l,f){var c=u*(Ou/180),p=jf(c)*(t-r)/2+qf(c)*(e-n)/2,h=-1*qf(c)*(t-r)/2+jf(c)*(e-n)/2,d=p*p/(o*o)+h*h/(s*s);d>1&&(o*=kv(d),s*=kv(d));var v=(i===a?-1:1)*kv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=v*o*h/s,g=v*-s*p/o,y=(t+r)/2+jf(c)*m-qf(c)*g,_=(e+n)/2+qf(c)*m+jf(c)*g,x=KS([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],b=[(-1*p-m)/o,(-1*h-g)/s],E=KS(S,b);if(zv(S,b)<=-1&&(E=Ou),zv(S,b)>=1&&(E=0),E<0){var A=Math.round(E/Ou*1e6)/1e6;E=Ou*2+A%2*Ou}f.addData(l,y,_,o,s,x,E,c,a)}var B2=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,O2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function R2(t){var e=new bt;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=bt.CMD,u=t.match(B2);if(!u)return e;for(var l=0;l<u.length;l++){for(var f=u[l],c=f.charAt(0),p=void 0,h=f.match(O2)||[],d=h.length,v=0;v<d;v++)h[v]=parseFloat(h[v]);for(var m=0;m<d;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,E=void 0,A=r,D=n,C=void 0,T=void 0;switch(c){case"l":r+=h[m++],n+=h[m++],p=s.L,e.addData(p,r,n);break;case"L":r=h[m++],n=h[m++],p=s.L,e.addData(p,r,n);break;case"m":r+=h[m++],n+=h[m++],p=s.M,e.addData(p,r,n),i=r,a=n,c="l";break;case"M":r=h[m++],n=h[m++],p=s.M,e.addData(p,r,n),i=r,a=n,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,n);break;case"H":r=h[m++],p=s.L,e.addData(p,r,n);break;case"v":n+=h[m++],p=s.L,e.addData(p,r,n);break;case"V":n=h[m++],p=s.L,e.addData(p,r,n);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],n=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n),r+=h[m-2],n+=h[m-1];break;case"S":g=r,y=n,C=e.len(),T=e.data,o===s.C&&(g+=r-T[C-4],y+=n-T[C-3]),p=s.C,A=h[m++],D=h[m++],r=h[m++],n=h[m++],e.addData(p,g,y,A,D,r,n);break;case"s":g=r,y=n,C=e.len(),T=e.data,o===s.C&&(g+=r-T[C-4],y+=n-T[C-3]),p=s.C,A=r+h[m++],D=n+h[m++],r+=h[m++],n+=h[m++],e.addData(p,g,y,A,D,r,n);break;case"Q":A=h[m++],D=h[m++],r=h[m++],n=h[m++],p=s.Q,e.addData(p,A,D,r,n);break;case"q":A=h[m++]+r,D=h[m++]+n,r+=h[m++],n+=h[m++],p=s.Q,e.addData(p,A,D,r,n);break;case"T":g=r,y=n,C=e.len(),T=e.data,o===s.Q&&(g+=r-T[C-4],y+=n-T[C-3]),r=h[m++],n=h[m++],p=s.Q,e.addData(p,g,y,r,n);break;case"t":g=r,y=n,C=e.len(),T=e.data,o===s.Q&&(g+=r-T[C-4],y+=n-T[C-3]),r+=h[m++],n+=h[m++],p=s.Q,e.addData(p,g,y,r,n);break;case"A":_=h[m++],x=h[m++],S=h[m++],b=h[m++],E=h[m++],A=r,D=n,r=h[m++],n=h[m++],p=s.A,ZS(A,D,r,n,b,E,_,x,S,p,e);break;case"a":_=h[m++],x=h[m++],S=h[m++],b=h[m++],E=h[m++],A=r,D=n,r+=h[m++],n+=h[m++],p=s.A,ZS(A,D,r,n,b,E,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=i,n=a),o=p}return e.toStatic(),e}var QS=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(ae);function JS(t){return t.setData!=null}function e1(t,e){var r=R2(t),n=N({},e);return n.buildPath=function(i){var a=JS(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){Nv(r,i),this.dirtyShape()},n}function t1(t,e){return new QS(e1(t,e))}function r1(t,e){var r=e1(t,e),n=(function(i){P(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(QS);return n}function n1(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ae(e);return o.createPathProxy(),o.buildPath=function(s){if(JS(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var i1=(function(t){P(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.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},e.prototype.replace=function(r,n){var i=ue(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.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},e.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()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ue(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.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},e.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},e.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},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new re(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?(re.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},e})(Af);i1.prototype.type="group";var _e=i1;var k2=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var a1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new k2},e.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)},e})(ae);a1.prototype.type="circle";var Hn=a1;var z2=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var o1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new z2},e.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()},e})(ae);o1.prototype.type="ellipse";var Ru=o1;var u1=Math.PI,Uv=u1*2,Sa=Math.sin,Xo=Math.cos,U2=Math.acos,Ft=Math.atan2,s1=Math.abs,ku=Math.sqrt,Nu=Math.max,mn=Math.min,$r=1e-4;function V2(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,p=c*u-f*l;if(!(p*p<$r))return p=(f*(e-a)-c*(t-i))/p,[t+p*u,e+p*l]}function Kf(t,e,r,n,i,a,o){var s=t-r,u=e-n,l=(o?a:-a)/ku(s*s+u*u),f=l*u,c=-l*s,p=t+f,h=e+c,d=r+f,v=n+c,m=(p+d)/2,g=(h+v)/2,y=d-p,_=v-h,x=y*y+_*_,S=i-a,b=p*v-d*h,E=(_<0?-1:1)*ku(Nu(0,S*S*x-b*b)),A=(b*_-y*E)/x,D=(-b*y-_*E)/x,C=(b*_+y*E)/x,T=(-b*y+_*E)/x,F=A-m,M=D-g,I=C-m,L=T-g;return F*F+M*M>I*I+L*L&&(A=C,D=T),{cx:A,cy:D,x0:-f,y0:-c,x1:A*(i/S-1),y1:D*(i/S-1)}}function H2(t){var e;if(k(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function l1(t,e){var r,n=Nu(e.r,0),i=Nu(e.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=e.startAngle,l=e.endAngle;if(!(isNaN(u)||isNaN(l))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=s1(l-u),d=h>Uv&&h%Uv;if(d>$r&&(h=d),!(n>$r))t.moveTo(f,c);else if(h>Uv-$r)t.moveTo(f+n*Xo(u),c+n*Sa(u)),t.arc(f,c,n,u,l,!p),i>$r&&(t.moveTo(f+i*Xo(l),c+i*Sa(l)),t.arc(f,c,i,l,u,p));else{var v=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,E=void 0,A=void 0,D=void 0,C=void 0,T=void 0,F=void 0,M=void 0,I=void 0,L=n*Xo(u),B=n*Sa(u),R=i*Xo(l),O=i*Sa(l),V=h>$r;if(V){var G=e.cornerRadius;G&&(r=H2(G),v=r[0],m=r[1],g=r[2],y=r[3]);var H=s1(n-i)/2;if(_=mn(H,g),x=mn(H,y),S=mn(H,v),b=mn(H,m),D=E=Nu(_,x),C=A=Nu(S,b),(E>$r||A>$r)&&(T=n*Xo(l),F=n*Sa(l),M=i*Xo(u),I=i*Sa(u),h<u1)){var q=V2(L,B,M,I,T,F,R,O);if(q){var Q=L-q[0],j=B-q[1],oe=T-q[0],ge=F-q[1],Xe=1/Sa(U2((Q*oe+j*ge)/(ku(Q*Q+j*j)*ku(oe*oe+ge*ge)))/2),We=ku(q[0]*q[0]+q[1]*q[1]);D=mn(E,(n-We)/(Xe+1)),C=mn(A,(i-We)/(Xe-1))}}}if(!V)t.moveTo(f+L,c+B);else if(D>$r){var Ae=mn(g,D),Le=mn(y,D),he=Kf(M,I,L,B,n,Ae,p),Se=Kf(T,F,R,O,n,Le,p);t.moveTo(f+he.cx+he.x0,c+he.cy+he.y0),D<E&&Ae===Le?t.arc(f+he.cx,c+he.cy,D,Ft(he.y0,he.x0),Ft(Se.y0,Se.x0),!p):(Ae>0&&t.arc(f+he.cx,c+he.cy,Ae,Ft(he.y0,he.x0),Ft(he.y1,he.x1),!p),t.arc(f,c,n,Ft(he.cy+he.y1,he.cx+he.x1),Ft(Se.cy+Se.y1,Se.cx+Se.x1),!p),Le>0&&t.arc(f+Se.cx,c+Se.cy,Le,Ft(Se.y1,Se.x1),Ft(Se.y0,Se.x0),!p))}else t.moveTo(f+L,c+B),t.arc(f,c,n,u,l,!p);if(!(i>$r)||!V)t.lineTo(f+R,c+O);else if(C>$r){var Ae=mn(v,C),Le=mn(m,C),he=Kf(R,O,T,F,i,-Le,p),Se=Kf(L,B,M,I,i,-Ae,p);t.lineTo(f+he.cx+he.x0,c+he.cy+he.y0),C<A&&Ae===Le?t.arc(f+he.cx,c+he.cy,C,Ft(he.y0,he.x0),Ft(Se.y0,Se.x0),!p):(Le>0&&t.arc(f+he.cx,c+he.cy,Le,Ft(he.y0,he.x0),Ft(he.y1,he.x1),!p),t.arc(f,c,i,Ft(he.cy+he.y1,he.cx+he.x1),Ft(Se.cy+Se.y1,Se.cx+Se.x1),p),Ae>0&&t.arc(f+Se.cx,c+Se.cy,Ae,Ft(Se.y1,Se.x1),Ft(Se.y0,Se.x0),!p))}else t.lineTo(f+R,c+O),t.arc(f,c,i,l,u,p)}t.closePath()}}}var W2=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})();var f1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new W2},e.prototype.buildPath=function(r,n){l1(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ae);f1.prototype.type="sector";var It=f1;var $2=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var c1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new $2},e.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)},e})(ae);c1.prototype.type="ring";var ba=c1;function Vv(t,e,r,n){var i=[],a=[],o=[],s=[],u,l,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)Sr(f,f,t[p]),br(c,c,t[p]);Sr(f,f,n[0]),br(c,c,n[1])}for(var p=0,h=t.length;p<h;p++){var d=t[p];if(r)u=t[p?p-1:h-1],l=t[(p+1)%h];else if(p===0||p===h-1){i.push(vd(t[p]));continue}else u=t[p-1],l=t[p+1];md(a,l,u),tu(a,a,e);var v=ru(d,u),m=ru(d,l),g=v+m;g!==0&&(v/=g,m/=g),tu(o,a,-v),tu(s,a,m);var y=jl([],d,o),_=jl([],d,s);n&&(br(y,y,f),Sr(y,y,c),br(_,_,f),Sr(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function Zf(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=Vv(i,n,r,e.smoothConstraint);t.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];t.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var Y2=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var h1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Y2},e.prototype.buildPath=function(r,n){Zf(r,n,!0)},e})(ae);h1.prototype.type="polygon";var Yr=h1;var X2=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var d1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new X2},e.prototype.buildPath=function(r,n){Zf(r,n,!1)},e})(ae);d1.prototype.type="polyline";var Gt=d1;var q2={},j2=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var v1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new j2},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Ff(q2,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))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(ae);v1.prototype.type="line";var Pt=v1;var tr=[],K2=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function m1(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?Od:Ve)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Od:Ve)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Rd:ft)(t.x1,t.cpx1,t.x2,e),(r?Rd:ft)(t.y1,t.cpy1,t.y2,e)]}var g1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new K2},e.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,c=n.cpy2,p=n.percent;p!==0&&(r.moveTo(i,a),f==null||c==null?(p<1&&(Do(i,u,o,p,tr),u=tr[1],o=tr[2],Do(a,l,s,p,tr),l=tr[1],s=tr[2]),r.quadraticCurveTo(u,l,o,s)):(p<1&&(Ao(i,u,f,o,p,tr),u=tr[1],f=tr[2],o=tr[3],Ao(a,l,c,s,p,tr),l=tr[1],c=tr[2],s=tr[3]),r.bezierCurveTo(u,l,f,c,o,s)))},e.prototype.pointAt=function(r){return m1(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=m1(this.shape,r,!0);return _d(n,n)},e})(ae);g1.prototype.type="bezier-curve";var zu=g1;var Z2=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var y1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Z2},e.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),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,u,!l)},e})(ae);y1.prototype.type="arc";var Ea=y1;var Q2=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.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()},e.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)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ae.prototype.getBoundingRect.call(this)},e})(ae),qo=Q2;var J2=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Qf=J2;var eI=(function(t){P(e,t);function e(r,n,i,a,o,s){var u=t.call(this,o)||this;return u.x=r==null?0:r,u.y=n==null?0:n,u.x2=i==null?1:i,u.y2=a==null?0:a,u.type="linear",u.global=s||!1,u}return e})(Qf),jo=eI;var tI=(function(t){P(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return e})(Qf),Jf=tI;var Hv=Math.min,rI=Math.max,ec=Math.abs,wa=[0,0],Ca=[0,0],yt=wd(),tc=yt.minTv,rc=yt.maxTv,nI=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new pe;for(var n=0;n<2;n++)this._axes[n]=new pe;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,u=o+e.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);pe.sub(i[0],n[1],n[0]),pe.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])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&pe.set(r,0,0),yt.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!yt.negativeSize&&pe.copy(r,i?yt.useDir?yt.dirMinTv:tc:rc),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,wa),e._getProjMinMaxOnAxis(o,r._corners,Ca),yt.negativeSize||wa[1]<Ca[0]||wa[0]>Ca[1]){if(a=!1,yt.negativeSize||n)return a;var u=ec(Ca[0]-wa[1]),l=ec(wa[0]-Ca[1]);Hv(u,l)>rc.len()&&(u<l?pe.scale(rc,s,-u*i):pe.scale(rc,s,l*i))}else if(!n){var u=ec(Ca[0]-wa[1]),l=ec(wa[0]-Ca[1]);(yt.useDir||Hv(u,l)<tc.len())&&((u<l||!yt.bidirectional)&&(pe.scale(tc,s,u*i),yt.useDir&&yt.calcDirMTV()),(u>=l||!yt.bidirectional)&&(pe.scale(tc,s,-l*i),yt.useDir&&yt.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[e];s=Hv(f,s),u=rI(f,u)}n[0]=s+yt.touchThreshold,n[1]=u-yt.touchThreshold,yt.negativeSize=n[1]<n[0]},t})(),nc=nI;var _1=1;var iI=[],aI=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=_1,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.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])},e.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}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new re(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(iI)),r.union(a)}this._rect=r}return this._rect},e.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},e})(fn),ic=aI;var oI=le();function sI(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),u=t==="update";if(s){var l=void 0,f=void 0,c=void 0;n?(l=X(n.duration,200),f=X(n.easing,"cubicOut"),c=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),f=e.getShallow(u?"animationEasingUpdate":"animationEasing"),c=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Y(c)&&(c=c(r,i)),Y(l)&&(l=l(r));var p={duration:l||0,delay:c,easing:f};return p}else return null}function Gv(t,e,r,n,i,a,o){var s=!1,u;Y(i)?(o=a,a=i,i=null):W(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=t==="leave";l||e.stopAnimation("leave");var f=sI(t,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,d={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!l,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function we(t,e,r,n,i,a){Gv("update",t,e,r,n,i,a)}function Me(t,e,r,n,i,a){Gv("enter",t,e,r,n,i,a)}function Aa(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Ko(t,e,r,n,i,a){Aa(t)||Gv("leave",t,e,r,n,i,a)}function x1(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Ko(t,{style:{opacity:0}},e,r,n)}function gn(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||x1(i,e,r,n)}):x1(t,e,r,n)}function Xr(t){oI(t).oldStyle=t.style}var $v={},yn=["x","y"],Ci=["width","height"],Xv=0,qv=1,Vu=2;function jv(t){return ae.extend(t)}var uI=r1;function Kv(t,e){return uI(t,e)}function dr(t,e){$v[t]=e}function Zv(t){if($v.hasOwnProperty(t))return $v[t]}function Zo(t,e,r,n){var i=t1(t,e);return r&&(n==="center"&&(r=E1(r,i.getBoundingRect())),oc(i,r)),i}function Hu(t,e,r){var n=new je({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(E1(e,a))}}});return n}function E1(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Qo=n1;function oc(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Da(t,e){return Ff(t,t,{lineWidth:e}),t}function lI(t,e){return If(t,t,e),t}var fI=mi;function Qv(t,e){for(var r=xr([]);t&&t!==e;)zr(r,t.getLocalTransform(),r),t=t.parent;return r}function sc(t,e,r){return e&&!Je(e)&&(e=wo.getLocalTransform(e)),r&&(e=lr([],e)),et([],t,e)}function cI(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Oe(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Oe(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=sc(a,e,r),Oe(a[0])>Oe(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function S1(t){return!t.isGroup}function pI(t){return t.shape!=null}function Jv(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(u){S1(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return pI(o)&&(s.shape=J(o.shape)),s}var a=n(t);e.traverse(function(o){if(S1(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),we(o,u,r,de(o).dataIndex)}}})}function em(t,e){return z(t,function(r){var n=r[0];n=ve(n,e.x),n=He(n,e.x+e.width);var i=r[1];return i=ve(i,e.y),i=He(i,e.y+e.height),[n,i]})}function tm(t,e){var r=ve(t.x,e.x),n=He(t.x+t.width,e.x+e.width),i=ve(t.y,e.y),a=He(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Ta(t,e,r){var n=N({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),ee(i,r),new je(n)):Zo(t.replace("path://",""),n,r,"center")}function hI(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(w1(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function w1(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,p=Wv(f,c,u,l);if(dI(p))return!1;var h=t-i,d=e-a,v=Wv(h,d,u,l)/p;if(v<0||v>1)return!1;var m=Wv(h,d,f,c)/p;return!(m<0||m>1)}function Wv(t,e,r,n){return t*n-r*e}function dI(t){return t<=1e-6&&t>=-1e-6}function Jo(t,e,r,n,i){return e==null||(ie(e)?Re[0]=Re[1]=Re[2]=Re[3]=e:(Re[0]=e[0],Re[1]=e[1],Re[2]=e[2],Re[3]=e[3]),n&&(Re[0]=ve(0,Re[0]),Re[1]=ve(0,Re[1]),Re[2]=ve(0,Re[2]),Re[3]=ve(0,Re[3])),r&&(Re[0]=-Re[0],Re[1]=-Re[1],Re[2]=-Re[2],Re[3]=-Re[3]),b1(t,Re,"x","width",3,1,i&&i[0]||0),b1(t,Re,"y","height",0,2,i&&i[1]||0)),t}var Re=[0,0,0,0];function b1(t,e,r,n,i,a,o){var s=e[a]+e[i],u=t[n];t[n]+=s,o=ve(0,He(o,u)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?u+e[a]:Oe(s)>1e-8?(u-o)*e[i]/s:0):t[r]-=e[i]}function es(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=U(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=t.formatterParamsExtra;u&&w(ne(u),function(f){Ie(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=de(t.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:ee({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Yv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ma(t,e){if(t)if(k(t))for(var r=0;r<t.length;r++)Yv(t[r],e);else Yv(t,e)}function uc(t){return!t||Oe(t[1])<ac&&Oe(t[2])<ac||Oe(t[0])<ac&&Oe(t[3])<ac}var ac=1e-5;function ts(t,e){return t?re.copy(t,e):e.clone()}function lc(t,e){return e?qi(t||St(),e):void 0}function rm(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function vI(t){var e=-1/0,r=1/0;Yv(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function nm(t,e,r){C1(t,e,r,-1/0)}function C1(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),u=0;u<s.length;u++)n=ve(C1(s[u],e,r,n),n);else t.z=e,t.zlevel=r,n=ve(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var l=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(l&&l.showAbove?1:-1))}return n}function mI(t){return t.animation={duration:0},t}function gI(t,e){return e?qi(Uu.transform,e):xr(Uu.transform),Uu.decomposeTransform(),oi(t,Uu),t}var Uu=new wo;Uu.transform=St();function yI(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}dr("circle",Hn);dr("ellipse",Ru);dr("sector",It);dr("ring",ba);dr("polygon",Yr);dr("polyline",Gt);dr("rect",Ee);dr("line",Pt);dr("bezierCurve",zu);dr("arc",Ea);var fc={};function I1(t,e){for(var r=0;r<Vt.length;r++){var n=Vt[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function im(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Y(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var u={normal:s},l=0;l<Vt.length;l++){var f=Vt[l],c=e[f];u[f]=X(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return u}function rr(t,e,r,n){r=r||fc;for(var i=t instanceof be,a=!1,o=0;o<Wo.length;o++){var s=e[Wo[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?t:t.getTextContent();if(a){i||(u||(u=new be,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=im(r,e),f=e.normal,c=!!f.getShallow("show"),p=pt(f,n&&n.normal,r,!1,!i);p.text=l.normal,i||t.setTextConfig(A1(f,r,!1));for(var o=0;o<Vt.length;o++){var h=Vt[o],s=e[h];if(s){var d=u.ensureState(h),v=!!X(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=pt(s,n&&n[h],r,!0,!i),d.style.text=l[h],!i){var m=t.ensureState(h);m.textConfig=A1(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(p.x=u.style.x),u.style.y!=null&&(p.y=u.style.y),u.ignore=!c,u.useStyle(p),u.dirty(),r.enableTextSetter&&(Ia(u).setLabelText=function(g){var y=im(r,e,g);I1(u,y)})}else u&&(u.ignore=!0);t.dirty()}function nr(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Vt.length;n++){var i=Vt[n];r[i]=t.getModel([i,e])}return r}function pt(t,e,r,n,i){var a={};return _I(a,t,r,n,i),e&&N(a,e),a}function A1(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=X(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.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=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function _I(t,e,r,n,i){r=r||fc;var a=e.ecModel,o=a&&a.option.textStyle,s=xI(e),u;if(s){u={};var l="richInheritPlainLabel",f=X(e.get(l),a?a.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);F1(u[c]={},p,o,e,f,r,n,i,!1,!0)}}u&&(t.rich=u);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var v=t,m=e.get("minMargin");if(m!=null)m=ie(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=Fa.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=$i(g),v.__marginType=Fa.textMargin)}F1(t,e,o,null,null,r,n,i,!0,!1)}function xI(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||fc).rich;if(r){e=e||{};for(var n=ne(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var D1=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],T1=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],M1=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function F1(t,e,r,n,i,a,o,s,u,l){r=!o&&r||fc;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=X(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var d=X(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var v=X(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var m=X(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!l&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<D1.length;g++){var y=D1[g],_=i!==!1&&n?Zt(e.getShallow(y),n.getShallow(y),r[y]):X(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<T1.length;g++){var y=T1[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!u||!a.disableBox){for(var g=0;g<M1.length;g++){var y=M1[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function P1(t,e){var r=e&&e.getModel("textStyle");return dt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ia=le();function cc(t,e,r,n){if(t){var i=Ia(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function L1(t,e,r,n,i){var a=Ia(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=X(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var c=Of(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:c;var p=im({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);I1(t,p)}t.percent=0,(a.prevValue==null?Me:we)(t,{percent:1},n,e,null,l)}var Fa={minMargin:1,textMargin:2};var SI=["textStyle","color"],am=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],om=new be,bI=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(SI):null)},t.prototype.getFont=function(){return P1({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<am.length;n++)r[am[n]]=this.getShallow(am[n]);return om.useStyle(r),om.update(),om.getBoundingRect()},t})(),B1=bI;var sm=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],EI=nn(sm),O1=(function(){function t(){}return t.prototype.getLineStyle=function(e){return EI(this,e)},t})();var um=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wI=nn(um),R1=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return wI(this,e,r)},t})();var Pa=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){me(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(J(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ce.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();go(Pa);D_(Pa);nt(Pa,O1);nt(Pa,R1);nt(Pa,T_);nt(Pa,B1);var De=Pa;function Gu(t){return t==null?0:t.length||1}function N1(t){return t}var CI=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||N1,this._newKeyGetter=i||N1,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],u=n[s],l=Gu(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)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,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],c=Gu(l),p=Gu(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(c===1&&p===1)this._update&&this._update(f,l),i[u]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Gu(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}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=Gu(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},t})(),k1=CI;var ht={Must:1,Might:2,Not:3},z1=le();function U1(t){z1(t).datasetMap=K()}function V1(t,e,r){var n={},i=hc(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,u=z1(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),w(t,function(v,m){var g=W(v)?v:t[m]={name:v};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),n[g.name]=[]});var p=u.get(l)||u.set(l,{categoryWayDim:c,valueWayDim:0});w(t,function(v,m){var g=v.name,y=d(v);if(f==null){var _=p.valueWayDim;h(n[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(n[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(n[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function pc(t,e,r){var n={},i=hc(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Tt||a===er)&&w(o,function(f,c){(W(f)?f.name:f)==="name"&&(s=c)});var u=(function(){for(var f={},c={},p=[],h=0,d=Math.min(5,r);h<d;h++){var v=G1(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(v);var m=v===ht.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&p[f.n]===ht.Not)&&(f.n=h),g(f)&&p[f.n]!==ht.Not)return f;m||(v===ht.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(u){n.value=[u.v];var l=s!=null?s:u.n;n.itemName=[l],n.seriesName=[l]}return n}function hc(t){var e=t.get("data",!0);if(!e)return Si(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Et).models[0]}function H1(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Si(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Et).models}function dc(t,e){return G1(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function G1(t,e,r,n,i,a){var o,s=5;if($e(t))return ht.Not;var u,l;if(n){var f=n[a];W(f)?(u=f.name,l=f.type):U(f)&&(u=f)}if(l!=null)return l==="ordinal"?ht.Must:ht.Not;if(e===at){var c=t;if(r===vn){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=x(d[a]))!=null)return o}}else if(e===Tt){var v=t;if(!u)return ht.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=x(m[u]))!=null)return o}}else if(e===er){var g=t;if(!u)return ht.Not;var p=g[u];if(!p||$e(p))return ht.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===ct)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=zn(m);if(!k(_))return ht.Not;if((o=x(_[a]))!=null)return o}function x(S){var b=U(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?ht.Might:ht.Not;if(b&&S!=="-")return ht.Must}return ht.Not}var vc=(function(){function t(e){this.data=e.data||(e.sourceFormat===er?{}:[]),this.sourceFormat=e.sourceFormat||wv,this.seriesLayoutBy=e.seriesLayoutBy||Ut,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&dc(this,n)===ht.Must&&(i.type="ordinal")}}return t})();function rs(t){return t instanceof vc}function Wu(t,e,r){r=r||lm(t);var n=e.seriesLayoutBy,i=AI(t,r,n,e.sourceHeader,e.dimensions),a=new vc({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:J(e)});return a}function ns(t){return new vc({data:t,sourceFormat:$e(t)?hr:ct})}function Y1(t){return new vc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:J(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function lm(t){var e=wv;if($e(t))e=hr;else if(k(t)){t.length===0&&(e=at);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(k(i)||$e(i)){e=at;break}else if(W(i)){e=Tt;break}}}}else if(W(t)){for(var a in t)if(Ie(t,a)&&Je(t[a])){e=er;break}}return e}function AI(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:W1(i),startIndex:o,dimensionsDetectedCount:a};if(e===at){var s=t;n==="auto"||n==null?$1(function(l){l!=null&&l!=="-"&&(U(l)?o==null&&(o=1):o=0)},r,s,10):o=ie(n)?n:n?1:0,!i&&o===1&&(i=[],$1(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===vn?s.length:s[0]?s[0].length:null}else if(e===Tt)i||(i=DI(t));else if(e===er)i||(i=[],w(t,function(l,f){i.push(f)}));else if(e===ct){var u=zn(t[0]);a=k(u)&&u.length||1}return{startIndex:o,dimensionsDefine:W1(i),dimensionsDetectedCount:a}}function DI(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ne(r)}function W1(t){if(t){var e=K();return z(t,function(r,n){r=W(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=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function $1(t,e,r,n){if(e===vn)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function mc(t){var e=t.sourceFormat;return e===Tt||e===er}var La,Ba,Oa,Ra,X1,q1,yc=(function(){function t(e,r){var n=rs(e)?e:ns(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===hr&&(this._offset=0,this._dimSize=r,this._data=i),0)var s;q1(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;q1=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,c=u.startIndex,p=u.dimensionsDefine,h=X1[dm(l,f)];if(N(o,h),l===hr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=cm(l,f);o.getItem=fe(d,null,s,c,p);var v=pm(l,f);o.count=fe(v,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,c=0;c<l;c++)s[c]=u[f+c];return s},n=function(o,s,u,l){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=l[p],d=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,g=u[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<d&&(d=_),_>v&&(v=_)}h[0]=d,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};X1=(e={},e[at+"_"+Ut]={pure:!0,appendData:a},e[at+"_"+vn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Tt]={pure:!0,appendData:a},e[er]={pure:!0,appendData:function(o){var s=this._data;w(o,function(u,l){for(var f=s[l]||(s[l]=[]),c=0;c<(u||[]).length;c++)f.push(u[c])})}},e[ct]={appendData:a},e[hr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var gc=function(t){k(t)||_v("series.data or dataset.source must be an array.")},Tz=(La={},La[at+"_"+Ut]=gc,La[at+"_"+vn]=gc,La[Tt]=gc,La[er]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&_v("dimension name must not be null/undefined.")}},La[ct]=gc,La),j1=function(t,e,r,n){return t[n]},TI=(Ba={},Ba[at+"_"+Ut]=function(t,e,r,n){return t[n+e]},Ba[at+"_"+vn]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},Ba[Tt]=j1,Ba[er]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?t[s]:null;a[o]=u?u[n]:null}return a},Ba[ct]=j1,Ba);function cm(t,e){var r=TI[dm(t,e)];return r}var K1=function(t,e,r){return t.length},MI=(Oa={},Oa[at+"_"+Ut]=function(t,e,r){return Math.max(0,t.length-e)},Oa[at+"_"+vn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Oa[Tt]=K1,Oa[er]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},Oa[ct]=K1,Oa);function pm(t,e){var r=MI[dm(t,e)];return r}var fm=function(t,e,r){return t[e]},FI=(Ra={},Ra[at]=fm,Ra[Tt]=function(t,e,r){return t[r]},Ra[er]=fm,Ra[ct]=function(t,e,r){var n=zn(t);return n instanceof Array?n[e]:n},Ra[hr]=fm,Ra);function hm(t){var e=FI[t];return e}function dm(t,e){return t===at?t+"_"+e:t}function Gn(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return hm(a)(n,o,s)}else{var u=n;return a===ct&&(u=zn(n)),u}}}}var II=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function Z1(t,e){var r={},n=r.encode={},i=K(),a=[],o=[],s={};w(t.dimensions,function(p){var h=t.getDimensionInfo(p),d=h.coordDim;if(d){var v=h.coordDimIndex;vm(n,d)[v]=p,h.isExtraCoord||(i.set(d,1),PI(h.type)&&(a[0]=p),vm(s,d)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Uf.each(function(m,g){var y=vm(n,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var u=[],l={};i.each(function(p,h){var d=n[h];l[h]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=z(u,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new II(s,e),r}function vm(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Q1(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function PI(t){return!(t==="ordinal"||t==="time")}var LI=(function(){function t(e){this.otherDims={},e!=null&&N(this,e)}return t})(),is=LI;function as(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!ie(t)&&t!=null&&t!=="-"&&(t=+zt(t)),t==null||t===""?NaN:Number(t))}var kz=K({number:function(t){return parseFloat(t)},time:function(t){return+zt(t)},trim:function(t){return U(t)?dt(t):t}});var BI={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},zz=(function(){function t(e,r){if(!ie(r)){var n="";gt(n)}this._opFn=BI[e],this._rvalFloat=Ir(r)}return t.prototype.evaluate=function(e){return ie(e)?this._opFn(e,this._rvalFloat):this._opFn(Ir(e),this._rvalFloat)},t})(),J1=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=ie(e)?e:Ir(e),i=ie(r)?r:Ir(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=U(e),u=U(r);s&&(n=u?e:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})();var Uz=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Ir(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Ir(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function _c(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function xc(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var OI=typeof Uint32Array===Ei?Array:Uint32Array,RI=typeof Uint16Array===Ei?Array:Uint16Array,gm=typeof Int32Array===Ei?Array:Int32Array,eb=typeof Float64Array===Ei?Array:Float64Array,rb={float:eb,int:gm,ordinal:Array,number:Array,time:eb},mm;function os(t){return t>65535?OI:RI}function NI(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function tb(t,e,r,n,i){var a=rb[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new a(n)}var kI=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=mm[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=mc(i);this._dimensions=z(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new rb[r||"float"](this._rawCount),this._rawExtent[a]=wt(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=wt());for(var u=a[e],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"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<a;l++){var f=i[l];tb(n,l,f.type,u,!0)}for(var c=[],p=s;p<u;p++)for(var h=p-s,d=0;d<a;d++){var f=i[d],v=mm.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][p]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=z(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];u[f]||(u[f]=wt()),tb(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,u);else for(var p=[],h=e;h<r;h++){p=i.getItem(h,p);for(var d=0;d<s;d++){var v=a[d],m=this._dimValueGetter(p,l[d],h,d);v[h]=m;var g=u[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),xi(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=os(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=os(n._rawCount),o=new a(i),s=[],u=e.length,l=0,f=e[0],c=n._chunks,p=0;p<i;p++){var h=void 0,d=n.getRawIndex(p);if(u===0)h=r(p);else if(u===1){var v=c[f][d];h=r(v,p)}else{for(var m=0;m<u;m++)s[m]=c[e[m]][d];s[m]=p,h=r.apply(null,s)}h&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=ne(e),a=i.length;if(!a)return this;var o=r.count(),s=os(r._rawCount),u=new s(o),l=0,f=i[0],c=e[f][0],p=e[f][1],h=r._chunks,d=!1;if(!r._indices){var v=0;if(a===1){for(var m=h[i[0]],g=0;g<n;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(u[l++]=v),v++}d=!0}else if(a===2){for(var m=h[i[0]],_=h[i[1]],x=e[i[1]][0],S=e[i[1]][1],g=0;g<n;g++){var y=m[g],b=_[g];(y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(u[l++]=v),v++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var E=r.getRawIndex(g),y=h[i[0]][E];(y>=c&&y<=p||isNaN(y))&&(u[l++]=E)}else for(var g=0;g<o;g++){for(var A=!0,E=r.getRawIndex(g),D=0;D<a;D++){var C=i[D],y=h[C][E];(y<e[C][0]||y>e[C][1])&&(A=!1)}A&&(u[l++]=r.getRawIndex(g))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,f=0;f<r.length;f++)l[r[f]]=wt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)u[h]=i[r[h]][p];u[o]=c;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 v=r[f],m=d[f],g=l[v],y=i[v];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,c,p,h=new(os(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));h[s++]=l;for(var d=1;d<o-1;d+=u){for(var v=Math.min(d+u,o-1),m=Math.min(d+u*2,o),g=(m+v)/2,y=0,_=v;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-v;var b=d,E=Math.min(d+u,o),A=d-1,D=a[l];f=-1,p=b;for(var C=-1,T=0,_=b;_<E;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){T++,C<0&&(C=x);continue}c=Math.abs((A-g)*(S-D)-(A-_)*(y-D)),c>f&&(f=c,p=x)}T>0&&T<E-b&&(h[s++]=Math.min(C,p),p=Math.max(C,p)),h[s++]=p,l=p}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),u=new(os(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],v=a;f+a>s&&(v=s-f);for(var m=0;m<v;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>d&&(d=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(u[l++]=_,u[l++]=x):(u[l++]=x,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[e],f=this.count(),c=a._rawExtent[e]=wt(),p=new(os(this._rawCount))(Math.ceil(f/u)),h=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var v=0;v<u;v++){var m=this.getRawIndex(d+v);s[v]=l[m]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));l[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.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[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[e[u]][s];l[u]=a,r.apply(null,l)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=wt();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,u=s[e]||(s[e]={}),l=_c(r),f=l.key,c=u[f];if(c)return c.slice();for(var p=i[0],h=i[1],d=0;d<a;d++){var v=this.getRawIndex(d),m=n[v];(!r||xc(l,m))&&(m<p&&(p=m),m>h&&(h=m))}return u[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);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},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&At(e,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?NI(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=J(this._extent),e._rawExtent=J(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return as(r[a],this._dimensions[a])}mm={arrayRows:e,objectRows:function(r,n,i,a){return as(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return as(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),$u=kI;var zI=le(),UI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ym=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=_m(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return X(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=mc(this.source),n=!xm(e),i="",a=[],o=0,s=0;o<e;o++){var u=void 0,l=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)u=r?c.name:null,l=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(u=r?p.name:null,l=p.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!c||!c.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=UI[l]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],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)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Sc(t){return t instanceof ym}function Yu(t){for(var e=K(),r=0;r<(t||[]).length;r++){var n=t[r],i=W(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function _m(t){var e=zI(t);return e.dimNameMap||(e.dimNameMap=Yu(t.dimensionsDefine))}function xm(t){return t>30}var Xu=W,Ai=z,VI=typeof Int32Array=="undefined"?Array:Int32Array,HI="e\0\0",nb=-1,GI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],WI=["_approximateExtent"],ib,bc,qu,ju,Sm,Ku,bm,$I=(function(){function t(e,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;Sc(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var c=n[f],p=U(c)?new is({name:c}):c instanceof is?c:new is(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,l[h]!=null&&(u=!0),p.createInvertedIndices&&(s[h]=[]),i&&(p.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=p.storeDimIndex),d.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=K();w(o,function(m){v.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!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},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(ie(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof $u&&(a=e),!a){var o=this.dimensions,s=rs(e)||Je(e)?new yc(e,o.length):e;a=new $u;var u=Ai(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=Z1(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,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&&bm(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==hr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===ct;if(u&&!i.pure)for(var l=[],f=e;f<r;f++){var c=i.getItem(f,l);if(!this.hasItemOption&&vS(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=pr(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=pr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)bm(this,f);ib(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Xu(e)?N(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=qu(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return bc(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return k(e)?i.getValues(Ai(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?nb:i},t.prototype.each=function(e,r,n){"use strict";Y(e)&&(n=r,r=e,e=[]);var i=n||this,a=Ai(ju(e),this._getStoreDimIndex,this);this._store.each(a,i?fe(r,i):r)},t.prototype.filterSelf=function(e,r,n){"use strict";Y(e)&&(n=r,r=e,e=[]);var i=n||this,a=Ai(ju(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?fe(r,i):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,n={},i=ne(e),a=[];return w(i,function(o){var s=r._getStoreDimIndex(o);n[s]=e[o],a.push(s)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){"use strict";Y(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){"use strict";var a=n||i||this,o=Ai(ju(e),this._getStoreDimIndex,this),s=Ku(this);return s._store=this._store.map(o,a?fe(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=this,o=n||i||this,s=Ai(ju(e),this._getStoreDimIndex,this);this._store.modify(s,o?fe(r,o):r)},t.prototype.downSample=function(e,r,n,i){var a=Ku(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Ku(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Ku(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new De(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new k1(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return bc(e,n)},function(n){return bc(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Xu(e)?N(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i==null?this.getVisual(r):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),k(a)?a=a.slice():Xu(a)&&(a=N({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Xu(r)?N(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Xu(e)?N(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?N(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;Tu(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){w(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Ai(this.dimensions,this._getDimInfo,this),this.hostModel)),Sm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];Y(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Qs(arguments)))})},t.internalField=(function(){ib=function(e){var r=e._invertedIndicesMap;w(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new VI(o.categories.length);for(var u=0;u<n.length;u++)n[u]=nb;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},qu=function(e,r,n){return pr(e._getCategory(r,n),null)},bc=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=qu(e,e._idDimIdx,r)),n==null&&(n=HI+r),n},ju=function(e){return k(e)||(e=e!=null?[e]:[]),e},Ku=function(e){var r=new t(e._schema?e._schema:Ai(e.dimensions,e._getDimInfo,e),e.hostModel);return Sm(r,e),r},Sm=function(e,r){w(GI.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,w(WI,function(n){e[n]=J(r[n])}),e._calculationInfo=N({},r._calculationInfo)},bm=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=qu(e,a,r)),u==null&&o!=null&&(i[r]=u=qu(e,o,r)),u==null&&s!=null){var l=e._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[r]=u}}})(),t})(),ss=$I;function ab(t,e){return us(t,e).dimensions}function us(t,e){rs(t)||(t=ns(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=K(),a=[],o=YI(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&xm(o),u=n===t.dimensionsDefine,l=u?_m(t):Yu(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=K(f),p=new gm(o),h=0;h<p.length;h++)p[h]=-1;function d(D){var C=p[D];if(C<0){var T=n[D],F=W(T)?T:{name:T},M=new is,I=F.name;I!=null&&l.get(I)!=null&&(M.name=M.displayName=I),F.type!=null&&(M.type=F.type),F.displayName!=null&&(M.displayName=F.displayName);var L=a.length;return p[D]=L,M.storeDimIndex=D,a.push(M),M}return a[C]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(D,C){var T=Ge(D).slice();if(T.length===1&&!U(T[0])&&T[0]<0){c.set(C,!1);return}var F=c.set(C,[]);w(T,function(M,I){var L=U(M)?l.get(M):M;L!=null&&L<o&&(F[I]=L,m(d(L),C,I))})});var v=0;w(r,function(D){var C,T,F,M;if(U(D))C=D,M={};else{M=D,C=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=N({},M),M.ordinalMeta=I,T=M.dimsDef,F=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var L=c.get(C);if(L!==!1){if(L=Ge(L),!L.length)for(var B=0;B<(T&&T.length||1);B++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&L.push(v++)}w(L,function(R,O){var V=d(R);if(u&&M.type!=null&&(V.type=M.type),m(ee(V,M),C,O),V.name==null&&T){var G=T[O];!W(G)&&(G={name:G}),V.name=V.displayName=G.name,V.defaultTooltip=G.defaultTooltip}F&&ee(V.otherDims,F)})}});function m(D,C,T){Uf.get(C)!=null?D.otherDims[C]=T:(D.coordDim=C,D.coordDimIndex=T,i.set(C,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(D){D.name==null&&(D.name=D.coordDim)}if(s)w(a,function(D){S(D)}),a.sort(function(D,C){return D.storeDimIndex-C.storeDimIndex});else for(var b=0;b<o;b++){var E=d(b),A=E.coordDim;A==null&&(E.coordDim=XI(x,i,_),E.coordDimIndex=0,(!g||y<=0)&&(E.isExtraCoord=!0),y--),S(E),E.type==null&&(dc(t,b)===ht.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return Uo(a,function(D){return D.name},function(D,C){C>0&&(D.name=D.name+(C-1))}),new ym({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function YI(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return w(e,function(a){var o;W(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function XI(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Ec={},Em={},qI=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Ec,!0),this._normalMasterList=n(Em,!1);function n(i,a){var o=[];return w(i,function(s,u){var l=s.create(e,r);o=o.concat(l||[])}),o}},t.prototype.update=function(e,r){w(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Ec[e]=r;return}Em[e]=r},t.get=function(e){return Em[e]||Ec[e]},t})();function jI(t){return!!Ec[t]}var KI=1,wm=2;function ob(t){sb.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var sb=K();function Cc(t){var e=t.getShallow("coord",!0),r=KI;if(e==null){var n=sb.get(t.type);n&&n.getCoord2&&(r=wm,e=n.getCoord2(t))}return{coord:e,from:r}}var ls=0,wc=1,ZI=2;function QI(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=n!=null,a=ls;if(r){var o=t.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=wc,o||(a=ls)):n==="box"&&(a=ZI,!o&&!jI(r)&&(a=ls))}return{coordSysType:r,kind:a}}function ub(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=t.allowNotFound,o=QI(e,!0),s=o.kind,u=o.coordSysType;if(i&&s!==wc&&(s=wc,u=r),s===ls||u!==r)return ls;var l=n(r,e);return l?(s===wc?e.coordinateSystem=l:e.boxCoordinateSystem=l,s):ls}var fs=qI;var JI=(function(){function t(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return t})();function lb(t){var e=t.get("coordinateSystem"),r=new JI(e),n=eP[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var eP={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Et).models[0],a=t.getReferringComponents("yAxis",Et).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),cs(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),cs(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Et).models[0];e.coordSysDims=["single"],r.set("single",i),cs(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Et).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),cs(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),cs(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();w(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),cs(l)&&(n.set(f,l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=u))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Et).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function cs(t){return t.get("type")==="category"}function Ac(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;tP(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var u=!!(t&&t.get("stack")),l,f,c,p,h=!0;function d(x){return x.type!=="ordinal"&&x.type!=="time"}if(w(a,function(x,S){U(x)&&(a[S]=x={name:x}),d(x)||(h=!1)}),w(a,function(x,S){u&&!x.isExtraCoord&&(!n&&!l&&x.ordinalMeta&&(l=x),!f&&d(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!i||i===x.coordDim)&&(f=x))}),f&&!n&&!l&&(n=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,m=f.type,g=0;w(a,function(x){x.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:p,stackResultDimension:c}}function tP(t){return!Sc(t.schema)}function qr(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Dc(t,e){return qr(t,e)?t.getCalculationInfo("stackResultDimension"):e}function rP(t,e){var r=t.get("coordinateSystem"),n=fs.get(r),i;return e&&e.coordSysDims&&(i=z(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var u=s.get("type");o.type=Q1(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function nP(t,e,r){var n,i;return r&&w(t,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function iP(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=ns(t)):(i=n.getSource(),a=i.sourceFormat===ct);var o=lb(e),s=rP(e,o),u=r.useEncodeDefaulter,l=Y(u)?u:u?Ce(V1,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},c=us(i,f),p=nP(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=Ac(e,{schema:c,store:h}),v=new ss(c,e);v.setCalculationInfo(d);var m=p!=null&&aP(i)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,m),v}function aP(t){if(t.sourceFormat===ct){var e=oP(t.data||[]);return!k(zn(e))}}function oP(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var _n=iP;var sP=Math.round(Math.random()*10);function xn(t){return[t||"",sP++].join("_")}function fb(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=Qt(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=Qt(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function cb(t,e){t.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,c=l.noEntryList,p={};for(w(a,function(y){p[y]=!0});c.length;){var h=c.pop(),d=f[h],v=!!p[h];v&&(s.call(u,h,d.originalDeps.slice()),delete p[h]),w(d.successor,v?g:m)}w(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return w(a,function(u){var l=n(o,u),f=l.originalDeps=e(u),c=i(f,a);l.entryCount=c.length,l.entryCount===0&&s.push(u),w(c,function(p){ue(l.predecessor,p)<0&&l.predecessor.push(p);var h=n(o,p);ue(h.successor,p)<0&&h.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 w(a,function(u){ue(o,u)>=0&&s.push(u)}),s}}function Tc(t,e){return me(me({},t,!0),e,!0)}var uP=Math.log(2);function Am(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var u=Math.round(Math.log((1<<s)-1&~i)/uP);return t[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var d=1<<p;d&i||(c+=(h%2?-1:1)*t[r][p]*Am(t,e-1,f,l,i|d,a),h++)}return a[o]=c,c}function Dm(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Am(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)*Am(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(u,l,f){var c=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/c,u[1]=(l*a[3]+f*a[4]+a[5])/c}}}var Mc="___zrEVENTSAVED",Tm=[];function pb(t,e,r,n,i){return Fc(Tm,e,n,i,!0)&&Fc(t,r,Tm[0],Tm[1])}function hb(t,e){t&&r(t),e&&r(e);function r(n){var i=n[Mc];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Mc])}}function Fc(t,e,r,n,i){if(e.getBoundingClientRect&&ce.domSupported&&!Mm(e)){var a=e[Mc]||(e[Mc]={}),o=lP(e,a),s=fP(o,a,i);if(s)return s(t,r,n),!0}return!1}function lP(t,e){var r=e.markers;if(r)return r;r=e.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;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){w(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function fP(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=t[l].getBoundingClientRect(),c=2*l,p=f.left,h=f.top;o.push(p,h),u=u&&a&&p===a[c]&&h===a[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&i?i:(e.srcCoords=o,e[n]=r?Dm(s,o):Dm(o,s))}function Mm(t){return t.nodeName.toUpperCase()==="CANVAS"}var cP=/([&<>"'])/g,pP={"&":"&","<":"<",">":">",'"':""","'":"'"};function tt(t){return t==null?"":(t+"").replace(cP,function(e,r){return pP[r]})}var db={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:". "}}}};var vb={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Pc="ZH",Fm="EN",ps=Fm,Ic={},Im={},Lc=ce.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ps).toUpperCase();return t.indexOf(Pc)>-1?Pc:ps})():ps;function Bc(t,e){t=t.toUpperCase(),Im[t]=new De(e),Ic[t]=e}function mb(t){if(U(t)){var e=Ic[t.toUpperCase()]||{};return t===Pc||t===Fm?J(e):me(J(e),J(Ic[ps]),!1)}else return me(J(t),J(Ic[ps]),!1)}function gb(t){return Im[t]}function yb(){return Im[ps]}Bc(Fm,db);Bc(Pc,vb);var hP=null;function Ye(){return hP}function Oc(t,e){var r=Ye(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function Na(t){var e=t.brk;return e?e.breaks:[]}function ka(t){var e=t.brk;return e?e.hasBreaks():!1}var kc=1e3,zc=kc*60,hs=zc*60,vr=hs*24,Pm=vr*365,dP={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Nc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},vP="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Rc="{yyyy}-{MM}-{dd}",Lm={year:"{yyyy}",month:"{yyyy}-{MM}",day:Rc,hour:Rc+" "+Nc.hour,minute:Rc+" "+Nc.minute,second:Rc+" "+Nc.second,millisecond:vP},ir=["year","month","day","hour","minute","second","millisecond"],_b=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function xb(t){return!U(t)&&!Y(t)?mP(t):t}function mP(t){t=t||{};var e={},r=!0;return w(ir,function(n){r&&(r=t[n]==null)}),w(ir,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var u=ir[s],l=W(a)&&!k(a)?a[u]:a,f=void 0;k(l)?(f=l.slice(),o=f[0]||""):U(l)?(o=l,f=[o]):(o==null?o=Nc[n]:dP[u].test(o)||(o=e[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][u]=f}}),e}function Lt(t,e){return t+="","0000".substr(0,e-t.length)+t}function ds(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Sb(t){return t===ds(t)}function bb(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Wn(t,e,r,n){var i=zt(t),a=i[Bm(r)](),o=i[Uc(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[Vc(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[Hc(r)](),c=(f-1)%12+1,p=i[Gc(r)](),h=i[Wc(r)](),d=i[$c(r)](),v=f>=12?"pm":"am",m=v.toUpperCase(),g=n instanceof De?n:gb(n||Lc)||yb(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Lt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Lt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Lt(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,S[l]).replace(/{ee}/g,b[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Lt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Lt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Lt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Lt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Lt(d,3)).replace(/{S}/g,d+"")}function Eb(t,e,r,n,i){var a=null;if(U(r))a=r;else if(Y(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ye();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var u=t.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=za(t.value,i);a=r[f][f][0]}}return Wn(new Date(t.value),a,i,n)}function za(t,e){var r=zt(t),n=r[Uc(e)]()+1,i=r[Vc(e)](),a=r[Hc(e)](),o=r[Gc(e)](),s=r[Wc(e)](),u=r[$c(e)](),l=u===0,f=l&&s===0,c=f&&o===0,p=c&&a===0,h=p&&i===1,d=h&&n===1;return d?"year":h?"month":p?"day":c?"hour":f?"minute":l?"second":"millisecond"}function vs(t,e,r){switch(e){case"year":t[Om(r)](0);case"month":t[Rm(r)](1);case"day":t[Nm(r)](0);case"hour":t[km(r)](0);case"minute":t[zm(r)](0);case"second":t[Um(r)](0)}return t}function Bm(t){return t?"getUTCFullYear":"getFullYear"}function Uc(t){return t?"getUTCMonth":"getMonth"}function Vc(t){return t?"getUTCDate":"getDate"}function Hc(t){return t?"getUTCHours":"getHours"}function Gc(t){return t?"getUTCMinutes":"getMinutes"}function Wc(t){return t?"getUTCSeconds":"getSeconds"}function $c(t){return t?"getUTCMilliseconds":"getMilliseconds"}function wb(t){return t?"setUTCFullYear":"setFullYear"}function Om(t){return t?"setUTCMonth":"setMonth"}function Rm(t){return t?"setUTCDate":"setDate"}function Nm(t){return t?"setUTCHours":"setHours"}function km(t){return t?"setUTCMinutes":"setMinutes"}function zm(t){return t?"setUTCSeconds":"setSeconds"}function Um(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vm(t,e,r,n,i,a,o,s){var u=new be({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return u.getBoundingRect()}function Zu(t){if(!Eu(t))return U(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function ms(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Sn=$i;function Yc(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&dt(f)?f:"-"}function a(f){return it(f)}var o=e==="time",s=t instanceof Date;if(o||s){var u=o?zt(t):t;if(isNaN(+u)){if(s)return"-"}else return Wn(u,n,r)}if(e==="ordinal")return mo(t)?i(t):ie(t)&&a(t)?t+"":"-";var l=Ir(t);return a(l)?Zu(l):mo(t)?i(t):typeof t=="boolean"?t+"":"-"}var Cb=["a","b","c","d","e","f","g"],Hm=function(t,e){return"{"+t+(e==null?"":e)+"}"};function gs(t,e,r){k(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Cb[a];t=t.replace(Hm(o),Hm(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=e[s][i[u]];t=t.replace(Hm(Cb[u],s),r?tt(l):l)}return t}function Xc(t,e){var r=U(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=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:'+tt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+tt(n)+";"+(e||"")+'"></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 Ab(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
|
|
15
|
-
yyyy`);var n=zt(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),u=n[i+"Hours"](),l=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return t=t.replace("MM",Lt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Lt(a%100+"",2)).replace("dd",Lt(s,2)).replace("d",s).replace("hh",Lt(u,2)).replace("h",u).replace("mm",Lt(l,2)).replace("m",l).replace("ss",Lt(f,2)).replace("s",f).replace("SSS",Lt(c,3)),t}function Db(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function jr(t,e){return e=e||"transparent",U(t)?t:W(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Gm(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var jc=w,gP=["left","right","top","bottom","width","height"],qc=[["width","left","right"],["height","top","bottom"]];function $m(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(u,l){var f=u.getBoundingRect(),c=e.childAt(l+1),p=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var v=f.width+(p?-p.x+f.x:0);h=a+v,h>n||u.newline?(a=0,h=v,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);d=o+m,d>i||u.newline?(a+=s+r,o=0,d=m,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var Ua=$m,mV=Ce($m,"vertical"),gV=Ce($m,"horizontal");function Tb(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function yP(t,e){var r=Kr(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===Qu.point)a=r.refPoint,i=Bt(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=k(o)?o:[o,o];i=Bt(n,r.refContainer),a=r.boxCoordFrom===wm?r.refPoint:[te(s[0],i.width)+i.x,te(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function Mb(t,e){var r=yP(t,e),n=r.viewRect,i=r.center,a=t.get("radius");k(a)||(a=[0,a]);var o=te(n.width,e.getWidth()),s=te(n.height,e.getHeight()),u=Math.min(o,s),l=te(a[0],u/2),f=te(a[1],u/2);return{cx:i[0],cy:i[1],r0:l,r:f,viewRect:n}}function Bt(t,e,r){r=Sn(r||0);var n=e.width,i=e.height,a=te(t.left,n),o=te(t.top,i),s=te(t.right,n),u=te(t.bottom,i),l=te(t.width,n),f=te(t.height,i),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(l)&&(l=n-s-p-a),isNaN(f)&&(f=i-u-c-o),h!=null&&(isNaN(l)&&isNaN(f)&&(h>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=h*f),isNaN(f)&&(f=l/h)),isNaN(a)&&(a=n-s-l-p),isNaN(o)&&(o=i-u-f-c),t.left||t.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-p;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(l)&&(l=n-p-a-(s||0)),isNaN(f)&&(f=i-c-o-(u||0));var d=new re((e.x||0)+a+r[3],(e.y||0)+o+r[0],l,f);return d.margin=r,d}var Qu={rect:1,point:2};function Kr(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var u=Cc(t),l=u.coord,f=u.from;if(o.dataToLayout){a=Qu.rect,s=f;var c=o.dataToLayout(l);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Qu.point,s=f,i=o.dataToPoint(l))}return a==null&&(a=Qu.rect),a===Qu.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Di(t){var e=t.layoutMode||t.constructor.layoutMode;return W(e)?e:e?{type:e}:null}function mr(t,e,r){var n=r&&r.ignoreSize;!k(n)&&(n=[n,n]);var i=o(qc[0],0),a=o(qc[1],1);u(qc[0],t,i),u(qc[1],t,a);function o(l,f){var c={},p=0,h={},d=0,v=2;if(jc(l,function(y){h[y]=t[y]}),jc(l,function(y){Ie(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&d++}),n[f])return s(e,l[1])?h[l[2]]=null:s(e,l[2])&&(h[l[1]]=null),h;if(d===v||!p)return h;if(p>=v)return c;for(var m=0;m<l.length;m++){var g=l[m];if(!Ie(c,g)&&Ie(t,g)){c[g]=t[g];break}}return c}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,c){jc(l,function(p){f[p]=c[p]})}}function bn(t){return _P({},t)}function _P(t,e){return e&&t&&jc(gP,function(r){Ie(e,r)&&(t[r]=e[r])}),t}var xP=le(),ys=(function(t){P(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=xn("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Di(this),a=i?bn(r):{},o=n.getTheme();me(r,o.get(this.mainType)),me(r,this.getDefaultOption()),i&&mr(r,a,i)},e.prototype.mergeOption=function(r,n){me(this.option,r,!0);var i=Di(this);i&&mr(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!A_(r))return r.defaultOption;var n=xP(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=me(s,i[u],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Si(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return Tb(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(De);ql(ys,De);ni(ys);fb(ys);cb(ys,SP);function SP(t){var e=[];return w(ys.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=z(e,function(r){return Qt(r).main}),t!=="dataset"&&ue(e,"dataset")<=0&&e.unshift("dataset"),e}var xe=ys;var Fb=le(),wV=le(),Ju=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=Ge(this.get("color",!0)),a=this.get("colorLayer",!0);return EP(this,Fb,i,a,e,r,n)},t.prototype.clearColorPalette=function(){wP(this,Fb)},t})();function bP(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function EP(t,e,r,n,i,a,o){a=a||t;var s=e(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:bP(n,o);if(f=f||r,!(!f||!f.length)){var c=f[u];return i&&(l[i]=c),s.paletteIdx=(u+1)%f.length,c}}function wP(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var CP=/\{@(.+?)\}/g,Ib=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),u=n.getItemVisual(e,"style"),l=u&&u[n.getItemVisual(e,"drawType")||"fill"],f=u&&u.stroke,c=this.mainType,p=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:l,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(e,n);if(o&&(u.value=o.interpolatedValue),i!=null&&k(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(e);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Y(a))return u.status=r,u.dimensionIndex=i,a(u);if(U(a)){var f=gs(a,u);return f.replace(CP,function(c,p){var h=p.length,d=p;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var v=Gn(s,e,d);if(o&&k(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,r){return Gn(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Ym(t){var e,r;return W(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ti(t){return new AP(t)}var AP=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.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(e&&e.modBy),l=e&&e.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=u,this._modDataCount=l;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(c||h<d)){var v=this._progress;if(k(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,d,u,l);else this._doProgress(v,h,d,u,l)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){Pb.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Pb.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),k(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var Pb=(function(){var t,e,r,n,i,a={reset:function(u,l,f,c){e=u,t=l,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var u=e%i*r+Math.ceil(e/i),l=e>=t?null:u<n?u:e;return e++,l}})();var DP=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return as(e,r)},t})();function TP(t,e){var r=new DP,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Ut&>(o);var s=[],u={},l=t.dimensionsDefine;if(l)w(l,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var _="";Ie(u,g)&>(_),u[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=cm(i,Ut);e.__isBuiltIn&&(r.getRawDataItem=function(v){return c(n,a,s,v)},r.getRawData=fe(MP,null,t)),r.cloneRawData=fe(FP,null,t);var p=pm(i,Ut);r.count=fe(p,null,n,a,s);var h=hm(i);r.retrieveValue=function(v,m){var g=c(n,a,s,v);return d(g,m)};var d=r.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return h(v,m,g.name)}};return r.getDimensionInfo=fe(IP,null,s,u),r.cloneAllDimensionInfo=fe(PP,null,s),r}function MP(t){var e=t.sourceFormat;if(!Xm(e)){var r="";gt(r)}return t.data}function FP(t){var e=t.sourceFormat,r=t.data;if(!Xm(e)){var n="";gt(n)}if(e===at){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Tt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(N({},r[a]));return i}}function IP(t,e,r){if(r!=null){if(ie(r)||!isNaN(r)&&!Ie(e,r))return t[r];if(Ie(e,r))return e[r]}}function PP(t){return J(t)}var Lb=K();function Bb(t){t=J(t);var e=t.type,r="";e||gt(r);var n=e.split(":");n.length!==2&>(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,Lb.set(e,t)}function Ob(t,e,r){var n=Ge(t),i=n.length,a="";i||gt(a);for(var o=0,s=i;o<s;o++){var u=n[o];e=LP(u,e,r,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function LP(t,e,r,n){var i="";e.length||gt(i),W(t)||gt(i);var a=t.type,o=Lb.get(a);o||gt(i);var s=z(e,function(f){return TP(f,o)}),u=Ge(o.transform({upstream:s[0],upstreamList:s,config:J(t.config)}));if(0&&t.print)var l;return z(u,function(f,c){var p="";W(f)||gt(p),f.data||gt(p);var h=lm(f.data);Xm(h)||gt(p);var d,v=e[0];if(v&&c===0&&!f.dimensions){var m=v.startIndex;m&&(f.data=v.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:Ut,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:Ut,sourceHeader:0,dimensions:f.dimensions};return Wu(f.data,d,null)})}function Xm(t){return t===at||t===Tt}var Qc=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Zc(e)){var o=e,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=$e(s)?hr:ct,a=[];var c=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},h=X(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=X(c.sourceHeader,p.sourceHeader),v=X(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||v;i=m?[Wu(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:v},u)]:[]}else{var g=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[Wu(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&Rb(a)}var o,s=[],u=[];return w(e,function(l){l.prepareSource();var f=l.getSource(i||0),c="";i!=null&&!f&&Rb(c),s.push(f),u.push(l._getVersionSign())}),n?o=Ob(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Y1(s[0])]),{sourceList:o,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,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];Zc(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,n):(s=new $u,s.initData(new yc(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Zc(e)){var r=hc(e);return r?[r.getSourceManager()]:[]}else return z(H1(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Zc(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function qm(t){var e=t.option.transform;e&&ti(t.option.transform)}function Zc(t){return t.mainType==="series"}function Rb(t){throw new Error(t)}var Va={color:{},darkColor:{},size:{}},Ke=Va.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};N(Ke,{primary:Ke.neutral80,secondary:Ke.neutral70,tertiary:Ke.neutral60,quaternary:Ke.neutral50,disabled:Ke.neutral20,border:Ke.neutral30,borderTint:Ke.neutral20,borderShade:Ke.neutral40,background:Ke.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ke.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ke.neutral70,axisLineTint:Ke.neutral40,axisTick:Ke.neutral70,axisTickMinor:Ke.neutral60,axisLabel:Ke.neutral70,axisSplitLine:Ke.neutral15,axisMinorSplitLine:Ke.neutral05});for(Mi in Ke)Ke.hasOwnProperty(Mi)&&(jm=Ke[Mi],Mi==="theme"?Va.darkColor.theme=Ke.theme.slice():Mi==="highlight"?Va.darkColor.highlight="rgba(255,231,130,0.4)":Mi.indexOf("accent")===0?Va.darkColor[Mi]=Fo(jm,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Va.darkColor[Mi]=Fo(jm,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var jm,Mi;Va.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var $=Va;var BP="line-height:1";function Nb(t){var e=t.lineHeight;return e==null?BP:"line-height:"+tt(e+"")+"px"}function kb(t,e){var r=t.color||$.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||$.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+tt(n+"")+"px;color:"+tt(r)+";font-weight:"+tt(i+""),valueStyle:"font-size:"+tt(o+"")+"px;color:"+tt(a)+";font-weight:"+tt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var OP=[0,10,20,30],RP=["",`
|
|
13
|
+
`));for(var m=Vr(u),g=0;g<f.length;g++){var y=f[g],_=new jM;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Hr(m,y),!g&&!l){var x=(s[s.length-1]||(s[0]=new z_)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new z_([_]))}}function ZM(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var QM=Dt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function JM(t){return ZM(t)?!!QM[t]:!0}function X_(t,e,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,c=Vr(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
|
|
14
|
+
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=Dd(c,h.charCodeAt(0)),v=n?!1:!JM(h);if(a.length?f+d>r:i+f+d>r){f?(s||u)&&(v?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=h,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(u),o.push(l),u=h,l=d):(a.push(h),o.push(d));continue}f+=d,v?(u+=h,l+=d):(u&&(s+=u,u="",l=0),s+=h)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Fd(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;re.set(U_,ai(r,o,i),On(n,s,a),o,s),re.intersect(e,U_,null,V_);var u=V_.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=ai(u.x,u.width,i,!0),t.baseY=On(u.y,u.height,a,!0)}}var U_=new re(0,0,0,0),V_={outIntersectRect:{},clamp:!0};function Id(t){return t!=null?t+="":t=""}function q_(t){var e=Id(t.text),r=t.font,n=Hr(Vr(r),e),i=ta(r);return Ql(t,n,i,null)}function Ql(t,e,r,n){var i=new re(ai(t.x||0,e,t.textAlign),On(t.y||0,r,t.textBaseline),e,r),a=n??(Pd(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Pd(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var j_=xr,K_=5e-5;function na(t){return t>K_||t<-K_}var ia=[],bo=[],Ld=St(),Bd=Math.abs,Z_=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return eF(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return na(this.rotation)||na(this.x)||na(this.y)||na(this.scaleX-1)||na(this.scaleY-1)||na(this.skewX)||na(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(j_(n),this.invTransform=null);return}n=n||St(),r?this.getLocalTransform(n):j_(n),e&&(r?zr(n,e,n):qi(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||St(),lr(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ia);var n=ia[0]<0?-1:1,i=ia[1]<0?-1:1,a=((ia[0]-n)*r+n)/ia[0]||0,o=((ia[1]-i)*r+i)/ia[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||St(),zr(bo,e.invTransform,r),r=bo);var n=this.originX,i=this.originY;(n||i)&&(Ld[4]=n,Ld[5]=i,zr(bo,r,Ld),bo[4]-=n,bo[5]-=i,r=bo),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&et(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&et(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Bd(e[0]-1)>1e-10&&Bd(e[3]-1)>1e-10?Math.sqrt(Bd(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){oi(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,u=e.anchorY,l=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||u){var d=n+s,v=i+u;r[4]=-d*a-p*v*o,r[5]=-v*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,l&&ji(r,r,l),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),eF=Z_.getLocalTransform;var Eo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function oi(t,e){return fd(t,e,Eo)}var wo=Z_;var Jl={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Jl.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Jl.bounceIn(t*2)*.5:Jl.bounceOut(t*2-1)*.5+.5}},ef=Jl;var tf=Math.pow,ui=Math.sqrt,nf=1e-8,J_=1e-4,Q_=ui(3),rf=1/3,on=Ln(),wr=Ln(),Co=Ln();function si(t){return t>-nf&&t<nf}function ex(t){return t>nf||t<-nf}function Ve(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function Od(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function aa(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),u=3*(e-t),l=t-i,f=s*s-3*o*u,c=s*u-9*o*l,p=u*u-3*s*l,h=0;if(si(f)&&si(c))if(si(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[h++]=d)}else{var v=c*c-4*f*p;if(si(v)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g)}else if(v>0){var y=ui(v),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-tf(-_,rf):_=tf(_,rf),x<0?x=-tf(-x,rf):x=tf(x,rf);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var S=(2*f*s-3*o*c)/(2*ui(f*f*f)),b=Math.acos(S)/3,E=ui(f),D=Math.cos(b),d=(-s-2*E*D)/(3*o),g=(-s+E*(D+Q_*Math.sin(b)))/(3*o),A=(-s+E*(D-Q_*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[h++]=d),g>=0&&g<=1&&(a[h++]=g),A>=0&&A<=1&&(a[h++]=A)}}return h}function af(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,u=0;if(si(o)){if(ex(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(si(f))i[0]=-a/(2*o);else if(f>0){var c=ui(f),l=(-a+c)/(2*o),p=(-a-c)/(2*o);l>=0&&l<=1&&(i[u++]=l),p>=0&&p<=1&&(i[u++]=p)}}return u}function Do(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,c=(f-l)*i+l;a[0]=t,a[1]=o,a[2]=l,a[3]=c,a[4]=c,a[5]=f,a[6]=u,a[7]=n}function tx(t,e,r,n,i,a,o,s,u,l,f){var c,p=.005,h=1/0,d,v,m,g;on[0]=u,on[1]=l;for(var y=0;y<1;y+=.05)wr[0]=Ve(t,r,i,o,y),wr[1]=Ve(e,n,a,s,y),m=ii(on,wr),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<J_);_++)d=c-p,v=c+p,wr[0]=Ve(t,r,i,o,d),wr[1]=Ve(e,n,a,s,d),m=ii(wr,on),d>=0&&m<h?(c=d,h=m):(Co[0]=Ve(t,r,i,o,v),Co[1]=Ve(e,n,a,s,v),g=ii(Co,on),v<=1&&g<h?(c=v,h=g):p*=.5);return f&&(f[0]=Ve(t,r,i,o,c),f[1]=Ve(e,n,a,s,c)),ui(h)}function rx(t,e,r,n,i,a,o,s,u){for(var l=t,f=e,c=0,p=1/u,h=1;h<=u;h++){var d=h*p,v=Ve(t,r,i,o,d),m=Ve(e,n,a,s,d),g=v-l,y=m-f;c+=Math.sqrt(g*g+y*y),l=v,f=m}return c}function ft(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Rd(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function nx(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,u=0;if(si(a)){if(ex(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(si(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var c=ui(f),l=(-o+c)/(2*a),p=(-o-c)/(2*a);l>=0&&l<=1&&(i[u++]=l),p>=0&&p<=1&&(i[u++]=p)}}return u}function of(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Ao(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function ix(t,e,r,n,i,a,o,s,u){var l,f=.005,c=1/0;on[0]=o,on[1]=s;for(var p=0;p<1;p+=.05){wr[0]=ft(t,r,i,p),wr[1]=ft(e,n,a,p);var h=ii(on,wr);h<c&&(l=p,c=h)}c=1/0;for(var d=0;d<32&&!(f<J_);d++){var v=l-f,m=l+f;wr[0]=ft(t,r,i,v),wr[1]=ft(e,n,a,v);var h=ii(wr,on);if(v>=0&&h<c)l=v,c=h;else{Co[0]=ft(t,r,i,m),Co[1]=ft(e,n,a,m);var g=ii(Co,on);m<=1&&g<c?(l=m,c=g):f*=.5}}return u&&(u[0]=ft(t,r,i,l),u[1]=ft(e,n,a,l)),ui(c)}function ax(t,e,r,n,i,a,o){for(var s=t,u=e,l=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=ft(t,r,i,p),d=ft(e,n,a,p),v=h-s,m=d-u;l+=Math.sqrt(v*v+m*m),s=h,u=d}return l}var tF=/cubic-bezier\(([0-9,\.e ]+)\)/;function To(t){var e=t&&tF.exec(t);if(e){var r=e[1].split(","),n=+dt(r[0]),i=+dt(r[1]),a=+dt(r[2]),o=+dt(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:aa(0,n,a,1,u,s)&&Ve(0,i,o,1,s[0])}}}var rF=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Be,this.ondestroy=e.ondestroy||Be,this.onrestart=e.onrestart||Be,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-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=e-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Y(e)?e:ef[e]||To(e)},t})(),ox=rF;var ff={};jt(ff,{fastLerp:()=>fx,fastMapToColor:()=>oF,lerp:()=>lf,lift:()=>Vd,liftColor:()=>Io,lum:()=>oa,mapToColor:()=>sF,modifyAlpha:()=>uF,modifyHSL:()=>Fo,parse:()=>vt,parseCssFloat:()=>fi,parseCssInt:()=>uf,random:()=>lF,stringify:()=>sn,toHex:()=>aF});var sx={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 Gr(t){return t=Math.round(t),t<0?0:t>255?255:t}function nF(t){return t=Math.round(t),t<0?0:t>360?360:t}function ou(t){return t<0?0:t>1?1:t}function uf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Gr(parseFloat(e)/100*255):Gr(parseInt(e,10))}function fi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ou(parseFloat(e)/100):ou(parseFloat(e))}function kd(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function li(t,e,r){return t+(e-t)*r}function Cr(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function zd(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var lx=new an(20),sf=null;function Mo(t,e){sf&&zd(sf,e),sf=lx.put(t,sf||e.slice())}function vt(t,e){if(t){e=e||[];var r=lx.get(t);if(r)return zd(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in sx)return zd(e,sx[n]),Mo(t,e),e;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)){Cr(e,0,0,0,1);return}return Cr(e,(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),Mo(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Cr(e,0,0,0,1);return}return Cr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Mo(t,e),e}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?Cr(e,+l[0],+l[1],+l[2],1):Cr(e,0,0,0,1);f=fi(l.pop());case"rgb":if(l.length>=3)return Cr(e,uf(l[0]),uf(l[1]),uf(l[2]),l.length===3?f:fi(l[3])),Mo(t,e),e;Cr(e,0,0,0,1);return;case"hsla":if(l.length!==4){Cr(e,0,0,0,1);return}return l[3]=fi(l[3]),Ud(l,e),Mo(t,e),e;case"hsl":if(l.length!==3){Cr(e,0,0,0,1);return}return Ud(l,e),Mo(t,e),e;default:return}}Cr(e,0,0,0,1)}}function Ud(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=fi(t[1]),i=fi(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Cr(e,Gr(kd(o,a,r+1/3)*255),Gr(kd(o,a,r)*255),Gr(kd(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function iF(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-n)/6+o/2)/o;e===a?u=p-c:r===a?u=1/3+f-p:n===a&&(u=2/3+c-f),u<0&&(u+=1),u>1&&(u-=1)}var h=[u*360,l,s];return t[3]!=null&&h.push(t[3]),h}}function Vd(t,e){var r=vt(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return sn(r,r.length===4?"rgba":"rgb")}}function aF(t){var e=vt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function fx(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],u=n-i;return r[0]=Gr(li(o[0],s[0],u)),r[1]=Gr(li(o[1],s[1],u)),r[2]=Gr(li(o[2],s[2],u)),r[3]=ou(li(o[3],s[3],u)),r}}var oF=fx;function lf(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=vt(e[i]),s=vt(e[a]),u=n-i,l=sn([Gr(li(o[0],s[0],u)),Gr(li(o[1],s[1],u)),Gr(li(o[2],s[2],u)),ou(li(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}var sF=lf;function Fo(t,e,r,n){var i=vt(t);if(t)return i=iF(i),e!=null&&(i[0]=nF(Y(e)?e(i[0]):e)),r!=null&&(i[1]=fi(Y(r)?r(i[1]):r)),n!=null&&(i[2]=fi(Y(n)?n(i[2]):n)),sn(Ud(i),"rgba")}function uF(t,e){var r=vt(t);if(r&&e!=null)return r[3]=ou(e),sn(r,"rgba")}function sn(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function oa(t,e){var r=vt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function lF(){return sn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var ux=new an(100);function Io(t){if(U(t)){var e=ux.get(t);return e||(e=Vd(t,-.1),ux.put(t,e)),e}else if(Gi(t)){var r=N({},t);return r.colorStops=z(t.colorStops,function(n){return{offset:n.offset,color:Vd(n.color,-.1)}}),r}return t}var pf=Math.round;function ci(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=vt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var cx=1e-4;function un(t){return t<cx&&t>-cx}function cf(t){return pf(t*1e3)/1e3}function hf(t){return pf(t*1e4)/1e4}function px(t){return"matrix("+cf(t[0])+","+cf(t[1])+","+cf(t[2])+","+cf(t[3])+","+hf(t[4])+","+hf(t[5])+")"}var hx={left:"start",right:"end",center:"middle",middle:"middle"};function dx(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function vx(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function mx(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Hd(t){return t&&!!t.image}function fF(t){return t&&!!t.svgElement}function su(t){return Hd(t)||fF(t)}function df(t){return t.type==="linear"}function vf(t){return t.type==="radial"}function mf(t){return t&&(t.type==="linear"||t.type==="radial")}function uu(t){return"url(#"+t+")"}function gf(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function yf(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Yi,i=X(t.scaleX,1),a=X(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,u=[];return(e||r)&&u.push("translate("+e+"px,"+r+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+pf(o*Yi)+"deg, "+pf(s*Yi)+"deg)"),u.join(" ")}var gx=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var Wd=Array.prototype.slice;function Rn(t,e,r){return(e-t)*r+t}function Gd(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Rn(e[a],r[a],n);return t}function cF(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Rn(e[o][s],r[o][s],n)}return t}function _f(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function yx(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function pF(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,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 hF(t,e,r){var n=t,i=e;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]:Wd.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 cu(t){if(Je(t)){var e=t.length;if(Je(t[0])){for(var r=[],n=0;n<e;n++)r.push(Wd.call(t[n]));return r}return Wd.call(t)}return t}function bf(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function dF(t){return Je(t&&t[0])?2:1}var xf=0,Ef=1,Sx=2,fu=3,$d=4,Yd=5,_x=6;function xx(t){return t===$d||t===Yd}function Sf(t){return t===Ef||t===Sx}var lu=[0,0,0,0],vF=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_x,u=r;if(Je(r)){var l=dF(r);s=l,(l===1&&!ie(r[0])||l===2&&!ie(r[0][0]))&&(o=!0)}else if(ie(r)&&!Fn(r))s=xf;else if(U(r))if(!isNaN(+r))s=xf;else{var f=vt(r);f&&(u=f,s=fu)}else if(Gi(r)){var c=N({},u);c.colorStops=z(r.colorStops,function(h){return{offset:h.offset,color:vt(h.color)}}),df(r)?s=$d:vf(r)&&(s=Yd),u=c}a===0?this.valType=s:(s!==this.valType||s===_x)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:u,rawValue:r,percent:0};return n&&(p.easing=n,p.easingFunc=Y(n)?n:ef[n]||To(n)),i.push(p),p},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,m){return v.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Sf(i),l=xx(i),f=0;f<a;f++){var c=n[f],p=c.value,h=o.value;c.percent=c.time/e,s||(u&&f!==a-1?hF(p,h,i):l&&pF(p.colorStops,h.colorStops))}if(!s&&i!==Yd&&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===xf?n[f].additiveValue=n[f].value-d:i===fu?n[f].additiveValue=_f([],n[f].value,d,-1):Sf(i)&&(n[f].additiveValue=i===Ef?_f([],n[f].value,d,-1):yx([],n[f].value,d,-1))}},t.prototype.step=function(e,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===fu,f,c=this._lastFr,p=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var v=p(c+1,s-1);for(f=v;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:l?lu:e[u];if((Sf(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)e[u]=g<1?h.rawValue:d.rawValue;else if(Sf(a))a===Ef?Gd(y,h[i],d[i],g):cF(y,h[i],d[i],g);else if(xx(a)){var _=h[i],x=d[i],S=a===$d;e[u]={type:S?"linear":"radial",x:Rn(_.x,x.x,g),y:Rn(_.y,x.y,g),colorStops:z(_.colorStops,function(E,D){var A=x.colorStops[D];return{offset:Rn(E.offset,A.offset,g),color:bf(Gd([],E.color,A.color,g))}}),global:x.global},S?(e[u].x2=Rn(_.x2,x.x2,g),e[u].y2=Rn(_.y2,x.y2,g)):e[u].r=Rn(_.r,x.r,g)}else if(l)Gd(y,h[i],d[i],g),n||(e[u]=bf(y));else{var b=Rn(h[i],d[i],g);n?this._additiveValue=b:e[u]=b}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===xf?e[n]=e[n]+i:r===fu?(vt(e[n],lu),_f(lu,lu,i,1),e[n]=bf(lu)):r===Ef?_f(e[n],e[n],i,1):r===Sx&&yx(e[n],e[n],i,1)},t})(),mF=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){js("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ne(r),n)},t.prototype.whenWithKeys=function(e,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 vF(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];l=p&&p.value,f.valType===fu&&l&&(l=bf(l))}else l=this._target[s];if(l==null)continue;e>0&&u.addKeyframe(0,cu(l),i),this._trackKeys.push(s)}u.addKeyframe(e,cu(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){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 c=l[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var p=new ox({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return z(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[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},t.prototype.saveTo=function(e,r,n){if(e){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&&(e[a]=cu(u.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ne(e);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,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),pu=mF;var gF=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[e].length-1,f=a[e][l];return f&&f.callAtLast?a[e].splice(l,0,u):a[e].push(u),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],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(e,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(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],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(e,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(e),this},t})(),Nt=gF;var bx=1;ce.hasGlobalWindow&&(bx=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Xd=bx,hu=.4,du="#333",vu="#ccc",Ex="#eee";var At=1,sa=2,pi=4;var qd="__zr_normal__",jd=Eo.concat(["ignore"]),yF=Dt(Eo,function(t,e){return t[e]=!0,t},{ignore:!1}),Po={},_F=new re(0,0,0,0),wf=[],Cf=0,Lo=1,Qd=(function(){function t(e){this.id=qs(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){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;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,p=void 0;if((c||f)&&(p=_F,n.layoutRect?p.copy(n.layoutRect):p.copy(this.getBoundingRect()),i||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Po,n,p):ra(Po,n,p),a.x=Po.x,a.y=Po.y,o=Po.align,s=Po.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,v=void 0;h==="center"?(d=p.width*.5,v=p.height*.5):(d=Ur(h[0],p.width),v=Ur(h[1],p.height)),l=!0,a.originX=-a.x+d+(i?0:p.x),a.originY=-a.y+v+(i?0:p.y)}}n.rotation!=null&&(a.rotation=n.rotation);var m=n.offset;m&&(a.x+=m[0],a.y+=m[1],l||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new re(0,0,0,0);a.getLocalTransform(wf),lr(wf,wf),re.copy(y,p),y.applyTransform(wf)}else g.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,x=void 0,S=void 0,b=void 0;_&&this.canBeInsideText()?(x=n.insideFill,S=n.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=n.outsideFill,S=n.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(u=!0,g.fill=x,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=At,u&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?vu:du},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&vt(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,sn(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},N(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(W(e))for(var n=e,i=ne(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);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!==qd)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,jd)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(qd,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===qd,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(ue(s,e)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!a){js("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=this._textContent,c=Cx(this,f,l,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,l,this._normalState,r,Ax(this,n,u),u);var p=this._textGuide;return f&&f.useState(e,r,n,!!c),p&&p.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Cf,this.__dirty&=~At),l}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(e[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=e[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,e)),f||(f=this.states[l]),f&&i.push(f)}var c=i[o-1],p=this._textContent,h=Cx(this,p,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Ax(this,r,v),v);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Cf,this.__dirty&=~At)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ue(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=ue(i,e),o=ue(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];N(r,a),a.textConfig&&(n=n||{},N(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==Lo){var s=!(r&&i);r&&r.textConfig?(this.textConfig=N({},i?this.textConfig:n.textConfig),N(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<jd.length;f++){var c=jd[f],p=a&&yF[c];r&&r[c]!=null?p?(l=!0,u[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(p?(l=!0,u[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(e,u,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new wo,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=At;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new pu(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ue(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){Kd(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Kd(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Kd(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Cf,e.__dirty=At;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,u){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];l(this,f)}return this[o]},set:function(f){this[s]=f[0],this[u]=f[1],this[o]=f,l(this,f)}});function l(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[u]},set:function(p){f[u]=p}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),t})();nt(Qd,Nt);nt(Qd,wo);function Kd(t,e,r,n,i){r=r||{};var a=[];Tx(t,"",t,e,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())},c=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,v){r.during(v)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Zd(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function xF(t){return Je(t[0])}function SF(t,e,r){if(Je(e[r]))if(Je(t[r])||(t[r]=[]),$e(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Zd(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(xF(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?Zd(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else Zd(a,i,o);a.length=i.length}else t[r]=e[r]}function bF(t,e){return t===e||Je(t)&&Je(e)&&EF(t,e)}function EF(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Tx(t,e,r,n,i,a,o,s){for(var u=ne(n),l=i.duration,f=i.delay,c=i.additive,p=i.setToFinal,h=!W(a),d=t.animators,v=[],m=0;m<u.length;m++){var g=u[m],y=n[g];if(y!=null&&r[g]!=null&&(h||a[g]))if(W(y)&&!Je(y)&&!Gi(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}Tx(t,g,r[g],y,i,a&&a[g],o,s)}else v.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),v.push(g))}var _=v.length;if(!c&&_)for(var x=0;x<d.length;x++){var S=d[x];if(S.targetName===e){var b=S.stopTracks(v);if(b){var E=ue(d,S);d.splice(E,1)}}}if(i.force||(v=Fe(v,function(T){return!bF(n[T],r[T])}),_=v.length),_>0||i.force&&!o.length){var D=void 0,A=void 0,C=void 0;if(s){A={},p&&(D={});for(var x=0;x<_;x++){var g=v[x];A[g]=r[g],p?D[g]=n[g]:r[g]=n[g]}}else if(p){C={};for(var x=0;x<_;x++){var g=v[x];C[g]=cu(r[g]),SF(r,n,g)}}var S=new pu(r,!1,!1,c?Fe(d,function(F){return F.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),p&&D&&S.whenWithKeys(0,D,v),C&&S.whenWithKeys(0,C,v),S.whenWithKeys(l??500,s?A:n,v).delay(f||0),t.addAnimator(S,e),o.push(S)}}function Cx(t,e,r,n){return!(r&&r.hoverLayer||n)||Dx(t)||e&&Dx(e)?Cf:Lo}function Dx(t){return t.type==="text"||t.type==="tspan"}function Ax(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Df=Qd;var tv="__zr_style_"+Math.round(Math.random()*10),ln={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ua={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ln[tv]=!0;var Mx=["z","z2","invisible"],wF=["invisible"],CF=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=ne(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&DF(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){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},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.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 re(0,0,0,0)),n?re.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},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new re(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:N(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=sa,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&sa)},e.prototype.styleUpdated=function(){this.__dirty&=~sa},e.prototype.createStyle=function(r){return In(ln,r)},e.prototype.useStyle=function(r){r[tv]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[tv]},e.prototype._innerSaveToNormal=function(r){t.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,Mx)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l=this.__inHover===Lo,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):u&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var p=ne(c),h=0;h<p.length;h++){var d=p[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var v=ne(f),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else l?this._useHoverStyle(f):this.useStyle(f);if(!l)for(var m=this.__inHover?wF:Mx,h=0;h<m.length;h++){var d=m[h];n&&n[d]!=null?this[d]=n[d]:u&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.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},e.prototype._mergeStyle=function(r,n){return N(r,n),r},e.prototype.getAnimationStyleProps=function(){return ua},e.initDefaultProps=(function(){var r=e.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=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=At|sa})(),e})(Df),Jd=new re(0,0,0,0),ev=new re(0,0,0,0);function DF(t,e,r){return Jd.copy(t.getBoundingRect()),t.transform&&Jd.applyTransform(t.transform),ev.width=e,ev.height=r,!Jd.intersect(ev)}var fn=CF;var Dr=Math.min,Ar=Math.max,rv=Math.sin,nv=Math.cos,la=Math.PI*2,Af=Ln(),Tf=Ln(),Mf=Ln();function iv(t,e,r,n,i,a){i[0]=Dr(t,r),i[1]=Dr(e,n),a[0]=Ar(t,r),a[1]=Ar(e,n)}var Fx=[],Ix=[];function Px(t,e,r,n,i,a,o,s,u,l){var f=af,c=Ve,p=f(t,r,i,o,Fx);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var h=0;h<p;h++){var d=c(t,r,i,o,Fx[h]);u[0]=Dr(d,u[0]),l[0]=Ar(d,l[0])}p=f(e,n,a,s,Ix);for(var h=0;h<p;h++){var v=c(e,n,a,s,Ix[h]);u[1]=Dr(v,u[1]),l[1]=Ar(v,l[1])}u[0]=Dr(t,u[0]),l[0]=Ar(t,l[0]),u[0]=Dr(o,u[0]),l[0]=Ar(o,l[0]),u[1]=Dr(e,u[1]),l[1]=Ar(e,l[1]),u[1]=Dr(s,u[1]),l[1]=Ar(s,l[1])}function Lx(t,e,r,n,i,a,o,s){var u=of,l=ft,f=Ar(Dr(u(t,r,i),1),0),c=Ar(Dr(u(e,n,a),1),0),p=l(t,r,i,f),h=l(e,n,a,c);o[0]=Dr(t,i,p),o[1]=Dr(e,a,h),s[0]=Ar(t,i,p),s[1]=Ar(e,a,h)}function Bx(t,e,r,n,i,a,o,s,u){var l=Sr,f=br,c=Math.abs(i-a);if(c%la<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,u[0]=t+r,u[1]=e+n;return}if(Af[0]=nv(i)*r+t,Af[1]=rv(i)*n+e,Tf[0]=nv(a)*r+t,Tf[1]=rv(a)*n+e,l(s,Af,Tf),f(u,Af,Tf),i=i%la,i<0&&(i=i+la),a=a%la,a<0&&(a=a+la),i>a&&!o?a+=la:i<a&&o&&(i+=la),o){var p=a;a=i,i=p}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Mf[0]=nv(h)*r+t,Mf[1]=rv(h)*n+e,l(s,Mf,s),f(u,Mf,u))}var Te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fa=[],ca=[],cn=[],hi=[],pn=[],hn=[],av=Math.min,ov=Math.max,pa=Math.cos,ha=Math.sin,Nn=Math.abs,lv=Math.PI,di=lv*2,sv=typeof Float32Array<"u",mu=[];function uv(t){var e=Math.round(t/lv*1e8)/1e8;return e%2*lv}function gu(t,e){var r=uv(t[0]);r<0&&(r+=di);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=di?i=r+di:e&&r-i>=di?i=r-di:!e&&r>i?i=r+(di-uv(r-i)):e&&r<i&&(i=r-(di-uv(i-r))),t[0]=r,t[1]=i}var AF=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Nn(n/Xd/e)||0,this._uy=Nn(n/Xd/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Te.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Nn(e-this._xi),i=Nn(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Te.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Te.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Te.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),mu[0]=i,mu[1]=a,gu(mu,o),i=mu[0],a=mu[1];var s=a-i;return this.addData(Te.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=pa(a)*n+e,this._yi=ha(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Te.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Te.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&sv&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(sv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=e[a].data,s=0;s<u.length;s++)this.data[i++]=u[s];this._len=i}},t.prototype.addData=function(e,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 c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sv&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){cn[0]=cn[1]=pn[0]=pn[1]=Number.MAX_VALUE,hi[0]=hi[1]=hn[0]=hn[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],u=o===1;switch(u&&(r=e[o],n=e[o+1],i=r,a=n),s){case Te.M:r=i=e[o++],n=a=e[o++],pn[0]=i,pn[1]=a,hn[0]=i,hn[1]=a;break;case Te.L:iv(r,n,e[o],e[o+1],pn,hn),r=e[o++],n=e[o++];break;case Te.C:Px(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],pn,hn),r=e[o++],n=e[o++];break;case Te.Q:Lx(r,n,e[o++],e[o++],e[o],e[o+1],pn,hn),r=e[o++],n=e[o++];break;case Te.A:var l=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],d=e[o++]+h;o+=1;var v=!e[o++];u&&(i=pa(h)*c+l,a=ha(h)*p+f),Bx(l,f,c,p,h,d,v,pn,hn),r=pa(d)*c+l,n=ha(d)*p+f;break;case Te.R:i=r=e[o++],a=n=e[o++];var m=e[o++],g=e[o++];iv(i,a,i+m,a+g,pn,hn);break;case Te.Z:r=i,n=a;break}Sr(cn,cn,pn),br(hi,hi,hn)}return o===0&&(cn[0]=cn[1]=hi[0]=hi[1]=0),new re(cn[0],cn[1],hi[0]-cn[0],hi[1]-cn[1])},t.prototype._calculateLength=function(){var e=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,c=0,p=0;p<r;){var h=e[p++],d=p===1;d&&(a=e[p],o=e[p+1],s=a,u=o);var v=-1;switch(h){case Te.M:a=s=e[p++],o=u=e[p++];break;case Te.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(Nn(y)>n||Nn(_)>i||p===r-1)&&(v=Math.sqrt(y*y+_*_),a=m,o=g);break}case Te.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],E=e[p++];v=rx(a,o,x,S,m,g,b,E,10),a=b,o=E;break}case Te.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];v=ax(a,o,x,S,m,g,10),a=m,o=g;break}case Te.A:var D=e[p++],A=e[p++],C=e[p++],T=e[p++],F=e[p++],M=e[p++],I=M+F;p+=1,d&&(s=pa(F)*C+D,u=ha(F)*T+A),v=ov(C,T)*av(di,Math.abs(M)),a=pa(I)*C+D,o=ha(I)*T+A;break;case Te.R:{s=a=e[p++],u=o=e[p++];var L=e[p++],B=e[p++];v=L*2+B*2;break}case Te.Z:{var y=s-a,_=u-o;v=Math.sqrt(y*y+_*_),a=s,o=u;break}}v>=0&&(l[c++]=v,f+=v)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,c,p,h=r<1,d,v,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b<o;){var E=n[b++],D=b===1;switch(D&&(l=n[b],f=n[b+1],s=l,u=f),E!==Te.L&&_>0&&(e.lineTo(x,S),_=0),E){case Te.M:s=l=n[b++],u=f=n[b++],e.moveTo(l,f);break;case Te.L:{c=n[b++],p=n[b++];var A=Nn(c-l),C=Nn(p-f);if(A>i||C>a){if(h){var T=d[g++];if(m+T>y){var F=(y-m)/T;e.lineTo(l*(1-F)+c*F,f*(1-F)+p*F);break e}m+=T}e.lineTo(c,p),l=c,f=p,_=0}else{var M=A*A+C*C;M>_&&(x=c,S=p,_=M)}break}case Te.C:{var I=n[b++],L=n[b++],B=n[b++],R=n[b++],O=n[b++],V=n[b++];if(h){var T=d[g++];if(m+T>y){var F=(y-m)/T;Do(l,I,B,O,F,fa),Do(f,L,R,V,F,ca),e.bezierCurveTo(fa[1],ca[1],fa[2],ca[2],fa[3],ca[3]);break e}m+=T}e.bezierCurveTo(I,L,B,R,O,V),l=O,f=V;break}case Te.Q:{var I=n[b++],L=n[b++],B=n[b++],R=n[b++];if(h){var T=d[g++];if(m+T>y){var F=(y-m)/T;Ao(l,I,B,F,fa),Ao(f,L,R,F,ca),e.quadraticCurveTo(fa[1],ca[1],fa[2],ca[2]);break e}m+=T}e.quadraticCurveTo(I,L,B,R),l=B,f=R;break}case Te.A:var G=n[b++],H=n[b++],q=n[b++],Q=n[b++],j=n[b++],oe=n[b++],ge=n[b++],Xe=!n[b++],We=q>Q?q:Q,De=Nn(q-Q)>.001,Le=j+oe,he=!1;if(h){var T=d[g++];m+T>y&&(Le=j+oe*(y-m)/T,he=!0),m+=T}if(De&&e.ellipse?e.ellipse(G,H,q,Q,ge,j,Le,Xe):e.arc(G,H,We,j,Le,Xe),he)break e;D&&(s=pa(j)*q+G,u=ha(j)*Q+H),l=pa(Le)*q+G,f=ha(Le)*Q+H;break;case Te.R:s=l=n[b],u=f=n[b+1],c=n[b++],p=n[b++];var Se=n[b++],Xt=n[b++];if(h){var T=d[g++];if(m+T>y){var qe=y-m;e.moveTo(c,p),e.lineTo(c+av(qe,Se),p),qe-=Se,qe>0&&e.lineTo(c+Se,p+av(qe,Xt)),qe-=Xt,qe>0&&e.lineTo(c+ov(Se-qe,0),p+Xt),qe-=Se,qe>0&&e.lineTo(c,p+ov(Xt-qe,0));break e}m+=T}e.rect(c,p,Se,Xt);break;case Te.Z:if(h){var T=d[g++];if(m+T>y){var F=(y-m)/T;e.lineTo(l*(1-F)+s*F,f*(1-F)+u*F);break e}m+=T}e.closePath(),l=s,f=u}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Te,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),bt=AF;function da(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)u=(e-n)/(t-r),l=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=u*a-o+l,c=f*f/(u*u+1);return c<=s/2*s/2}function Ox(t,e,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var c=u;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||l>t+c&&l>r+c&&l>i+c&&l>o+c||l<t-c&&l<r-c&&l<i-c&&l<o-c)return!1;var p=tx(t,e,r,n,i,a,o,s,l,f,null);return p<=c/2}function Rx(t,e,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>e+l&&u>n+l&&u>a+l||u<e-l&&u<n-l&&u<a-l||s>t+l&&s>r+l&&s>i+l||s<t-l&&s<r-l&&s<i-l)return!1;var f=ix(t,e,r,n,i,a,s,u,null);return f<=l/2}var Nx=Math.PI*2;function yu(t){return t%=Nx,t<0&&(t+=Nx),t}var _u=Math.PI*2;function kx(t,e,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=t,u-=e;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-i)%_u<1e-4)return!0;if(a){var c=n;n=yu(i),i=yu(c)}else n=yu(n),i=yu(i);n>i&&(i+=_u);var p=Math.atan2(u,s);return p<0&&(p+=_u),p>=n&&p<=i||p+_u>=n&&p+_u<=i}function Tr(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var u=o*(r-t)+t;return u===i?1/0:u>i?s:0}var vi=bt.CMD,va=Math.PI*2,PF=1e-4;function LF(t,e){return Math.abs(t-e)<PF}var kt=[-1,-1,-1],Mr=[-1,-1];function BF(){var t=Mr[0];Mr[0]=Mr[1],Mr[1]=t}function OF(t,e,r,n,i,a,o,s,u,l){if(l>e&&l>n&&l>a&&l>s||l<e&&l<n&&l<a&&l<s)return 0;var f=aa(e,n,a,s,l,kt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,d=void 0,v=0;v<f;v++){var m=kt[v],g=m===0||m===1?.5:1,y=Ve(t,r,i,o,m);y<u||(p<0&&(p=af(e,n,a,s,Mr),Mr[1]<Mr[0]&&p>1&&BF(),h=Ve(e,n,a,s,Mr[0]),p>1&&(d=Ve(e,n,a,s,Mr[1]))),p===2?m<Mr[0]?c+=h<e?g:-g:m<Mr[1]?c+=d<h?g:-g:c+=s<d?g:-g:m<Mr[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function RF(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var u=nx(e,n,a,s,kt);if(u===0)return 0;var l=of(e,n,a);if(l>=0&&l<=1){for(var f=0,c=ft(e,n,a,l),p=0;p<u;p++){var h=kt[p]===0||kt[p]===1?.5:1,d=ft(t,r,i,kt[p]);d<o||(kt[p]<l?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=kt[0]===0||kt[0]===1?.5:1,d=ft(t,r,i,kt[0]);return d<o?0:a<e?h:-h}}function NF(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);kt[0]=-u,kt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=va-1e-4){n=0,i=va;var f=a?1:-1;return o>=kt[0]+t&&o<=kt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=va,i+=va);for(var p=0,h=0;h<2;h++){var d=kt[h];if(d+t>o){var v=Math.atan2(s,d),f=a?1:-1;v<0&&(v=va+v),(v>=n&&v<=i||v+va>=n&&v+va<=i)&&(v>Math.PI/2&&v<Math.PI*1.5&&(f=-f),p+=f)}}return p}function zx(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,u=0,l=0,f=0,c=0,p,h,d=0;d<o;){var v=a[d++],m=d===1;switch(v===vi.M&&d>1&&(r||(s+=Tr(u,l,f,c,n,i))),m&&(u=a[d],l=a[d+1],f=u,c=l),v){case vi.M:f=a[d++],c=a[d++],u=f,l=c;break;case vi.L:if(r){if(da(u,l,a[d],a[d+1],e,n,i))return!0}else s+=Tr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case vi.C:if(r){if(Ox(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=OF(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 vi.Q:if(r){if(Rx(u,l,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=RF(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case vi.A:var g=a[d++],y=a[d++],_=a[d++],x=a[d++],S=a[d++],b=a[d++];d+=1;var E=!!(1-a[d++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=Tr(u,l,p,h,n,i);var D=(n-g)*x/_+g;if(r){if(kx(g,y,x,S,S+b,E,e,D,i))return!0}else s+=NF(g,y,x,S,S+b,E,D,i);u=Math.cos(S+b)*_+g,l=Math.sin(S+b)*x+y;break;case vi.R:f=u=a[d++],c=l=a[d++];var A=a[d++],C=a[d++];if(p=f+A,h=c+C,r){if(da(f,c,p,c,e,n,i)||da(p,c,p,h,e,n,i)||da(p,h,f,h,e,n,i)||da(f,h,f,c,e,n,i))return!0}else s+=Tr(p,c,p,h,n,i),s+=Tr(f,h,f,c,n,i);break;case vi.Z:if(r){if(da(u,l,f,c,e,n,i))return!0}else s+=Tr(u,l,f,c,n,i);u=f,l=c;break}}return!r&&!LF(l,c)&&(s+=Tr(u,l,f,c,n,i)||0),s!==0}function Ux(t,e,r){return zx(t,0,!1,e,r)}function Vx(t,e,r,n){return zx(t,e,!0,r,n)}var Bo=ee({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ln),zF={style:ee({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ua.style)},fv=Eo.concat(["invisible","culling","z","z2","zlevel","parent"]),UF=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.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<fv.length;++s)i[fv[s]]=this[fv[s]];i.__dirty|=At}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=ne(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?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(U(r)){var n=oa(r,0);return n>.5?du:n>.2?Ex:vu}else if(r)return vu}return du},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(U(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=oa(r,0)<hu;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~pi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new bt(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.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&pi)&&(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},e.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)),Vx(s,u/l,r,n)))return!0}if(this.hasFill())return Ux(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=pi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:N(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&pi)},e.prototype.createStyle=function(r){return In(Bo,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=N({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==Lo){var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=N({},i.shape),N(l,n.shape)):(l=N({},a?this.shape:i.shape),N(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=N({},this.shape);for(var f={},c=ne(l),p=0;p<c.length;p++){var h=c[p];typeof l[h]=="object"?this.shape[h]=l[h]:f[h]=l[h]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.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},e.prototype.getAnimationStyleProps=function(){return zF},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){P(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 J(r.style)},o.prototype.getDefaultShape=function(){return J(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=At|sa|pi})(),e})(fn),ae=UF;var VF=ee({strokeFirst:!0,font:Kt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Bo),Hx=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Pd(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return In(VF,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=q_(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(fn);Hx.prototype.type="tspan";var ma=Hx;var HF=ee({x:0,y:0},ln),GF={style:ee({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ua.style)};function WF(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Gx=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return In(HF,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=WF(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},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return GF},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new re(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(fn);Gx.prototype.type="image";var je=Gx;function Wx(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.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 c;s+u>i&&(c=s+u,s*=i/c,u*=i/c),l+f>i&&(c=l+f,l*=i/c,f*=i/c),u+l>a&&(c=u+l,u*=a/c,l*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-u,n),u!==0&&t.arc(r+i-u,n+u,u,-Math.PI/2,0),t.lineTo(r+i,n+a-l),l!==0&&t.arc(r+i-l,n+a-l,l,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Oo=Math.round;function Ff(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Oo(n*2)===Oo(i*2)&&(t.x1=t.x2=mi(n,s,!0)),Oo(a*2)===Oo(o*2)&&(t.y1=t.y2=mi(a,s,!0))),t}}function If(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=mi(n,s,!0),t.y=mi(i,s,!0),t.width=Math.max(mi(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(mi(i+o,s,!1)-t.y,o===0?0:1)),t}}function mi(t,e,r){if(!e)return t;var n=Oo(t*2);return(n+Oo(e))%2===0?n/2:(n+(r?1:-1))/2}var XF=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var qF={},$x=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XF},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=If(qF,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?Wx(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ae);$x.prototype.type="rect";var Ee=$x;var Yx={fill:"#000"},Xx=2,dn={},jF={style:ee({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},ua.style)},tS=(function(t){P(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Yx,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.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}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,QF(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new re(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},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Yx},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return N(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=ne(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},N(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return jF},e.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},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Kt,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";Fd(dn,a.overflowRect,o,s,u,l),o=dn.baseX,s=dn.baseY;var f=eS(r),c=$_(f,r,dn.outerWidth,dn.outerHeight),p=cv(r),h=!!r.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=On(s,c.contentHeight,l);if(p||i){var x=ai(o,v,u),S=On(s,d,l);p&&this._renderBackground(r,r,x,S,v,d)}_+=g/2,i&&(y=Jx(o,u,i),l==="top"?_+=i[0]:l==="bottom"&&(_-=i[2]));for(var b=0,E=!1,D=!1,A=Qx("fill"in r?r.fill:(D=!0,a.fill)),C=Zx("stroke"in r?r.stroke:!h&&(!a.autoStroke||D)?(b=Xx,E=!0,a.stroke):null),T=r.textShadowBlur>0,F=0;F<m.length;F++){var M=this._getOrCreateChild(ma),I=M.createStyle();M.useStyle(I),I.text=m[F],I.x=y,I.y=_,u&&(I.textAlign=u),I.textBaseline="middle",I.opacity=r.opacity,I.strokeFirst=!0,T&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||"transparent",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=C,I.fill=A,C&&(I.lineWidth=r.lineWidth||b,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=n,jx(I,r),_+=g,M.setBoundingRect(Ql(I,c.contentWidth,c.calculatedLineHeight,E?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Fd(dn,n.overflowRect,o,s,i,a),o=dn.baseX,s=dn.baseY;var u=eS(r),l=Y_(u,r,dn.outerWidth,dn.outerHeight,i),f=l.width,c=l.outerWidth,p=l.outerHeight,h=r.padding;this.isTruncated=!!l.isTruncated;var d=ai(o,c,i),v=On(s,p,a),m=d,g=v;h&&(m+=h[3],g+=h[0]);var y=m+f;cv(r)&&this._renderBackground(r,r,d,v,c,p);for(var _=!!r.backgroundColor,x=0;x<l.lines.length;x++){for(var S=l.lines[x],b=S.tokens,E=b.length,D=S.lineHeight,A=S.width,C=0,T=m,F=y,M=E-1,I=void 0;C<E&&(I=b[C],!I.align||I.align==="left");)this._placeToken(I,r,D,g,T,"left",_),A-=I.width,T+=I.width,C++;for(;M>=0&&(I=b[M],I.align==="right");)this._placeToken(I,r,D,g,F,"right",_),A-=I.width,F-=I.width,M--;for(T+=(f-(T-m)-(y-F)-A)/2;C<=M;)I=b[C],this._placeToken(I,r,D,g,T+I.width/2,"center",_),T+=I.width,C++;g+=D}},e.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var p=!r.isLineHolder&&cv(l);p&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!l.backgroundColor,d=r.textPadding;d&&(o=Jx(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var v=this._getOrCreateChild(ma),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=Qx("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),b=Zx("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!u&&(!g.autoStroke||y)?(_=Xx,x=!0,g.stroke):null),E=l.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,E&&(m.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,m.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Kt,m.opacity=Zt(l.opacity,n.opacity,1),jx(m,l),b&&(m.lineWidth=Zt(l.lineWidth,n.lineWidth,_),m.lineDash=X(l.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),v.setBoundingRect(Ql(m,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,c=u&&u.image,p=u&&!c,h=r.borderRadius,d=this,v,m;if(p||r.lineHeight||l&&f){v=this._getOrCreateChild(Ee),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=h,v.dirtyShape()}if(p){var y=v.style;y.fill=u||null,y.fillOpacity=X(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(je),m.onload=function(){d.dirtyStyle()};var _=m.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var y=v.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=X(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(v||m).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Zt(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return hv(r)&&(n=[r.fontStyle,r.fontWeight,pv(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&dt(n)||r.textFont||r.font},e})(fn),KF={left:!0,right:1,center:1},ZF={top:1,bottom:1,middle:1},qx=["fontStyle","fontWeight","fontSize","fontFamily"];function pv(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Wl+"px":t+"px"}function jx(t,e){for(var r=0;r<qx.length;r++){var n=qx[r],i=e[n];i!=null&&(t[n]=i)}}function hv(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function QF(t){return Kx(t),w(t.rich,Kx),t}function Kx(t){if(t){t.font=tS.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||KF[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||ZF[r]?r:"top";var n=t.padding;n&&(t.padding=$i(t.padding))}}function Zx(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Qx(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Jx(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function eS(t){var e=t.text;return e!=null&&(e+=""),e}function cv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var be=tS;var rS=1e-4,Pf=20,nS=14;function JF(t){return t.replace(/^\s+|\s+$/g,"")}var He=Math.min,ve=Math.max,Oe=Math.abs,Jt=Math.round,Fr=Math.floor,yi=Math.ceil,_i=Math.pow,gi=Math.log,xu=Math.LN10,e2=Math.PI,t2=Math.random;function mt(t,e,r,n){var i=e[0],a=e[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(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/u*l+o}var te=r2;function r2(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Lf(t,e,r)}function Lf(t,e,r){return U(t)?n2(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function n2(t){return!!JF(t).match(/%$/)}function ye(t,e,r){return isNaN(e)?r?""+t:+t:(e=He(ve(0,e),Pf),t=(+t).toFixed(e),r?t:+t)}function iS(t,e,r){return e==null&&(e=10),ye(t,e,r)}function xi(t){return t.sort(function(e,r){return e-r}),t}function cr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Jt(t*e)/e===t)return r}return dv(t)}function dv(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return ve(0,o-n)}function aS(t,e){var r=Fr(gi(t[1]-t[0])/xu),n=Jt(gi(Oe(e[1]-e[0]))/xu),i=He(ve(-r+n,0),Pf);return isFinite(i)?i:Pf}function oS(t,e,r){var n=Oe(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=gi(2*Oe(r||1)*Oe(n))/xu,a=gi(Oe(e))/xu,o=ve(0,yi(-i+a));return isFinite(o)||(o=NaN),o}function sS(t,e,r){if(!t[e])return 0;var n=vv(t,r);return n[e]||0}function vv(t,e){var r=Dt(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=_i(10,e),i=z(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=z(i,function(h){return Fr(h)}),s=Dt(o,function(h,d){return h+d},0),u=z(i,function(h,d){return h-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,c=0,p=u.length;c<p;++c)u[c]>l&&(l=u[c],f=c);++o[f],u[f]=0,++s}return z(o,function(h){return h/n})}function uS(t,e){var r=ve(cr(t),cr(e)),n=t+e;return r>Pf?n:ye(n,r)}var Su=_i(2,53)-1;function bu(t){var e=e2*2;return(t%e+e)%e}function ga(t){return t>-rS&&t<rS}var i2=/^(?:(\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 zt(t){if(t instanceof Date)return t;if(U(t)){var e=i2.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Jt(t))}function Ro(t){return _i(10,No(t))}function No(t){if(t===0)return 0;var e=Fr(gi(t)/xu);return t/_i(10,e)>=10&&e++,e}var mv=2;function kn(t,e){var r=No(t),n=_i(10,r),i=t/n,a;return e===mv?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,ye(t,-r)}function lS(t,e){var r=(t.length-1)*e+1,n=Fr(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i}function fS(t){t.sort(function(u,l){return s(u,l,0)?-1:1});for(var e=-1/0,r=1,n=0;n<t.length;){for(var i=t[n].interval,a=t[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-r),e=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(n,1):n++}return t;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function Ir(t){var e=parseFloat(t);return e==t&&(e!==0||!U(t)||t.indexOf("x")<=0)?e:NaN}function Eu(t){return!isNaN(Ir(t))}function wu(){return Jt(t2()*9)}function cS(t,e){return e===0?t:cS(e,t%e)}function gv(t,e){return t==null?e:e==null?t:t*e/cS(t,e)}function it(t){return t!=null&&isFinite(t)}var a2="[ECharts] ",pS={},o2=typeof console<"u"&&console.warn&&console.log;function s2(t,e,r){if(o2){if(r){if(pS[e])return;pS[e]=!0}console[t](a2+e)}}function _v(t,e){s2("error",t,e)}function gt(t){throw new Error(t)}function hS(t,e,r){return(e-t)*r+t}var dS="series\0",u2="\0_ec_\0";function Ge(t){return t instanceof Array?t:t==null?[]:[t]}function ya(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var xv=["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 zn(t){return W(t)&&!k(t)&&!(t instanceof Date)?t.value:t}function vS(t){return W(t)&&!(t instanceof Array)}function mS(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=K();w(e,function(u,l){if(!W(u)){e[l]=null;return}});var s=l2(t,o,r);return(n||i)&&f2(s,t,o,e),n&&c2(s,e),n||i?p2(s,e,i):a&&h2(s,e),d2(s),s}function l2(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||ko(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function f2(t,e,r,n){w(n,function(i,a){if(!(!i||i.id==null)){var o=Cu(i.id),s=r.get(o);if(s!=null){var u=t[s];Ue(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=e[s],n[a]=null}}})}function c2(t,e){w(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!ko(r)&&!ko(a)&&gS("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function p2(t,e,r){w(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||ko(i.existing)||i.existing&&n.id!=null&&!gS("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function h2(t,e){w(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function d2(t){var e=K();w(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),w(t,function(r){var n=r.newOption;Ue(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),w(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(W(a)){if(o.name=a.name!=null?Cu(a.name):i?i.name:dS+n,i)o.id=Cu(i.id);else if(a.id!=null)o.id=Cu(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function gS(t,e,r){var n=pr(e[t],null),i=pr(r[t],null);return n!=null&&i!=null&&n===i}function Cu(t){return pr(t,"")}function pr(t,e){return t==null?e:U(t)?t:ie(t)||mo(t)?t+"":e}function zo(t){var e=t.name;return!!(e&&e.indexOf(dS))}function ko(t){return t&&t.id!=null&&Cu(t.id).indexOf(u2)===0}function yS(t,e,r){w(t,function(n){var i=n.newOption;W(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=v2(e,i,n.existing,r))})}function v2(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Pr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return k(e.dataIndex)?z(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return k(e.name)?z(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function le(){var t="__ec_inner_"+m2++;return function(e){return e[t]||(e[t]={})}}var m2=wu();function Bf(t,e,r){var n=Du(e,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 c=Si(t,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Du(t,e){var r;if(U(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=K(),a={},o=!1;return w(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],c=(l[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ue(e.includeMainTypes,f)<0)){o=o||!!f;var p=i.get(f)||i.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Et={useDefault:!0,enableAll:!1,enableNone:!1};function Si(t,e,r,n){n=n||Et;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=t.getComponent(e))?[u]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function _S(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function Sv(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function xS(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function SS(t){return t==="auto"?ce.domSupported?"html":"richText":t||"html"}function Of(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(ie(n)){var o=hS(r||0,n,i);return ye(o,a?Math.max(cr(r||0),cr(n)):e)}else{if(U(n))return i<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(i<1&&u?u:l)[c];else{var h=u&&u[c]?u[c]:0,d=l[c],o=hS(h,d,i);s[c]=ye(o,a?Math.max(cr(h),cr(d)):e)}}return s}}var W4=(function(){function t(){}return t.prototype.reset=function(e,r,n,i){return this._list=e,this._step=i=i||1,this._idx=r,this._end=n??(i>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function wt(){return[1/0,-1/0]}function Au(t,e){Wr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function bv(t,e){Wr(e)&&e<t[0]&&(t[0]=e)}function Ev(t,e){Wr(e)&&e>t[1]&&(t[1]=e)}function bS(t,e){Un(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Wr(t){return t!=null&&isFinite(t)}function Un(t,e){return Wr(t)&&Wr(e)&&t<=e}function ES(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function wS(t){Un(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Rf(){var t="__ec_once_"+g2++;return function(e,r){Ie(e,t)||(e[t]=1,r())}}var g2=wu();function Uo(t,e,r){var n=K(),i=0;w(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function CS(t){return t.value+""}function DS(t){return t+""}function Nf(t,e){return X(e,!0)?t.seriesIndex+2:0}function kf(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Vo(t,e){return{seriesType:t,overallReset:e}}function Ho(t){return{overallReset:t}}var de=le(),Tu=function(t,e,r,n){if(n){var i=de(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=de(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var Ei="undefined",zf="series",Uf=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ct="original",at="arrayRows",Tt="objectRows",er="keyedColumns",hr="typedArray",wv="unknown",Ut="column",vn="row";var y2=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],_2=(function(){function t(e){w(y2,function(r){this[r]=fe(e[r],e)},this)}return t})();function AS(t,e){return e.mainType===zf?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Vf=_2;var TS=1,MS={},BS=le(),Av=le(),Tv=0,Mu=1,Fu=2,Vt=["emphasis","blur","select"],Wo=["normal","emphasis","blur","select"],x2=10,S2=9,wi="highlight",Iu="downplay",Pu="select",Gf="unselect",Lu="toggleSelect",Wf="selectchanged";function Go(t){return t!=null&&t!=="none"}function $f(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function OS(t){$f(t,"emphasis",Fu)}function RS(t){t.hoverState===Fu&&$f(t,"normal",Tv)}function Mv(t){$f(t,"blur",Mu)}function NS(t){t.hoverState===Mu&&$f(t,"normal",Tv)}function b2(t){t.selected=!0}function E2(t){t.selected=!1}function FS(t,e,r){e(t,r)}function Vn(t,e,r){FS(t,e,r),t.isGroup&&t.traverse(function(n){FS(n,e,r)})}function Fv(t,e){switch(e){case"emphasis":t.hoverState=Fu;break;case"normal":t.hoverState=Tv;break;case"blur":t.hoverState=Mu;break;case"select":t.selected=!0}}function w2(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],u=i[s];a[s]=u??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var l=t.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,e)}return a}function C2(t,e,r,n){var i=r&&ue(r,"select")>=0,a=!1;if(t instanceof ae){var o=BS(t),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Go(s)||Go(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=N({},n),l=N({},l),l.fill=s):!Go(l.fill)&&Go(s)?(a=!0,n=N({},n),l=N({},l),l.fill=Io(s)):!Go(l.stroke)&&Go(u)&&(a||(n=N({},n),l=N({},l)),l.stroke=Io(u)),n.style=l}}if(n&&n.z2==null){a||(n=N({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??x2)}return n}function D2(t,e,r){if(r&&r.z2==null){r=N({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??S2)}return r}function A2(t,e,r){var n=ue(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:w2(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=N({},r),o=N({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Cv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return C2(this,t,e,r);if(t==="blur")return A2(this,t,r);if(t==="select")return D2(this,t,r)}return r}function T2(t){t.stateProxy=Cv;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Cv),r&&(r.stateProxy=Cv)}function IS(t,e){!zS(t,e)&&!t.__highByOuter&&Vn(t,OS)}function PS(t,e){!zS(t,e)&&!t.__highByOuter&&Vn(t,RS)}function _a(t,e){t.__highByOuter|=1<<(e||0),Vn(t,OS)}function xa(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Vn(t,RS)}function kS(t){Vn(t,Mv)}function Iv(t){Vn(t,NS)}function Pv(t){Vn(t,b2)}function Lv(t){Vn(t,E2)}function zS(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Bv(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Av(a),s=AS(t,a),u=i==="series";!u&&n.push(s),o.isBlured&&(s.group.traverse(function(l){NS(l)}),u&&r.push(a)),o.isBlured=!1}),w(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Dv(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var c=0;c<f.length;c++){var p=l.getItemGraphicEl(f[c]);p&&Iv(p)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,c=l.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=n.getViewOfSeriesModel(l);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||Mv(m)}),Je(e))a(l.getData(),e);else if(W(e))for(var d=ne(e),v=0;v<d.length;v++)a(l.getData(d[v]),e[d[v]]);u.push(l),Av(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(u,!0,i)}})}}function Hf(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Av(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Mv(a)})}}}function US(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Pr(i,e);a=(k(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=de(o);Dv(n,l.focus,l.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Dv(n,f,c,r)}}}function Yf(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);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(de(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function VS(t,e,r){var n=de(t),i=Yf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Hf(n.componentMainType,n.componentIndex,r),w(a,function(s){return IS(s,e)})):(Dv(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Hf(n.componentMainType,n.componentIndex,r),IS(t,e))}function HS(t,e,r){Bv(r);var n=de(t),i=Yf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?w(i,function(a){return PS(a,e)}):PS(t,e)}function GS(t,e,r){if(Xf(e)){var n=e.dataType,i=t.getData(n),a=Pr(i,e);k(a)||(a=[a]),t[e.type===Lu?"toggleSelect":e.type===Pu?"select":"unselect"](a,n)}}function Ov(t){var e=t.getAllData();w(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Pv(a):Lv(a)})})}function WS(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();w(n,function(i){var a=i.data,o=i.type,s=r.getSelectedDataIndices();if(s.length>0){var u={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(u.dataType=o),e.push(u)}})}),e}function $o(t,e,r){$S(t,!0),Vn(t,T2),F2(t,e,r)}function M2(t){$S(t,!1)}function Mt(t,e,r,n){n?M2(t):$o(t,e,r)}function F2(t,e,r){var n=de(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var LS=["emphasis","blur","select"],I2={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ht(t,e,r,n){r=r||"itemStyle";for(var i=0;i<LS.length;i++){var a=LS[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=n?n(o):o[I2[r]]()}}function $S(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Bu(t){return!!(t&&t.__highDownDispatcher)}function YS(t){var e=MS[t];return e==null&&TS<=32&&(e=MS[t]=TS++),e}function Xf(t){var e=t.type;return e===Pu||e===Gf||e===Lu}function Rv(t){var e=t.type;return e===wi||e===Iu}function XS(t){var e=BS(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var Ne={};jt(Ne,{Arc:()=>Ea,BezierCurve:()=>zu,BoundingRect:()=>re,Circle:()=>Hn,CompoundPath:()=>qo,Ellipse:()=>Ru,Group:()=>_e,HOVER_LAYER_FOR_INCREMENTAL:()=>Vu,HOVER_LAYER_FROM_THRESHOLD:()=>qv,HOVER_LAYER_NO:()=>Xv,Image:()=>je,IncrementalDisplayable:()=>ic,Line:()=>Pt,LinearGradient:()=>jo,OrientedBoundingRect:()=>nc,Path:()=>ae,Point:()=>pe,Polygon:()=>Yr,Polyline:()=>Gt,RadialGradient:()=>Jf,Rect:()=>Ee,Ring:()=>ba,Sector:()=>It,Text:()=>be,WH:()=>Ci,XY:()=>yn,applyTransform:()=>sc,calcZ2Range:()=>vI,clipPointsByRect:()=>em,clipRectByRect:()=>tm,createIcon:()=>Ta,decomposeTransform:()=>gI,ensureCopyRect:()=>ts,ensureCopyTransform:()=>lc,expandOrShrinkRect:()=>Jo,extendPath:()=>Kv,extendShape:()=>jv,getCurrentCanvasPainter:()=>yI,getShapeClass:()=>Zv,getTransform:()=>Qv,groupTransition:()=>Jv,initProps:()=>Me,isBoundingRectAxisAligned:()=>uc,isElementRemoved:()=>Da,lineLineIntersect:()=>w1,linePolygonIntersect:()=>hI,makeImage:()=>Hu,makePath:()=>Zo,mergePath:()=>Qo,payloadDisableAnimation:()=>mI,registerShape:()=>dr,removeElement:()=>Ko,removeElementWithFadeOut:()=>gn,resizePath:()=>oc,retrieveZInfo:()=>rm,setTooltipConfig:()=>es,subPixelOptimize:()=>fI,subPixelOptimizeLine:()=>Aa,subPixelOptimizeRect:()=>lI,transformDirection:()=>cI,traverseElements:()=>Ma,traverseUpdateZ:()=>nm,updateProps:()=>we});var Yo=bt.CMD,P2=[[],[],[]],qS=Math.sqrt,L2=Math.atan2;function Nv(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,u,l,f=Yo.M,c=Yo.C,p=Yo.L,h=Yo.R,d=Yo.A,v=Yo.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case p:a=1;break;case c:a=3;break;case v:a=2;break;case d:var m=e[4],g=e[5],y=qS(e[0]*e[0]+e[1]*e[1]),_=qS(e[2]*e[2]+e[3]*e[3]),x=L2(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:l[0]=r[o++],l[1]=r[o++],et(l,l,e),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],et(l,l,e),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var S=P2[u];S[0]=r[o++],S[1]=r[o++],et(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var kv=Math.sqrt,qf=Math.sin,jf=Math.cos,Ou=Math.PI;function jS(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function zv(t,e){return(t[0]*e[0]+t[1]*e[1])/(jS(t)*jS(e))}function KS(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(zv(t,e))}function ZS(t,e,r,n,i,a,o,s,u,l,f){var c=u*(Ou/180),p=jf(c)*(t-r)/2+qf(c)*(e-n)/2,h=-1*qf(c)*(t-r)/2+jf(c)*(e-n)/2,d=p*p/(o*o)+h*h/(s*s);d>1&&(o*=kv(d),s*=kv(d));var v=(i===a?-1:1)*kv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=v*o*h/s,g=v*-s*p/o,y=(t+r)/2+jf(c)*m-qf(c)*g,_=(e+n)/2+qf(c)*m+jf(c)*g,x=KS([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],b=[(-1*p-m)/o,(-1*h-g)/s],E=KS(S,b);if(zv(S,b)<=-1&&(E=Ou),zv(S,b)>=1&&(E=0),E<0){var D=Math.round(E/Ou*1e6)/1e6;E=Ou*2+D%2*Ou}f.addData(l,y,_,o,s,x,E,c,a)}var B2=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,O2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function R2(t){var e=new bt;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=bt.CMD,u=t.match(B2);if(!u)return e;for(var l=0;l<u.length;l++){for(var f=u[l],c=f.charAt(0),p=void 0,h=f.match(O2)||[],d=h.length,v=0;v<d;v++)h[v]=parseFloat(h[v]);for(var m=0;m<d;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,E=void 0,D=r,A=n,C=void 0,T=void 0;switch(c){case"l":r+=h[m++],n+=h[m++],p=s.L,e.addData(p,r,n);break;case"L":r=h[m++],n=h[m++],p=s.L,e.addData(p,r,n);break;case"m":r+=h[m++],n+=h[m++],p=s.M,e.addData(p,r,n),i=r,a=n,c="l";break;case"M":r=h[m++],n=h[m++],p=s.M,e.addData(p,r,n),i=r,a=n,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,n);break;case"H":r=h[m++],p=s.L,e.addData(p,r,n);break;case"v":n+=h[m++],p=s.L,e.addData(p,r,n);break;case"V":n=h[m++],p=s.L,e.addData(p,r,n);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],n=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n),r+=h[m-2],n+=h[m-1];break;case"S":g=r,y=n,C=e.len(),T=e.data,o===s.C&&(g+=r-T[C-4],y+=n-T[C-3]),p=s.C,D=h[m++],A=h[m++],r=h[m++],n=h[m++],e.addData(p,g,y,D,A,r,n);break;case"s":g=r,y=n,C=e.len(),T=e.data,o===s.C&&(g+=r-T[C-4],y+=n-T[C-3]),p=s.C,D=r+h[m++],A=n+h[m++],r+=h[m++],n+=h[m++],e.addData(p,g,y,D,A,r,n);break;case"Q":D=h[m++],A=h[m++],r=h[m++],n=h[m++],p=s.Q,e.addData(p,D,A,r,n);break;case"q":D=h[m++]+r,A=h[m++]+n,r+=h[m++],n+=h[m++],p=s.Q,e.addData(p,D,A,r,n);break;case"T":g=r,y=n,C=e.len(),T=e.data,o===s.Q&&(g+=r-T[C-4],y+=n-T[C-3]),r=h[m++],n=h[m++],p=s.Q,e.addData(p,g,y,r,n);break;case"t":g=r,y=n,C=e.len(),T=e.data,o===s.Q&&(g+=r-T[C-4],y+=n-T[C-3]),r+=h[m++],n+=h[m++],p=s.Q,e.addData(p,g,y,r,n);break;case"A":_=h[m++],x=h[m++],S=h[m++],b=h[m++],E=h[m++],D=r,A=n,r=h[m++],n=h[m++],p=s.A,ZS(D,A,r,n,b,E,_,x,S,p,e);break;case"a":_=h[m++],x=h[m++],S=h[m++],b=h[m++],E=h[m++],D=r,A=n,r+=h[m++],n+=h[m++],p=s.A,ZS(D,A,r,n,b,E,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=i,n=a),o=p}return e.toStatic(),e}var QS=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(ae);function JS(t){return t.setData!=null}function e1(t,e){var r=R2(t),n=N({},e);return n.buildPath=function(i){var a=JS(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){Nv(r,i),this.dirtyShape()},n}function t1(t,e){return new QS(e1(t,e))}function r1(t,e){var r=e1(t,e),n=(function(i){P(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(QS);return n}function n1(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ae(e);return o.createPathProxy(),o.buildPath=function(s){if(JS(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var i1=(function(t){P(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.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},e.prototype.replace=function(r,n){var i=ue(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.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},e.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()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ue(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.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},e.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},e.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},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new re(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?(re.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},e})(Df);i1.prototype.type="group";var _e=i1;var k2=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var a1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new k2},e.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)},e})(ae);a1.prototype.type="circle";var Hn=a1;var z2=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var o1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new z2},e.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()},e})(ae);o1.prototype.type="ellipse";var Ru=o1;var u1=Math.PI,Uv=u1*2,Sa=Math.sin,Xo=Math.cos,U2=Math.acos,Ft=Math.atan2,s1=Math.abs,ku=Math.sqrt,Nu=Math.max,mn=Math.min,$r=1e-4;function V2(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,p=c*u-f*l;if(!(p*p<$r))return p=(f*(e-a)-c*(t-i))/p,[t+p*u,e+p*l]}function Kf(t,e,r,n,i,a,o){var s=t-r,u=e-n,l=(o?a:-a)/ku(s*s+u*u),f=l*u,c=-l*s,p=t+f,h=e+c,d=r+f,v=n+c,m=(p+d)/2,g=(h+v)/2,y=d-p,_=v-h,x=y*y+_*_,S=i-a,b=p*v-d*h,E=(_<0?-1:1)*ku(Nu(0,S*S*x-b*b)),D=(b*_-y*E)/x,A=(-b*y-_*E)/x,C=(b*_+y*E)/x,T=(-b*y+_*E)/x,F=D-m,M=A-g,I=C-m,L=T-g;return F*F+M*M>I*I+L*L&&(D=C,A=T),{cx:D,cy:A,x0:-f,y0:-c,x1:D*(i/S-1),y1:A*(i/S-1)}}function H2(t){var e;if(k(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function l1(t,e){var r,n=Nu(e.r,0),i=Nu(e.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=e.startAngle,l=e.endAngle;if(!(isNaN(u)||isNaN(l))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=s1(l-u),d=h>Uv&&h%Uv;if(d>$r&&(h=d),!(n>$r))t.moveTo(f,c);else if(h>Uv-$r)t.moveTo(f+n*Xo(u),c+n*Sa(u)),t.arc(f,c,n,u,l,!p),i>$r&&(t.moveTo(f+i*Xo(l),c+i*Sa(l)),t.arc(f,c,i,l,u,p));else{var v=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,E=void 0,D=void 0,A=void 0,C=void 0,T=void 0,F=void 0,M=void 0,I=void 0,L=n*Xo(u),B=n*Sa(u),R=i*Xo(l),O=i*Sa(l),V=h>$r;if(V){var G=e.cornerRadius;G&&(r=H2(G),v=r[0],m=r[1],g=r[2],y=r[3]);var H=s1(n-i)/2;if(_=mn(H,g),x=mn(H,y),S=mn(H,v),b=mn(H,m),A=E=Nu(_,x),C=D=Nu(S,b),(E>$r||D>$r)&&(T=n*Xo(l),F=n*Sa(l),M=i*Xo(u),I=i*Sa(u),h<u1)){var q=V2(L,B,M,I,T,F,R,O);if(q){var Q=L-q[0],j=B-q[1],oe=T-q[0],ge=F-q[1],Xe=1/Sa(U2((Q*oe+j*ge)/(ku(Q*Q+j*j)*ku(oe*oe+ge*ge)))/2),We=ku(q[0]*q[0]+q[1]*q[1]);A=mn(E,(n-We)/(Xe+1)),C=mn(D,(i-We)/(Xe-1))}}}if(!V)t.moveTo(f+L,c+B);else if(A>$r){var De=mn(g,A),Le=mn(y,A),he=Kf(M,I,L,B,n,De,p),Se=Kf(T,F,R,O,n,Le,p);t.moveTo(f+he.cx+he.x0,c+he.cy+he.y0),A<E&&De===Le?t.arc(f+he.cx,c+he.cy,A,Ft(he.y0,he.x0),Ft(Se.y0,Se.x0),!p):(De>0&&t.arc(f+he.cx,c+he.cy,De,Ft(he.y0,he.x0),Ft(he.y1,he.x1),!p),t.arc(f,c,n,Ft(he.cy+he.y1,he.cx+he.x1),Ft(Se.cy+Se.y1,Se.cx+Se.x1),!p),Le>0&&t.arc(f+Se.cx,c+Se.cy,Le,Ft(Se.y1,Se.x1),Ft(Se.y0,Se.x0),!p))}else t.moveTo(f+L,c+B),t.arc(f,c,n,u,l,!p);if(!(i>$r)||!V)t.lineTo(f+R,c+O);else if(C>$r){var De=mn(v,C),Le=mn(m,C),he=Kf(R,O,T,F,i,-Le,p),Se=Kf(L,B,M,I,i,-De,p);t.lineTo(f+he.cx+he.x0,c+he.cy+he.y0),C<D&&De===Le?t.arc(f+he.cx,c+he.cy,C,Ft(he.y0,he.x0),Ft(Se.y0,Se.x0),!p):(Le>0&&t.arc(f+he.cx,c+he.cy,Le,Ft(he.y0,he.x0),Ft(he.y1,he.x1),!p),t.arc(f,c,i,Ft(he.cy+he.y1,he.cx+he.x1),Ft(Se.cy+Se.y1,Se.cx+Se.x1),p),De>0&&t.arc(f+Se.cx,c+Se.cy,De,Ft(Se.y1,Se.x1),Ft(Se.y0,Se.x0),!p))}else t.lineTo(f+R,c+O),t.arc(f,c,i,l,u,p)}t.closePath()}}}var W2=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})();var f1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new W2},e.prototype.buildPath=function(r,n){l1(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ae);f1.prototype.type="sector";var It=f1;var $2=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var c1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new $2},e.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)},e})(ae);c1.prototype.type="ring";var ba=c1;function Vv(t,e,r,n){var i=[],a=[],o=[],s=[],u,l,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)Sr(f,f,t[p]),br(c,c,t[p]);Sr(f,f,n[0]),br(c,c,n[1])}for(var p=0,h=t.length;p<h;p++){var d=t[p];if(r)u=t[p?p-1:h-1],l=t[(p+1)%h];else if(p===0||p===h-1){i.push(vd(t[p]));continue}else u=t[p-1],l=t[p+1];md(a,l,u),tu(a,a,e);var v=ru(d,u),m=ru(d,l),g=v+m;g!==0&&(v/=g,m/=g),tu(o,a,-v),tu(s,a,m);var y=jl([],d,o),_=jl([],d,s);n&&(br(y,y,f),Sr(y,y,c),br(_,_,f),Sr(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function Zf(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=Vv(i,n,r,e.smoothConstraint);t.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];t.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var Y2=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var h1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Y2},e.prototype.buildPath=function(r,n){Zf(r,n,!0)},e})(ae);h1.prototype.type="polygon";var Yr=h1;var X2=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var d1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new X2},e.prototype.buildPath=function(r,n){Zf(r,n,!1)},e})(ae);d1.prototype.type="polyline";var Gt=d1;var q2={},j2=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var v1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new j2},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Ff(q2,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))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(ae);v1.prototype.type="line";var Pt=v1;var tr=[],K2=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function m1(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?Od:Ve)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Od:Ve)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Rd:ft)(t.x1,t.cpx1,t.x2,e),(r?Rd:ft)(t.y1,t.cpy1,t.y2,e)]}var g1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new K2},e.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,c=n.cpy2,p=n.percent;p!==0&&(r.moveTo(i,a),f==null||c==null?(p<1&&(Ao(i,u,o,p,tr),u=tr[1],o=tr[2],Ao(a,l,s,p,tr),l=tr[1],s=tr[2]),r.quadraticCurveTo(u,l,o,s)):(p<1&&(Do(i,u,f,o,p,tr),u=tr[1],f=tr[2],o=tr[3],Do(a,l,c,s,p,tr),l=tr[1],c=tr[2],s=tr[3]),r.bezierCurveTo(u,l,f,c,o,s)))},e.prototype.pointAt=function(r){return m1(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=m1(this.shape,r,!0);return _d(n,n)},e})(ae);g1.prototype.type="bezier-curve";var zu=g1;var Z2=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var y1=(function(t){P(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Z2},e.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),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,u,!l)},e})(ae);y1.prototype.type="arc";var Ea=y1;var Q2=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.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()},e.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)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ae.prototype.getBoundingRect.call(this)},e})(ae),qo=Q2;var J2=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Qf=J2;var eI=(function(t){P(e,t);function e(r,n,i,a,o,s){var u=t.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 e})(Qf),jo=eI;var tI=(function(t){P(e,t);function e(r,n,i,a,o){var s=t.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 e})(Qf),Jf=tI;var Hv=Math.min,rI=Math.max,ec=Math.abs,wa=[0,0],Ca=[0,0],yt=wd(),tc=yt.minTv,rc=yt.maxTv,nI=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new pe;for(var n=0;n<2;n++)this._axes[n]=new pe;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,u=o+e.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);pe.sub(i[0],n[1],n[0]),pe.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])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&pe.set(r,0,0),yt.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!yt.negativeSize&&pe.copy(r,i?yt.useDir?yt.dirMinTv:tc:rc),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,wa),e._getProjMinMaxOnAxis(o,r._corners,Ca),yt.negativeSize||wa[1]<Ca[0]||wa[0]>Ca[1]){if(a=!1,yt.negativeSize||n)return a;var u=ec(Ca[0]-wa[1]),l=ec(wa[0]-Ca[1]);Hv(u,l)>rc.len()&&(u<l?pe.scale(rc,s,-u*i):pe.scale(rc,s,l*i))}else if(!n){var u=ec(Ca[0]-wa[1]),l=ec(wa[0]-Ca[1]);(yt.useDir||Hv(u,l)<tc.len())&&((u<l||!yt.bidirectional)&&(pe.scale(tc,s,u*i),yt.useDir&&yt.calcDirMTV()),(u>=l||!yt.bidirectional)&&(pe.scale(tc,s,-l*i),yt.useDir&&yt.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[e];s=Hv(f,s),u=rI(f,u)}n[0]=s+yt.touchThreshold,n[1]=u-yt.touchThreshold,yt.negativeSize=n[1]<n[0]},t})(),nc=nI;var _1=1;var iI=[],aI=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=_1,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.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])},e.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}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new re(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(iI)),r.union(a)}this._rect=r}return this._rect},e.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},e})(fn),ic=aI;var oI=le();function sI(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),u=t==="update";if(s){var l=void 0,f=void 0,c=void 0;n?(l=X(n.duration,200),f=X(n.easing,"cubicOut"),c=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),f=e.getShallow(u?"animationEasingUpdate":"animationEasing"),c=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Y(c)&&(c=c(r,i)),Y(l)&&(l=l(r));var p={duration:l||0,delay:c,easing:f};return p}else return null}function Gv(t,e,r,n,i,a,o){var s=!1,u;Y(i)?(o=a,a=i,i=null):W(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=t==="leave";l||e.stopAnimation("leave");var f=sI(t,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,d={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!l,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function we(t,e,r,n,i,a){Gv("update",t,e,r,n,i,a)}function Me(t,e,r,n,i,a){Gv("enter",t,e,r,n,i,a)}function Da(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Ko(t,e,r,n,i,a){Da(t)||Gv("leave",t,e,r,n,i,a)}function x1(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Ko(t,{style:{opacity:0}},e,r,n)}function gn(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||x1(i,e,r,n)}):x1(t,e,r,n)}function Xr(t){oI(t).oldStyle=t.style}var $v={},yn=["x","y"],Ci=["width","height"],Xv=0,qv=1,Vu=2;function jv(t){return ae.extend(t)}var uI=r1;function Kv(t,e){return uI(t,e)}function dr(t,e){$v[t]=e}function Zv(t){if($v.hasOwnProperty(t))return $v[t]}function Zo(t,e,r,n){var i=t1(t,e);return r&&(n==="center"&&(r=E1(r,i.getBoundingRect())),oc(i,r)),i}function Hu(t,e,r){var n=new je({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(E1(e,a))}}});return n}function E1(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Qo=n1;function oc(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Aa(t,e){return Ff(t,t,{lineWidth:e}),t}function lI(t,e){return If(t,t,e),t}var fI=mi;function Qv(t,e){for(var r=xr([]);t&&t!==e;)zr(r,t.getLocalTransform(),r),t=t.parent;return r}function sc(t,e,r){return e&&!Je(e)&&(e=wo.getLocalTransform(e)),r&&(e=lr([],e)),et([],t,e)}function cI(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Oe(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Oe(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=sc(a,e,r),Oe(a[0])>Oe(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function S1(t){return!t.isGroup}function pI(t){return t.shape!=null}function Jv(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(u){S1(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return pI(o)&&(s.shape=J(o.shape)),s}var a=n(t);e.traverse(function(o){if(S1(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),we(o,u,r,de(o).dataIndex)}}})}function em(t,e){return z(t,function(r){var n=r[0];n=ve(n,e.x),n=He(n,e.x+e.width);var i=r[1];return i=ve(i,e.y),i=He(i,e.y+e.height),[n,i]})}function tm(t,e){var r=ve(t.x,e.x),n=He(t.x+t.width,e.x+e.width),i=ve(t.y,e.y),a=He(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Ta(t,e,r){var n=N({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),ee(i,r),new je(n)):Zo(t.replace("path://",""),n,r,"center")}function hI(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(w1(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function w1(t,e,r,n,i,a,o,s){var u=r-t,l=n-e,f=o-i,c=s-a,p=Wv(f,c,u,l);if(dI(p))return!1;var h=t-i,d=e-a,v=Wv(h,d,u,l)/p;if(v<0||v>1)return!1;var m=Wv(h,d,f,c)/p;return!(m<0||m>1)}function Wv(t,e,r,n){return t*n-r*e}function dI(t){return t<=1e-6&&t>=-1e-6}function Jo(t,e,r,n,i){return e==null||(ie(e)?Re[0]=Re[1]=Re[2]=Re[3]=e:(Re[0]=e[0],Re[1]=e[1],Re[2]=e[2],Re[3]=e[3]),n&&(Re[0]=ve(0,Re[0]),Re[1]=ve(0,Re[1]),Re[2]=ve(0,Re[2]),Re[3]=ve(0,Re[3])),r&&(Re[0]=-Re[0],Re[1]=-Re[1],Re[2]=-Re[2],Re[3]=-Re[3]),b1(t,Re,"x","width",3,1,i&&i[0]||0),b1(t,Re,"y","height",0,2,i&&i[1]||0)),t}var Re=[0,0,0,0];function b1(t,e,r,n,i,a,o){var s=e[a]+e[i],u=t[n];t[n]+=s,o=ve(0,He(o,u)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?u+e[a]:Oe(s)>1e-8?(u-o)*e[i]/s:0):t[r]-=e[i]}function es(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=U(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=t.formatterParamsExtra;u&&w(ne(u),function(f){Ie(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=de(t.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:ee({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Yv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ma(t,e){if(t)if(k(t))for(var r=0;r<t.length;r++)Yv(t[r],e);else Yv(t,e)}function uc(t){return!t||Oe(t[1])<ac&&Oe(t[2])<ac||Oe(t[0])<ac&&Oe(t[3])<ac}var ac=1e-5;function ts(t,e){return t?re.copy(t,e):e.clone()}function lc(t,e){return e?qi(t||St(),e):void 0}function rm(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function vI(t){var e=-1/0,r=1/0;Yv(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function nm(t,e,r){C1(t,e,r,-1/0)}function C1(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),u=0;u<s.length;u++)n=ve(C1(s[u],e,r,n),n);else t.z=e,t.zlevel=r,n=ve(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var l=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(l&&l.showAbove?1:-1))}return n}function mI(t){return t.animation={duration:0},t}function gI(t,e){return e?qi(Uu.transform,e):xr(Uu.transform),Uu.decomposeTransform(),oi(t,Uu),t}var Uu=new wo;Uu.transform=St();function yI(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}dr("circle",Hn);dr("ellipse",Ru);dr("sector",It);dr("ring",ba);dr("polygon",Yr);dr("polyline",Gt);dr("rect",Ee);dr("line",Pt);dr("bezierCurve",zu);dr("arc",Ea);var fc={};function I1(t,e){for(var r=0;r<Vt.length;r++){var n=Vt[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function im(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Y(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var u={normal:s},l=0;l<Vt.length;l++){var f=Vt[l],c=e[f];u[f]=X(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return u}function rr(t,e,r,n){r=r||fc;for(var i=t instanceof be,a=!1,o=0;o<Wo.length;o++){var s=e[Wo[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?t:t.getTextContent();if(a){i||(u||(u=new be,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var l=im(r,e),f=e.normal,c=!!f.getShallow("show"),p=pt(f,n&&n.normal,r,!1,!i);p.text=l.normal,i||t.setTextConfig(D1(f,r,!1));for(var o=0;o<Vt.length;o++){var h=Vt[o],s=e[h];if(s){var d=u.ensureState(h),v=!!X(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=pt(s,n&&n[h],r,!0,!i),d.style.text=l[h],!i){var m=t.ensureState(h);m.textConfig=D1(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(p.x=u.style.x),u.style.y!=null&&(p.y=u.style.y),u.ignore=!c,u.useStyle(p),u.dirty(),r.enableTextSetter&&(Ia(u).setLabelText=function(g){var y=im(r,e,g);I1(u,y)})}else u&&(u.ignore=!0);t.dirty()}function nr(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Vt.length;n++){var i=Vt[n];r[i]=t.getModel([i,e])}return r}function pt(t,e,r,n,i){var a={};return _I(a,t,r,n,i),e&&N(a,e),a}function D1(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=X(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.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=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function _I(t,e,r,n,i){r=r||fc;var a=e.ecModel,o=a&&a.option.textStyle,s=xI(e),u;if(s){u={};var l="richInheritPlainLabel",f=X(e.get(l),a?a.get(l):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);F1(u[c]={},p,o,e,f,r,n,i,!1,!0)}}u&&(t.rich=u);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var v=t,m=e.get("minMargin");if(m!=null)m=ie(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=Fa.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=$i(g),v.__marginType=Fa.textMargin)}F1(t,e,o,null,null,r,n,i,!0,!1)}function xI(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||fc).rich;if(r){e=e||{};for(var n=ne(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var A1=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],T1=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],M1=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function F1(t,e,r,n,i,a,o,s,u,l){r=!o&&r||fc;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=X(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var d=X(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var v=X(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var m=X(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!l&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<A1.length;g++){var y=A1[g],_=i!==!1&&n?Zt(e.getShallow(y),n.getShallow(y),r[y]):X(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<T1.length;g++){var y=T1[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!u||!a.disableBox){for(var g=0;g<M1.length;g++){var y=M1[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function P1(t,e){var r=e&&e.getModel("textStyle");return dt([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ia=le();function cc(t,e,r,n){if(t){var i=Ia(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function L1(t,e,r,n,i){var a=Ia(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=X(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var c=Of(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:c;var p=im({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);I1(t,p)}t.percent=0,(a.prevValue==null?Me:we)(t,{percent:1},n,e,null,l)}var Fa={minMargin:1,textMargin:2};var SI=["textStyle","color"],am=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],om=new be,bI=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(SI):null)},t.prototype.getFont=function(){return P1({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<am.length;n++)r[am[n]]=this.getShallow(am[n]);return om.useStyle(r),om.update(),om.getBoundingRect()},t})(),B1=bI;var sm=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],EI=nn(sm),O1=(function(){function t(){}return t.prototype.getLineStyle=function(e){return EI(this,e)},t})();var um=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wI=nn(um),R1=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return wI(this,e,r)},t})();var Pa=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){me(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(J(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ce.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();go(Pa);A_(Pa);nt(Pa,O1);nt(Pa,R1);nt(Pa,T_);nt(Pa,B1);var Ae=Pa;function Gu(t){return t==null?0:t.length||1}function N1(t){return t}var CI=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||N1,this._newKeyGetter=i||N1,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],u=n[s],l=Gu(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)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,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],c=Gu(l),p=Gu(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(c===1&&p===1)this._update&&this._update(f,l),i[u]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Gu(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}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=Gu(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},t})(),k1=CI;var ht={Must:1,Might:2,Not:3},z1=le();function U1(t){z1(t).datasetMap=K()}function V1(t,e,r){var n={},i=hc(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,u=z1(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),w(t,function(v,m){var g=W(v)?v:t[m]={name:v};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),n[g.name]=[]});var p=u.get(l)||u.set(l,{categoryWayDim:c,valueWayDim:0});w(t,function(v,m){var g=v.name,y=d(v);if(f==null){var _=p.valueWayDim;h(n[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(n[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(n[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function pc(t,e,r){var n={},i=hc(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Tt||a===er)&&w(o,function(f,c){(W(f)?f.name:f)==="name"&&(s=c)});var u=(function(){for(var f={},c={},p=[],h=0,d=Math.min(5,r);h<d;h++){var v=G1(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(v);var m=v===ht.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&p[f.n]===ht.Not)&&(f.n=h),g(f)&&p[f.n]!==ht.Not)return f;m||(v===ht.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function hc(t){var e=t.get("data",!0);if(!e)return Si(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Et).models[0]}function H1(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Si(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Et).models}function dc(t,e){return G1(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function G1(t,e,r,n,i,a){var o,s=5;if($e(t))return ht.Not;var u,l;if(n){var f=n[a];W(f)?(u=f.name,l=f.type):U(f)&&(u=f)}if(l!=null)return l==="ordinal"?ht.Must:ht.Not;if(e===at){var c=t;if(r===vn){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=x(d[a]))!=null)return o}}else if(e===Tt){var v=t;if(!u)return ht.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=x(m[u]))!=null)return o}}else if(e===er){var g=t;if(!u)return ht.Not;var p=g[u];if(!p||$e(p))return ht.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===ct)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],_=zn(m);if(!k(_))return ht.Not;if((o=x(_[a]))!=null)return o}function x(S){var b=U(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?ht.Might:ht.Not;if(b&&S!=="-")return ht.Must}return ht.Not}var vc=(function(){function t(e){this.data=e.data||(e.sourceFormat===er?{}:[]),this.sourceFormat=e.sourceFormat||wv,this.seriesLayoutBy=e.seriesLayoutBy||Ut,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&dc(this,n)===ht.Must&&(i.type="ordinal")}}return t})();function rs(t){return t instanceof vc}function Wu(t,e,r){r=r||lm(t);var n=e.seriesLayoutBy,i=DI(t,r,n,e.sourceHeader,e.dimensions),a=new vc({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:J(e)});return a}function ns(t){return new vc({data:t,sourceFormat:$e(t)?hr:ct})}function Y1(t){return new vc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:J(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function lm(t){var e=wv;if($e(t))e=hr;else if(k(t)){t.length===0&&(e=at);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(k(i)||$e(i)){e=at;break}else if(W(i)){e=Tt;break}}}}else if(W(t)){for(var a in t)if(Ie(t,a)&&Je(t[a])){e=er;break}}return e}function DI(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:W1(i),startIndex:o,dimensionsDetectedCount:a};if(e===at){var s=t;n==="auto"||n==null?$1(function(l){l!=null&&l!=="-"&&(U(l)?o==null&&(o=1):o=0)},r,s,10):o=ie(n)?n:n?1:0,!i&&o===1&&(i=[],$1(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===vn?s.length:s[0]?s[0].length:null}else if(e===Tt)i||(i=AI(t));else if(e===er)i||(i=[],w(t,function(l,f){i.push(f)}));else if(e===ct){var u=zn(t[0]);a=k(u)&&u.length||1}return{startIndex:o,dimensionsDefine:W1(i),dimensionsDetectedCount:a}}function AI(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ne(r)}function W1(t){if(t){var e=K();return z(t,function(r,n){r=W(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=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function $1(t,e,r,n){if(e===vn)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function mc(t){var e=t.sourceFormat;return e===Tt||e===er}var La,Ba,Oa,Ra,X1,q1,yc=(function(){function t(e,r){var n=rs(e)?e:ns(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===hr&&(this._offset=0,this._dimSize=r,this._data=i),0)var s;q1(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;q1=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,c=u.startIndex,p=u.dimensionsDefine,h=X1[dm(l,f)];if(N(o,h),l===hr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=cm(l,f);o.getItem=fe(d,null,s,c,p);var v=pm(l,f);o.count=fe(v,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,c=0;c<l;c++)s[c]=u[f+c];return s},n=function(o,s,u,l){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=l[p],d=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,g=u[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<d&&(d=_),_>v&&(v=_)}h[0]=d,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};X1=(e={},e[at+"_"+Ut]={pure:!0,appendData:a},e[at+"_"+vn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Tt]={pure:!0,appendData:a},e[er]={pure:!0,appendData:function(o){var s=this._data;w(o,function(u,l){for(var f=s[l]||(s[l]=[]),c=0;c<(u||[]).length;c++)f.push(u[c])})}},e[ct]={appendData:a},e[hr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var gc=function(t){k(t)||_v("series.data or dataset.source must be an array.")},Mz=(La={},La[at+"_"+Ut]=gc,La[at+"_"+vn]=gc,La[Tt]=gc,La[er]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&_v("dimension name must not be null/undefined.")}},La[ct]=gc,La),j1=function(t,e,r,n){return t[n]},TI=(Ba={},Ba[at+"_"+Ut]=function(t,e,r,n){return t[n+e]},Ba[at+"_"+vn]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},Ba[Tt]=j1,Ba[er]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?t[s]:null;a[o]=u?u[n]:null}return a},Ba[ct]=j1,Ba);function cm(t,e){var r=TI[dm(t,e)];return r}var K1=function(t,e,r){return t.length},MI=(Oa={},Oa[at+"_"+Ut]=function(t,e,r){return Math.max(0,t.length-e)},Oa[at+"_"+vn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Oa[Tt]=K1,Oa[er]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},Oa[ct]=K1,Oa);function pm(t,e){var r=MI[dm(t,e)];return r}var fm=function(t,e,r){return t[e]},FI=(Ra={},Ra[at]=fm,Ra[Tt]=function(t,e,r){return t[r]},Ra[er]=fm,Ra[ct]=function(t,e,r){var n=zn(t);return n instanceof Array?n[e]:n},Ra[hr]=fm,Ra);function hm(t){var e=FI[t];return e}function dm(t,e){return t===at?t+"_"+e:t}function Gn(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return hm(a)(n,o,s)}else{var u=n;return a===ct&&(u=zn(n)),u}}}}var II=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function Z1(t,e){var r={},n=r.encode={},i=K(),a=[],o=[],s={};w(t.dimensions,function(p){var h=t.getDimensionInfo(p),d=h.coordDim;if(d){var v=h.coordDimIndex;vm(n,d)[v]=p,h.isExtraCoord||(i.set(d,1),PI(h.type)&&(a[0]=p),vm(s,d)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Uf.each(function(m,g){var y=vm(n,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var u=[],l={};i.each(function(p,h){var d=n[h];l[h]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=z(u,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new II(s,e),r}function vm(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Q1(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function PI(t){return!(t==="ordinal"||t==="time")}var LI=(function(){function t(e){this.otherDims={},e!=null&&N(this,e)}return t})(),is=LI;function as(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!ie(t)&&t!=null&&t!=="-"&&(t=+zt(t)),t==null||t===""?NaN:Number(t))}var zz=K({number:function(t){return parseFloat(t)},time:function(t){return+zt(t)},trim:function(t){return U(t)?dt(t):t}});var BI={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Uz=(function(){function t(e,r){if(!ie(r)){var n="";gt(n)}this._opFn=BI[e],this._rvalFloat=Ir(r)}return t.prototype.evaluate=function(e){return ie(e)?this._opFn(e,this._rvalFloat):this._opFn(Ir(e),this._rvalFloat)},t})(),J1=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=ie(e)?e:Ir(e),i=ie(r)?r:Ir(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=U(e),u=U(r);s&&(n=u?e:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})();var Vz=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Ir(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Ir(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function _c(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function xc(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var OI=typeof Uint32Array===Ei?Array:Uint32Array,RI=typeof Uint16Array===Ei?Array:Uint16Array,gm=typeof Int32Array===Ei?Array:Int32Array,eb=typeof Float64Array===Ei?Array:Float64Array,rb={float:eb,int:gm,ordinal:Array,number:Array,time:eb},mm;function os(t){return t>65535?OI:RI}function NI(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function tb(t,e,r,n,i){var a=rb[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];t[e]=u}}else t[e]=new a(n)}var kI=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=mm[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=mc(i);this._dimensions=z(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new rb[r||"float"](this._rawCount),this._rawExtent[a]=wt(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=wt());for(var u=a[e],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"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(e.length,r||0),l=0;l<a;l++){var f=i[l];tb(n,l,f.type,u,!0)}for(var c=[],p=s;p<u;p++)for(var h=p-s,d=0;d<a;d++){var f=i[d],v=mm.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][p]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=z(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];u[f]||(u[f]=wt()),tb(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,u);else for(var p=[],h=e;h<r;h++){p=i.getItem(h,p);for(var d=0;d<s;d++){var v=a[d],m=this._dimValueGetter(p,l[d],h,d);v[h]=m;var g=u[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),xi(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=os(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=os(n._rawCount),o=new a(i),s=[],u=e.length,l=0,f=e[0],c=n._chunks,p=0;p<i;p++){var h=void 0,d=n.getRawIndex(p);if(u===0)h=r(p);else if(u===1){var v=c[f][d];h=r(v,p)}else{for(var m=0;m<u;m++)s[m]=c[e[m]][d];s[m]=p,h=r.apply(null,s)}h&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=ne(e),a=i.length;if(!a)return this;var o=r.count(),s=os(r._rawCount),u=new s(o),l=0,f=i[0],c=e[f][0],p=e[f][1],h=r._chunks,d=!1;if(!r._indices){var v=0;if(a===1){for(var m=h[i[0]],g=0;g<n;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(u[l++]=v),v++}d=!0}else if(a===2){for(var m=h[i[0]],_=h[i[1]],x=e[i[1]][0],S=e[i[1]][1],g=0;g<n;g++){var y=m[g],b=_[g];(y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(u[l++]=v),v++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var E=r.getRawIndex(g),y=h[i[0]][E];(y>=c&&y<=p||isNaN(y))&&(u[l++]=E)}else for(var g=0;g<o;g++){for(var D=!0,E=r.getRawIndex(g),A=0;A<a;A++){var C=i[A],y=h[C][E];(y<e[C][0]||y>e[C][1])&&(D=!1)}D&&(u[l++]=r.getRawIndex(g))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),u=[],l=e._rawExtent,f=0;f<r.length;f++)l[r[f]]=wt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)u[h]=i[r[h]][p];u[o]=c;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 v=r[f],m=d[f],g=l[v],y=i[v];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,c,p,h=new(os(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));h[s++]=l;for(var d=1;d<o-1;d+=u){for(var v=Math.min(d+u,o-1),m=Math.min(d+u*2,o),g=(m+v)/2,y=0,_=v;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-v;var b=d,E=Math.min(d+u,o),D=d-1,A=a[l];f=-1,p=b;for(var C=-1,T=0,_=b;_<E;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){T++,C<0&&(C=x);continue}c=Math.abs((D-g)*(S-A)-(D-_)*(y-A)),c>f&&(f=c,p=x)}T>0&&T<E-b&&(h[s++]=Math.min(C,p),p=Math.max(C,p)),h[s++]=p,l=p}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),u=new(os(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],v=a;f+a>s&&(v=s-f);for(var m=0;m<v;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>d&&(d=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(u[l++]=_,u[l++]=x):(u[l++]=x,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[e],f=this.count(),c=a._rawExtent[e]=wt(),p=new(os(this._rawCount))(Math.ceil(f/u)),h=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var v=0;v<u;v++){var m=this.getRawIndex(d+v);s[v]=l[m]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));l[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.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[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[e[u]][s];l[u]=a,r.apply(null,l)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=wt();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,u=s[e]||(s[e]={}),l=_c(r),f=l.key,c=u[f];if(c)return c.slice();for(var p=i[0],h=i[1],d=0;d<a;d++){var v=this.getRawIndex(d),m=n[v];(!r||xc(l,m))&&(m<p&&(p=m),m>h&&(h=m))}return u[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);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},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&Dt(e,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?NI(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=J(this._extent),e._rawExtent=J(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return as(r[a],this._dimensions[a])}mm={arrayRows:e,objectRows:function(r,n,i,a){return as(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return as(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),$u=kI;var zI=le(),UI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ym=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=_m(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return X(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=mc(this.source),n=!xm(e),i="",a=[],o=0,s=0;o<e;o++){var u=void 0,l=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)u=r?c.name:null,l=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(u=r?p.name:null,l=p.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!c||!c.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=UI[l]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],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)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Sc(t){return t instanceof ym}function Yu(t){for(var e=K(),r=0;r<(t||[]).length;r++){var n=t[r],i=W(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function _m(t){var e=zI(t);return e.dimNameMap||(e.dimNameMap=Yu(t.dimensionsDefine))}function xm(t){return t>30}var Xu=W,Di=z,VI=typeof Int32Array>"u"?Array:Int32Array,HI="e\0\0",nb=-1,GI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],WI=["_approximateExtent"],ib,bc,qu,ju,Sm,Ku,bm,$I=(function(){function t(e,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;Sc(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var c=n[f],p=U(c)?new is({name:c}):c instanceof is?c:new is(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,l[h]!=null&&(u=!0),p.createInvertedIndices&&(s[h]=[]),i&&(p.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=p.storeDimIndex),d.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=K();w(o,function(m){v.set(a[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!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},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(ie(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof $u&&(a=e),!a){var o=this.dimensions,s=rs(e)||Je(e)?new yc(e,o.length):e;a=new $u;var u=Di(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=Z1(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,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&&bm(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==hr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===ct;if(u&&!i.pure)for(var l=[],f=e;f<r;f++){var c=i.getItem(f,l);if(!this.hasItemOption&&vS(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=pr(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=pr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)bm(this,f);ib(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Xu(e)?N(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=qu(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return bc(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return k(e)?i.getValues(Di(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?nb:i},t.prototype.each=function(e,r,n){"use strict";Y(e)&&(n=r,r=e,e=[]);var i=n||this,a=Di(ju(e),this._getStoreDimIndex,this);this._store.each(a,i?fe(r,i):r)},t.prototype.filterSelf=function(e,r,n){"use strict";Y(e)&&(n=r,r=e,e=[]);var i=n||this,a=Di(ju(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?fe(r,i):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,n={},i=ne(e),a=[];return w(i,function(o){var s=r._getStoreDimIndex(o);n[s]=e[o],a.push(s)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){"use strict";Y(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){"use strict";var a=n||i||this,o=Di(ju(e),this._getStoreDimIndex,this),s=Ku(this);return s._store=this._store.map(o,a?fe(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=this,o=n||i||this,s=Di(ju(e),this._getStoreDimIndex,this);this._store.modify(s,o?fe(r,o):r)},t.prototype.downSample=function(e,r,n,i){var a=Ku(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Ku(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Ku(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Ae(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new k1(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return bc(e,n)},function(n){return bc(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Xu(e)?N(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),k(a)?a=a.slice():Xu(a)&&(a=N({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Xu(r)?N(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Xu(e)?N(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?N(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;Tu(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){w(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Di(this.dimensions,this._getDimInfo,this),this.hostModel)),Sm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];Y(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Qs(arguments)))})},t.internalField=(function(){ib=function(e){var r=e._invertedIndicesMap;w(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new VI(o.categories.length);for(var u=0;u<n.length;u++)n[u]=nb;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},qu=function(e,r,n){return pr(e._getCategory(r,n),null)},bc=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=qu(e,e._idDimIdx,r)),n==null&&(n=HI+r),n},ju=function(e){return k(e)||(e=e!=null?[e]:[]),e},Ku=function(e){var r=new t(e._schema?e._schema:Di(e.dimensions,e._getDimInfo,e),e.hostModel);return Sm(r,e),r},Sm=function(e,r){w(GI.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,w(WI,function(n){e[n]=J(r[n])}),e._calculationInfo=N({},r._calculationInfo)},bm=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=qu(e,a,r)),u==null&&o!=null&&(i[r]=u=qu(e,o,r)),u==null&&s!=null){var l=e._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[r]=u}}})(),t})(),ss=$I;function ab(t,e){return us(t,e).dimensions}function us(t,e){rs(t)||(t=ns(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=K(),a=[],o=YI(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&xm(o),u=n===t.dimensionsDefine,l=u?_m(t):Yu(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=K(f),p=new gm(o),h=0;h<p.length;h++)p[h]=-1;function d(A){var C=p[A];if(C<0){var T=n[A],F=W(T)?T:{name:T},M=new is,I=F.name;I!=null&&l.get(I)!=null&&(M.name=M.displayName=I),F.type!=null&&(M.type=F.type),F.displayName!=null&&(M.displayName=F.displayName);var L=a.length;return p[A]=L,M.storeDimIndex=A,a.push(M),M}return a[C]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(A,C){var T=Ge(A).slice();if(T.length===1&&!U(T[0])&&T[0]<0){c.set(C,!1);return}var F=c.set(C,[]);w(T,function(M,I){var L=U(M)?l.get(M):M;L!=null&&L<o&&(F[I]=L,m(d(L),C,I))})});var v=0;w(r,function(A){var C,T,F,M;if(U(A))C=A,M={};else{M=A,C=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=N({},M),M.ordinalMeta=I,T=M.dimsDef,F=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var L=c.get(C);if(L!==!1){if(L=Ge(L),!L.length)for(var B=0;B<(T&&T.length||1);B++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&L.push(v++)}w(L,function(R,O){var V=d(R);if(u&&M.type!=null&&(V.type=M.type),m(ee(V,M),C,O),V.name==null&&T){var G=T[O];!W(G)&&(G={name:G}),V.name=V.displayName=G.name,V.defaultTooltip=G.defaultTooltip}F&&ee(V.otherDims,F)})}});function m(A,C,T){Uf.get(C)!=null?A.otherDims[C]=T:(A.coordDim=C,A.coordDimIndex=T,i.set(C,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(A){A.name==null&&(A.name=A.coordDim)}if(s)w(a,function(A){S(A)}),a.sort(function(A,C){return A.storeDimIndex-C.storeDimIndex});else for(var b=0;b<o;b++){var E=d(b),D=E.coordDim;D==null&&(E.coordDim=XI(x,i,_),E.coordDimIndex=0,(!g||y<=0)&&(E.isExtraCoord=!0),y--),S(E),E.type==null&&(dc(t,b)===ht.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return Uo(a,function(A){return A.name},function(A,C){C>0&&(A.name=A.name+(C-1))}),new ym({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function YI(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return w(e,function(a){var o;W(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function XI(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Ec={},Em={},qI=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Ec,!0),this._normalMasterList=n(Em,!1);function n(i,a){var o=[];return w(i,function(s,u){var l=s.create(e,r);o=o.concat(l||[])}),o}},t.prototype.update=function(e,r){w(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Ec[e]=r;return}Em[e]=r},t.get=function(e){return Em[e]||Ec[e]},t})();function jI(t){return!!Ec[t]}var KI=1,wm=2;function ob(t){sb.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var sb=K();function Cc(t){var e=t.getShallow("coord",!0),r=KI;if(e==null){var n=sb.get(t.type);n&&n.getCoord2&&(r=wm,e=n.getCoord2(t))}return{coord:e,from:r}}var ls=0,wc=1,ZI=2;function QI(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=n!=null,a=ls;if(r){var o=t.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=wc,o||(a=ls)):n==="box"&&(a=ZI,!o&&!jI(r)&&(a=ls))}return{coordSysType:r,kind:a}}function ub(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=t.allowNotFound,o=QI(e,!0),s=o.kind,u=o.coordSysType;if(i&&s!==wc&&(s=wc,u=r),s===ls||u!==r)return ls;var l=n(r,e);return l?(s===wc?e.coordinateSystem=l:e.boxCoordinateSystem=l,s):ls}var fs=qI;var JI=(function(){function t(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return t})();function lb(t){var e=t.get("coordinateSystem"),r=new JI(e),n=eP[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var eP={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Et).models[0],a=t.getReferringComponents("yAxis",Et).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),cs(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),cs(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Et).models[0];e.coordSysDims=["single"],r.set("single",i),cs(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Et).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),cs(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),cs(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();w(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),cs(l)&&(n.set(f,l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=u))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Et).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function cs(t){return t.get("type")==="category"}function Dc(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;tP(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var u=!!(t&&t.get("stack")),l,f,c,p,h=!0;function d(x){return x.type!=="ordinal"&&x.type!=="time"}if(w(a,function(x,S){U(x)&&(a[S]=x={name:x}),d(x)||(h=!1)}),w(a,function(x,S){u&&!x.isExtraCoord&&(!n&&!l&&x.ordinalMeta&&(l=x),!f&&d(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!i||i===x.coordDim)&&(f=x))}),f&&!n&&!l&&(n=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,m=f.type,g=0;w(a,function(x){x.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:p,stackResultDimension:c}}function tP(t){return!Sc(t.schema)}function qr(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ac(t,e){return qr(t,e)?t.getCalculationInfo("stackResultDimension"):e}function rP(t,e){var r=t.get("coordinateSystem"),n=fs.get(r),i;return e&&e.coordSysDims&&(i=z(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var u=s.get("type");o.type=Q1(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function nP(t,e,r){var n,i;return r&&w(t,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function iP(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=ns(t)):(i=n.getSource(),a=i.sourceFormat===ct);var o=lb(e),s=rP(e,o),u=r.useEncodeDefaulter,l=Y(u)?u:u?Ce(V1,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},c=us(i,f),p=nP(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=Dc(e,{schema:c,store:h}),v=new ss(c,e);v.setCalculationInfo(d);var m=p!=null&&aP(i)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,m),v}function aP(t){if(t.sourceFormat===ct){var e=oP(t.data||[]);return!k(zn(e))}}function oP(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var _n=iP;var sP=Math.round(Math.random()*10);function xn(t){return[t||"",sP++].join("_")}function fb(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=Qt(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=Qt(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function cb(t,e){t.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,c=l.noEntryList,p={};for(w(a,function(y){p[y]=!0});c.length;){var h=c.pop(),d=f[h],v=!!p[h];v&&(s.call(u,h,d.originalDeps.slice()),delete p[h]),w(d.successor,v?g:m)}w(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(a){var o={},s=[];return w(a,function(u){var l=n(o,u),f=l.originalDeps=e(u),c=i(f,a);l.entryCount=c.length,l.entryCount===0&&s.push(u),w(c,function(p){ue(l.predecessor,p)<0&&l.predecessor.push(p);var h=n(o,p);ue(h.successor,p)<0&&h.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 w(a,function(u){ue(o,u)>=0&&s.push(u)}),s}}function Tc(t,e){return me(me({},t,!0),e,!0)}var uP=Math.log(2);function Dm(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var u=Math.round(Math.log((1<<s)-1&~i)/uP);return t[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var d=1<<p;d&i||(c+=(h%2?-1:1)*t[r][p]*Dm(t,e-1,f,l,i|d,a),h++)}return a[o]=c,c}function Am(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Dm(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)*Dm(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(u,l,f){var c=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/c,u[1]=(l*a[3]+f*a[4]+a[5])/c}}}var Mc="___zrEVENTSAVED",Tm=[];function pb(t,e,r,n,i){return Fc(Tm,e,n,i,!0)&&Fc(t,r,Tm[0],Tm[1])}function hb(t,e){t&&r(t),e&&r(e);function r(n){var i=n[Mc];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Mc])}}function Fc(t,e,r,n,i){if(e.getBoundingClientRect&&ce.domSupported&&!Mm(e)){var a=e[Mc]||(e[Mc]={}),o=lP(e,a),s=fP(o,a,i);if(s)return s(t,r,n),!0}return!1}function lP(t,e){var r=e.markers;if(r)return r;r=e.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;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){w(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function fP(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=t[l].getBoundingClientRect(),c=2*l,p=f.left,h=f.top;o.push(p,h),u=u&&a&&p===a[c]&&h===a[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return u&&i?i:(e.srcCoords=o,e[n]=r?Am(s,o):Am(o,s))}function Mm(t){return t.nodeName.toUpperCase()==="CANVAS"}var cP=/([&<>"'])/g,pP={"&":"&","<":"<",">":">",'"':""","'":"'"};function tt(t){return t==null?"":(t+"").replace(cP,function(e,r){return pP[r]})}var db={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:". "}}}};var vb={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Pc="ZH",Fm="EN",ps=Fm,Ic={},Im={},Lc=ce.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ps).toUpperCase();return t.indexOf(Pc)>-1?Pc:ps})():ps;function Bc(t,e){t=t.toUpperCase(),Im[t]=new Ae(e),Ic[t]=e}function mb(t){if(U(t)){var e=Ic[t.toUpperCase()]||{};return t===Pc||t===Fm?J(e):me(J(e),J(Ic[ps]),!1)}else return me(J(t),J(Ic[ps]),!1)}function gb(t){return Im[t]}function yb(){return Im[ps]}Bc(Fm,db);Bc(Pc,vb);var hP=null;function Ye(){return hP}function Oc(t,e){var r=Ye(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function Na(t){var e=t.brk;return e?e.breaks:[]}function ka(t){var e=t.brk;return e?e.hasBreaks():!1}var kc=1e3,zc=kc*60,hs=zc*60,vr=hs*24,Pm=vr*365,dP={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Nc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},vP="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Rc="{yyyy}-{MM}-{dd}",Lm={year:"{yyyy}",month:"{yyyy}-{MM}",day:Rc,hour:Rc+" "+Nc.hour,minute:Rc+" "+Nc.minute,second:Rc+" "+Nc.second,millisecond:vP},ir=["year","month","day","hour","minute","second","millisecond"],_b=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function xb(t){return!U(t)&&!Y(t)?mP(t):t}function mP(t){t=t||{};var e={},r=!0;return w(ir,function(n){r&&(r=t[n]==null)}),w(ir,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var u=ir[s],l=W(a)&&!k(a)?a[u]:a,f=void 0;k(l)?(f=l.slice(),o=f[0]||""):U(l)?(o=l,f=[o]):(o==null?o=Nc[n]:dP[u].test(o)||(o=e[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][u]=f}}),e}function Lt(t,e){return t+="","0000".substr(0,e-t.length)+t}function ds(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Sb(t){return t===ds(t)}function bb(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Wn(t,e,r,n){var i=zt(t),a=i[Bm(r)](),o=i[Uc(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[Vc(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[Hc(r)](),c=(f-1)%12+1,p=i[Gc(r)](),h=i[Wc(r)](),d=i[$c(r)](),v=f>=12?"pm":"am",m=v.toUpperCase(),g=n instanceof Ae?n:gb(n||Lc)||yb(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Lt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Lt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Lt(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,S[l]).replace(/{ee}/g,b[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Lt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Lt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Lt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Lt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Lt(d,3)).replace(/{S}/g,d+"")}function Eb(t,e,r,n,i){var a=null;if(U(r))a=r;else if(Y(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ye();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var u=t.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=za(t.value,i);a=r[f][f][0]}}return Wn(new Date(t.value),a,i,n)}function za(t,e){var r=zt(t),n=r[Uc(e)]()+1,i=r[Vc(e)](),a=r[Hc(e)](),o=r[Gc(e)](),s=r[Wc(e)](),u=r[$c(e)](),l=u===0,f=l&&s===0,c=f&&o===0,p=c&&a===0,h=p&&i===1,d=h&&n===1;return d?"year":h?"month":p?"day":c?"hour":f?"minute":l?"second":"millisecond"}function vs(t,e,r){switch(e){case"year":t[Om(r)](0);case"month":t[Rm(r)](1);case"day":t[Nm(r)](0);case"hour":t[km(r)](0);case"minute":t[zm(r)](0);case"second":t[Um(r)](0)}return t}function Bm(t){return t?"getUTCFullYear":"getFullYear"}function Uc(t){return t?"getUTCMonth":"getMonth"}function Vc(t){return t?"getUTCDate":"getDate"}function Hc(t){return t?"getUTCHours":"getHours"}function Gc(t){return t?"getUTCMinutes":"getMinutes"}function Wc(t){return t?"getUTCSeconds":"getSeconds"}function $c(t){return t?"getUTCMilliseconds":"getMilliseconds"}function wb(t){return t?"setUTCFullYear":"setFullYear"}function Om(t){return t?"setUTCMonth":"setMonth"}function Rm(t){return t?"setUTCDate":"setDate"}function Nm(t){return t?"setUTCHours":"setHours"}function km(t){return t?"setUTCMinutes":"setMinutes"}function zm(t){return t?"setUTCSeconds":"setSeconds"}function Um(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vm(t,e,r,n,i,a,o,s){var u=new be({style:{text:t,font:e,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return u.getBoundingRect()}function Zu(t){if(!Eu(t))return U(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function ms(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Sn=$i;function Yc(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&dt(f)?f:"-"}function a(f){return it(f)}var o=e==="time",s=t instanceof Date;if(o||s){var u=o?zt(t):t;if(isNaN(+u)){if(s)return"-"}else return Wn(u,n,r)}if(e==="ordinal")return mo(t)?i(t):ie(t)&&a(t)?t+"":"-";var l=Ir(t);return a(l)?Zu(l):mo(t)?i(t):typeof t=="boolean"?t+"":"-"}var Cb=["a","b","c","d","e","f","g"],Hm=function(t,e){return"{"+t+(e??"")+"}"};function gs(t,e,r){k(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Cb[a];t=t.replace(Hm(o),Hm(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=e[s][i[u]];t=t.replace(Hm(Cb[u],s),r?tt(l):l)}return t}function Xc(t,e){var r=U(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=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:'+tt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+tt(n)+";"+(e||"")+'"></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 Db(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
|
|
15
|
+
yyyy`);var n=zt(e),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),u=n[i+"Hours"](),l=n[i+"Minutes"](),f=n[i+"Seconds"](),c=n[i+"Milliseconds"]();return t=t.replace("MM",Lt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Lt(a%100+"",2)).replace("dd",Lt(s,2)).replace("d",s).replace("hh",Lt(u,2)).replace("h",u).replace("mm",Lt(l,2)).replace("m",l).replace("ss",Lt(f,2)).replace("s",f).replace("SSS",Lt(c,3)),t}function Ab(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function jr(t,e){return e=e||"transparent",U(t)?t:W(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Gm(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var jc=w,gP=["left","right","top","bottom","width","height"],qc=[["width","left","right"],["height","top","bottom"]];function $m(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(u,l){var f=u.getBoundingRect(),c=e.childAt(l+1),p=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var v=f.width+(p?-p.x+f.x:0);h=a+v,h>n||u.newline?(a=0,h=v,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);d=o+m,d>i||u.newline?(a+=s+r,o=0,d=m,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var Ua=$m,gV=Ce($m,"vertical"),yV=Ce($m,"horizontal");function Tb(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function yP(t,e){var r=Kr(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===Qu.point)a=r.refPoint,i=Bt(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=k(o)?o:[o,o];i=Bt(n,r.refContainer),a=r.boxCoordFrom===wm?r.refPoint:[te(s[0],i.width)+i.x,te(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function Mb(t,e){var r=yP(t,e),n=r.viewRect,i=r.center,a=t.get("radius");k(a)||(a=[0,a]);var o=te(n.width,e.getWidth()),s=te(n.height,e.getHeight()),u=Math.min(o,s),l=te(a[0],u/2),f=te(a[1],u/2);return{cx:i[0],cy:i[1],r0:l,r:f,viewRect:n}}function Bt(t,e,r){r=Sn(r||0);var n=e.width,i=e.height,a=te(t.left,n),o=te(t.top,i),s=te(t.right,n),u=te(t.bottom,i),l=te(t.width,n),f=te(t.height,i),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(l)&&(l=n-s-p-a),isNaN(f)&&(f=i-u-c-o),h!=null&&(isNaN(l)&&isNaN(f)&&(h>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=h*f),isNaN(f)&&(f=l/h)),isNaN(a)&&(a=n-s-l-p),isNaN(o)&&(o=i-u-f-c),t.left||t.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-p;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(l)&&(l=n-p-a-(s||0)),isNaN(f)&&(f=i-c-o-(u||0));var d=new re((e.x||0)+a+r[3],(e.y||0)+o+r[0],l,f);return d.margin=r,d}var Qu={rect:1,point:2};function Kr(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var u=Cc(t),l=u.coord,f=u.from;if(o.dataToLayout){a=Qu.rect,s=f;var c=o.dataToLayout(l);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Qu.point,s=f,i=o.dataToPoint(l))}return a==null&&(a=Qu.rect),a===Qu.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Ai(t){var e=t.layoutMode||t.constructor.layoutMode;return W(e)?e:e?{type:e}:null}function mr(t,e,r){var n=r&&r.ignoreSize;!k(n)&&(n=[n,n]);var i=o(qc[0],0),a=o(qc[1],1);u(qc[0],t,i),u(qc[1],t,a);function o(l,f){var c={},p=0,h={},d=0,v=2;if(jc(l,function(y){h[y]=t[y]}),jc(l,function(y){Ie(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&d++}),n[f])return s(e,l[1])?h[l[2]]=null:s(e,l[2])&&(h[l[1]]=null),h;if(d===v||!p)return h;if(p>=v)return c;for(var m=0;m<l.length;m++){var g=l[m];if(!Ie(c,g)&&Ie(t,g)){c[g]=t[g];break}}return c}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,c){jc(l,function(p){f[p]=c[p]})}}function bn(t){return _P({},t)}function _P(t,e){return e&&t&&jc(gP,function(r){Ie(e,r)&&(t[r]=e[r])}),t}var xP=le(),ys=(function(t){P(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=xn("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ai(this),a=i?bn(r):{},o=n.getTheme();me(r,o.get(this.mainType)),me(r,this.getDefaultOption()),i&&mr(r,a,i)},e.prototype.mergeOption=function(r,n){me(this.option,r,!0);var i=Ai(this);i&&mr(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!D_(r))return r.defaultOption;var n=xP(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=me(s,i[u],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Si(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return Tb(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Ae);ql(ys,Ae);ni(ys);fb(ys);cb(ys,SP);function SP(t){var e=[];return w(ys.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=z(e,function(r){return Qt(r).main}),t!=="dataset"&&ue(e,"dataset")<=0&&e.unshift("dataset"),e}var xe=ys;var Fb=le(),CV=le(),Ju=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=Ge(this.get("color",!0)),a=this.get("colorLayer",!0);return EP(this,Fb,i,a,e,r,n)},t.prototype.clearColorPalette=function(){wP(this,Fb)},t})();function bP(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function EP(t,e,r,n,i,a,o){a=a||t;var s=e(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:bP(n,o);if(f=f||r,!(!f||!f.length)){var c=f[u];return i&&(l[i]=c),s.paletteIdx=(u+1)%f.length,c}}function wP(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var CP=/\{@(.+?)\}/g,Ib=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),u=n.getItemVisual(e,"style"),l=u&&u[n.getItemVisual(e,"drawType")||"fill"],f=u&&u.stroke,c=this.mainType,p=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:l,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(e,n);if(o&&(u.value=o.interpolatedValue),i!=null&&k(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(e);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Y(a))return u.status=r,u.dimensionIndex=i,a(u);if(U(a)){var f=gs(a,u);return f.replace(CP,function(c,p){var h=p.length,d=p;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var v=Gn(s,e,d);if(o&&k(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,r){return Gn(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function Ym(t){var e,r;return W(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ti(t){return new DP(t)}var DP=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.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(e&&e.modBy),l=e&&e.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=u,this._modDataCount=l;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(c||h<d)){var v=this._progress;if(k(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,d,u,l);else this._doProgress(v,h,d,u,l)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){Pb.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Pb.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),k(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var Pb=(function(){var t,e,r,n,i,a={reset:function(u,l,f,c){e=u,t=l,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var u=e%i*r+Math.ceil(e/i),l=e>=t?null:u<n?u:e;return e++,l}})();var AP=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return as(e,r)},t})();function TP(t,e){var r=new AP,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Ut&>(o);var s=[],u={},l=t.dimensionsDefine;if(l)w(l,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var _="";Ie(u,g)&>(_),u[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=cm(i,Ut);e.__isBuiltIn&&(r.getRawDataItem=function(v){return c(n,a,s,v)},r.getRawData=fe(MP,null,t)),r.cloneRawData=fe(FP,null,t);var p=pm(i,Ut);r.count=fe(p,null,n,a,s);var h=hm(i);r.retrieveValue=function(v,m){var g=c(n,a,s,v);return d(g,m)};var d=r.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return h(v,m,g.name)}};return r.getDimensionInfo=fe(IP,null,s,u),r.cloneAllDimensionInfo=fe(PP,null,s),r}function MP(t){var e=t.sourceFormat;if(!Xm(e)){var r="";gt(r)}return t.data}function FP(t){var e=t.sourceFormat,r=t.data;if(!Xm(e)){var n="";gt(n)}if(e===at){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Tt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(N({},r[a]));return i}}function IP(t,e,r){if(r!=null){if(ie(r)||!isNaN(r)&&!Ie(e,r))return t[r];if(Ie(e,r))return e[r]}}function PP(t){return J(t)}var Lb=K();function Bb(t){t=J(t);var e=t.type,r="";e||gt(r);var n=e.split(":");n.length!==2&>(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,Lb.set(e,t)}function Ob(t,e,r){var n=Ge(t),i=n.length,a="";i||gt(a);for(var o=0,s=i;o<s;o++){var u=n[o];e=LP(u,e,r,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function LP(t,e,r,n){var i="";e.length||gt(i),W(t)||gt(i);var a=t.type,o=Lb.get(a);o||gt(i);var s=z(e,function(f){return TP(f,o)}),u=Ge(o.transform({upstream:s[0],upstreamList:s,config:J(t.config)}));if(0&&t.print)var l;return z(u,function(f,c){var p="";W(f)||gt(p),f.data||gt(p);var h=lm(f.data);Xm(h)||gt(p);var d,v=e[0];if(v&&c===0&&!f.dimensions){var m=v.startIndex;m&&(f.data=v.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:Ut,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:Ut,sourceHeader:0,dimensions:f.dimensions};return Wu(f.data,d,null)})}function Xm(t){return t===at||t===Tt}var Qc=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Zc(e)){var o=e,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=$e(s)?hr:ct,a=[];var c=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},h=X(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=X(c.sourceHeader,p.sourceHeader),v=X(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||v;i=m?[Wu(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:v},u)]:[]}else{var g=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[Wu(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&Rb(a)}var o,s=[],u=[];return w(e,function(l){l.prepareSource();var f=l.getSource(i||0),c="";i!=null&&!f&&Rb(c),s.push(f),u.push(l._getVersionSign())}),n?o=Ob(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Y1(s[0])]),{sourceList:o,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,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];Zc(this._sourceHost)&&u?s=u._innerGetDataStore(e,r,n):(s=new $u,s.initData(new yc(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Zc(e)){var r=hc(e);return r?[r.getSourceManager()]:[]}else return z(H1(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Zc(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function qm(t){var e=t.option.transform;e&&ti(t.option.transform)}function Zc(t){return t.mainType==="series"}function Rb(t){throw new Error(t)}var Va={color:{},darkColor:{},size:{}},Ke=Va.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};N(Ke,{primary:Ke.neutral80,secondary:Ke.neutral70,tertiary:Ke.neutral60,quaternary:Ke.neutral50,disabled:Ke.neutral20,border:Ke.neutral30,borderTint:Ke.neutral20,borderShade:Ke.neutral40,background:Ke.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ke.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ke.neutral70,axisLineTint:Ke.neutral40,axisTick:Ke.neutral70,axisTickMinor:Ke.neutral60,axisLabel:Ke.neutral70,axisSplitLine:Ke.neutral15,axisMinorSplitLine:Ke.neutral05});for(Mi in Ke)Ke.hasOwnProperty(Mi)&&(jm=Ke[Mi],Mi==="theme"?Va.darkColor.theme=Ke.theme.slice():Mi==="highlight"?Va.darkColor.highlight="rgba(255,231,130,0.4)":Mi.indexOf("accent")===0?Va.darkColor[Mi]=Fo(jm,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Va.darkColor[Mi]=Fo(jm,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var jm,Mi;Va.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var $=Va;var BP="line-height:1";function Nb(t){var e=t.lineHeight;return e==null?BP:"line-height:"+tt(e+"")+"px"}function kb(t,e){var r=t.color||$.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||$.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+tt(n+"")+"px;color:"+tt(r)+";font-weight:"+tt(i+""),valueStyle:"font-size:"+tt(o+"")+"px;color:"+tt(a)+";font-weight:"+tt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var OP=[0,10,20,30],RP=["",`
|
|
16
16
|
`,`
|
|
17
17
|
|
|
18
18
|
`,`
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
`];function En(t,e){return e.type=t,e}function Km(t){return t.type==="section"}function zb(t){return Km(t)?NP:kP}function Ub(t){if(Km(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return w(t.blocks,function(i){var a=Ub(i);a>=e&&(e=a+ +(n&&(!a||Km(i)&&!i.noHeader)))}),e}return 0}function NP(t,e,r,n){var i=e.noHeader,a=zP(Ub(e)),o=[],s=e.blocks||[];Ue(!s||k(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Ie(l,u)){var f=new J1(l[u],null);s.sort(function(v,m){return f.evaluate(v.sortParam,m.sortParam)})}else u==="seriesDesc"&&s.reverse()}w(s,function(v,m){var g=e.valueFormatter,y=zb(v)(g?N(N({},t),{valueFormatter:g}):t,v,m>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Zm(n,o.join(""),i?r:a.html);if(i)return c;var p=Yc(e.header,"ordinal",t.useUTC),h=kb(n,t.renderMode).nameStyle,d=Nb(n);return t.renderMode==="richText"?Vb(t,p,h)+a.richText+c:Zm(n,'<div style="'+h+";"+d+';">'+tt(p)+"</div>"+c,r)}function kP(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=k(x)?x:[x],z(x,function(S,b){return Yc(S,k(h)?h[b]:h,l)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||$.color.secondary,i),p=a?"":Yc(u,"ordinal",l),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),v=!s||!a,m=!s&&a,g=kb(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":c)+(a?"":Vb(t,p,y))+(o?"":HP(t,d,v,m,_)):Zm(n,(s?"":c)+(a?"":UP(p,!s,y))+(o?"":VP(d,v,m,_)),r)}}function Qm(t,e,r,n,i,a){if(t){var o=zb(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function zP(t){return{html:OP[t],richText:RP[t]}}function Zm(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=Nb(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function UP(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+tt(t)+"</span>"}function VP(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=k(t)?t:[t],'<span style="'+a+";"+n+'">'+z(t,function(o){return tt(o)}).join(" ")+"</span>"}function Vb(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function HP(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(k(e)?e.join(" "):e,a)}function Jc(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return jr(n)}function ep(t,e){var r=t.get("padding");return r!=null?r:e==="richText"?[8,10]:10}var tp=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=wu()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=Xc({color:r,type:e,renderMode:n,markerId:i});return U(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};k(r)?w(r,function(a){return N(n,a)}):N(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function Hb(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),u=k(s),l=Jc(e,r),f,c,p,h;if(o>1||u&&!o){var d=GP(s,e,r,a,l);f=d.inlineValues,c=d.inlineValueTypes,p=d.blocks,h=d.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=f=Gn(i,r,a[0]),c=v.type}else h=f=u?s[0]:s;var m=zo(e),g=m&&e.name||"",y=i.getName(r),_=n?g:y;return En("section",{header:g,noHeader:n||!m,sortParam:h,blocks:[En("nameValue",{markerType:"item",markerColor:l,name:_,noName:!dt(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(p||[])})}function GP(t,e,r,n,i){var a=e.getData(),o=At(t,function(c,p,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?w(n,function(c){f(Gn(a,r,c),c)}):w(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?l.push(En("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),u.push(h.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Fi=le();function rp(t,e){return t.getName(e)||t.getId(e)}var WP="__universalTransitionEnabled",np=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ti({count:YP,reset:XP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Fi(this).sourceManager=new Qc(this);a.prepareSource();var o=this.getInitialData(r,i);Wb(o,this),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,Gb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Di(this),a=i?bn(r):{},o=this.subType;xe.hasClass(o)&&(o+="Series"),me(r,n.getTheme().get(this.subType)),me(r,this.getDefaultOption()),ya(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&mr(r,a,i)},e.prototype.mergeOption=function(r,n){r=me(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Di(this);i&&mr(this.option,r,i);var a=Fi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Wb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,Gb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!$e(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&ya(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Jm(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Fi(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Jm(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Fi(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return K(r)},e.prototype.getSourceManager=function(){return Fi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Fi(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,d=o.getDimensionIndex(n),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),_=u.dataToCoord(y),x=l-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return Hb({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ce.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Ju.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.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=rp(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.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)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ne(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[rp(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[WP])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.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"){W(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var c=n[f],p=rp(r,c);l[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[u-1],p=rp(r,h);o.selectedMap=(i={},i[p]=!0,i),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.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)}},e.registerClass=function(r){return xe.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(xe);nt(np,Ib);nt(np,Ju);ql(np,xe);function Gb(t){var e=t.name;zo(t)||(t.name=$P(t)||e)}function $P(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return w(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function YP(t){return t.model.getRawData().count()}function XP(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),qP}function qP(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Wb(t,e){w(cd(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ce(jP,e))})}function jP(t,e){var r=Jm(t);return r&&r.setOutputEnd((e||this).count()),e}function Jm(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var ke=np;var KP=ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),ZP=ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),QP=ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,c=Math.sin(l),p=Math.cos(l),h=o*.6,d=o*.7;t.moveTo(r-f,u+s),t.arc(r,u,o,Math.PI-l,Math.PI*2+l),t.bezierCurveTo(r+f-c*h,u+s+p*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,u+s+p*h,r-f,u+s),t.closePath()}}),JP=ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),eL={line:Pt,rect:Ee,roundRect:Ee,square:Ee,circle:Hn,diamond:ZP,pin:QP,arrow:JP,triangle:KP},tL={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},eg={};w(eL,function(t,e){eg[e]=new t});var rL=ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=ra(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=eg[n];i||(n="rect",i=eg[n]),tL[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function nL(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||$.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function ot(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=Hu(t.slice(8),new re(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?u=Zo(t.slice(7),{},new re(e,r,n,i),o?"center":"cover"):u=new rL({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=nL,a&&u.setColor(a),u}function ip(t){return k(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function ap(t,e){if(t!=null)return k(t)||(t=[t,t]),[te(t[0],e[0])||0,te(X(t[1],t[0]),e[1])||0]}var aL=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var n;return _n(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new _e,i=ot("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=r.itemHeight*.8,l=ot(s,(r.itemWidth-u)/2,(r.itemHeight-u)/2,u,u,r.itemStyle.fill);n.add(l),l.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return l.rotation=f*Math.PI/180,l.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill=$.color.neutral00,l.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(ke),$b=aL;function _s(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Gn(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Gn(t,e,r[o]));return a.join(" ")}}function op(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!k(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var oL=(function(t){P(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var u=ot(r,-1,-1,2,2,null,s);u.attr({z2:X(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),u.drift=sL,this._symbolType=r,this.add(u)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){_a(this.childAt(0))},e.prototype.downplay=function(){xa(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,u=e.getSymbolSize(r,n),l=e.getSymbolZ2(r,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,u,l,p)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:u[0]/2,scaleY:u[1]/2};c?h.attr(d):we(h,d,s,n),Xr(h)}if(this._updateCommon(r,n,u,i,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Me(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),u=r.hostModel,l,f,c,p,h,d,v,m,g;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,v=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),v=nr(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=ap(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=r.getItemVisual(n,"style"),E=b.fill;if(s instanceof je){var A=s.style;s.useStyle(N({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(N({},b)):s.useStyle(b),s.style.decal=null,s.setColor(E,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),C=this._z2;D!=null?C==null&&(this._z2=s.z2,s.z2+=D):C!=null&&(s.z2=C,this._z2=null);var T=o&&o.useNameLabel;rr(s,v,{labelFetcher:u,labelDataIndex:n,defaultText:F,inheritColor:E,defaultOpacity:b.opacity});function F(L){return T?r.getName(L):_s(r,L)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=l,s.ensureState("select").style=c,s.ensureState("blur").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),Mt(this,p,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=de(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var u=a.getTextContent();u&&Ko(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ko(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return ip(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(_e);function sL(t,e){this.parent.drift(t,e)}var el=oL;function sp(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Yb(t){return t!=null&&!W(t)&&(t={isIgnore:t}),t||{}}function Xb(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:nr(e),cursorStyle:e.get("cursor")}}function qb(t,e,r,n,i,a,o){var s=new t(e,r,n,i);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var uL=(function(){function t(e){this.group=new _e,this._SymbolCtor=e||el}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Yb(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,u=this._seriesScope=Xb(e),l={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var p=f(c);sp(e,p,c,r)&&qb(o,e,c,u,l,p,n)}).update(function(c,p){var h=a.getItemGraphicEl(p),d=f(c);if(!sp(e,d,c,r)){n.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)n.remove(h),h=new o(e,c,u,l),h.setPosition(d);else{h.updateData(e,c,u,l);var g={x:d[0],y:d[1]};s?h.attr(g):we(h,g,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){n.remove(p)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a<o;a++){var s=r.getItemGraphicEl(a),u=n._getSymbolPoint(a);sp(r,u,a,e)?(s=s||qb(n._SymbolCtor,r,a,n._seriesScope,{disableAnimation:!0},u,n.group),s.stopAnimation(),s.setPosition(u),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Xb(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n,i){this._progressiveEls=[],i=Yb(i);function a(l){l.isGroup||(l.incremental=n,l.ensureState("emphasis").hoverLayer=Vu)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(sp(r,s,o,i)){var u=new this._SymbolCtor(r,o,this._seriesScope);u.traverse(a),u.setPosition(s),this.group.add(u),r.setItemGraphicEl(o,u),this._progressiveEls.push(u)}}},t.prototype.eachRendered=function(e){Ma(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})(),up=uL;function lp(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=lL(i,r),o=n.dim,s=i.dim,u=e.mapDimension(s),l=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=z(t.dimensions,function(d){return e.mapDimension(d)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return qr(e,c[0])&&(p=!0,c[0]=h),qr(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:u,baseDim:l,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function lL(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:ie(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function fp(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function ar(t,e){return!isFinite(t)||!isFinite(e)}var fL=typeof Float32Array!==Ei?Float32Array:void 0,jb=typeof Float64Array!==Ei?Float64Array:void 0;function gr(t){return cp({ctor:fL},t).arr}function cp(t,e){var r=t.arr,n=t.ctor;if(e>Su&&(e=Su),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch(s){}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}function cL(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function tg(t,e,r,n,i,a,o,s){for(var u=cL(t,e),l=[],f=[],c=[],p=[],h=[],d=[],v=[],m=lp(i,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<u.length;_++){var x=u[_],S=!0,b=void 0,E=void 0;switch(x.cmd){case"=":b=x.idx*2,E=x.idx1*2;var A=g[b],D=g[b+1],C=y[E],T=y[E+1];(isNaN(A)||isNaN(D))&&(A=C,D=T),l.push(A,D),f.push(C,T),c.push(r[b],r[b+1]),p.push(n[E],n[E+1]),v.push(e.getRawIndex(x.idx1));break;case"+":var F=x.idx,M=m.dataDimsForPoint,I=i.dataToPoint([e.get(M[0],F),e.get(M[1],F)]);E=F*2,l.push(I[0],I[1]),f.push(y[E],y[E+1]);var L=fp(m,i,e,F);c.push(L[0],L[1]),p.push(n[E],n[E+1]),v.push(e.getRawIndex(F));break;case"-":S=!1}S&&(h.push(x),d.push(d.length))}d.sort(function(oe,ge){return v[oe]-v[ge]});for(var B=l.length,R=gr(B),O=gr(B),V=gr(B),G=gr(B),H=[],_=0;_<d.length;_++){var q=d[_],Q=_*2,j=q*2;R[Q]=l[j],R[Q+1]=l[j+1],O[Q]=f[j],O[Q+1]=f[j+1],V[Q]=c[j],V[Q+1]=c[j+1],G[Q]=p[j],G[Q+1]=p[j+1],H[_]=h[q]}return{current:R,next:O,stackedOnCurrent:V,stackedOnNext:G,status:H}}var Ii=Math.min,Pi=Math.max;function rg(t,e,r,n,i,a,o,s,u){for(var l,f,c,p,h,d,v=r,m=0;m<n;m++){var g=e[v*2],y=e[v*2+1];if(v>=i||v<0)break;if(ar(g,y)){if(u){v+=a;continue}break}if(v===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-l,x=y-f;if(_*_+x*x<.5){v+=a;continue}if(o>0){for(var S=v+a,b=e[S*2],E=e[S*2+1];b===g&&E===y&&m<n;)m++,S+=a,v+=a,b=e[S*2],E=e[S*2+1],g=e[v*2],y=e[v*2+1],_=g-l,x=y-f;var A=m+1;if(u)for(;ar(b,E)&&A<n;)A++,S+=a,b=e[S*2],E=e[S*2+1];var D=.5,C=0,T=0,F=void 0,M=void 0;if(A>=n||ar(b,E))h=g,d=y;else{C=b-l,T=E-f;var I=g-l,L=b-g,B=y-f,R=E-y,O=void 0,V=void 0;if(s==="x"){O=Math.abs(I),V=Math.abs(L);var G=C>0?1:-1;h=g-G*O*o,d=y,F=g+G*V*o,M=y}else if(s==="y"){O=Math.abs(B),V=Math.abs(R);var H=T>0?1:-1;h=g,d=y-H*O*o,F=g,M=y+H*V*o}else O=Math.sqrt(I*I+B*B),V=Math.sqrt(L*L+R*R),D=V/(V+O),h=g-C*o*(1-D),d=y-T*o*(1-D),F=g+C*o*D,M=y+T*o*D,F=Ii(F,Pi(b,g)),M=Ii(M,Pi(E,y)),F=Pi(F,Ii(b,g)),M=Pi(M,Ii(E,y)),C=F-g,T=M-y,h=g-C*O/V,d=y-T*O/V,h=Ii(h,Pi(l,g)),d=Ii(d,Pi(f,y)),h=Pi(h,Ii(l,g)),d=Pi(d,Ii(f,y)),C=g-h,T=y-d,F=g+C*V/O,M=y+T*V/O}t.bezierCurveTo(c,p,h,d,g,y),c=F,p=M}else t.lineTo(g,y)}l=g,f=y,v+=a}return m}var Kb=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),Zb=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Kb},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&ar(i[o*2-2],i[o*2-1]);o--);for(;a<o&&ar(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=rg(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=bt.CMD,s,u,l=n==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],u=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=l?(r-s)/(h-s):(r-u)/(d-u),_<=1&&_>=0){var x=l?(d-u)*_+u:(h-s)*_+s;return l?[r,x]:[x,r]}s=h,u=d;break;case o.C:h=a[c++],d=a[c++],v=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=l?aa(s,h,v,g,r,f):aa(u,d,m,y,r,f);if(S>0)for(var b=0;b<S;b++){var E=f[b];if(E<=1&&E>=0){var x=l?Ve(u,d,m,y,E):Ve(s,h,v,g,E);return l?[r,x]:[x,r]}}s=g,u=y;break}}},e})(ae);var pL=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Kb),Qb=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new pL},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ar(i[s*2-2],i[s*2-1]);s--);for(;o<s&&ar(i[o*2],i[o*2+1]);o++);}for(;o<s;){var l=rg(r,i,o,s,s,1,n.smooth,u,n.connectNulls);rg(r,a,o+l-1,l,s,-1,n.stackedOnSmooth,u,n.connectNulls),o+=l+1,r.closePath()}},e})(ae);function Ha(){var t=le();return function(e){var r=t(e),n=e.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 tE=le(),hL=Ha(),ng=(function(){function t(){this.group=new _e,this.uid=xn("viewChart"),this.renderTask=Ti({plan:dL,reset:vL}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&eE(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&eE(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Ma(this.group,e)},t.markUpdateMethod=function(e,r){tE(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Jb(t,e,r){t&&Bu(t)&&(e==="emphasis"?_a:xa)(t,r)}function eE(t,e,r){var n=Pr(t,e),i=e&&e.highlightKey!=null?YS(e.highlightKey):null;n!=null?w(Ge(n),function(a){Jb(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Jb(a,r,i)})}go(ng,["dispose"]);ni(ng);function dL(t){return hL(t.model)}function vL(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&tE(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](e,r,n,i),mL[u]}var mL={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Pe=ng;function ig(t,e,r,n,i){var a=t.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 c=new Ee({shape:{x:o,y:s,width:u,height:l}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),d=p.inverse;h?(d&&(c.shape.x+=u),c.shape.width=0):(d||(c.shape.y+=l),c.shape.height=0);var v=Y(i)?function(m){i(m,c)}:null;Me(c,{shape:{width:u,height:l,x:o,y:s}},r,null,n,v)}return c}function ag(t,e,r){var n=t.getArea(),i=ye(n.r0,1),a=ye(n.r,1),o=new It({shape:{cx:ye(t.cx,1),cy:ye(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Me(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function rE(t,e,r,n,i){if(t){if(t.type==="polar")return ag(t,e,r);if(t.type==="cartesian2d")return ig(t,e,r,n,i)}else return null;return null}function nE(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function pp(t,e){return t.type===e}var iE=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();ni(iE);var Wt=iE;var gL=0,yL=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gL,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&z(n,_L);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!U(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},t})();function _L(t){return W(t)&&t.value!=null?t.value:t+""}var tl=yL;var or=0,xs=1,xL={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},oE=ne(xL),Ss=2,sE=3;function bs(t,e,r){var n;t=t||{};var i=Ye();if(i){var a=i.createBreakScaleMapper(e,r);a.hasBreaks()&&(w(oE,function(o){a[o]&&(t[o]=fe(a[o],a))}),n=a)}return n==null&&SL(t,r),{brk:n,mapper:t}}function hp(t,e){w(oE,function(r){t[r]=e[r]})}function dp(t,e){t.freeze=Be}function $n(t){return t.getExtentUnsafe(or,Ss)}function Ga(t,e){return t.getExtentUnsafe(xs,e)||t.getExtentUnsafe(or,e)}function uE(t){var e=Ga(t,sE);return e[1]-e[0]}function Es(t){var e=t.getExtentUnsafe(or,sE);return e[1]-e[0]}function SL(t,e){var r=t||{},n=[];return r._extents=n,n[or]=e?e.slice():wt(),N(r,bL),r}var bL={needTransform:function(){return!1},normalize:function(t){var e=this._extents[xs]||this._extents[or];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[xs]||this._extents[or];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Ga(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[or].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){aE(this._extents,or,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[or].slice()),aE(n,t,e,r)},freeze:function(){}};function aE(t,e,r,n){Un(r,n)&&(t[e][0]=r,t[e][1]=n)}function vp(t){return ws(t)||wn(t)}function ws(t){return t.type==="interval"}function Cs(t){return t.type==="time"}function wn(t){return t.type==="log"}function _t(t){return t.type==="ordinal"}function lE(t){var e=No(t),r=_i(10,e),n=Jt(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ye(n*r,-e)}function Zr(t){return cr(t)+2}function rl(t,e){return gi(t)/gi(e)}function mp(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return _i(e,t)}function gp(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Oe(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!Wr(n[0])||!Wr(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function fE(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Wa(t,e){return t=t||e,Jt(ve(t,1))}function yp(t,e,r){var n=$n(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&u(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)u(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&u(n[1],!0,!0);function u(l,f,c){r({value:l,offInterval:f},c)}}var cE=(function(t){P(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,hp(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new tl({})),k(i)&&(i=new tl({categories:z(i,function(o){return W(o)?o.value:o})})),n._ordinalMeta=i;var a=bs(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,dp(n,a.mapper),n}return e.parse=function(r){return r==null?r=NaN:U(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Jt(r),r},e.prototype.getTicks=function(){var r=[];return yp(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.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=He(s,n.length);o<u;++o){var l=i[o]=n[o];a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=$n(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Jt(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e})(Wt);Wt.registerClass(cE);var pE=cE;function As(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var u=i[s],l=i[s-1];if(!(l.break||u.break)){for(var f=0,c=[],p=u.value-l.value,h=p/e,d=Zr(h);f<e-1;){var v=ye(l.value+(f+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),f++}var m=Ye();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},n,o),a.push(c)}}return a}var hE=(function(t){P(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=Oc(n,r),a=bs(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return J(this._cfg)},e.prototype.setConfig=function(r){var n=$n(this);this._cfg=r=J(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Zr(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=$n(this),o=n.niceExtent,s=n.intervalPrecision,u=Ye(),l=this.brk,f=u&&l,c=[];if(!i)return c;if(r.breakTicks==="only_break"&&f)return u.addBreaksToTicks(c,l.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ye(o[0]-i,s):a[0]});for(var h=function(_,x){return Jt((x-_)/i)},d=n.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=He(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=ye(v+i,s),l){var g=l.calcNiceTickMultiple(v,h);g>=0&&(v=ye(v+g*i,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ye(y+i,s):a[1]}),f&&u.pruneTicksByBreak(r.pruneByBreak,c,l.breaks,function(_){return _.value},n.interval,a),f&&r.breakTicks!=="none"&&u.addBreaksToTicks(c,l.breaks,a),c},e.prototype.getMinorTicks=function(r){return As(this,r,Na(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=cr(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=ye(r.value,i,!0);return Zu(a)},e.type="interval",e})(Wt);Wt.registerClass(hE);var Cn=hE;var EL=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},vE=(function(t){P(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=Oc(n,r),a=bs(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return Wn(r.value,Lm[bb(ds(this._minLevelUnit))]||Lm.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return Eb(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=$n(this),a=Ye(),o=this.brk,s=a&&o,u=[];if(!n)return u;var l=this._useUTC;if(s&&r.breakTicks==="only_break")return Ye().addBreaksToTicks(u,o.breaks,i),u;u=FL(this._minLevelUnit,this._approxInterval,l,i,Es(this),o);var f=ir.length-1,c=0;return w(u,function(p){p.time&&(f=Math.min(f,ue(ir,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ye().pruneTicksByBreak(r.pruneByBreak,u,o.breaks,function(p){return p.value},this._approxInterval,i),s&&r.breakTicks!=="none"&&Ye().addBreaksToTicks(u,o.breaks,i,function(p){for(var h=Math.max(ue(ir,za(p.vmin,l)),ue(ir,za(p.vmax,l))),d=0,v=0;v<ir.length;v++)if(!mE(ir[v],p.vmin,p.vmax,l)){d=v;break}var m=Math.min(d,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:ir[g],upperTimeUnit:ir[m]}}),u},e.prototype.getMinorTicks=function(r){return As(this,r,Na(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return ie(r)?Math.round(r):+zt(r)},e.type="time",e})(Wt),_p=[["second",kc],["minute",zc],["hour",hs],["quarter-day",hs*6],["half-day",hs*12],["day",vr*1.2],["half-week",vr*3.5],["week",vr*7],["month",vr*31],["quarter",vr*95],["half-year",Pm/2],["year",Pm]];function mE(t,e,r,n){return vs(new Date(e),t,n).getTime()===vs(new Date(r),t,n).getTime()}function wL(t,e){return t/=vr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function CL(t){var e=30*vr;return t/=e,t>6?6:t>3?3:t>2?2:1}function AL(t){return t/=hs,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function dE(t,e){return t/=e?zc:kc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function DL(t){return ve(kn(t,!0),1)}function TL(t,e,r){var n=Math.max(0,ue(ir,e)-1);return vs(new Date(t),ir[n],r).getTime()}function ML(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function FL(t,e,r,n,i,a){var o=3e3,s=_b,u=0;function l(B,R,O,V,G,H,q){for(var Q=ML(G,B),j=R,oe=new Date(j);j<O&&j<=n[1]&&(q.push({value:j}),!(u++>o));)if(oe[G](oe[V]()+B),j=oe.getTime(),a){var ge=a.calcNiceTickMultiple(j,Q);ge>0&&(oe[G](oe[V]()+ge*B),j=oe.getTime())}q.push({value:j,notAdd:j>n[1]})}function f(B,R,O){var V=[],G=!R.length;if(!mE(ds(B),n[0],n[1],r)){G&&(R=[{value:TL(n[0],B,r)},{value:n[1]}]);for(var H=0;H<R.length-1;H++){var q=R[H].value,Q=R[H+1].value;if(q!==Q){var j=void 0,oe=void 0,ge=void 0,Xe=!1;switch(B){case"year":j=Math.max(1,Math.round(e/vr/365)),oe=Bm(r),ge=wb(r);break;case"half-year":case"quarter":case"month":j=CL(e),oe=Uc(r),ge=Om(r);break;case"week":case"half-week":case"day":j=wL(e,31),oe=Vc(r),ge=Rm(r),Xe=!0;break;case"half-day":case"quarter-day":case"hour":j=AL(e),oe=Hc(r),ge=Nm(r);break;case"minute":j=dE(e,!0),oe=Gc(r),ge=km(r);break;case"second":j=dE(e,!1),oe=Wc(r),ge=zm(r);break;case"millisecond":j=DL(e),oe=$c(r),ge=Um(r);break}Q>=n[0]&&q<=n[1]&&l(j,q,Q,oe,ge,Xe,V),B==="year"&&O.length>1&&H===0&&O.unshift({value:O[0].value-j})}}for(var H=0;H<V.length;H++)O.push(V[H])}}for(var c=[],p=[],h=0,d=0,v=0;v<s.length;++v){var m=ds(s[v]);if(Sb(s[v])){f(s[v],c[c.length-1]||[],p);var g=s[v+1]?ds(s[v+1]):null;if(m!==g){if(p.length){d=h,p.sort(function(B,R){return B.value-R.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=n[0]&&x<=n[1]&&h++)}var S=i/e;if(h>S*1.5&&d>S/1.5||(c.push(y),h>S||t===s[v]))break}p=[]}}}for(var b=Fe(z(c,function(B){return Fe(B,function(R){return R.value>=n[0]&&R.value<=n[1]&&!R.notAdd})}),function(B){return B.length>0}),E=b.length-1,A=[],v=0;v<b.length;++v)for(var D=b[v],C=0;C<D.length;++C){var T=za(D[C].value,r);A.push({value:D[C].value,time:{level:E-v,upperTimeUnit:T,lowerTimeUnit:T}})}Uo(A,CS,null),A.sort(function(B,R){return B.value-R.value});var F=A[0],M=A[A.length-1],I=za(n[0],r),L=za(n[1],r);return(!F||F.value>n[0])&&A.unshift({value:n[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.value<n[1])&&A.push({value:n[1],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),A}var gE=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=vr,r[1]+=vr),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-vr}t.setExtent(r[0],r[1]);var i=Wa(e.splitNumber,10),a=Es(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var u=_p.length,l=Math.min(EL(_p,a,0,u),u-1),f=_p[l][1],c=_p[Math.max(l-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Wt.registerClass(vE);var yE=vE;var xp=0,Sp=1,IL=2,bE=(function(t){P(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=Cn.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[xp]=i[Sp]=a[xp]=a[Sp]=NaN,hp(n,e.mapperMethods);var s=Ye(),u=r.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(u,n,{noNegative:!0},IL,l),n.powStub=new Cn({breakParsed:l.original}),n.intervalStub=new Cn({breakParsed:l.transformed}),dp(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=Ye(),o=this.intervalStub,s=o.getExtent(),u=i.getExtent(),l={lookup:{from:s,to:u}};return z(o.getTicks(r||{}),function(f){var c=f.value,p=mp(c,n,l),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,Na(i),this._lookup);d&&(h=d.vBreak,p=d.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return As(this,r,Na(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(rl(r,this.base))},scale:function(r){return mp(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=rl(r,this.base),n&&n.depth===Ss?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return _E.depth=i,xE.lookup=this._lookup,mp(i===Ss?r:this.intervalStub.transformOut(r,_E),this.base,xE)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(or,r,n)},setExtent2:function(r,n,i){if(!(!Un(n,i)||n<=0||i<=0)){var a=SE,o=SE;if(r===or){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[xp]=n,a[Sp]=i);var u=this.base;this.intervalStub.setExtent2(r,o[xp]=rl(n,u),o[Sp]=rl(i,u))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Un(n[0],n[1])&&it(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(Wt);Wt.registerClass(bE);var _E={},xE={},SE=[],EE=bE;var bp={value:1,category:1,time:1,log:1};var wE=le();function wp(t){var e=t.get("type");return(e==null||!Ie(bp,e)&&!Wt.getClass(e))&&(e="value"),e}function Cp(t,e,r){var n=Ye(),i;switch(n&&(i=og(t,e,r)),e){case"category":return new pE({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:wt()});case"time":return new yE({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new EE({logBase:t.get("logBase"),breakOption:i});case"value":return new Cn({breakOption:i});default:return new(Wt.getClass(e)||Cn)({})}}function CE(t,e,r){var n=r?Ga(t,null):t.getExtentUnsafe(or,null),i=n[0],a=n[1];return Un(i,a)?i===e||a===e?LL:i<e&&a>e?PL:Ep:Ep}var PL=1,LL=2,Ep=3;function AE(t){wE(t).noOnMyZero=!0}function DE(t){return wE(t).noOnMyZero}function nl(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=xb(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(U(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a!=null?a:"");return o};if(Y(e)){if(t.type==="category")return function(i,a){return e(Ds(t,i),i.value-t.scale.getExtent()[0],null)};var n=Ye();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Ds(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Ds(t,e){var r=t.scale;return _t(r)?r.getLabel(e):e.value}function Ap(t){var e=t.get("interval");return e==null?"auto":e}function TE(t){return t.type==="category"&&Ap(t.getLabelModel())===0}function ME(t,e){var r={};return w(t.mapDimensionsAll(e),function(n){r[Dc(t,n)]=!0}),ne(r)}function Li(t){return t==="middle"||t==="center"}function $a(t){return t.getShallow("show")}function og(t,e,r){var n=t.get("breaks",!0);if(n!=null){if(!Ye())return;if(!r||!BL(e)){if(0)var i;return}return n}}function BL(t){return t!=="category"}function Dp(t,e,r,n,i,a){var o=wn(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var u=t.powStub,l={depth:Ss},f=t.transformOut(n[0],l),c=t.transformOut(n[1],l),p=fE(r,n);e[0]&&!p[0]&&(f=i[0]),e[1]&&!p[1]&&(c=i[1]),u.setExtent(f,c)}s.setConfig(a)}function Yn(t,e){return _t(t)?t.getRawOrdinalNumber(e.value):e.value}function Tp(t,e){return _t(t)&&!!e.get("boundaryGap")}function FE(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function IE(t){for(var e=wt(),r=wt(),n=0;n<t.length;){var i=t[n++],a=t[n++];ar(i,a)||(Du(e,i),Du(r,a))}return[e,r]}function PE(t,e){var r=IE(t),n=r[0],i=r[1],a=IE(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function LE(t){return ie(t)?t:t?.5:0}function OL(t,e,r){if(r.valueDim==null)return[];for(var n=e.count(),i=gr(n*2),a=0;a<n;a++){var o=fp(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Bi(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],u=0,l=[],f=[],c=[],p=[];if(i){for(u=0;u<t.length;u+=2){var h=e||t;ar(h[u],h[u+1])||p.push(t[u],t[u+1])}t=p}for(u=0;u<t.length-2;u+=2)switch(c[0]=t[u+2],c[1]=t[u+3],f[0]=t[u],f[1]=t[u+1],s.push(f[0],f[1]),n){case"end":l[o]=c[o],l[1-o]=f[1-o],s.push(l[0],l[1]);break;case"middle":var d=(f[o]+c[o])/2,v=[];l[o]=v[o]=d,l[1-o]=f[1-o],v[1-o]=c[1-o],s.push(l[0],l[1]),s.push(v[0],v[1]);break;default:l[o]=f[o],l[1-o]=c[1-o],s.push(l[0],l[1])}return s.push(t[u++],t[u++]),s}function RL(t,e){var r=[],n=t.length,i,a;function o(f,c,p){var h=f.coord,d=(p-h)/(c.coord-h),v=lf(d,[f.color,c.color]);return{coord:p,color:v}}for(var s=0;s<n;s++){var u=t[s],l=u.coord;if(l<0)i=u;else if(l>e){a?r.push(o(a,u,e)):i&&r.push(o(i,u,0),o(i,u,e));break}else i&&(r.push(o(i,u,0)),i=null),r.push(u),a=u}return r}function NL(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var u=e.getAxis(i),l=z(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,c=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),c.reverse());var p=RL(l,i==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return l[0].coord<0?c[1]?c[1]:l[f-1].color:c[0]?c[0]:l[0].color;var d=10,v=p[0].coord-d,m=p[h-1].coord+d,g=m-v;if(g<.001)return"transparent";w(p,function(_){_.offset=(_.coord-v)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new jo(0,0,0,0,p,!0);return y[i]=v,y[i+"2"]=m,y}}}function kL(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&zL(a,e))){var o=e.mapDimension(a.dim),s={};return w(a.getViewLabels(),function(u){u.tick.offInterval||(s[Yn(a.scale,u.tick)]=1)}),function(u){return!s.hasOwnProperty(e.get(o,u))}}}}function zL(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(el.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function UL(t){for(var e=t.length/2;e>0&&ar(t[e*2-2],t[e*2-1]);e--);return e-1}function BE(t,e){return[t[e*2],t[e*2+1]]}function VL(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,u=-1,l=0;l<n;l++)if(o=t[l*2+i],!ar(o,t[l*2+1-i])){if(l===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){u=l;break}s=l,a=o}return{range:[s,u],t:(e-a)/(o-a)}}function OE(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Vt.length;e++)if(t.get([Vt[e],"endLabel","show"]))return!0;return!1}function ug(t,e,r,n){if(pp(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},u=OE(n)?function(h,d){t._endLabelOnDuring(h,d,o,s,a,i,e)}:null,l=e.getBaseAxis().isHorizontal(),f=ig(e,r,n,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},u);if(!n.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);l?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return u&&u(1,f),f}else return ag(e,r,n)}function HL(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var GL=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new _e,n=new up;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=fe(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),u=r.getModel("lineStyle"),l=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!n.ssr&&r.get("animation"),y=!l.isEmpty(),_=l.get("origin"),x=lp(a,s,_),S=y&&OL(a,s,x),b=r.get("showSymbol"),E=r.get("connectNulls"),A=b&&!c&&kL(r,s,a),D=this._data;D&&D.eachItemGraphicEl(function(Ae,Le){Ae.__temp&&(o.remove(Ae),D.setItemGraphicEl(Le,null))}),b||h.remove(),o.add(m);var C=c?!1:r.get("step"),T;a&&a.getArea&&r.get("clip",!0)&&(T=a.getArea(),T.width!=null?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var F=NL(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&p.type===a.type&&C===this._step))b&&h.updateData(s,{isIgnore:A,clipShape:T,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,T),C&&(S&&(S=Bi(S,f,a,C,E)),f=Bi(f,null,a,C,E)),d=this._newPolyline(f),y?v=this._newPolygon(f,S):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,jr(F)),m.setClipPath(ug(this,a,!0,r));else{y&&!v?v=this._newPolygon(f,S):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,jr(F));var M=m.getClipPath();if(M){var I=ug(this,a,!1,r);Me(M,{shape:I.shape},r)}else m.setClipPath(ug(this,a,!0,r));b&&h.updateData(s,{isIgnore:A,clipShape:T,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),(!FE(this._stackedOnPoints,S)||!FE(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,i,C,_,E):(C&&(S&&(S=Bi(S,f,a,C,E)),f=Bi(f,null,a,C,E)),d.setShape({points:f}),v&&v.setShape({points:f,stackedOnPoints:S})))}var L=r.getModel("emphasis"),B=L.get("focus"),R=L.get("blurScope"),O=L.get("disabled");if(d.useStyle(ee(u.getLineStyle(),{fill:"none",stroke:F,lineJoin:"bevel"})),Ht(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var V=d.getState("emphasis").style;V.lineWidth=+d.style.lineWidth+1}de(d).seriesIndex=r.seriesIndex,Mt(d,B,R,O);var G=LE(r.get("smooth")),H=r.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:H,connectNulls:E}),v){var q=s.getCalculationInfo("stackedOnSeries"),Q=0;v.useStyle(ee(l.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),q&&(Q=LE(q.get("smooth"))),v.setShape({smooth:G,stackedOnSmooth:Q,smoothMonotone:H,connectNulls:E}),Ht(v,r,"areaStyle"),de(v).seriesIndex=r.seriesIndex,Mt(v,B,R,O)}var j=this._changePolyState;s.eachItemGraphicEl(function(Ae){Ae&&(Ae.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=C,this._valueOrigin=_;var oe=r.get("triggerEvent"),ge=r.get("triggerLineEvent"),Xe=ge===!0||oe===!0||oe==="line",We=ge===!0||oe===!0||oe==="area";this.packEventData(r,d,Xe),v&&this.packEventData(r,v,We)},e.prototype.packEventData=function(r,n,i){de(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Pr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],c=u[s*2+1];if(ar(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;l=new el(o,s),l.x=f,l.y=c,l.setZ(p,h);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=p,d.z=h,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Pe.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Pr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else Pe.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;Fv(this._polyline,r),n&&Fv(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Zb({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Qb({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var l=r.hostModel,f=l.get("animationDuration");Y(f)&&(f=f(null));var c=l.get("animationDelay")||0,p=Y(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(i)if(o){var x=i,S=n.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var b=i;a?(g=b.x,y=b.x+b.width,_=h.x):(g=b.y+b.height,y=b.y,_=h.y)}var E=y===g?0:(_-g)/(y-g);u&&(E=1-E);var A=Y(c)?c(d):f*E+p,D=v.getSymbolPath(),C=D.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:A}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(OE(r)){var o=r.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new be({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=UL(u);f>=0&&(rr(s,nr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?op(o,h):_s(o,c)},enableTextSetter:!0},HL(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){r<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var c=i.getLayout("points"),p=i.hostModel,h=p.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=u.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?v:0)*(y?-1:1),b=(g?0:-v)*(y?-1:1),E=g?"x":"y",A=VL(c,x,E),D=A.range,C=D[1]-D[0],T=void 0;if(C>=1){if(C>1&&!h){var F=BE(c,D[0]);l.attr({x:F[0]+S,y:F[1]+b}),o&&(T=p.getRawValue(D[0]))}else{var F=f.getPointOn(x,E);F&&l.attr({x:F[0]+S,y:F[1]+b});var M=p.getRawValue(D[0]),I=p.getRawValue(D[1]);o&&(T=Of(i,d,M,I,A.t))}a.lastFrameIndex=D[0]}else{var L=r===1||a.lastFrameIndex>0?D[0]:0,F=BE(c,L);o&&(T=p.getRawValue(L)),l.attr({x:F[0]+S,y:F[1]+b})}if(o){var B=Ia(l);typeof B.setLabelText=="function"&&B.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,u){var l=this._polyline,f=this._polygon,c=r.hostModel,p=tg(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin,s),h=p.current,d=p.stackedOnCurrent,v=p.next,m=p.stackedOnNext;if(o&&(d=Bi(p.stackedOnCurrent,p.current,i,o,u),h=Bi(p.current,null,i,o,u),m=Bi(p.stackedOnNext,p.next,i,o,u),v=Bi(p.next,null,i,o,u)),PE(h,v)>3e3||f&&PE(d,m)>3e3){l.stopAnimation(),l.setShape({points:v}),f&&(f.stopAnimation(),f.setShape({points:v,stackedOnPoints:m}));return}l.shape.__points=p.current,l.shape.points=h;var g={shape:{points:v}};p.current!==h&&(g.shape.__points=p.next),l.stopAnimation(),we(l,g,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),we(f,{shape:{stackedOnPoints:m}},c),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=r.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var E=l.shape.__points,A=0;A<y.length;A++){var D=y[A].el,C=y[A].ptIdx*2;D.x=E[C],D.y=E[C+1],D.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Pe),RE=GL;function Ya(t,e){return{seriesType:t,plan:Ha(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=z(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),u=s.length,l=n.getCalculationInfo("stackResultDimension");qr(n,s[0])&&(s[0]=l),qr(n,s[1])&&(s[1]=l);var f=n.getStore(),c=n.getDimensionIndex(s[0]),p=n.getDimensionIndex(s[1]);return u&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&gr(v*u),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(u===1){var b=f.get(c,_);S=i.dataToPoint(b,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=i.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):d.setItemLayout(_,S.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var WL={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},$L=function(t){return Math.round(t.length/2)};function il(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),c=n.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/h));var d=void 0;U(a)?d=WL[a]:Y(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(l.dim),1/h,d,$L))}}}}}function lg(t){t.registerChartView(RE),t.registerSeriesModel($b),t.registerLayout(Ya("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,il("line"))}var YL=le(),al=le(),sr={estimate:1,determine:2};function Ts(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function NE(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:z(zE(r,n),function(i,a){return{formattedLabel:nl(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?XL(t,e):jL(t)}function kE(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:zE(i,n)}:t.type==="category"?qL(t,e):{ticks:n.getTicks(r)}}function zE(t,e){var r=e.getExtent(),n=[];return w(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),Uo(n,AS,null),xi(n),z(n,function(i){return{value:i}})}function XL(t,e){var r=t.getLabelModel(),n=UE(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function UE(t,e,r){var n=ZL(t),i=Ap(e),a=r.kind===sr.estimate;if(!a){var o=HE(n,i);if(o)return o}var s,u;Y(i)?s=Mp(t,i,!1):(u=i==="auto"?QL(t,r):i,s=Mp(t,u,!1));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return fg(n,i,l),!0}):fg(n,i,l),l}function qL(t,e){var r=KL(t),n=Ap(e),i=HE(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),Y(n))a=Mp(t,n,!0);else if(n==="auto"){var s=UE(t,t.getLabelModel(),Ts(sr.determine));o=s.labelCategoryInterval,a=z(s.labels,function(u){return u.tick})}else o=n,a=Mp(t,o,!0);return fg(r,n,{ticks:a,tickCategoryInterval:o})}function jL(t){var e=t.scale.getTicks(),r=nl(t);return{labels:z(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var KL=VE("axisTick"),ZL=VE("axisLabel");function VE(t){return function(r){return al(r)[t]||(al(r)[t]={list:[]})}}function HE(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function fg(t,e,r){return t.list.push({key:e,value:r}),r}function QL(t,e){if(e.kind===sr.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return al(t).autoInterval=r,!0}),r}var n=al(t).autoInterval;return n!=null?n:al(t).autoInterval=t.calculateCategoryInterval(e)}function GE(t,e){var r=e.kind,n=eB(t),i=nl(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),d=Math.abs(p*Math.sin(a)),v=0,m=0;c<=s[1];c+=l){var g=0,y=0,_=Zl(i({value:c}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var x=v/h,S=m/d;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(r===sr.estimate)return e.out.noPxChangeTryDetermine.push(fe(JL,null,t,b,u)),b;var E=WE(t,b,u);return E!=null?E:b}function JL(t,e,r){return WE(t,e,r)==null}function WE(t,e,r){var n=YL(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function eB(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Mp(t,e,r){var n=nl(t),i=t.scale,a=[],o=Y(e);return yp(i,o?0:e,function(s,u){var l=i.getLabel(s);if(o){var f=!!e(s.value,l);if(s.offInterval=!f,!f&&!u)return}a.push(r?s:{formattedLabel:n(s),rawLabel:l,tick:s})}),a}var Fp=le();function $E(t){Fp(t).prepare={}}function YE(t){Fp(t).fullUpdate={}}function XE(t){return Fp(t).prepare}function Xa(t){return Fp(t).fullUpdate}var tB=Rf(),Ip="|&",Ms=le(),Pp=-2,qE=-1,rB=le();function jE(t,e){var r=t.model,n=Ms(Xa(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function KE(t,e){return JE(jE(t,e))}function ZE(t,e){var r=[];return QE(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(JE(n))}),r}function QE(t,e){var r=Ms(Xa(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function JE(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function ew(t,e){var r=t.model.ecModel,n=Ms(Xa(r)).axSer;n&&Lp(r,n.get(t.model.uid),e)}function hg(t,e,r){var n=jE(t,e);n&&Lp(t.model.ecModel,n.sers,r)}function Lp(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function tw(t,e,r){var n=Ms(Xa(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){r(a.axis)})}function dg(t,e){var r=t.model,n=Ms(Xa(r.ecModel)).keys;n&&w(n.get(r.uid),function(i){if(0)var a;e(i)})}function nB(t){var e=rB(XE(t)),r=e.keyed||(e.keyed=K());QE(t,function(n,i,a){var o=r.get(i)||r.set(i,K()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&nw.liPosMinGap(t,n,s)})}function rw(t,e){nw[t]=e}var nw={};function ol(t,e,r){if(t){var n=e.ecModel,i=Ms(Xa(n)),a=t.model.uid;if(0)var o,s;var u=i.axSer||(i.axSer=K()),l=u.get(a)||u.set(a,[]);if(0)var f;l.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=pg.get(cg(c,p,r))||pg.get(cg(c,p,null));if(h){var d=i.keyed||(i.keyed=K()),v=i.keys||(i.keys=K()),m=h.key,g=d.get(m)||d.set(m,K()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(v.get(a)||v.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function cg(t,e,r){return t+Ip+X(e,!0)+Ip+(r||"")}function iw(t,e){var r=cg(e.seriesType,e.baseAxis,e.coordSysType);pg.set(r,e),tB(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:nB})})}var pg=K();var iB=.8;function Qr(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=uE(n);it(o)||(o=NaN);var s=t.getExtent(),u=Oe(s[1]-s[0]);return _t(n)?aB(r,t,o,u):i?oB(r,t,o,u,i):a==null,a!=null&&(r.w=it(r.w)?ve(a,r.w):a),r}function aB(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function oB(t,e,r,n,i){var a=!1,o=-1/0;w(i.key?[KE(e,i.key)]:ZE(e,i.sers||[]),function(s){var u=s.liPosMinGap;u!=null&&(u>0?(u>o&&(o=u),a=!1):u===Pp&&(a=!0))}),it(r)&&r>0&&it(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*iB,t.w2=t.w*r/n)}var aw=[0,1],sB=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),mt(e,aw,ow(this),r)},t.prototype.coordToData=function(e,r){var n=mt(e,ow(this),aw,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=kE(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=z(n.ticks,function(s){return{coord:this.dataToCoord(Yn(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=uB(this,i,a);return z(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(_t(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=z(n,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||Ts(sr.determine),NE(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return Qr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Ts(sr.determine),GE(this,e)},t})();function ow(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function uB(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=Qr(t).w;if(!i)return!1;w(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var Fs=sB;var lB=(function(t){P(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.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},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(Fs),sw=lB;var uw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],fB=1,Bp=2,fw=fB|Bp;function sl(t,e,r){r=r||fw,e?t.dirty|=r:t.dirty&=~r}function cw(t,e){return e=e||fw,t.dirty==null||!!(t.dirty&e)}function Jr(t){if(t)return cw(t)&&mg(t,t.label,t),t}function mg(t,e,r){var n=e.getComputedTransform();t.transform=lc(t.transform,n);var i=t.localRect=ts(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=Fa.textMargin);for(var c=0;c<4;c++)vg[c]=f===Fa.minMargin&&u&&u[c]!=null?u[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Fa.textMargin&&Jo(i,vg,!1,!1);var p=t.rect=ts(t.rect,i);return n&&p.applyTransform(n),f===Fa.minMargin&&Jo(p,vg,!1,!1),t.axisAligned=uc(n),(t.label=t.label||{}).ignore=e.ignore,sl(t,!1),sl(t,!0,Bp),t}var vg=[0,0,0,0];function pw(t,e,r){return t.transform=lc(t.transform,r),t.localRect=ts(t.localRect,e),t.rect=ts(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=uc(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function hw(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function gg(t,e){for(var r=0;r<uw.length;r++){var n=uw[r];t[n]==null&&(t[n]=e[n])}return Jr(t)}function lw(t){var e=t.obb;return(!e||cw(t,Bp))&&(t.obb=e=e||new nc,e.fromBoundingRect(t.localRect,t.transform),sl(t,!1,Bp)),e}function dw(t,e,r,n,i){var a=t.length,o=yn[e],s=Ci[e];if(a<2)return!1;t.sort(function(D,C){return D.rect[o]-C.rect[o]});for(var u=0,l,f=!1,c=0,p=0;p<a;p++){var h=t[p],d=h.rect;l=d[o]-u,l<0&&(d[o]-=l,h.label[o]-=l,f=!0);var v=Math.max(-l,0);c+=v,u=d[o]+d[s]}c>0&&i&&b(-c/a,0,a);var m=t[0],g=t[a-1],y,_;x(),y<0&&E(-y,.8),_<0&&E(_,.8),x(),S(y,_,1),S(_,y,-1),x(),y<0&&A(-y),_<0&&A(_);function x(){y=m.rect[o]-r,_=n-g.rect[o]-g.rect[s]}function S(D,C,T){if(D<0){var F=Math.min(C,-D);if(F>0){b(F*T,0,a);var M=F+D;M<0&&E(-M*T,1)}else E(-D*T,1)}}function b(D,C,T){D!==0&&(f=!0);for(var F=C;F<T;F++){var M=t[F],I=M.rect;I[o]+=D,M.label[o]+=D}}function E(D,C){for(var T=[],F=0,M=1;M<a;M++){var I=t[M-1].rect,L=Math.max(t[M].rect[o]-I[o]-I[s],0);T.push(L),F+=L}if(F){var B=Math.min(Math.abs(D)/F,C);if(D>0)for(var M=0;M<a-1;M++){var R=T[M]*B;b(R,0,M+1)}else for(var M=a-1;M>0;M--){var R=T[M-1]*B;b(-R,M,a)}}}function A(D){var C=D<0?-1:1;D=Math.abs(D);for(var T=Math.ceil(D/(a-1)),F=0;F<a-1;F++)if(C>0?b(T,0,F+1):b(-T,a-F-1,a),D-=T,D<=0)return}return f}function vw(t){var e=[];t.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function r(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var n=0;n<t.length;n++){var i=Jr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,u=0;u<e.length;u++)if(Op(i,e[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function Op(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:lw(t).intersect(lw(e),r,n)}var cB=null;function qa(){return cB}var mw="expandAxisBreak";var Oi=Math.PI,pB=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],hB=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ri=le(),_w=le(),_g=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function dB(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,u=bg(t.axisName)&&Li(t.nameLocation);w(n,function(d){var v=Jr(d);if(!(!v||v.label.ignore)){o.push(v);var m=a.transGroup;u&&(m.transform?lr(ul,m.transform):xr(ul),v.transform&&zr(ul,ul,v.transform),re.copy(Rp,v.localRect),Rp.applyTransform(ul),s?s.union(Rp):re.copy(s=new re(0,0,0,0),Rp))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,v){return Math.abs(d.label[l]-f)-Math.abs(v.label[l]-f)}),u&&s){var c=i.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new re(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ul=St(),Rp=new re(0,0,0,0),xg=function(t,e,r,n,i,a){if(Li(t.nameLocation)){var o=a.stOccupiedRect;o&&xw(pw({},o,a.transGroup.transform),n,i)}else Sg(a.labelInfoList,a.dirVec,n,i)};function xw(t,e,r){var n=new pe;Op(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&hw(e,n)}function Sg(t,e,r,n){for(var i=pe.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||xw(s,r,n)}}var ja=(function(){function t(e,r,n,i){this.group=new _e,this._axisModel=e,this._api=r,this._local={},this._shared=i||new _g(xg),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){if(0)var r;var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=X(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=X(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:X(e.nameDirection,1),tickDirection:X(e.tickDirection,1),labelDirection:X(e.labelDirection,1),labelOffset:X(e.labelOffset,0),silent:X(e.silent,!0),axisName:i,nameLocation:Zt(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:bg(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new _e({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new pe(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w(vB,function(i){e[i]&&mB[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=bu(r-e),a,o;return ga(i)?(o=n>0?"top":"bottom",a="center"):ga(i-Oi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Oi?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),vB=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],mB={axisLine:function(t,e,r,n,i,a,o){if(0)var s;var u=n.get(["axisLine","show"]);if(u==="auto"&&(u=!0,t.raw.axisLineAutoShow!=null&&(u=!!t.raw.axisLineAutoShow)),!!u){var l=n.axis.getExtent(),f=a.transform,c=[l[0],0],p=[l[1],0],h=c[0]>p[0];f&&(et(c,c,f),et(p,p,f));var d=N({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&ka(n.axis.scale))qa().buildAxisBreakLine(n,i,a,v);else{var m=new Pt(N({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},v));Da(m.shape,m.style.lineWidth),m.anid="line",i.add(m)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);U(g)&&(g=[g,g]),(U(y)||ie(y))&&(y=[y,y]);var _=ap(n.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];w([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(b,E){if(g[E]!=="none"&&g[E]!=null){var A=ot(g[E],-x/2,-S/2,x,S,d.stroke,!0),D=b.r+b.offset,C=h?p:c;A.attr({rotation:b.rotate,x:C[0]+D*Math.cos(t.rotation),y:C[1]-D*Math.sin(t.rotation),silent:!0,z2:11}),i.add(A)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){if(0)var u;var l=yw(e,i,s);l&&gw(t,e,r,n,i,a,o,sr.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){if(0)var u;var l=yw(e,i,s);l&&gw(t,e,r,n,i,a,o,sr.determine);var f=xB(t,i,a,n);_B(t,e.labelLayoutList,f),SB(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var u=r.ensureRecord(n);if(0)var l;e.nameEl&&(i.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var f=t.axisName;if(bg(f)){var c=t.nameLocation,p=t.nameDirection,h=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,v=n.axis.getExtent(),m=n.axis.inverse?-1:1,g=new pe(0,0),y=new pe(0,0);c==="start"?(g.x=v[0]-m*d,y.x=-m):c==="end"?(g.x=v[1]+m*d,y.x=m):(g.x=(v[0]+v[1])/2,g.y=t.labelOffset+p*d,y.y=p);var _=St();y.transform(ji(_,_,t.rotation));var x=n.get("nameRotate");x!=null&&(x=x*Oi/180);var S,b;Li(c)?S=ja.innerTextLayout(t.rotation,x!=null?x:t.rotation,p):(S=gB(t.rotation,c,x||0,v),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var E=h.getFont(),A=n.get("nameTruncate",!0)||{},D=A.ellipsis,C=Wi(t.raw.nameTruncateMaxWidth,A.maxWidth,b),T=s.nameMarginLevel||0,F=new be({x:g.x,y:g.y,rotation:S.rotation,silent:ja.isLabelSilent(n),style:pt(h,{text:f,font:E,overflow:"truncate",width:C,ellipsis:D,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(es({el:F,componentModel:n,itemName:f}),F.__fullText=f,F.anid="name",n.get("triggerEvent")){var M=ja.makeAxisEventDataBase(n);M.targetType="axisName",M.name=f,de(F).eventData=M}a.add(F),F.updateTransform(),e.nameEl=F;var I=u.nameLayout=Jr({label:F,priority:F.z2,defaultAttr:{ignore:F.ignore},marginDefault:Li(c)?pB[T]:hB[T]});if(u.nameLocation=c,i.add(F),F.decomposeTransform(),t.shouldNameMoveOverlap&&I){var L=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,I,y,L)}}}};function gw(t,e,r,n,i,a,o,s){bw(e)||bB(t,e,i,s,n,o);var u=e.labelLayoutList;EB(t,n,u,a),AB(n,t.rotation,u);var l=t.optionHideOverlap;yB(n,u,l),l&&vw(Fe(u,function(f){return f&&!f.label.ignore})),dB(t,r,n,u)}function gB(t,e,r,n){var i=bu(r-t),a,o,s=n[0]>n[1],u=e==="start"&&!s||e!=="start"&&s;return ga(i-Oi/2)?(o=u?"bottom":"top",a="center"):ga(i-Oi*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<Oi*1.5&&i>Oi/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function yB(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(TE(n))return;function a(l,f,c){var p=Jr(e[f]),h=Jr(e[c]),d=n.scale;if(!(!p||!h)){if(l==null){if(!r&&i)return;var v=Ri(p.label).labelInfo.tick;if(Cs(d)&&v.notNice||_t(d)&&v.offInterval){Is(p.label);return}}if(l===!1||p.suggestIgnore){Is(p.label);return}if(h.suggestIgnore){Is(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=gg({marginForce:g},p),h=gg({marginForce:g},h)}Op(p,h,null,{touchThreshold:m})&&Is(l?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),u=e.length;a(o,0,1),a(s,u-1,u-2)}function _B(t,e,r){t.showMinorTicks||w(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=_w(a),s=Ri(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Is(a);return}}})}function Is(t){t&&(t.ignore=!0)}function Sw(t,e,r,n,i){for(var a=[],o=[],s=[],u=0;u<t.length;u++){var l=t[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,e&&(et(o,o,e),et(s,s,e));var f=new Pt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Da(f.shape,f.style.lineWidth),f.anid=i+"_"+t[u].tickValue,a.push(f);var c=_w(f);c.onBand=!!t[u].onBand,c.tickValue=t[u].tickValue}return a}function xB(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=t.tickDirection*a.get("length"),l=i.getTicksCoords(),f=Sw(l,r.transform,u,ee(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function SB(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=i*o.get("length"),f=ee(u.getLineStyle(),ee(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=Sw(s[c],r.transform,l,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function yw(t,e,r){if(bw(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),yg(t,null,null,null))}return!0}function bB(t,e,r,n,i,a){var o=i.axis,s=Wi(t.raw.axisLabelShow,i.get(["axisLabel","show"])),u=new _e;r.add(u);var l=Ts(n);if(!s||o.scale.isBlank()){yg(e,[],u,l);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(l),p=(Wi(t.raw.labelRotate,f.get("rotate"))||0)*Oi/180,h=ja.innerTextLayout(t.rotation,p,t.labelDirection),d=i.getCategories&&i.getCategories(!0),v=[],m=i.get("triggerEvent"),g=1/0,y=-1/0;w(c,function(x,S){var b,E=x.tick,A=x.formattedLabel,D=x.rawLabel,C=f,T=Yn(o.scale,E);if(d&&d[T]){var F=d[T];W(F)&&F.textStyle&&(C=new De(F.textStyle,f,i.ecModel))}var M=C.getTextColor()||i.get(["axisLine","lineStyle","color"]),I=C.getShallow("align",!0)||h.textAlign,L=X(C.getShallow("alignMinLabel",!0),I),B=X(C.getShallow("alignMaxLabel",!0),I),R=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||h.textVerticalAlign,O=X(C.getShallow("verticalAlignMinLabel",!0),R),V=X(C.getShallow("verticalAlignMaxLabel",!0),R),G=10+(((b=E.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,G),y=Math.max(y,G);var H=new be({x:0,y:0,rotation:0,silent:ja.isLabelSilent(i),z2:G,style:pt(C,{text:A,align:S===0?L:S===c.length-1?B:I,verticalAlign:S===0?O:S===c.length-1?V:R,fill:Y(M)?M(o.type==="category"?D:o.type==="value"?T+"":T,S):M})});H.anid="label_"+T;var q=Ri(H);if(q.labelInfo=x,q.layoutRotation=h.rotation,es({el:H,componentModel:i,itemName:A,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:D,tickIndex:S}}),m){var Q=ja.makeAxisEventDataBase(i);Q.targetType="axisLabel",Q.value=D,Q.tickIndex=S;var j=x.tick.break;if(j){var oe=j.parsedBreak;Q.break={start:oe.vmin,end:oe.vmax}}o.type==="category"&&(Q.dataIndex=T),de(H).eventData=Q,j&&CB(i,a,H,j)}v.push(H),u.add(H)});var _=z(v,function(x){return{label:x,priority:Ri(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});yg(e,_,u,l)}function bw(t){return!!t.labelLayoutList}function yg(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function EB(t,e,r,n){var i=e.get(["axisLabel","margin"]);w(r,function(a,o){var s=Jr(a);if(s){var u=s.label,l=Ri(u);s.suggestIgnore=u.ignore,u.ignore=!1,oi(Xn,wB);var f=e.axis;Xn.x=f.dataToCoord(Yn(f.scale,l.labelInfo.tick)),Xn.y=t.labelOffset+t.labelDirection*i,Xn.rotation=l.layoutRotation,n.add(Xn),Xn.updateTransform(),n.remove(Xn),Xn.decomposeTransform(),oi(u,Xn),u.markRedraw(),sl(s,!0),Jr(s)}})}var Xn=new Ee,wB=new Ee;function bg(t){return!!t}function CB(t,e,r,n){r.on("click",function(i){var a={type:mw,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function AB(t,e,r){var n=Ye();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&Ri(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&w(i,function(o){qa().adjustBreakLabelPair(t.axis.inverse,e,[Jr(r[o[0]]),Jr(r[o[1]])])})}}var Ps=ja;function ll(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,u=n.dim,l=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[l[2]-c,l[3]+c]:[l[0]-c,l[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}i.position=[u==="y"?p[f[s]]:l[0],u==="x"?p[f[s]]:l[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Wi(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var v=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-v:v,i.z2=1,i}function Ew(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function ww(t){var e={xAxisModel:null,yAxisModel:null};return w(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Et).models[0];e[n]=a}),e}function Cw(t,e,r,n,i,a){for(var o=ll(t,r),s=!1,u=!1,l=0;l<e.length;l++)vp(e[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type==="category"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new Ps(r,n,o,i)}function Aw(t,e,r){var n=ll(e,r);if(0)var i;t.updateCfg(n)}var TB=le(),Np=1;var MB=3,Mw=(function(){function t(e,r,n,i,a){var o=_t(e),s=o?r.getCategories().length:null,u;if(o){var l=r.getCategories(!0);u=l&&!l.length}var f=n.slice();(ws(e)||wn(e)||Cs(e))&&(bv(f,fl(e,r.get("dataMin",!0))),Ev(f,fl(e,r.get("dataMax",!0)))),ES(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=fl(e,Y(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=fl(e,Y(d)?d({min:f[0],max:f[1]}):d),p[1]=c[1]!=null);var v=FB(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?u?f[0]:s?0:NaN:f[0]-v[0]*m),c[1]==null&&(c[1]=o?u?f[1]:s?s-1:NaN:f[1]+v[1]*m),!Wr(c[0])&&(c[0]=NaN),!Wr(c[1])&&(c[1]=NaN);var g=u||Fn(c[0])||Fn(c[1])||o&&!s,y=ws(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=fl(e,r.get("startValue",!0)),b=S!=null;!it(S)&&i&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),it(S)&&(b||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var E=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};Dw(E,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),Dw(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function Dw(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),wS(e))}function fl(t,e){return e==null?null:Fn(e)?NaN:t.parse(e)}function FB(t,e){var r;if(_t(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=k(n)?n:[n,n]}return[Tw(r[0]),Tw(r[1])]}function Tw(t){return Ur(typeof t=="boolean"?0:t,1)||0}function Fw(t){var e=TB(t.scale);return e.extent||(e.extent=wt()),e}function Iw(t,e){Fw(t).dimIdxInCoord=e.get(t.dim)}function kp(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||IB(r,t,i,n,e)}function IB(t,e,r,n,i){var a=Fw(e),o=a.extent,s=!1;ew(e,function(f){if(f.boxCoordinateSystem){var c=Cc(f).coord,p=a.dimIdxInCoord;if(p>=0){if(k(c)){var h=c[p];h!=null&&!k(h)&&Du(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var v=t.getFilter?t.getFilter():null;w(ME(d,r),function(m){bS(o,d.getApproximateExtent(m,v))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var u=LB(t,e,n),l=new Mw(t,n,o,s,u);Pw(t,l,i),a.extent=null}function PB(t,e){var r=t.scale;Pw(r,new Mw(r,t.model,e,!1,!1),MB)}function Pw(t,e,r){t.rawExtentInfo=e,e.from=r}function Lw(t,e){Eg.set(t,e)}var Eg=K();function zp(t,e,r,n,i){t.rawExtentInfo||PB({scale:t,model:e},i||wt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function LB(t,e,r){var n=Tp(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return dg(e,function(o){a=!!Eg.get(o)||a}),a}function Bw(t,e,r,n){if(r.ctnShp){var i;if(dg(t,function(s){var u=Eg.get(s);if(u){var l=u(t,n);l&&(i=i||[0,0],bv(i,l[0]),Ev(i,l[1]),AE(t))}}),!!i){var a=e.getExtent();if(_t(e))t.onBand||e.setExtent2(xs,He(a[0],a[0]+i[0]),ve(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=He(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=ve(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(xs,o[0],o[1])}}}}function Ow(){rw("liPosMinGap",BB)}function BB(t,e,r){var n=K(),i=r.serUids,a=r.liPosMinGap,o,s=e.axis,u=s.scale,l=u.needTransform(),f=u.getFilter?u.getFilter():null,c=_c(f);function p(_){Lp(t,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){n.set(x.uid,1),(!i||!i.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}cp(Ka,h);var d=0;p(function(_,x,S){for(var b=0,E=S.count();b<E;++b){var A=S.get(_,b);isFinite(A)&&(!f||xc(c,A))&&(l&&(A=u.transformIn(A,null)),Ka.arr[d++]=A)}});var v=Ka.typed?Ka.arr.subarray(0,d):(Ka.arr.length=d,Ka.arr);Ka.typed?v.sort():xi(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=it(m)?m:d>0?Pp:qE,r.serUids=n}var Ka=cp({ctor:jb},50);function Rw(t){return function(e,r){var n=Qr(e,{fromStat:{key:t}});if(it(n.w2))return[-n.w2/2,n.w2/2]}}function cl(t,e){return t+Ip+e}function Nw(t){return Ow(),{liPosMinGap:!_t(t.scale)}}var qn="bar";function kw(t,e,r,n){iw(t,{key:e,seriesType:r,coordSysType:n,getMetrics:Nw})}function zw(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var wg={left:0,right:0,top:0,bottom:0},pl=["25%","25%"],Lr="cartesian2d",OB=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=bn(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&mr(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&mr(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:wg,outerBoundsContain:"all",outerBoundsClampWidth:pl[0],outerBoundsClampHeight:pl[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},e})(xe),Uw=OB;var RB=Rf(),NB="__ec_stack_";function Vw(t){return t.get("stack")||NB+t.seriesIndex}function kB(t,e){var r=zB(t,e);return r.columnMap=UB(r),r}function zB(t,e){var r=cl(e,Lr),n=[],i=Qr(t,{fromStat:{key:r},min:1});return hg(t,r,function(a){n.push({barWidth:te(a.get("barWidth"),i.w),barMaxWidth:te(a.get("barMaxWidth"),i.w),barMinWidth:te(a.get("barMinWidth")||(Ww(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:Vw(a)})}),{bandWidthResult:i,seriesInfo:n}}function UB(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};w(t.seriesInfo,function(v,m){m||(a=v.defaultBarGap||0);var g=v.stackId;Ie(s,g)||n++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=v.barWidth;_&&!y.width&&(y.width=_,_=He(r,_),r-=_);var x=v.barMaxWidth;x&&(y.maxWidth=x);var S=v.barMinWidth;S&&(y.minWidth=S);var b=v.barGap;b!=null&&(a=b);var E=v.barCategoryGap;E!=null&&(i=E)}),i==null&&(i=ve(35-o.length*4,15)+"%");var u=te(i,e),l=te(a,1),f=(r-u)/(n+(n-1)*l);f=ve(f,0),w(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=He(_,g)),y&&(_=ve(_,y)),m.width=_,r-=_+l*_,n--}else{var _=f;g&&g<_&&(_=He(g,r)),y&&y>_&&(_=y),_!==f&&(m.width=_,r-=_+l*_,n--)}}),f=(r-u)/(n+(n-1)*l),f=ve(f,0);var c=0,p;w(o,function(v){var m=s[v];m.width||(m.width=f),p=m,c+=m.width*(1+l)}),p&&(c-=p.width*l);var h={},d=-c/2;return w(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+l)}),h}function Hw(t){return{seriesType:t,overallReset:function(e){var r=cl(t,Lr);tw(e,r,function(n){var i=kB(n,t);hg(n,r,function(a){var o=i.columnMap[Vw(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function Gw(t){return{seriesType:t,plan:Ha(),reset:function(e){if(Ew(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=e.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=qr(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(zw(a))),d=Ww(e),v=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=d&&gr(S*3),E=d&&u&&gr(S*3),A=d&&gr(S),D=n.master.getRect(),C=p?D.width:D.height,T,F=x.getStore(),M=0;(T=_.next())!=null;){var I=F.get(c?m:o,T),L=F.get(s,T),B=h,R=void 0;c&&(R=+I-F.get(o,T));var O=void 0,V=void 0,G=void 0,H=void 0;if(p){var q=n.dataToPoint([I,L]);c&&(B=n.dataToPoint([R,L])[0]),O=B,V=q[1]+y,G=q[0]-B,H=g,Oe(G)<v&&(G=(G<0?-1:1)*v)}else{var q=n.dataToPoint([L,I]);c&&(B=n.dataToPoint([L,R])[1]),O=q[0]+y,V=B,G=g,H=q[1]-B,Oe(H)<v&&(H=(H<=0?-1:1)*v)}d?(b[M]=O,b[M+1]=V,b[M+2]=p?G:H,E&&(E[M]=p?D.x:O,E[M+1]=p?V:D.y,E[M+2]=C),A[T]=T):x.setItemLayout(T,{x:O,y:V,width:G,height:H}),M+=3}d&&x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:E,valueAxisHorizontal:p})}}}}}}function Ww(t){return t.pipelineContext&&t.pipelineContext.large}function VB(t){return Rw(cl(t,Lr))}function $w(t){RB(t,function(){function e(r){var n=cl(r,Lr);kw(t,n,r,Lr),Lw(n,VB(r))}e("bar"),e("pictorialBar")})}var Yw=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return _n(null,this,{useEncodeDefaulter:!0})},e.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)w(a.getAxes(),function(p,h){if(p.type==="category"&&n!=null){var d=p.getTicksCoords(),v=p.getTickModel().get("alignWithLabel"),m=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<d.length;S++){var b=d[S].coord,E=S===d.length-1?d[S-1].tickValue+x:d[S].tickValue;if(E===m){_=b;break}else if(E<m)y=b;else if(y!=null&&E>m){_=(b+y)/2;break}S===1&&(x=E-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=p.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=l+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ke);ke.registerClass(Yw);var Cg=Yw;var HB=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return _n(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,n){var i=kf(this,r,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series."+qn,e.dependencies=["grid","polar"],e.defaultOption=Tc(Cg.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:$.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Cg),Xw=HB;var Up="\0__throttleOriginMethod",qw="\0__throttleRate",jw="\0__throttleType";function Za(t,e,r){var n,i=0,a=0,o=null,s,u,l,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(u,l||[])}var p=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),u=this,l=h;var v=f||e,m=f||r;f=null,s=n-(m?i:a)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),i=n};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function Vp(t,e,r,n){var i=t[e];if(i){var a=i[Up]||i,o=i[jw],s=i[qw];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Za(a,r,n==="debounce"),i[Up]=a,i[jw]=n,i[qw]=r}return i}}function hl(t,e){var r=t[e];r&&r[Up]&&(r.clear&&r.clear(),t[e]=r[Up])}var WB=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),$B=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new WB},e.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,c=n.endAngle,p=n.clockwise,h=Math.PI*2,d=p?c-f<h:f-c<h;d||(f=c-(p?h:-h));var v=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+i,m*o+a),r.arc(v*l+i,m*l+a,u,-Math.PI+f,f,!p)):r.moveTo(v*s+i,m*s+a),r.arc(i,a,s,f,c,!p),r.arc(g*l+i,y*l+a,u,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(i,a,o,c,f,p)},e})(ae),Ls=$B;function Kw(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return ra(n,i,a);var s=t(o),u=i.distance!=null?i.distance:5,l=this.shape,f=l.cx,c=l.cy,p=l.r,h=l.r0,d=(p+h)/2,v=l.startAngle,m=l.endAngle,g=(v+m)/2,y=r?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(v),b=c+p*x(v),E="left",A="top";switch(s){case"startArc":S=f+(h-u)*_(g),b=c+(h-u)*x(g),E="center",A="top";break;case"insideStartArc":S=f+(h+u)*_(g),b=c+(h+u)*x(g),E="center",A="bottom";break;case"startAngle":S=f+d*_(v)+Hp(v,u+y,!1),b=c+d*x(v)+Gp(v,u+y,!1),E="right",A="middle";break;case"insideStartAngle":S=f+d*_(v)+Hp(v,-u+y,!1),b=c+d*x(v)+Gp(v,-u+y,!1),E="left",A="middle";break;case"middle":S=f+d*_(g),b=c+d*x(g),E="center",A="middle";break;case"endArc":S=f+(p+u)*_(g),b=c+(p+u)*x(g),E="center",A="bottom";break;case"insideEndArc":S=f+(p-u)*_(g),b=c+(p-u)*x(g),E="center",A="top";break;case"endAngle":S=f+d*_(m)+Hp(m,u+y,!0),b=c+d*x(m)+Gp(m,u+y,!0),E="left",A="middle";break;case"insideEndAngle":S=f+d*_(m)+Hp(m,-u+y,!0),b=c+d*x(m)+Gp(m,-u+y,!0),E="right",A="middle";break;default:return ra(n,i,a)}return n=n||{},n.x=S,n.y=b,n.align=E,n.verticalAlign=A,n}}function Zw(t,e,r,n){if(ie(n)){t.setTextConfig({rotation:n});return}else if(k(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,u,l=r(e);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:t.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),t.setTextConfig({rotation:f})}function Hp(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Gp(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Qa(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;k(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:z(n,function(a){return Ur(a,i)})}}var Ag=Math.max,Dg=Math.min,YB=(function(t){P(e,t);function e(){var r=t.call(this)||this;return r.type=qn,r._isFirstFrame=!0,r}return e.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))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){Ma(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,f=l.getBaseAxis(),c;l.type==="cartesian2d"?c=f.isHorizontal():l.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=XB(r,l);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,v=l.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=a&&a.isInitSort,E=a&&a.type==="changeAxisOrder";function A(T){var F=Wp[l.type](s,T);if(!F)return null;var M=eO(l,c,F);return M.useStyle(y.getItemStyle()),l.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[T]=M,M}s.diff(u).add(function(T){var F=s.getItemModel(T),M=Wp[l.type](s,T,F);if(M&&(g&&A(T),!(!s.hasValue(T)||!rC[l.type](M)))){var I=!1;d&&(I=Qw[l.type](v,M));var L=Jw[l.type](r,s,T,M,c,p,f.model,!1,m);h&&(L.forceLabelAnimation=!0),nC(L,s,T,F,M,r,c,l.type==="polar"),b?L.attr({shape:M}):h?eC(h,p,L,M,T,c,!1,!1):Me(L,{shape:M},r,T),s.setItemGraphicEl(T,L),o.add(L),L.ignore=I}}).update(function(T,F){var M=s.getItemModel(T),I=Wp[l.type](s,T,M);if(I){if(g){var L=void 0;S.length===0?L=A(F):(L=S[F],L.useStyle(y.getItemStyle()),l.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),x[T]=L);var B=Wp[l.type](s,T),R=uC(c,B,l);we(L,{shape:R},p,T)}var O=u.getItemGraphicEl(F);if(!s.hasValue(T)||!rC[l.type](I)){o.remove(O);return}var V=!1;d&&(V=Qw[l.type](v,I),V&&o.remove(O));var G=O&&(O.type==="sector"&&m||O.type==="sausage"&&!m);if(G&&(O&&gn(O,r,F),O=null),O?Xr(O):O=Jw[l.type](r,s,T,I,c,p,f.model,!0,m),h&&(O.forceLabelAnimation=!0),E){var H=O.getTextContent();if(H){var q=Ia(H);q.prevValue!=null&&(q.prevValue=q.value)}}else nC(O,s,T,M,I,r,c,l.type==="polar");b?O.attr({shape:I}):h?eC(h,p,O,I,T,c,!0,E):we(O,{shape:I},r,T,null),s.setItemGraphicEl(T,O),O.ignore=V,o.add(O)}}).remove(function(T){var F=u.getItemGraphicEl(T);F&&gn(F,r,T)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new _e);D.removeAll();for(var C=0;C<x.length;++C)D.add(x[C]);o.add(D),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),aC(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),aC(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&rE(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.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)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var u=i(s);u=u==null?NaN:u,a.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(a,function(o){return o.ordinalNumber})}},e.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)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.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},e.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}))}},e.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})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.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){gn(a,r,de(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=qn,e})(Pe),Qw={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=Ag(e.x,t.x),s=Dg(e.x+e.width,i),u=Ag(e.y,t.y),l=Dg(e.y+e.height,a),f=s<o,c=l<u;return e.x=f&&o>i?s:o,e.y=c&&u>a?l:u,e.width=f?0:s-o,e.height=c?0:l-u,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Dg(e.r,t.r),a=Ag(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Jw={cartesian2d:function(t,e,r,n,i,a,o,s,u){var l=new Ee({shape:N({},n),z2:1});if(l.__dataIndex=r,l.name="item",a){var f=l.shape,c=i?"height":"width";f[c]=0}return l},polar:function(t,e,r,n,i,a,o,s,u){var l=!i&&u?Ls:It,f=new l({shape:n,z2:1});f.name="item";var c=sC(i);if(f.calculateTextPosition=Kw(c,{isRoundCap:l===Ls}),a){var p=f.shape,h=i?"r":"endAngle",d={};p[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?we:Me)(f,{shape:d},a)}return f}};function XB(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function eC(t,e,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?we:Me)(r,{shape:u},e,i,null);var f=e?t.baseAxis.model:null;(o?we:Me)(r,{shape:l},f,i)}function tC(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var qB=["x","y","width","height"],jB=["cx","cy","r","startAngle","endAngle"],rC={cartesian2d:function(t){return!tC(t,qB)},polar:function(t){return!tC(t,jB)}},Wp={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?ZB(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(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function KB(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function sC(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function nC(t,e,r,n,i,a,o,s){var u=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=Qa(n.getModel("itemStyle"),f,!0);N(f,c),t.setShape(f)}}else{var l=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",l)}t.useStyle(u);var p=n.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?tO(i,a.coordinateSystem):rO(i,a.coordinateSystem),d=nr(n);rr(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:_s(a.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=n.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,Zw(t,m==="outside"?h:m,sC(o),n.get(["label","rotate"]))}cc(v,d,a.getRawValue(r),function(y){return op(e,y)});var g=n.getModel(["emphasis"]);Mt(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Ht(t,n),KB(i)&&(t.style.fill="none",t.style.stroke="none",w(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function ZB(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var QB=(function(){function t(){}return t})(),iC=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new QB},e.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])},e})(ae);function aC(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=t.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints"),f=n?Nf(t):0;if(l){var c=new iC({shape:{points:l},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(u.getItemStyle()),e.add(c),r&&r.push(c)}var p=new iC({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(i.getVisual("style")),p.style.stroke=null,de(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",oC),p.on("mousemove",oC)),r&&r.push(p)}var oC=Za(function(t){var e=this,r=JB(e,t.offsetX,t.offsetY);de(e).dataIndex=r>=0?r:null},30,!1);function JB(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],u=[],l=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(u[n]=l,u[i]=a[p+2],s[n]=a[p+n],s[i]=a[p+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),e>=s[0]&&e<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[f]}return-1}function uC(t,e,r){if(pp(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function eO(t,e,r){var n=t.type==="polar"?It:Ee;return new n({shape:uC(e,r,t),silent:!0,z2:0})}function tO(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function rO(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var lC=YB;function Tg(t){t.registerChartView(lC),t.registerSeriesModel(Xw),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Hw(qn)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Gw(qn)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,il(qn)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),$w(t)}function fC(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}w([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=N({},i),o.dispatchAction(N(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Bs(t,e,r,n,i){var a=t+e;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 c=o.getData(),p=Pr(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:k(p)?c.getName(p[0]):c.getName(p),selected:U(u)?u:N({},u)})}})}function cC(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Bs("map","selectchanged",e,i,n),Bs("pie","selectchanged",e,i,n)):n.fromAction==="select"?(Bs("map","selected",e,i,n),Bs("pie","selected",e,i,n)):n.fromAction==="unselect"&&(Bs("map","unselected",e,i,n),Bs("pie","unselected",e,i,n))})}function Ja(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.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})}}}}function jn(t,e,r){e=k(e)&&{coordDimensions:e}||N({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=us(n,e).dimensions,a=new ss(i,t);return a.initData(n,r),a}var nO=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),Os=nO;var en="pie",iO=le(),pC=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Os(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return jn(this,{coordDimensions:["value"],encodeDefaulter:Ce(pc,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=iO(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),a=i.seats=vv(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){ya(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},e.type="series."+en,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(ke);ob({fullType:pC.type,getCoord2:function(t){return t.getShallow("center")}});var hC=pC;var Mq=Math.PI*2,Fq=bt.CMD;function dC(t,e,r,n,i,a,o,s){var u=i-t,l=a-e,f=r-t,c=n-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=u*f+l*c,d=h/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var v=o[0]=t+d*f,m=o[1]=e+d*c;return Math.sqrt((v-i)*(v-i)+(m-a)*(m-a))}var Ni=new pe,Ze=new pe,Ct=new pe,ki=new pe,An=new pe;var $p=[],$t=new pe;function vC(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ni.fromArray(t[0]),Ze.fromArray(t[1]),Ct.fromArray(t[2]),pe.sub(ki,Ni,Ze),pe.sub(An,Ct,Ze);var r=ki.len(),n=An.len();if(!(r<.001||n<.001)){ki.scale(1/r),An.scale(1/n);var i=ki.dot(An),a=Math.cos(e);if(a<i){var o=dC(Ze.x,Ze.y,Ct.x,Ct.y,Ni.x,Ni.y,$p,!1);$t.fromArray($p),$t.scaleAndAdd(An,o/Math.tan(Math.PI-e));var s=Ct.x!==Ze.x?($t.x-Ze.x)/(Ct.x-Ze.x):($t.y-Ze.y)/(Ct.y-Ze.y);if(isNaN(s))return;s<0?pe.copy($t,Ze):s>1&&pe.copy($t,Ct),$t.toArray(t[1])}}}}function mC(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Ni.fromArray(t[0]),Ze.fromArray(t[1]),Ct.fromArray(t[2]),pe.sub(ki,Ze,Ni),pe.sub(An,Ct,Ze);var n=ki.len(),i=An.len();if(!(n<.001||i<.001)){ki.scale(1/n),An.scale(1/i);var a=ki.dot(e),o=Math.cos(r);if(a<o){var s=dC(Ze.x,Ze.y,Ct.x,Ct.y,Ni.x,Ni.y,$p,!1);$t.fromArray($p);var u=Math.PI/2,l=Math.acos(An.dot(e)),f=u+l-r;if(f>=u)pe.copy($t,Ct);else{$t.scaleAndAdd(An,s/Math.tan(Math.PI/2-f));var c=Ct.x!==Ze.x?($t.x-Ze.x)/(Ct.x-Ze.x):($t.y-Ze.y)/(Ct.y-Ze.y);if(isNaN(c))return;c<0?pe.copy($t,Ze):c>1&&pe.copy($t,Ct)}$t.toArray(t[1])}}}}function Mg(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function aO(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=xo(n[0],n[1]),a=xo(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=nu([],n[1],n[0],o/i),u=nu([],n[1],n[2],o/a),l=nu([],s,u,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),t.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function Yp(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,u=0;u<Wo.length;u++){var l=Wo[u],f=e[l],c=l==="normal";if(f){var p=f.get("show"),h=c?s:X(i.states[l]&&i.states[l].ignore,s);if(h||!X(p,o)){var d=c?n:n&&n.states[l];d&&(d.ignore=!0),n&&Mg(n,!0,l,f);continue}n||(n=new Gt,t.setTextGuideLine(n),!c&&(s||!o)&&Mg(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Mg(n,!1,l,f)}}if(n){ee(n.style,r),n.style.fill=null;var v=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,n.buildPath=aO}}function Xp(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Vt.length;n++){var i=Vt[n];r[i]=t.getModel([i,e])}return r}var oO=Math.PI/180;function gC(t,e,r,n,i,a,o,s,u,l){if(t.length<2)return;function f(v){for(var m=v.rB,g=m*m,y=0;y<v.list.length;y++){var _=v.list[y],x=Math.abs(_.label.y-r),S=n+_.len,b=S*S,E=Math.sqrt(Math.abs((1-x*x/g)*b)),A=e+(E+_.len2)*i,D=A-_.label.x,C=_.targetTextWidth-D*i;_C(_,C,!0),_.label.x=A}}function c(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var _=v[y],x=_.label.y>r?g:m,S=Math.abs(_.label.y-r);if(S>=x.maxY){var b=_.label.x-e-_.len2*i,E=n+_.len,A=Math.abs(b)<E?Math.sqrt(S*S/(1-b*b/E/E)):E;x.rB=A,x.maxY=S}x.list.push(_)}f(m),f(g)}for(var p=t.length,h=0;h<p;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-l;t[h].linePoints[1][0]+=d,t[h].label.x=l}dw(t,1,u,u+o)&&c(t)}function sO(t,e,r,n,i,a,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<t.length;p++){var h=t[p].label;Fg(t[p])||(h.x<e?(f=Math.min(f,h.x),u.push(t[p])):(c=Math.max(c,h.x),l.push(t[p])))}for(var p=0;p<t.length;p++){var d=t[p];if(!Fg(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,v=d.linePoints,m=void 0;d.labelAlignTo==="edge"?h.x<e?m=v[2][0]-d.labelDistance-o-d.edgeDistance:m=o+i-d.edgeDistance-v[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?m=f-o-d.bleedMargin:m=o+i-c-d.bleedMargin:h.x<e?m=h.x-o-d.bleedMargin:m=o+i-h.x-d.bleedMargin,d.targetTextWidth=m,_C(d,m,!1)}}gC(l,e,r,n,1,i,a,o,s,c),gC(u,e,r,n,-1,i,a,o,s,f);for(var p=0;p<t.length;p++){var d=t[p];if(!Fg(d)&&d.linePoints){var h=d.label,v=d.linePoints,g=d.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:_,S=d.rect.width+x,b=v[1][0]-v[2][0];g?h.x<e?v[2][0]=o+d.edgeDistance+S+d.labelDistance:v[2][0]=o+i-d.edgeDistance-S-d.labelDistance:(h.x<e?v[2][0]=h.x+d.labelDistance:v[2][0]=h.x-d.labelDistance,v[1][0]=v[2][0]+b),v[1][1]=v[2][1]=h.y}}}function _C(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,u=s?s[1]+s[3]:0,l=i.overflow,f=a.width+(o?0:u);if(e<f||r){if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-u);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var p=e-u,h=e<f?p:r?p>t.unconstrainedWidth?null:p:null;n.setStyle("width",h)}xC(a,n)}}}function xC(t,e){yC.rect=t,mg(yC,e,uO)}var uO={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},yC={};function Fg(t){return t.position==="center"}function Ig(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*oO,s=e.getLayout("viewRect"),u=e.getLayout("r"),l=s.width,f=s.x,c=s.y,p=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var E in b.states)if(b.states[E].ignore===!1)return!0;return!1}e.each(function(b){var E=e.getItemGraphicEl(b),A=E.shape,D=E.getTextContent(),C=E.getTextGuideLine(),T=e.getItemModel(b),F=T.getModel("label"),M=F.get("position")||T.get(["emphasis","label","position"]),I=F.get("distanceToLabelLine"),L=F.get("alignTo"),B=te(F.get("edgeDistance"),l),R=F.get("bleedMargin");R==null&&(R=Math.min(l,p)>200?10:2);var O=T.getModel("labelLine"),V=O.get("length");V=te(V,l);var G=O.get("length2");if(G=te(G,l),Math.abs(A.endAngle-A.startAngle)<o){w(D.states,h),D.ignore=!0,C&&(w(C.states,h),C.ignore=!0);return}if(d(D)){var H=(A.startAngle+A.endAngle)/2,q=Math.cos(H),Q=Math.sin(H),j,oe,ge,Xe;n=A.cx,i=A.cy;var We=M==="inside"||M==="inner";if(M==="center")j=A.cx,oe=A.cy,Xe="center";else{var Ae=(We?(A.r+A.r0)/2*q:A.r*q)+n,Le=(We?(A.r+A.r0)/2*Q:A.r*Q)+i;if(j=Ae+q*3,oe=Le+Q*3,!We){var he=Ae+q*(V+u-A.r),Se=Le+Q*(V+u-A.r),Xt=he+(q<0?-1:1)*G,qe=Se;L==="edge"?j=q<0?f+B:f+l-B:j=Xt+(q<0?-I:I),oe=qe,ge=[[Ae,Le],[he,Se],[Xt,qe]]}Xe=We?"center":L==="edge"?q>0?"right":"left":q>0?"left":"right"}var Rr=Math.PI,qt=0,Nr=F.get("rotate");if(ie(Nr))qt=Nr*(Rr/180);else if(M==="center")qt=0;else if(Nr==="radial"||Nr===!0){var co=q<0?-H+Rr:-H;qt=co}else if(Nr==="tangential"||Nr==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var kr=Math.atan2(q,Q);kr<0&&(kr=Rr*2+kr);var Gl=Q>0;Gl&&Nr!=="tangential-noflip"&&(kr=Rr+kr),qt=kr-Rr}if(a=!!qt,D.x=j,D.y=oe,D.rotation=qt,D.setStyle({verticalAlign:"middle"}),We){D.setStyle({align:Xe});var rd=D.states.select;rd&&(rd.x+=D.x,rd.y+=D.y)}else{var po=new re(0,0,0,0);xC(po,D),r.push({label:D,labelLine:C,position:M,len:V,len2:G,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new pe(q,Q),linePoints:ge,textAlign:Xe,labelDistance:I,labelAlignTo:L,edgeDistance:B,bleedMargin:R,rect:po,unconstrainedWidth:po.width,labelStyleWidth:D.style.width})}E.setTextConfig({inside:We})}}),!a&&t.get("avoidLabelOverlap")&&sO(r,n,i,u,l,p,f,c);for(var v=0;v<r.length;v++){var m=r[v],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(w(g.states,h),g.ignore=!0);var x=g.states.select;x&&(x.x+=g.x,x.y+=g.y)}if(y){var S=m.linePoints;_||!S?(w(y.states,h),y.ignore=!0):(vC(S,m.minTurnAngle),mC(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new pe(S[0][0],S[0][1])})}}}var SC=Math.PI*2,qp=Math.PI/180,bC=Vo(en,lO);function lO(t,e){t.eachSeriesByType(en,function(r){var n=r.getData(),i=n.mapDimension("value"),a=Mb(r,e),o=a.cx,s=a.cy,u=a.r,l=a.r0,f=a.viewRect,c=-r.get("startAngle")*qp,p=r.get("endAngle"),h=r.get("padAngle")*qp;p=p==="auto"?c-SC:-p*qp;var d=r.get("minAngle")*qp,v=d+h,m=0;n.each(i,function(B){!isNaN(B)&&m++});var g=n.getSum(i),y=Math.PI/(g||m)*2,_=r.get("clockwise"),x=r.get("roseType"),S=r.get("stillShowZeroSum"),b=n.getDataExtent(i);b[0]=0;var E=_?1:-1,A=[c,p],D=E*h/2;gu(A,!_),c=A[0],p=A[1];var C=Pg(r);C.startAngle=c,C.endAngle=p,C.clockwise=_,C.cx=o,C.cy=s,C.r=u,C.r0=l;var T=Math.abs(p-c),F=T,M=0,I=c;if(n.setLayout({viewRect:f,r:u}),n.each(i,function(B,R){var O;if(isNaN(B)){n.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:l,r:x?NaN:u});return}x!=="area"?O=g===0&&S?y:B*y:O=T/m,O<v?(O=v,F-=v):M+=B;var V=I+E*O,G=0,H=0;h>O?(G=I+E*O/2,H=G):(G=I+D,H=V-D),n.setItemLayout(R,{angle:O,startAngle:G,endAngle:H,clockwise:_,cx:o,cy:s,r0:l,r:x?mt(B,b,[l,u]):u}),I=V}),F<SC&&m)if(F<=.001){var L=T/m;n.each(i,function(B,R){if(!isNaN(B)){var O=n.getItemLayout(R);O.angle=L;var V=0,G=0;L<h?(V=c+E*(R+1/2)*L,G=V):(V=c+E*R*L+D,G=c+E*(R+1)*L-D),O.startAngle=V,O.endAngle=G}})}else y=F/M,I=c,n.each(i,function(B,R){if(!isNaN(B)){var O=n.getItemLayout(R),V=O.angle===v?v:B*y,G=0,H=0;V<h?(G=I+E*V/2,H=G):(G=I+D,H=I+E*V-D),O.startAngle=G,O.endAngle=H,I+=E*V}})})}var Pg=le();var fO=(function(t){P(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new be;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.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),c=N(Qa(u.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(Me(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):p==="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,we(o,{shape:{endAngle:f.endAngle}},s,n))}else Xr(o),we(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),Ht(o,u);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),v=Math.cos(h)*d,m=Math.sin(h)*d,g=u.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=N({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},Qa(l.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:v,y:m,shape:Qa(u.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:Qa(u.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&N(y.ensureState("select"),{x:v,y:m}),N(_.ensureState("select"),{x:v,y:m}),Mt(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},e.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;rr(a,nr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:l,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Gt,this.setTextGuideLine(h)),Yp(this,Xp(o),{stroke:l,opacity:Zt(s.get(["lineStyle","opacity"]),f,1)})}},e})(It),cO=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=en,r.ignoreLabelLineUpdate=!0,r}return e.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),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(l=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var p=Pg(r),h=new It({shape:J(p)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,u.add(h)}o.diff(s).add(function(d){var v=new fO(o,d,l);o.setItemGraphicEl(d,v),u.add(v)}).update(function(d,v){var m=s.getItemGraphicEl(v);m.updateData(o,d,l),m.off("click"),u.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var v=s.getItemGraphicEl(d);gn(v,r,d)}).execute(),Ig(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.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}},e.type=en,e})(Pe),EC=cO;function Lg(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ie(o)&&!isNaN(o)&&o<0)})}}}function Bg(t){t.registerChartView(EC),t.registerSeriesModel(hC),fC(en,t.registerAction),t.registerLayout(bC),t.registerProcessor(Ja(en)),t.registerProcessor(Lg(en))}var th={};jt(th,{dispose:()=>NO,disposeAll:()=>kO,getElementSSRData:()=>Zg,getInstance:()=>zO,init:()=>eh,registerPainter:()=>Kg,registerSSRDataGetter:()=>Qg,version:()=>UO});var Rs=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),pO=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Rs(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Rs(r,e),"drag",e.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 Rs(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new Rs(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Rs(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Rs(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),wC=pO;var hO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Og=[],dO=ce.browser.firefox&&+ce.browser.version.split(".")[0]<39;function jp(t,e,r,n){return r=r||{},n?CC(t,e,r):dO&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):CC(t,e,r),r}function CC(t,e,r){if(ce.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(Mm(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Fc(Og,t,n,i)){r.zrX=Og[0],r.zrY=Og[1];return}}r.zrX=r.zrY=0}function Kp(t){return t||window.event}function ur(t,e,r){if(e=Kp(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&jp(t,o,e,r)}else{jp(t,e,e,r);var a=vO(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&hO.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function vO(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function AC(t,e,r,n){t.addEventListener(e,r,n)}function DC(t,e,r,n){t.removeEventListener(e,r,n)}var Zp=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var MC=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var u=i[o],l=jp(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Ng)if(Ng.hasOwnProperty(r)){var n=Ng[r](this._track,e);if(n)return n}},t})();function TC(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function mO(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Ng={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=TC(n)/TC(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=mO(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};var IC="silent";function gO(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.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:yO}}function yO(){Zp(this.event)}var _O=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Nt),dl=(function(){function t(e,r){this.x=e,this.y=r}return t})(),xO=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],kg=new re(0,0,0,0),PC=(function(t){P(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new dl(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new _O,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new wC(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(w(xO,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=LC(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 dl(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)},e.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})},e.prototype.resize=function(){this._hovered=new dl(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=gO(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)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new dl(r,n);if(FC(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new re(r-l,n-l,u,u),c=a.length-1;c>=0;c--){var p=a[c];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(kg.copy(p.getBoundingRect()),p.transform&&kg.applyTransform(p.transform),kg.intersect(f)&&s.push(p))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<l;m+=h)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),_=n+m*Math.sin(g);if(FC(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new MC);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 dl;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Nt);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){PC.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=LC(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||xo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function SO(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?IC:!0}return!1}function FC(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=SO(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==IC)){e.target=o;break}}}function LC(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var BC=PC;var NC=32,vl=7;function bO(t){for(var e=0;t>=NC;)e|=t&1,t>>=1;return t+e}function OC(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;EO(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function EO(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function RC(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,u;o<s;)u=o+s>>>1,i(a,t[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;l>0;)t[o+l]=t[o+l-1],l--}t[o]=a}}function zg(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])>0){for(s=n-i;u<s&&a(t,e[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(t,e[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(t,e[r+f])>0?o=f+1:u=f}return u}function Ug(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])<0){for(s=i+1;u<s&&a(t,e[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(t,e[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(t,e[r+f])<0?u=f:o=f+1}return u}function wO(t,e){var r=vl,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function u(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function l(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],v=i[h],m=n[h+1],g=i[h+1];i[h]=v+g,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=Ug(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=zg(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):p(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,_=v,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<d;g++)t[x+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}for(var S=r,b,E,A;;){b=0,E=0,A=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],E++,b=0,--m===0){A=!0;break}}else if(t[x++]=o[y++],b++,E=0,--d===1){A=!0;break}while((b|E)<S);if(A)break;do{if(b=Ug(t[_],o,y,d,0,e),b!==0){for(g=0;g<b;g++)t[x+g]=o[y+g];if(x+=b,y+=b,d-=b,d<=1){A=!0;break}}if(t[x++]=t[_++],--m===0){A=!0;break}if(E=zg(o[y],t,_,m,0,e),E!==0){for(g=0;g<E;g++)t[x+g]=t[_+g];if(x+=E,_+=E,m-=E,m===0){A=!0;break}}if(t[x++]=o[y++],--d===1){A=!0;break}S--}while(b>=vl||E>=vl);if(A)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[x+g]=o[y+g]}}function p(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=h+d-1,_=m-1,x=v+m-1,S=0,b=0;if(t[x--]=t[y--],--d===0){for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(x-=d,y-=d,b=x+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_];return}for(var E=r;;){var A=0,D=0,C=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],A++,D=0,--d===0){C=!0;break}}else if(t[x--]=o[_--],D++,A=0,--m===1){C=!0;break}while((A|D)<E);if(C)break;do{if(A=d-Ug(o[_],t,h,d,d-1,e),A!==0){for(x-=A,y-=A,d-=A,b=x+1,S=y+1,g=A-1;g>=0;g--)t[b+g]=t[S+g];if(d===0){C=!0;break}}if(t[x--]=o[_--],--m===1){C=!0;break}if(D=m-zg(t[y],o,0,m,m-1,e),D!==0){for(x-=D,_-=D,m-=D,b=x+1,S=_+1,g=0;g<D;g++)t[b+g]=o[S+g];if(m<=1){C=!0;break}}if(t[x--]=t[y--],--d===0){C=!0;break}E--}while(A>=vl||D>=vl);if(C)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),m===1){for(x-=d,y-=d,b=x+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function eo(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<NC){a=OC(t,r,n,e),RC(t,r,n,r+a,e);return}var o=wO(t,e),s=bO(i);do{if(a=OC(t,r,n,e),a<s){var u=i;u>s&&(u=s),RC(t,r,r+u,r+a,e),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var kC=!1;function Vg(){kC||(kC=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function zC(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var CO=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zC}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,eo(n,zC)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=i,f=e;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Dt),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Vg(),d.z=0),isNaN(d.z2)&&(Vg(),d.z2=0),isNaN(d.zlevel)&&(Vg(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,n);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=ue(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),UC=CO;var VC;VC=ce.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Hg=VC;function to(){return new Date().getTime()}var AO=(function(t){P(e,t);function e(r){var n=t.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 e.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},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.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}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=to()-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())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Hg(n),!r._paused&&r.update())}Hg(n)},e.prototype.start=function(){this._running||(this._time=to(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=to(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=to()-this._pauseStart,this._paused=!1)},e.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},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new pu(r,n.loop);return this.addAnimator(i),i},e})(Nt),HC=AO;var DO=300,Gg=ce.domSupported,Wg=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=z(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),GC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},WC=!1;function Xg(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TO(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function $g(t){t&&(t.zrByTouch=!0)}function MO(t,e){return ur(t.dom,new FO(t,e),!0)}function YC(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var FO=(function(){function t(e,r){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),tn={mousedown:function(t){t=ur(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ur(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ur(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ur(this.dom,t);var e=t.toElement||t.relatedTarget;YC(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){WC=!0,t=ur(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){WC||(t=ur(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ur(this.dom,t),$g(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),tn.mousemove.call(this,t),tn.mousedown.call(this,t)},touchmove:function(t){t=ur(this.dom,t),$g(t),this.handler.processGesture(t,"change"),tn.mousemove.call(this,t)},touchend:function(t){t=ur(this.dom,t),$g(t),this.handler.processGesture(t,"end"),tn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<DO&&tn.click.call(this,t)},pointerdown:function(t){tn.mousedown.call(this,t)},pointermove:function(t){Xg(t)||tn.mousemove.call(this,t)},pointerup:function(t){tn.mouseup.call(this,t)},pointerout:function(t){Xg(t)||tn.mouseout.call(this,t)}};w(["click","dblclick","contextmenu"],function(t){tn[t]=function(e){e=ur(this.dom,e),this.trigger(t,e)}});var qg={pointermove:function(t){Xg(t)||qg.mousemove.call(this,t)},pointerup:function(t){qg.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function IO(t,e){var r=e.domHandlers;ce.pointerEventsSupported?w(Wg.pointer,function(n){Qp(e,n,function(i){r[n].call(t,i)})}):(ce.touchEventsSupported&&w(Wg.touch,function(n){Qp(e,n,function(i){r[n].call(t,i),TO(e)})}),w(Wg.mouse,function(n){Qp(e,n,function(i){i=Kp(i),e.touching||r[n].call(t,i)})}))}function PO(t,e){ce.pointerEventsSupported?w(GC.pointer,r):ce.touchEventsSupported||w(GC.mouse,r);function r(n){function i(a){a=Kp(a),YC(t,a.target)||(a=MO(t,a),e.domHandlers[n].call(t,a))}Qp(e,n,i,{capture:!0})}}function Qp(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,AC(t.domTarget,e,r,n)}function Yg(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&DC(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var $C=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),LO=(function(t){P(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new $C(r,tn),Gg&&(i._globalHandlerScope=new $C(document,qg)),IO(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Yg(this._localHandlerScope),Gg&&Yg(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Gg&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?PO(this,n):Yg(n)}},e})(Nt),XC=LO;var Jp={},ro={};function BO(t){delete ro[t]}function OO(t){if(!t)return!1;if(typeof t=="string")return oa(t,1)<hu;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=oa(e[i].color,1);return r/=n,r<hu}return!1}var RO=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new UC,o=n.renderer||"canvas";Jp[o]||(o=ne(Jp)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Jp[o](r,a,n,e),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!ce.node&&!ce.worker&&!u?new XC(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?ce.touchEventsSupported:!!f,p=44,h;c&&(h=X(n.pointerSize,p)),this.handler=new BC(a,s,l,s.root,h),this.animation=new HC({stage:{update:u?null:function(){return i._flush(!1)}}}),u||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=OO(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=to(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=to();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof _e&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,BO(this.id))},t})();function eh(t,e){var r=new RO(qs(),t,e);return ro[r.id]=r,r}function NO(t){t.dispose()}function kO(){for(var t in ro)ro.hasOwnProperty(t)&&ro[t].dispose();ro={}}function zO(t){return ro[t]}function Kg(t,e){Jp[t]=e}var jg;function Zg(t){if(typeof jg=="function")return jg(t)}function Qg(t){jg=t}var UO="6.1.0";var qC="";typeof navigator!="undefined"&&(qC=navigator.platform||"");var Ns="rgba(0, 0, 0, 0.2)",jC=$.color.theme[0],VO=Fo(jC,null,null,.9),rh={darkMode:"auto",colorBy:"series",color:$.color.theme,gradientColor:[VO,jC],aria:{decal:{decals:[{color:Ns,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ns,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ns,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ns,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ns,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ns,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qC.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 HO=K();function KC(t,e,r){var n=HO.get(e);if(!n)return r;var i=n(t);if(!i)return r;if(0)for(var a;a<i.length;a++);return r.concat(i)}var nh,ml,ZC,QC="\0_ec_inner",GO=1;var rA=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new De(a),this._locale=new De(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=tA(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,tA(n))},e.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"?ZC(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&&w(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=K(),l=n&&n.replaceMergeMainTypeMap;U1(this),w(r,function(c,p){c!=null&&(xe.hasClass(p)?p&&(s.push(p),u.set(p,!0)):i[p]=i[p]==null?J(c):me(i[p],c,!0))}),l&&l.each(function(c,p){xe.hasClass(p)&&!u.get(p)&&(s.push(p),u.set(p,!0))}),xe.topologicalTravel(s,xe.getAllClassMainTypes(),f,this);function f(c){var p=KC(this,c,Ge(r[c])),h=a.get(c),d=h?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=mS(h,p,d);yS(v,c,xe),i[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;w(v,function(S,b){var E=S.existing,A=S.newOption;if(!A)E&&(E.mergeOption({},this),E.optionUpdated({},!1));else{var D=c==="series",C=xe.getClass(c,S.keyInfo.subType,!D);if(!C){if(0)var T,F;return}if(c==="tooltip"){if(_)return;_=!0}if(E&&E.constructor===C)E.name=S.keyInfo.name,E.mergeOption(A,this),E.optionUpdated(A,!1);else{var M=N({componentIndex:b},S.keyInfo);E=new C(A,this,this,M),N(E,M),S.brandNew&&(E.__requireNewView=!0),E.init(A,this,this),E.optionUpdated(null,!0)}}E?(m.push(E.option),g.push(E),y++):(m.push(void 0),g.push(void 0))},this),i[c]=m,a.set(c,g),o.set(c,y),c==="series"&&nh(this)}this._seriesIndices||nh(this)},e.prototype.getOption=function(){var r=J(this.option);return w(r,function(n,i){if(xe.hasClass(i)){for(var a=Ge(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!ko(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[QC],r},e.prototype.setTheme=function(r){this._theme=new De(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.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]}}},e.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=[],w(Ge(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=JC("id",a,s):o!=null?u=JC("name",o,s):u=Fe(s,function(l){return!!l}),eA(u,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Fe(this._componentsMap.get(i),function(l){return!!l});return u(eA(o,r));function s(l){var f=i+"Index",c=i+"Id",p=i+"Name";return l&&(l[f]!=null||l[c]!=null||l[p]!=null)?{mainType:i,index:l[f],id:l[c],name:l[p]}:null}function u(l){return r.filter?Fe(l,r.filter):l}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Y(r)){var o=n,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,p,d,d.componentIndex)}})}else for(var u=U(r)?a.get(r):W(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=pr(r,null);return Fe(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Fe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Fe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){ml(this),w(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){w(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){ml(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return w(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return ml(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){ml(this);var i=[];w(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=K(i)},e.prototype.restoreData=function(r){nh(this);var n=this._componentsMap,i=[];n.each(function(a,o){xe.hasClass(o)&&i.push(o)}),xe.topologicalTravel(i,xe.getAllClassMainTypes(),function(a){w(n.get(a),function(o){o&&(a!=="series"||!WO(o,r))&&o.restoreData()})})},e.internalField=(function(){nh=function(r){var n=r._seriesIndices=[];w(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=K(n)},ml=function(r){},ZC=function(r,n){r.option={},r.option[QC]=GO,r._componentsMap=K({series:[]}),r._componentsCount=K();var i=n.aria;W(i)&&i.enabled==null&&(i.enabled=!0),$O(n,r._theme.option),me(n,rh,!1),r._mergeOption(n,null)}})(),e})(De);function WO(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function $O(t,e){var r=t.color&&!t.colorLayer;w(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||xe.hasClass(i)||(typeof n=="object"?t[i]=t[i]?me(t[i],n,!1):J(n):t[i]==null&&(t[i]=n))})}function JC(t,e,r){if(k(e)){var n=K();return w(e,function(a){if(a!=null){var o=pr(a,null);o!=null&&n.set(a,!0)}}),Fe(r,function(a){return a&&n.get(a[t])})}else{var i=pr(e,null);return Fe(r,function(a){return a&&i!=null&&a[t]===i})}}function eA(t,e){return e.hasOwnProperty("subType")?Fe(t,function(r){return r&&r.subType===e.subType}):t}function tA(t){var e=K();return t&&w(Ge(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}nt(rA,Ju);var ih=rA;var YO=/^(min|max)?(.+)$/,XO=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(w(Ge(e.series),function(o){o&&o.data&&$e(o.data)&&ti(o.data)}),w(Ge(e.dataset),function(o){o&&o.source&&$e(o.source)&&ti(o.source)})),e=J(e);var i=this._optionBackup,a=qO(e,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},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],J(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=J(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){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++)jO(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!ZO(o,this._currentMediaIndices)&&(s=z(o,function(f){return J(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function qO(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,u=t.options,l=t.media,f=!!t.media,c=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&k(l)&&w(l,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),p(a),w(u,function(h){return p(h)}),w(n,function(h){return p(h.option)});function p(h){w(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function jO(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return w(t,function(a,o){var s=o.match(YO);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();KO(n[l],a,u)||(i=!1)}}),i}function KO(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function ZO(t,e){return t.join(",")===e.join(",")}var nA=XO;var rn=w,yl=W,iA=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Jg(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=iA.length;r<n;r++){var i=iA[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?me(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?me(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Ot(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,ee(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function gl(t){Ot(t,"itemStyle"),Ot(t,"lineStyle"),Ot(t,"areaStyle"),Ot(t,"label"),Ot(t,"labelLine"),Ot(t,"upperLabel"),Ot(t,"edgeLabel")}function rt(t,e){var r=yl(t)&&t[e],n=yl(r)&&r.textStyle;if(n)for(var i=0,a=xv.length;i<a;i++){var o=xv[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Br(t){t&&(gl(t),rt(t,"label"),t.emphasis&&rt(t.emphasis,"label"))}function QO(t){if(yl(t)){Jg(t),gl(t),rt(t,"label"),rt(t,"upperLabel"),rt(t,"edgeLabel"),t.emphasis&&(rt(t.emphasis,"label"),rt(t.emphasis,"upperLabel"),rt(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Jg(e),Br(e));var r=t.markLine;r&&(Jg(r),Br(r));var n=t.markArea;n&&Br(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!$e(a))for(var o=0;o<a.length;o++)Br(a[o]);w(t.categories,function(l){gl(l)})}if(i&&!$e(i))for(var o=0;o<i.length;o++)Br(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Br(s[o]);if(r=t.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)k(u[o])?(Br(u[o][0]),Br(u[o][1])):Br(u[o]);t.type==="gauge"?(rt(t,"axisLabel"),rt(t,"title"),rt(t,"detail")):t.type==="treemap"?(Ot(t.breadcrumb,"itemStyle"),w(t.levels,function(l){gl(l)})):t.type==="tree"&&gl(t.leaves)}}function Kn(t){return k(t)?t:t?[t]:[]}function aA(t){return(k(t)?t[0]:t)||{}}function e0(t,e){rn(Kn(t.series),function(n){yl(n)&&QO(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),rn(r,function(n){rn(Kn(t[n]),function(i){i&&(rt(i,"axisLabel"),rt(i.axisPointer,"label"))})}),rn(Kn(t.parallel),function(n){var i=n&&n.parallelAxisDefault;rt(i,"axisLabel"),rt(i&&i.axisPointer,"label")}),rn(Kn(t.calendar),function(n){Ot(n,"itemStyle"),rt(n,"dayLabel"),rt(n,"monthLabel"),rt(n,"yearLabel")}),rn(Kn(t.radar),function(n){rt(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)}),rn(Kn(t.geo),function(n){yl(n)&&(Br(n),rn(Kn(n.regions),function(i){Br(i)}))}),rn(Kn(t.timeline),function(n){Br(n),Ot(n,"label"),Ot(n,"itemStyle"),Ot(n,"controlStyle",!0);var i=n.data;k(i)&&w(i,function(a){W(a)&&(Ot(a,"label"),Ot(a,"itemStyle"))})}),rn(Kn(t.toolbox),function(n){Ot(n,"iconStyle"),rn(n.feature,function(i){Ot(i,"iconStyle")})}),rt(aA(t.axisPointer),"label"),rt(aA(t.tooltip).axisPointer,"label")}function JO(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function eR(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function oA(t){t&&w(tR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var tR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],t0=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _l(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<t0.length;r++){var n=t0[r][1],i=t0[r][0];e[n]!=null&&(e[i]=e[n])}}function sA(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function uA(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function nR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function lA(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&lA(t[r].children,e)}function ah(t,e){e0(t,e),t.series=Ge(t.series),w(t.series,function(r){if(W(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),sA(r.label);var i=r.data;if(i&&!$e(i))for(var a=0;a<i.length;a++)sA(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=JO(r,"pointer.color");o!=null&&eR(r,"itemStyle.color",o)}else if(n==="bar"){_l(r),_l(r.backgroundStyle),_l(r.emphasis);var i=r.data;if(i&&!$e(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(_l(i[a]),_l(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)),uA(r),lA(r.data,uA)}else n==="graph"||n==="sankey"?nR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ee(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),oA(r)}}),t.dataRange&&(t.visualMap=t.dataRange),w(rR,function(r){var n=t[r];n&&(k(n)||(n=[n]),w(n,function(i){oA(i)}))})}var fA=Ho(iR);function iR(t){var e=K();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.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.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),w(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),aR(r)}})}function aR(t){w(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&p>=0&&y>0||u==="samesign"&&p<=0&&y<0){p=uS(p,y),v=y;break}}}return n[0]=p,n[1]=v,n})})}var r0=(function(){function t(){this.group=new _e,this.uid=xn("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();go(r0);ni(r0);var ze=r0;var cA=le(),pA={itemStyle:nn(um,!0),lineStyle:nn(sm,!0)},oR={lineStyle:"stroke",itemStyle:"fill"};function hA(t,e){var r=t.visualStyleMapper||pA[e];return r||(console.warn("Unknown style type '"+e+"'."),pA.itemStyle)}function dA(t,e){var r=t.visualDrawType||oR[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var vA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=hA(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=dA(t,n),l=o[u],f=Y(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[u]||(o[u]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Y(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||Y(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var v=t.getDataParams(d),m=N({},o);m[u]=f(v),h.setItemVisual(d,"style",m)}}}},xl=new De,mA={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=hA(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){xl.option=u[n];var l=i(xl),f=o.ensureUniqueItemVisual(s,"style");N(f,l),xl.option.decal&&(o.setItemVisual(s,"decal",xl.option.decal),xl.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},gA={performRawSeries:!0,overallReset:function(t){var e=K();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();cA(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=cA(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=dA(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=n.getName(l)||l+"",d=n.count();p[u]=r.getColorFromPalette(h,o,d)}})}})}};var oh=Math.PI;function n0(t,e){e=e||{},ee(e,{text:"loading",textColor:$.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new _e,n=new Ee({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new be({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ee({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Ea({shape:{startAngle:-oh/2,endAngle:-oh/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:oh*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:oh*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-u*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),f=t.getHeight()/2;e.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:t.getWidth(),height:t.getHeight()})},r.resize(),r}var sR=(function(){function t(e,r,n,i){this._stageTaskMap=K(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__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}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):kf(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=K();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;w(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Ue(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;w(e,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,d=p.agentStubMap;d.each(function(m){s(i,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,n);var v=o.getPerformArgs(p,i.block);d.each(function(m){m.perform(v)}),p.perform(v)&&(a=!0)}else c&&c.each(function(m,g){s(i,m)&&m.dirty();var y=o.getPerformArgs(m,i.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=K(),u=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||Ti({plan:pR,reset:hR,count:vR}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ti({reset:uR});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=K(),l=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";Ue(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):w(n.getSeries(),d);function d(v){var m=v.uid,g=u.set(m,s&&s.get(m)||(p=!0,Ti({reset:lR,onDirty:cR})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(v,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.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},t.wrapStageHandler=function(e,r){return Y(e)&&(e={overallReset:e,seriesType:mR(e)}),e.uid=xn("stageHandler"),r&&(e.visualType=r),e},t})();function uR(t){t.overallReset(t.ecModel,t.api,t.payload)}function lR(t){return t.dirtyOnOverallProgress&&fR}function fR(){this.agent.dirty(),this.getDownstream().dirty()}function cR(){this.agent&&this.agent.dirty()}function pR(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function hR(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ge(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?z(e,function(r,n){return yA(n)}):dR}var dR=yA(0);function yA(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function vR(t){return t.data.count()}function mR(t){sh=null;try{t(Sl,_A)}catch(e){}return sh}var Sl={},_A={},sh;xA(Sl,ih);xA(_A,Vf);Sl.eachSeriesByType=Sl.eachRawSeriesByType=function(t){sh=t};Sl.eachComponent=function(t){t.mainType==="series"&&t.subType&&(sh=t.subType)};function xA(t,e){for(var r in e.prototype)t[r]=Be}var i0=sR;var Z=$.darkColor,SA=Z.background,bl=function(){return{axisLine:{lineStyle:{color:Z.axisLine}},splitLine:{lineStyle:{color:Z.axisSplitLine}},splitArea:{areaStyle:{color:[Z.backgroundTint,Z.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Z.axisMinorSplitLine}},axisLabel:{color:Z.axisLabel},axisName:{}}},bA={label:{color:Z.secondary},itemStyle:{borderColor:Z.borderTint},dividerLineStyle:{color:Z.border}},EA={darkMode:!0,color:Z.theme,backgroundColor:SA,axisPointer:{lineStyle:{color:Z.border},crossStyle:{color:Z.borderShade},label:{color:Z.tertiary}},legend:{textStyle:{color:Z.secondary},pageTextStyle:{color:Z.tertiary}},textStyle:{color:Z.secondary},title:{textStyle:{color:Z.primary},subtextStyle:{color:Z.quaternary}},toolbox:{iconStyle:{borderColor:Z.accent50},feature:{dataView:{backgroundColor:SA,textColor:Z.primary,textareaColor:Z.background,textareaBorderColor:Z.border,buttonColor:Z.accent50,buttonTextColor:Z.neutral00}}},tooltip:{backgroundColor:Z.neutral20,defaultBorderColor:Z.border,textStyle:{color:Z.tertiary}},dataZoom:{borderColor:Z.accent10,textStyle:{color:Z.tertiary},brushStyle:{color:Z.backgroundTint},handleStyle:{color:Z.neutral00,borderColor:Z.accent20},moveHandleStyle:{color:Z.accent40},emphasis:{handleStyle:{borderColor:Z.accent50}},dataBackground:{lineStyle:{color:Z.accent30},areaStyle:{color:Z.accent20}},selectedDataBackground:{lineStyle:{color:Z.accent50},areaStyle:{color:Z.accent30}}},visualMap:{textStyle:{color:Z.secondary},handleStyle:{borderColor:Z.neutral30}},timeline:{lineStyle:{color:Z.accent10},label:{color:Z.tertiary},controlStyle:{color:Z.accent30,borderColor:Z.accent30}},calendar:{itemStyle:{color:Z.neutral00,borderColor:Z.neutral20},dayLabel:{color:Z.tertiary},monthLabel:{color:Z.secondary},yearLabel:{color:Z.secondary}},matrix:{x:bA,y:bA,backgroundColor:{borderColor:Z.axisLine},body:{itemStyle:{borderColor:Z.borderTint}}},timeAxis:bl(),logAxis:bl(),valueAxis:bl(),categoryAxis:bl(),line:{symbol:"circle"},graph:{color:Z.theme},gauge:{title:{color:Z.secondary},axisLine:{lineStyle:{color:[[1,Z.neutral05]]}},axisLabel:{color:Z.axisLabel},detail:{color:Z.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Z.background}},radar:(function(){var t=bl();return t.axisName={color:Z.axisLabel},t.axisLine.lineStyle.color=Z.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:Z.neutral20,textStyle:{color:Z.secondary}},emphasis:{itemStyle:{color:Z.neutral30}}}},sunburst:{itemStyle:{borderColor:Z.background}},map:{itemStyle:{borderColor:Z.border,areaColor:Z.neutral10},label:{color:Z.tertiary},emphasis:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}},select:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}}},geo:{itemStyle:{borderColor:Z.border,areaColor:Z.neutral10},emphasis:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}},select:{label:{color:Z.primary},itemStyle:{color:Z.highlight}}}};EA.categoryAxis.splitLine.show=!1;var wA=EA;var CA=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(U(e)){var a=Qt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(e,function(u,l){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=l.lastIndexOf(p);if(h>0&&h===l.length-p.length){var d=l.slice(0,h);d!=="data"&&(r.mainType=d,r[p.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,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(e,r.otherQuery,i,a));function f(c,p,h,d){return c[h]==null||p[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var a0=["symbol","symbolSize","symbolRotate","symbolOffset"],AA=a0.concat(["symbolKeepAspect"]),DA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<a0.length;o++){var s=a0[o],u=t.get(s);Y(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(N({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var l=ne(i);function f(c,p){for(var h=t.getRawValue(p),d=t.getDataParams(p),v=0;v<l.length;v++){var m=l[v];c.setItemVisual(p,m,i[m](h,d))}}return{dataEach:a?f:null}}},TA={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<AA.length;s++){var u=AA[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function MA(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function FA(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function no(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var gR=new Nt,yr=gR;var IA={};function PA(t,e){IA[t]=e}function o0(t){return IA[t]}var yR={};function uh(t,e){yR[t]=e}var _R=Math.round(Math.random()*9),xR=typeof Object.defineProperty=="function",SR=(function(){function t(){this._id="__ec_inner_"+_R++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return xR?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),LA=SR;function io(t){return isFinite(t)}function bR(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.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=io(n)?n:0,i=io(i)?i:1,a=io(a)?a:0,o=io(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function ER(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,u=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,u=u*a),o=io(o)?o:.5,s=io(s)?s:.5,u=u>=0&&io(u)?u:.5;var l=t.createRadialGradient(o,s,0,o,s,u);return l}function s0(t,e,r){for(var n=e.type==="radial"?ER(t,e,r):bR(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function BA(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function lh(t){return parseInt(t,10)}function u0(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||lh(s[n])||lh(t.style[n]))-(lh(s[a])||0)-(lh(s[o])||0)||0}function wR(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:ie(t)?[t]:k(t)?t:null}function El(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&wR(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=z(r,function(a){return a/i}),n/=i)}return[r,n]}var CR=new bt(!0);function fh(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function OA(t){return typeof t=="string"&&t!=="none"}function ch(t){var e=t.fill;return e!=null&&e!=="none"}function RA(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function NA(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function kA(t,e,r){var n=Js(e.image,e.__image,r);if(yo(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Yi),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function AR(t,e,r,n,i){var a,o=fh(r),s=ch(r),u=r.strokePercent,l=u<1,f=!e.path;(!e.silent||l)&&f&&e.createPathProxy();var c=e.path||CR,p=e.__dirty;if(!n){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,_=void 0,x=void 0,S=void 0,b=void 0,E=void 0;(v||m)&&(E=e.getBoundingRect()),v&&(_=p?s0(t,h,E):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?s0(t,d,E):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?kA(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=p||!e.__canvasStrokePattern?kA(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),v?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold);var D,C;t.setLineDash&&r.lineDash&&(a=El(e),D=a[0],C=a[1]);var T=!0;(f||p&pi)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?u:1),D&&(t.setLineDash(D),t.lineDashOffset=C),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&NA(t,r),s&&RA(t,r)):(s&&RA(t,r),o&&NA(t,r)),D&&t.setLineDash([])}function DR(t,e,r){var n=e.__image=Js(r.image,e.__image,e,e.onload);if(!(!n||!yo(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.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;t.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,c=o-l,p=s-f;t.drawImage(n,l,f,c,p,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function TR(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Kt,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=El(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(fh(r)&&t.strokeText(i,r.x,r.y),ch(r)&&t.fillText(i,r.x,r.y)):(ch(r)&&t.fillText(i,r.x,r.y),fh(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var zA=["shadowBlur","shadowOffsetX","shadowOffsetY"],UA=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function YA(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Yt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?ln.opacity:o}(n||e.blend!==r.blend)&&(a||(Yt(t,i),a=!0),t.globalCompositeOperation=e.blend||ln.blend);for(var s=0;s<zA.length;s++){var u=zA[s];(n||e[u]!==r[u])&&(a||(Yt(t,i),a=!0),t[u]=t.dpr*(e[u]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Yt(t,i),a=!0),t.shadowColor=e.shadowColor||ln.shadowColor),a}function VA(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=YA(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Yt(t,i),s=!0),OA(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Yt(t,i),s=!0),OA(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Yt(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Yt(t,i),s=!0),t.lineWidth=l)}for(var f=0;f<UA.length;f++){var c=UA[f],p=c[0];(n||a[p]!==o[p])&&(s||(Yt(t,i),s=!0),t[p]=a[p]||c[1])}return s}function MR(t,e,r,n,i){return YA(t,e.style,r&&r.style,n,i)}function XA(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function FR(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),XA(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function IR(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var HA=1,GA=2,WA=3,$A=4;function PR(t){var e=ch(t),r=fh(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Yt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function ph(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};l0(t,e,r),f0(t,r)}function l0(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Dt,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,u=!1;if((!a||BA(i,a))&&(a&&(Yt(t,r),t.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Yt(t,r),t.save(),FR(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~Dt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=e instanceof ae&&e.autoBatch&&PR(o);s||IR(n,l.transform)?(Yt(t,r),XA(t,e)):f||Yt(t,r),e instanceof ae?(r.lastDrawType!==HA&&(u=!0,r.lastDrawType=HA),VA(t,e,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),AR(t,e,o,f,r)):e instanceof ma?(r.lastDrawType!==WA&&(u=!0,r.lastDrawType=WA),VA(t,e,l,u,r),TR(t,e,o)):e instanceof je?(r.lastDrawType!==GA&&(u=!0,r.lastDrawType=GA),MR(t,e,l,u,r),DR(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==$A&&(u=!0,r.lastDrawType=$A),LR(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&Yt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function f0(t,e){Yt(t,e),e.prevElClipPaths&&t.restore()}function LR(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),l0(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}f0(t,a);for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),l0(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}f0(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var c0=new LA,qA=new an(100),jA=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function wl(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&c0.delete(t);var a=c0.get(t);if(a)return a;var o=ee(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,c0.set(t,s),t.dirty=!1,s;function u(l){for(var f=[r],c=!0,p=0;p<jA.length;++p){var h=o[jA[p]];if(h!=null&&!k(h)&&!U(h)&&!ie(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var v=qA.get(d);v&&(i?l.svgElement=v:l.image=v)}var m=ZA(o.dashArrayX),g=BR(o.dashArrayY),y=KA(o.symbol),_=OR(m),x=QA(g),S=!i&<.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},E=D(),A;S&&(S.width=E.width*r,S.height=E.height*r,A=S.getContext("2d")),C(),c&&qA.put(d,S||b),l.image=S,l.svgElement=b,l.svgWidth=E.width,l.svgHeight=E.height;function D(){for(var T=1,F=0,M=_.length;F<M;++F)T=gv(T,_[F]);for(var I=1,F=0,M=y.length;F<M;++F)I=gv(I,y[F].length);T*=I;var L=x*_.length*y.length;if(0)var B;return{width:Math.max(1,Math.min(T,o.maxTileWidth)),height:Math.max(1,Math.min(L,o.maxTileHeight))}}function C(){A&&(A.clearRect(0,0,S.width,S.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,S.width,S.height)));for(var T=0,F=0;F<g.length;++F)T+=g[F];if(T<=0)return;for(var M=-x,I=0,L=0,B=0;M<E.height;){if(I%2===0){for(var R=L/2%y.length,O=0,V=0,G=0;O<E.width*2;){for(var H=0,F=0;F<m[B].length;++F)H+=m[B][F];if(H<=0)break;if(V%2===0){var q=(1-o.symbolSize)*.5,Q=O+m[B][V]*q,j=M+g[I]*q,oe=m[B][V]*o.symbolSize,ge=g[I]*o.symbolSize,Xe=G/2%y[R].length;We(Q,j,oe,ge,y[R][Xe])}O+=m[B][V],++G,++V,V===m[B].length&&(V=0)}++B,B===m.length&&(B=0)}M+=g[I],++L,++I,I===g.length&&(I=0)}function We(Ae,Le,he,Se,Xt){var qe=i?1:r,Rr=ot(Xt,Ae*qe,Le*qe,he*qe,Se*qe,o.color,o.symbolKeepAspect);if(i){var qt=n.painter.renderOneToVNode(Rr);qt&&b.children.push(qt)}else ph(A,Rr)}}}}function KA(t){if(!t||t.length===0)return[["rect"]];if(U(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!U(t[r])){e=!1;break}if(e)return KA([t]);for(var n=[],r=0;r<t.length;++r)U(t[r])?n.push([t[r]]):n.push(t[r]);return n}function ZA(t){if(!t||t.length===0)return[[0,0]];if(ie(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!ie(t[n])){r=!1;break}if(r)return ZA([t]);for(var i=[],n=0;n<t.length;++n)if(ie(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=z(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function BR(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ie(t)){var e=Math.ceil(t);return[e,e]}var r=z(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function OR(t){return z(t,function(e){return QA(e)})}function QA(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var JA=Ho(RR);function RR(t,e){t.eachRawSeries(function(r){if(!t.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=wl(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=wl(i,e)}}})}var NR="6.1.0",kR={zrender:"6.1.0"},zR=1,UR=800,VR=900,HR=920,GR=1e3,WR=2e3,eD=5e3,lD=1e3,$R=1100,E0=2e3,fD=3e3,YR=4e3,Sh=4500,XR=4600,qR=5e3,jR=6e3,cD=7e3,w0={PROCESSOR:{SERIES_FILTER:UR,AXIS_STATISTICS:HR,FILTER:GR,STATISTIC:eD,STATISTICS:eD},VISUAL:{LAYOUT:lD,PROGRESSIVE_LAYOUT:$R,GLOBAL:E0,CHART:fD,POST_CHART_LAYOUT:XR,COMPONENT:YR,BRUSH:qR,CHART_ITEM:Sh,ARIA:jR,DECAL:cD}},st="__flagInMainProcess",hh="__mainProcessVersion",xt="__pendingUpdate",p0="__needsUpdateStatus",tD=/^[a-zA-Z0-9_]+$/,h0="__connectUpdateStatus",rD=0,KR=1,ZR=2;function pD(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return dD(this,t,e)}}function hD(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return dD(this,t,e)}}function dD(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Nt.prototype[e].apply(t,r)}var vD=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Nt),mD=vD.prototype;mD.on=hD("on");mD.off=hD("off");var ao,d0,dh,Zn,vh,v0,m0,ks,zs,nD,iD,g0,aD,mh,oD,gD,Or,sD,Us,gh=(function(t){P(e,t);function e(r,n,i){var a=t.call(this,new CA)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",u=!1;if(a[hh]=1,0)var l;i.ssr&&Qg(function(h){var d=de(h),v=d.dataIndex;if(v!=null){var m=K();return m.set("series_index",d.seriesIndex),m.set("data_index",v),d.ssrType&&m.set("ssr_type",d.ssrType),m}});var f=a._zr=eh(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:X(i.useDirtyRect,u),useCoarsePointer:X(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Za(fe(f.flush,f),17),a._updateTheme(n),a._locale=mb(i.locale||Lc),a._coordSysMgr=new fs;var c=a._api=oD(a);function p(h,d){return h.__prio-d.__prio}return eo(_h,p),eo(x0,p),a._scheduler=new i0(a,c,x0,_h),a._messageCenter=new vD,a._initEvents(),a.resize=fe(a.resize,a),f.animation.on("frame",a._onframe,a),nD(f,a),iD(f,a),ti(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(sD(this),this[xt]){var a=this[xt].silent;this[st]=!0,Us(this);try{ao(this),Zn.update.call(this,null,this[xt].updateParams)}catch(u){throw this[st]=!1,this[xt]=null,u}this._zr.flush(),this[st]=!1,this[xt]=null,ks.call(this,a),zs.call(this,a)}else if(r.unfinished){var o=zR;do{r.unfinished=!1;var s=lt.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),v0(this,n),r.performVisualTasks(n),mh(this,this._model,i,"remain",{}),o-=lt.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[st]){if(this._disposed){this.id;return}var a,o,s;if(W(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[st]=!0,Us(this),!this._model||n){var u=new nA(this._api),l=this._theme,f=this._model=new ih;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},S0);var c={seriesTransition:s,optionChanged:!0};if(i)this[xt]={silent:a,updateParams:c},this[st]=!1,this.getZr().wakeUp();else{try{ao(this),Zn.update.call(this,null,c)}catch(p){throw this[xt]=null,this[st]=!1,p}this._ssr||this._zr.flush(),this[xt]=null,this[st]=!1,ks.call(this,a),zs.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[st]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[xt]&&(a==null&&(a=this[xt].silent),o=this[xt].updateParams,this[xt]=null),this[st]=!0,Us(this);try{this._updateTheme(r),i.setTheme(this._theme),ao(this),Zn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[st]=!1,s}this[st]=!1,ks.call(this,a),zs.call(this,a)}}},e.prototype._updateTheme=function(r){U(r)&&(r=yD[r]),r&&(r=J(r),r&&ah(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ce.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.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()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return w(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;w(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 w(a,function(u){u.group.ignore=!1}),s},e.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(xh[i]){var u=s,l=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();w(oo,function(_,x){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(J(r)),b=_.getDom().getBoundingClientRect();u=a(b.left,u),l=a(b.top,l),f=o(b.right,f),c=o(b.bottom,c),p.push({dom:S,left:b.left,top:b.top})}}),u*=h,l*=h,f*=h,c*=h;var d=f-u,v=c-l,m=lt.createCanvas(),g=eh(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:v}),n){var y="";return w(p,function(_){var x=_.left-u,S=_.top-l;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ee({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),w(p,function(_){var x=new je({style:{x:_.left*h-u,y:_.top*h-l,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return vh(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return vh(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return vh(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Bf(i,r);return w(o,function(s,u){u.indexOf("Models")>=0&&w(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,l))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Bf(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?MA(s,u,n):FA(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;w(QR,function(i){var a=function(o){var s=r.getModel(),u=o.target,l,f=i==="globalout";if(f?l={}:u&&no(u,function(v){var m=de(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return l=g&&g.getDataParams(m.dataIndex,m.dataType,u)||{},!0}else if(m.eventData)return l=N({},m.eventData),!0},!0),l){var c=l.componentType,p=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=l.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=i,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:h,view:d},r.trigger(i,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;w(_0,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),cC(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Sv(this.getDom(),A0,"");var n=this,i=n._api,a=n._model;w(n._componentsViews,function(o){o.dispose(a,i)}),w(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 oo[n.id]},e.prototype.resize=function(r){if(!this[st]){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[xt]&&(a==null&&(a=this[xt].silent),i=!0,this[xt]=null),this[st]=!0,Us(this);try{i&&ao(this),Zn.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[st]=!1,o}this[st]=!1,ks.call(this,a),zs.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(W(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!b0[r]){var i=b0[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=N({},r);return n.type=y0[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(W(n)||(n={silent:!!n}),!!yh[r.type]&&this._model){if(this[st]){this._pendingActions.push(r);return}var i=n.silent;m0.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ce.browser.weChat&&this._throttledZrFlush(),ks.call(this,i),zs.call(this,i)}},e.prototype.updateLabelLayout=function(){yr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.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()},e.internalField=(function(){ao=function(c){$E(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),d0(c,!0),d0(c,!1),p.plan()},d0=function(c,p){for(var h=c._model,d=c._scheduler,v=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<v.length;_++)v[_].__alive=!1;p?h.eachComponent(function(b,E){b!=="series"&&x(E)}):h.eachSeries(x);function x(b){var E=b.__requireNewView;b.__requireNewView=!1;var A="_ec_"+b.id+"_"+b.type,D=!E&&m[A];if(!D){var C=Qt(b.type),T=p?ze.getClass(C.main,C.sub):Pe.getClass(C.sub);D=new T,D.init(h,y),m[A]=D,v.push(D),g.add(D.group)}b.__viewId=D.__id=A,D.__alive=!0,D.__model=b,D.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&d.prepareView(D,b,h,y)}for(var _=0;_<v.length;){var S=v[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),v.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},dh=function(c,p,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){w([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=_S(h,d,v),y=h.excludeSeriesId,_;y!=null&&(_=K(),w(Ge(y),function(S){var b=pr(S,null);b!=null&&_.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(!b)if(Rv(h))if(S instanceof ke)h.type===wi&&!h.notBlur&&!S.get(["emphasis","disabled"])&&US(S,h,c._api);else{var E=Yf(S.mainType,S.componentIndex,h.name,c._api),A=E.focusSelf,D=E.dispatchers;h.type===wi&&A&&!h.notBlur&&Hf(S.mainType,S.componentIndex,c._api),D&&w(D,function(C){h.type===wi?_a(C):xa(C)})}else Xf(h)&&S instanceof ke&&(GS(S,h,c._api),Ov(S),Or(c))},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;b||x(c[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},Zn={prepareAndUpdate:function(c){ao(this),Zn.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){YE(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),yr.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),v0(this,h),m.update(h,d),n(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&v.setDarkMode(_),g0(this,h,d,c,p),yr.trigger("afterupdate",h,d)}},updateTransform:function(c){var p=this,h=p._model,d=p._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==zf){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,d,c);x&&x.update&&v.push(_)}else v.push(_)}});var m=K();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,d,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),mh(p,h,d,c,{},m),yr.trigger("afterupdate",h,d)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),Pe.markUpdateMethod(c,"updateView"),n(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),g0(this,p,this._api,c,{}),yr.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),Pe.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=p.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,p._api,c)}}),h.eachSeries(function(d){var v=p._chartsMap[d.__viewId];v.updateVisual(d,h,p._api,c)}),yr.trigger("afterupdate",h,this._api))},updateLayout:function(c){Zn.update.call(this,c)}};function r(c,p,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=Bf(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,d,v))!=null)return y}}vh=r,v0=function(c,p){var h=c._chartsMap,d=c._scheduler;p.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},m0=function(c,p){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=yh[v],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Qt(y[0]);this[st]=!0,Us(this);var S=[c],b=!1;c.batch&&(b=!0,S=z(c.batch,function(B){return B=ee(N({},B),c),B.batch=null,B}));var E=[],A,D=[],C=g.nonRefinedEventType,T=Xf(c),F=Rv(c);if(F&&Bv(this._api),w(S,function(B){var R=g.action(B,d,h._api);if(g.refineEvent?D.push(R):A=R,A=A||N({},B),A.type=C,E.push(A),F){var O=Au(c),V=O.queryOptionMap,G=O.mainTypeSpecified,H=G?V.keys()[0]:"series";dh(h,_,B,H),Or(h)}else T?(dh(h,_,B,"series"),Or(h)):x&&dh(h,_,B,x.main,x.sub)}),_!=="none"&&!F&&!T&&!x)try{this[xt]?(ao(this),Zn.update.call(this,c),this[xt]=null):Zn[_].call(this,c)}catch(B){throw this[st]=!1,B}if(b?A={type:C,escapeConnect:m,batch:E}:A=E[0],this[st]=!1,!p){var M=void 0;if(g.refineEvent){var I=g.refineEvent(D,c,d,this._api).eventContent;Ue(W(I)),M=ee({type:g.refinedEventType},I),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var L=this._messageCenter;L.trigger(A.type,A),M&&L.trigger(M.type,M)}},ks=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();m0.call(this,h,c)}},zs=function(c){!c&&this.trigger("updated")},nD=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[xt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},iD=function(c,p){c.on("mouseover",function(h){var d=h.target,v=no(d,Bu);v&&(VS(v,h,p._api),Or(p))}).on("mouseout",function(h){var d=h.target,v=no(d,Bu);v&&(HS(v,h,p._api),Or(p))}).on("click",function(h){var d=h.target,v=no(d,function(y){return de(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=de(v);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function i(c){var p=[],h=[],d=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),d){var v=p.concat(h),m,g;eo(v,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),w(v,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}g0=function(c,p,h,d,v){i(p),aD(c,p,h,d,v),w(c._chartsViews,function(m){m.__alive=!1}),mh(c,p,h,d,v),w(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},aD=function(c,p,h,d,v,m){w(m||c._componentsViews,function(g){var y=g.__model;l(y,g),g.render(y,p,h,d),u(y,g),f(y,g)})},mh=function(c,p,h,d,v,m){var g=c._scheduler;v=N(v||{},{updatedSeries:p.getSeries()}),yr.trigger("series:beforeupdate",p,h,v);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,d),l(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),Ov(_)}),g.unfinished=y||g.unfinished,yr.trigger("series:layoutlabels",p,h,v),yr.trigger("series:transition",p,h,v),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];u(_,x),f(_,x)}),o(c,p),yr.trigger("series:afterupdate",p,h,v)},Or=function(c){c[p0]=!0,c.getZr().wakeUp()},Us=function(c){c[hh]=(c[hh]+1)%1e6},sD=function(c){c[p0]&&(c.getZr().storage.traverse(function(p){Aa(p)||a(p)}),c[p0]=!1)};function a(c){for(var p=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||p.push(v)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Fu&&c.states.emphasis?p.push("emphasis"):c.hoverState===Mu&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>X(p.get("hoverLayerThreshold"),rh.hoverLayerThreshold)&&!ce.node&&!ce.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Vu&&(x.hoverLayer=m?qv:Xv)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function u(c,p){if(!c.preventAutoZ){var h=rm(c);p.eachRendered(function(d){return nm(d,h.z,h.zlevel),!0})}}function l(c,p){p.eachRendered(function(h){if(!Aa(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Aa(g))return;if(g instanceof ae&&XS(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}oD=function(c){return new((function(p){P(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){_a(d,v),Or(c)},h.prototype.leaveEmphasis=function(d,v){xa(d,v),Or(c)},h.prototype.enterBlur=function(d){kS(d),Or(c)},h.prototype.leaveBlur=function(d){Iv(d),Or(c)},h.prototype.enterSelect=function(d){Pv(d),Or(c)},h.prototype.leaveSelect=function(d){Lv(d),Or(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[hh]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Vf))(c)},gD=function(c){function p(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[h0]=d}}w(y0,function(h,d){c._messageCenter.on(d,function(v){if(xh[c.group]&&c[h0]!==rD){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];w(oo,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,rD),w(g,function(y){y[h0]!==KR&&y.dispatchAction(m)}),p(g,ZR)}})})}})(),e})(Nt),C0=gh.prototype;C0.on=pD("on");C0.off=pD("off");C0.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var QR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var yh={},y0={},_0={},x0=[],S0=[],_h=[],yD={},b0={},oo={},xh={},JR=+new Date-0,eN=+new Date-0,A0="_echarts_instance_";function tN(t,e,r){var n=!(r&&r.ssr);if(n){var i=D0(t);if(i)return i}var a=new gh(t,e,r);return a.id="ec_"+JR++,oo[a.id]=a,n&&Sv(t,A0,a.id),gD(a),yr.trigger("afterinit",a),a}function rN(t){if(k(t)){var e=t;t=null,w(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+eN++,w(e,function(r){r.group=t})}return xh[t]=!0,t}function _D(t){xh[t]=!1}var nN=_D;function iN(t){U(t)?t=oo[t]:t instanceof gh||(t=D0(t)),t instanceof gh&&!t.isDisposed()&&t.dispose()}function D0(t){return oo[xS(t,A0)]}function aN(t){return oo[t]}function T0(t,e){yD[t]=e}function bh(t){ue(S0,t)<0&&S0.push(t)}function Eh(t,e){L0(x0,t,e,WR)}function M0(t){Cl("afterinit",t)}function F0(t){Cl("afterupdate",t)}function Cl(t,e){yr.on(t,e)}function zi(t,e,r){var n,i,a,o,s;Y(e)&&(r=e,e=""),W(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function u(f){return f.toLowerCase()}i=u(i||n);var l=a?u(n):i;yh[n]||(Ue(tD.test(n)&&tD.test(i)),a&&Ue(i!==n),yh[n]={actionType:n,refinedEventType:i,nonRefinedEventType:l,update:o,action:r,refineEvent:a},_0[i]=1,a&&s&&(_0[l]=1),y0[l]=n)}function I0(t,e){fs.register(t,e)}function oN(t){var e=fs.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function sN(t,e){uh(t,e)}function P0(t,e){L0(_h,t,e,lD,"layout",!0)}function Qn(t,e){L0(_h,t,e,fD,"visual",!0)}var uD=[];function L0(t,e,r,n,i,a){if((Y(e)||W(e))&&(r=e,e=n),!(ue(uD,r)>=0)){uD.push(r);var o=i0.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function wh(t,e){b0[t]=e}function uN(t){$l({createCanvas:t})}function B0(t,e,r){var n=o0("registerMap");n&&n(t,e,r)}function lN(t){var e=o0("getMap");return e&&e(t)}var O0=Bb;Qn(E0,vA);Qn(Sh,mA);Qn(Sh,gA);Qn(E0,DA);Qn(Sh,TA);Qn(cD,JA);bh(ah);Eh(VR,fA);wh("default",n0);zi({type:wi,event:wi,update:wi},Be);zi({type:Iu,event:Iu,update:Iu},Be);zi({type:Pu,event:Wf,update:Pu,action:Be,refineEvent:R0,publishNonRefinedEvent:!0});zi({type:Gf,event:Wf,update:Gf,action:Be,refineEvent:R0,publishNonRefinedEvent:!0});zi({type:Lu,event:Wf,update:Lu,action:Be,refineEvent:R0,publishNonRefinedEvent:!0});function R0(t,e,r,n){return{eventContent:{selected:WS(r),isFromClick:e.isFromClick||!1}}}T0("default",{});T0("dark",wA);var fN={};var xD=[],cN={registerPreprocessor:bh,registerProcessor:Eh,registerPostInit:M0,registerPostUpdate:F0,registerUpdateLifecycle:Cl,registerAction:zi,registerCoordinateSystem:I0,registerLayout:P0,registerVisual:Qn,registerTransform:O0,registerLoading:wh,registerMap:B0,registerImpl:PA,PRIORITY:w0,ComponentModel:xe,ComponentView:ze,SeriesModel:ke,ChartView:Pe,registerComponentModel:function(t){xe.registerClass(t)},registerComponentView:function(t){ze.registerClass(t)},registerSeriesModel:function(t){ke.registerClass(t)},registerChartView:function(t){Pe.registerClass(t)},registerCustomSeries:function(t,e){uh(t,e)},registerSubTypeDefaulter:function(t,e){xe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Kg(t,e)}};function ut(t){if(k(t)){w(t,function(e){ut(e)});return}ue(xD,t)>=0||(xD.push(t),Y(t)&&(t={install:t}),t.install(cN))}var pN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return _n(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r==null?this.option.large?5e3:this.get("progressive"):r},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r==null?this.option.large?1e4:this.get("progressiveThreshold"):r},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:"clone"}},e})(ke),SD=pN;var bD=4,hN=(function(){function t(){}return t})(),dN=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new hN},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,u=r.getContext?r.getContext():r,l=u&&a[0]<bD,f=this.softClipShape,c;if(l){this._ctx=u;return}for(this._ctx=null,c=this._off;c<i.length;){var p=i[c++],h=i[c++];isNaN(p)||isNaN(h)||f&&!f.contain(p,h)||(s.x=p-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var u=n[s++],l=n[s++];isNaN(u)||isNaN(l)||o&&!o.contain(u,l)||a.fillRect(u-i[0]/2,l-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),u=Math.max(o[1],4),l=a.length/2-1;l>=0;l--){var f=l*2,c=a[f]-s/2,p=a[f+1]-u/2;if(r>=c&&n>=p&&r<=c+s&&n<=p+u)return l}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],u=1/0,l=1/0,f=-1/0,c=-1/0,p=0;p<i.length;){var h=i[p++],d=i[p++];u=Math.min(h,u),f=Math.max(h,f),l=Math.min(d,l),c=Math.max(d,c)}r=this._rect=new re(u-o/2,l-s/2,f-u+o,c-l+s)}return r},e})(ae),vN=(function(){function t(){this.group=new _e}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n,i){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var u=s.length,l=new Float32Array(u+o.length);l.set(s),l.set(o,u),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,r,i)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new dN({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=ot(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<bD;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),u=s&&s.fill;u&&e.setColor(u);var l=de(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){l.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(l.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),ED=vN;var mN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,N0(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),Nf(n),N0(n)),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),this._finished){var o=Ya("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(N0(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new ED:new up,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(Pe);function N0(t){return{clipShape:nE(t)}}var wD=mN;var Vs=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var Ch=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Et).models[0]},e.type="cartesian2dAxis",e})(xe);nt(Ch,Vs);var CD={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:"auto",onZeroAxisIndex:null,lineStyle:{color:$.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},gN=me({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},CD),k0=me({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},CD),yN=me({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},k0),_N=ee({logBase:10},k0),Ah={category:gN,value:k0,time:yN,log:_N};function Dh(t,e,r,n){w(bp,function(i,a){var o=me(me({},Ah[a],!0),n,!0),s=(function(u){P(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,c){var p=Di(this),h=p?bn(f):{},d=c.getTheme();me(f,d.get(a+"Axis")),me(f,this.getDefaultOption()),f.type=AD(f),p&&mr(f,h,p)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=tl.createByAxisModel(this))},l.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(f){var c=qa();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},l.type=e+"Axis."+a,l.defaultOption=o,l})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",AD)}function AD(t){return t.type||(t.data?"category":"value")}var xN=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Fe(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),DD=xN;var Al=["x","y"];function TD(t){return(t.type==="interval"||t.type==="time")&&!ka(t)}var SN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Lr,r.dimensions=Al,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!TD(r)||!TD(n))){var i=Ga(r,null),a=Ga(n,null),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,c=(s[1]-o[1])/l,p=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,p,h];this._invTransform=lr([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.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]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new re(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.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 et(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},e.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},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return et(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},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.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 re(a,o,s,u)},e})(DD),MD=SN;function Th(t,e){var r=t.scale,n=t.model,i=zp(r,n,n.ecModel,t,null),a=wn(r),o=wn(e)?e.intervalStub:e,s=a?r.intervalStub:r,u=r.base,l=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=l.length-1,p,h,d;if(c===1)p=h=0,d=1;else if(c===2){var v=Oe(l[0].value-l[1].value),m=Oe(l[1].value-l[2].value);p=h=0,v===m?d=2:(d=1,v<m?p=v/m:h=m/v)}else{var g=o.getConfig().interval;p=(1-(l[0].value-f[0].value)/g)%1,h=(1-(f[c].value-l[c].value)/g)%1,d=c-(p?1:0)-(h?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],x=[i.fixMM[0]||_,i.fixMM[1]||_],S=r.getExtent(),b=s.getExtent(),E=gp(b,x),A,D,C,T,F,M;function I(q){for(var Q=50,j=0;j<Q&&!q();j++)C=a?C*ve(u,2):lE(C),T=Zr(C)}function L(){A=ye(M-C*p,T)}function B(){D=ye(F+C*h,T)}function R(){M=p?ye(A+C*p,T):A}function O(){F=h?ye(D-C*h,T):D}if(x[0]&&x[1]){A=E[0],D=E[1],C=(D-A)/(d+p+h);var V=t.getExtent(),G=Oe(V[1]-V[0]);T=oS([D,A],G,.5/d),R(),O(),it(T)&&(C=ye(C,T))}else{var H=E[1]-E[0];C=a?ve(Ro(H),1):kn(H/d,mv),T=Zr(C),x[0]?(A=E[0],I(function(){if(R(),F=ye(M+C*d,T),B(),D>=E[1])return!0})):x[1]?(D=E[1],I(function(){if(O(),M=ye(F-C*d,T),L(),A<=E[0])return!0})):I(function(){M=ye(yi(E[0]/C)*C,T),F=ye(Fr(E[1]/C)*C,T);var q=Jt((F-M)/C);if(q<=d){var Q=d-q,j=void 0,oe=i.incl0||a;if(oe&&E[0]===0)j=[0,Q];else if(oe&&E[1]===0)j=[Q,0];else{var ge=Fr(Q/2);j=Q%2===0?[ge,ge]:A+D<E[0]+E[1]?[ge,ge+1]:[ge+1,ge]}if(M=ye(M-C*j[0],T),F=ye(F+C*j[1],T),L(),B(),A<=E[0]&&D>=E[1])return!0}})}Dp(r,x,b,[A,D],S,{interval:C,intervalCount:d,intervalPrecision:T,niceExtent:[M,F]})}function FD(t,e){var r=wn(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=gp(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var u=r?EN(n,e):bN(n,e),l=u.intervalPrecision,f=u.interval,c=e.userInterval;c!=null&&(u.interval=c,u.intervalPrecision=Zr(c)),i[0]||(s[0]=ye(Fr(s[0]/f)*f,l)),i[1]||(s[1]=ye(yi(s[1]/f)*f,l)),c!=null&&(u.niceExtent=s.slice()),Dp(t,i,o,s,a,u)}function bN(t,e){var r=Wa(e.splitNumber,5),n=Es(t),i=e.minInterval,a=e.maxInterval,o=kn(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Zr(o),u=t.getExtent(),l=[ye(yi(u[0]/o)*o,s),ye(Fr(u[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function EN(t,e){var r=Wa(e.splitNumber,10),n=t.getExtent(),i=Es(t),a=ve(Ro(i),1),o=r/i*a;o<=.5&&(a*=10);var s=Zr(a),u=[ye(yi(n[0]/a)*a,s),ye(Fr(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:u}}function z0(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;U0(e,r,n,i,null)}function U0(t,e,r,n,i){var a=zp(t,e,n,r,i),o=ws(t)||Cs(t);wN(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&Bw(r,t,a,n)}function wN(t,e){CN[t.type](t,e)}var CN={interval:FD,log:FD,time:gE,ordinal:Be};var ID=[[3,1],[0,2]],AN=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Al,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;w(this._axesList,function(o){kp(o,Np);var s=o.scale;_t(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=ne(o),u=[],l=s.length-1;l>=0;l--){var f=o[+s[l]];f.__alignTo?u.push(f):z0(f)}w(u,function(c){TN(c,c.__alignTo)?z0(c):Th(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};w(n.x,function(o){PD(n,"y",o,a)}),w(n.y,function(o){PD(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Kr(e,r),a=this._rect=Bt(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,u=e.get("containLabel");if(V0(o,a),!n){var l=FN(a,s,o,u,r),f=void 0;if(u)RD?(RD(this._axesList,a),V0(o,a)):f=ND(a.clone(),"axisLabel",null,a,o,l,i);else{var c=IN(e,a,i),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;p&&(f=ND(p,h,d,a,o,l,i))}kD(a,o,sr.determine,null,f,i),w(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}W(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Et).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Et).models[0],a=e.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,ue(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}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,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,w(s.x,function(f,c){w(s.y,function(p,h){var d="x"+c+"y"+h,v=new MD(d);v.master=i,v.model=e,i._coordsMap[d]=v,i._coordsList.push(v),v.addAxis(f),v.addAxis(p)})}),BD(s.x),BD(s.y);function l(f){return function(c,p){if(DN(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=wp(c),v=new sw(f,Cp(c,d,!0),[0,0],d,h);v.onBand=Tp(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=p,a._axesList.push(v),s[f][p]=v,u[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return w(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);ue(r,a)<0&&r.push(a),ue(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),w(o._axesList,function(s){Iw(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;ub({targetModel:i,coordSysType:Lr,coordSysProvider:s});function s(){var u=ww(i),l=u.xAxisModel,f=u.yAxisModel;a=l.axis,o=f.axis;var c=l.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(l.componentIndex,f.componentIndex)}a&&o&&(ol(a,i,Lr),ol(o,i,Lr))},this),n},t.dimensions=Al,t.dimIdxMap=Yu(Al),t})();function DN(t,e){return t.getCoordSysModel()===e}function PD(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)LD(s,i[u])&&(a=i[u]);else for(var l in i)if(Ie(i,l)&&LD(s,i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function LD(t,e){if(!e)return!1;var r=e.scale,n=CE(r,0,!1),i=e&&e.type!=="category"&&e.type!=="time"&&n!==Ep;return i&&t==="auto"&&DE(e)&&(i=!1),i}function BD(t){for(var e=ne(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];vp(a.scale)&&og(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&w(n,function(o){o.__alignTo=r})}function TN(t,e){return ka(t.scale)||ka(e.scale)||e.scale.getTicks().length<2}function MN(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function V0(t,e){w(t.x,function(r){return OD(r,e.x,e.width)}),w(t.y,function(r){return OD(r,e.y,e.height)})}function OD(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),MN(t,e)}var RD;function ND(t,e,r,n,i,a,o){kD(n,i,sr.estimate,e,!1,o);var s=[0,0,0,0];l(0),l(1),f(n,0,NaN),f(n,1,NaN);var u=Zs(s,function(p){return p>0})==null;return Jo(n,s,!0,!0,r),V0(i,n),u;function l(p){w(i[yn[p]],function(h){if($a(h.model)){var d=a.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(Yn(h.scale,Ri(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=d.nameLayout;if(_){var y=Li(d.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,d){var v=t[yn[h]]-p[yn[h]],m=p[Ci[h]]+p[yn[h]]-(t[Ci[h]]+t[yn[h]]);v=c(v,1-d),m=c(m,d);var g=ID[h][0],y=ID[h][1];s[g]=ve(s[g],v),s[y]=ve(s[y],m)}function c(p,h){return p>0&&!Fn(h)&&h>1e-4&&(p/=h),p}}function FN(t,e,r,n,i){var a=new _g(PN);return w(r,function(o){return w(o,function(s){if($a(s.model)){var u=!n;s.axisBuilder=Cw(t,e,s.model,i,a,u)}})}),a}function kD(t,e,r,n,i,a){var o=r===sr.determine;w(e,function(l){return w(l,function(f){$a(f.model)&&(Aw(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[yn[1-l]]=t[Ci[l]]<=a.refContainer[Ci[l]]*.5?0:1-l===1?2:1}w(e,function(l,f){return w(l,function(c){$a(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function IN(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=Bt(t.get("outerBounds",!0)||wg,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ue(["all","axisLabel"],a)<0?o="all":o=a;var s=[Lf(X(t.get("outerBoundsClampWidth",!0),pl[0]),e.width),Lf(X(t.get("outerBoundsClampHeight",!0),pl[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var PN=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";xg(t,e,r,n,i,a),Li(t.nameLocation)||w(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Sg(s.labelInfoList,s.dirVec,n,i)})},zD=AN;function UD(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return LN(r,t,e),r.seriesInvolved&&ON(r,t),r}function LN(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];w(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Hs(s.model),l=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=s;var f=s.model,c=f.getModel("tooltip",n);if(w(s.getAxes(),Ce(v,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&w(d.baseAxes,Ce(v,h?"cross":!0,p)),h&&w(d.otherAxes,Ce(v,"cross",!1))}function v(m,g,y){var _=y.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!m&&!G0(_))){g==null&&(g=_.get("triggerTooltip")),_=m?BN(y,c,i,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),E=Hs(y.model),A=g||S||y.type==="category",D=t.axesInfo[E]={key:E,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:A,snap:S,useHandle:G0(_),seriesModels:[],linkGroup:null};l[E]=D,t.seriesInvolved=t.seriesInvolved||A;var C=RN(a,y);if(C!=null){var T=o[C]||(o[C]={axesInfo:{}});T.axesInfo[E]=D,T.mapper=a[C].mapper,D.linkGroup=T}}}})}function BN(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};w(s,function(p){u[p]=J(o.get(p))}),u.snap=t.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!=null?f:!0,!a){var c=u.lineStyle=o.get("crossStyle");c&&ee(l,c.textStyle)}}return t.model.getModel("axisPointer",new De(u,r,n))}function ON(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||w(t.coordSysAxesInfo[Hs(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 RN(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(H0(a[n+"AxisId"],r.id)||H0(a[n+"AxisIndex"],r.componentIndex)||H0(a[n+"AxisName"],r.name))return i}}function H0(t,e){return t==="all"||k(t)&&ue(t,e)>=0||t===e}function VD(t){var e=Mh(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=G0(r);a==null&&(i.status=s?"show":"hide");var u=n.getExtent();(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Mh(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Hs(t)]}function HD(t){var e=Mh(t);return e&&e.axisPointerModel}function G0(t){return!!t.get(["handle","show"])}function Hs(t){return t.type+"||"+t.id}var GD={},NN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&VD(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=HD(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){GD[r]=n},e.getAxisPointerClass=function(r){return r&&GD[r]},e.type="axis",e})(ze),Fh=NN;var $0=le();function WD(t,e,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,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,c=$0(t).splitAreaColors,p=K(),h=0;if(c)for(var d=0;d<l.length;d++){var v=c.get(l[d].tickValue);if(v!=null){h=(v+(f-1)*d)%f;break}}var m=i.toGlobalCoord(l[0].coord),g=o.getAreaStyle();s=k(s)?s:[s];for(var d=1;d<l.length;d++){var y=i.toGlobalCoord(l[d].coord),_=void 0,x=void 0,S=void 0,b=void 0;i.isHorizontal()?(_=m,x=u.y,S=y-_,b=u.height,m=_+S):(_=u.x,x=m,S=u.width,b=y-x,m=x+b);var E=l[d-1].tickValue;E!=null&&p.set(E,h),e.add(new Ee({anid:E!=null?"area_"+E:null,shape:{x:_,y:x,width:S,height:b},style:ee({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}$0(t).splitAreaColors=p}}}function $D(t){$0(t).splitAreaColors=null}var kN=["splitArea","splitLine","minorSplitLine","breakArea"],YD=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _e,this.group.add(this._axisGroup),!!$a(r)){this._axisGroup.add(r.axis.axisBuilder.group),w(kN,function(u){r.get([u,"show"])&&zN[u](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Jv(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){$D(this)},e.type="cartesianAxis",e})(Fh),zN={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=k(u)?u:[u];for(var c=n.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!l||y===d.length-1&&!f)){var x=d[y].tickValue;p?(v[0]=_,v[1]=c.y,m[0]=_,m[1]=c.y+c.height):(v[0]=c.x,v[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%u.length,b=new Pt({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:ee({stroke:u[S]},g),silent:!0});Da(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=n.coordinateSystem.getRect(),l=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var v=0;v<f[d].length;v++){var m=a.toGlobalCoord(f[d][v].coord);l?(c[0]=m,c[1]=u.y,p[0]=m,p[1]=u.y+u.height):(c[0]=u.x,c[1]=m,p[0]=u.x+u.width,p[1]=m);var g=new Pt({anid:"minor_line_"+f[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});Da(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,n,i){WD(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=qa(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},Y0=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(YD);var XD=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Y0.type,r}return e.type="yAxis",e})(YD);var UN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ee({shape:r.coordinateSystem.getRect(),style:ee({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(ze),qD={offset:0};function Ih(t){t.registerComponentView(UN),t.registerComponentModel(Uw),t.registerCoordinateSystem("cartesian2d",zD),Dh(t,"x",Ch,qD),Dh(t,"y",Ch,qD),t.registerComponentView(Y0),t.registerComponentView(XD),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function X0(t){ut(Ih),t.registerSeriesModel(SD),t.registerChartView(wD),t.registerLayout(Ya("scatter"))}function q0(t){var e=t.polar;if(e){k(e)||(e=[e]);var r=[];w(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],k(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}w(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var so="radar",VN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Os(fe(this.getData,this),fe(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return jn(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),u=this.getData().getName(r),l=u===""?this.name:u,f=Jc(this,r);return En("section",{header:l,sortBlocks:!0,blocks:z(s,function(c){var p=a.get(a.mapDimension(c.dim),r);return En("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:p,sortParam:p})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(z(i.dimensions,function(l){return n.mapDimension(l)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var u=i.getIndicatorAxes();return i.coordToPoint(u[o].dataToCoord(a[o]),o)}}},e.type="series."+so,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(ke),jD=VN;var HN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=so,r}return e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),u=this._data;function l(p,h){var d=p.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var v=ip(p.getItemVisual(h,"symbolSize")),m=ot(d,-1,-1,2,2),g=p.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),m}}function f(p,h,d,v,m,g){d.removeAll();for(var y=0;y<h.length-1;y++){var _=l(v,m);_&&(_.__dimIdx=y,p[y]?(_.setPosition(p[y]),Ne[g?"initProps":"updateProps"](_,{x:h[y][0],y:h[y][1]},r,m)):_.setPosition(h[y]),d.add(_))}}function c(p){return z(p,function(h){return[a.cx,a.cy]})}s.diff(u).add(function(p){var h=s.getItemLayout(p);if(h){var d=new Yr,v=new Gt,m={shape:{points:h}};d.shape.points=c(h),v.shape.points=c(h),Me(d,m,r,p),Me(v,m,r,p);var g=new _e,y=new _e;g.add(v),g.add(d),g.add(y),f(v.shape.points,h,y,s,p,!0),s.setItemGraphicEl(p,g)}}).update(function(p,h){var d=u.getItemGraphicEl(h),v=d.childAt(0),m=d.childAt(1),g=d.childAt(2),y={shape:{points:s.getItemLayout(p)}};y.shape.points&&(f(v.shape.points,y.shape.points,g,s,p,!1),Xr(m),Xr(v),we(v,y,r),we(m,y,r),s.setItemGraphicEl(p,d))}).remove(function(p){o.remove(u.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,h){var d=s.getItemModel(h),v=p.childAt(0),m=p.childAt(1),g=p.childAt(2),y=s.getItemVisual(h,"style"),_=y.fill;o.add(p),v.useStyle(ee(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Ht(v,d,"lineStyle"),Ht(m,d,"areaStyle");var x=d.getModel("areaStyle"),S=x.isEmpty()&&x.parentModel.isEmpty();m.ignore=S,w(["emphasis","select","blur"],function(E){var A=d.getModel([E,"areaStyle"]),D=A.isEmpty()&&A.parentModel.isEmpty();m.ensureState(E).ignore=D&&S;var C=d.getModel([E,"lineStyle"]).getLineStyle();v.ensureState(E).style=C;var T=A.getAreaStyle();m.ensureState(E).style=T;var F=d.getModel([E,"itemStyle"]).getItemStyle();g.eachChild(function(M){M.ensureState(E).style=J(F)})}),m.useStyle(ee(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var b=d.getModel("emphasis");g.eachChild(function(E){if(E instanceof je){var A=E.style;E.useStyle(N({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},y))}else E.useStyle(y),E.setColor(_),E.style.strokeNoScale=!0;var D=s.getStore().get(s.getDimensionIndex(E.__dimIdx),h);(D==null||isNaN(D))&&(D=""),rr(E,nr(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:E.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:y.opacity})}),Mt(p,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=so,e})(Pe),KD=HN;var Dl=Ah.value,Gs="radar",j0=Gs,ZD=Gs,K0=5;function Ph(t,e){return ee({show:e},t)}var GN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("clockwise"),a=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),u=this.get("axisLabel"),l=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),p=this.get("axisNameGap"),h=this.get("triggerEvent"),d=z(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var m=l;v.color!=null&&(m=ee({color:v.color},l));var g=me(J(v),{boundaryGap:r,splitNumber:n,clockwise:i,scale:a,axisLine:o,axisTick:s,axisLabel:u,name:v.text,showName:f,nameLocation:"end",nameGap:p,nameTextStyle:m,triggerEvent:h},!1);if(U(c)){var y=g.name;g.name=c.replace("{value}",y!=null?y:"")}else Y(c)&&(g.name=c(g.name,g));var _=new De(g,null,this.ecModel);return nt(_,Vs.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=xn("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=j0,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:K0,axisNameGap:15,scale:!1,shape:"polygon",axisLine:me({lineStyle:{color:$.color.neutral20}},Dl.axisLine),axisLabel:Ph(Dl.axisLabel,!1),axisTick:Ph(Dl.axisTick,!1),splitLine:Ph(Dl.splitLine,!0),splitArea:Ph(Dl.splitArea,!0),indicator:[]},e})(xe),QD=GN;var WN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r,i),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,n){var i=r.coordinateSystem,a=i.getIndicatorAxes(),o=z(a,function(s){var u=s.model.get("showName")?s.name:"",l=new Ps(s.model,n,{axisName:u,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),u=o.getModel("lineStyle"),l=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),p=u.get("color"),h=l.get("color"),d=k(p)?p:[p],v=k(h)?h:[h],m=[],g=[];function y(L,B,R){var O=R%B.length;return L[O]=L[O]||[],O}if(a==="circle")for(var _=i[0].getTicksCoords(),x=n.cx,S=n.cy,b=0;b<_.length;b++){if(f){var E=y(m,d,b);m[E].push(new Hn({shape:{cx:x,cy:S,r:_[b].coord}}))}if(c&&b<_.length-1){var E=y(g,v,b);g[E].push(new ba({shape:{cx:x,cy:S,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var A,D=z(i,function(L,B){var R=L.getTicksCoords();return A=A==null?R.length-1:Math.min(R.length-1,A),z(R,function(O){return n.coordToPoint(O.coord,B)})}),C=[],b=0;b<=A;b++){for(var T=[],F=0;F<i.length;F++)T.push(D[F][b]);if(T[0]&&T.push(T[0].slice()),f){var E=y(m,d,b);m[E].push(new Gt({shape:{points:T}}))}if(c&&C){var E=y(g,v,b-1);g[E].push(new Yr({shape:{points:T.concat(C)}}))}C=T.slice().reverse()}var M=u.getLineStyle(),I=l.getAreaStyle();w(g,function(L,B){this.group.add(Qo(L,{style:ee({stroke:"none",fill:v[B%v.length]},I),silent:!0}))},this),w(m,function(L,B){this.group.add(Qo(L,{style:ee({fill:"none",stroke:d[B%d.length]},M),silent:!0}))},this)},e.type="radar",e})(ze),JD=WN;var $N=(function(t){P(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e})(Fs),eT=$N;var YN=(function(){function t(e,r,n){this.type=Gs,this.dimensions=[],this._model=e,this._indicatorAxes=z(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new eT(o,new Cn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,u=-1,l=0;l<this._indicatorAxes.length;l++){var f=this._indicatorAxes[l],c=Math.abs(a-f.angle);c<o&&(s=f,u=l,o=c)}return[u,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,r){var n=Kr(e,r).refContainer,i=e.get("center"),a=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=te(i[0],n.width)+n.x,this.cy=te(i[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(U(s)||ie(s))&&(s=[0,s]),this.r0=te(s[0],o),this.r=te(s[1],o);var u=a?-1:1;w(this._indicatorAxes,function(l,f){l.setExtent(this.r0,this.r);var c=this.startAngle+u*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},t.prototype.update=function(e,r){var n=this._indicatorAxes,i=this._model,a=Wa(i.get("splitNumber"),K0),o=new Cn;o.setExtent(0,a),o.setConfig({interval:1}),w(n,function(s){kp(s,Np),Th(s,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent(j0,function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType(ZD,function(i){if(i.get("coordinateSystem")===Gs){var a=i.coordinateSystem=n[i.get("radarIndex")||0];a&&w(a.getIndicatorAxes(),function(o){ol(o,i,Gs)})}}),n},t.dimensions=[],t})(),tT=YN;function rT(t){t.registerCoordinateSystem("radar",tT),t.registerComponentModel(QD),t.registerComponentView(JD),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var aT=Vo(so,XN);function XN(t){t.eachSeriesByType(so,function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();w(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(u,l){n[l]=n[l]||[];var f=i.dataToPoint(u,s);n[l][s]=nT(f)?f:iT(i)})}),r.each(function(o){var s=Zs(n[o],function(u){return nT(u)})||iT(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function nT(t){return!isNaN(t[0])&&!isNaN(t[1])}function iT(t){return[t.cx,t.cy]}function Z0(t){ut(rT),t.registerChartView(KD),t.registerSeriesModel(jD),t.registerLayout(aT),t.registerProcessor(Ja("radar")),t.registerPreprocessor(q0)}var qN=1e-8;function oT(t,e){return Math.abs(t-e)<qN}function Q0(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=Tr(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!oT(i[0],s[0])||!oT(i[1],s[1]))&&(n+=Tr(i[0],i[1],s[0],s[1],e,r)),n!==0}var KN=[];function J0(t,e){for(var r=0;r<t.length;r++)et(t[r],t[r],e)}function sT(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Sr(e,e,a),br(r,r,a))}}function ZN(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var u=t[s][0],l=t[s][1],f=a*l-u*o;e+=f,r+=(a+u)*f,n+=(o+l)*f,a=u,o=l}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var uT=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})();var ey=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})();var ty=(function(){function t(e){this.type="linestring",this.points=e}return t})();var lT=(function(t){P(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,u=s&&s.length;u>i&&(n=o,i=u)}if(n)return ZN(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?sT(s.exterior,i,a,r):w(s.points,function(u){sT(u,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new re(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var u=s.exterior,l=s.interiors;if(Q0(u,r[0],r[1])){for(var f=0;f<(l?l.length:0);f++)if(Q0(l[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var u=new re(r,n,i,a),l=o.calculateTransform(u),f=this.geometries,c=0;c<f.length;c++){var p=f[c];p.type==="polygon"?(J0(p.exterior,l),w(p.interiors,function(h){J0(h,l)})):w(p.points,function(h){J0(h,l)})}o=this._rect,o.copy(u),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(uT);var Cte=(function(t){P(e,t);function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=xr(KN),o=r;o&&!o.isGeoSVGGraphicRoot;)zr(a,o.getLocalTransform(),a),o=o.parent;return lr(a,a),et(i,i,a),i},e})(uT);function QN(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.features;return w(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=fT(s,o,r);break;case"Polygon":ry(s,o,r);break;case"MultiLineString":ry(s,o,r);break;case"MultiPolygon":w(s,function(u,l){return ry(u,o[l],r)})}}),e.UTF8Encoding=!1,e}function ry(t,e,r){for(var n=0;n<t.length;n++)t[n]=fT(t[n],e[n],r)}function fT(t,e,r){for(var n=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,u=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),u=u>>1^-(u&1),s+=i,u+=a,i=s,a=u,n.push([s/r,u/r])}return n}function Lh(t,e){return t=QN(t),z(Fe(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new ey(o[0],o.slice(1)));break;case"MultiPolygon":w(i.coordinates,function(u){u[0]&&a.push(new ey(u[0],u.slice(1)))});break;case"LineString":a.push(new ty([i.coordinates]));break;case"MultiLineString":a.push(new ty(i.coordinates))}var s=new lT(n[e||"name"],a,n.cp);return s.properties=n,s})}var JN=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),e6=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new JN},e.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,u=n.angle,l=n.x-i(u)*s*(s>=o/3?1:2),f=n.y-a(u)*s*(s>=o/3?1:2);u=n.angle-Math.PI/2,r.moveTo(l,f),r.lineTo(n.x+i(u)*s,n.y+a(u)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(u)*s,n.y-a(u)*s),r.lineTo(l,f)},e})(ae),cT=e6;function t6(t,e){var r=t.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=te(r[0],e.getWidth()),s=te(r[1],e.getHeight()),u=te(t.get("radius"),a/2);return{cx:o,cy:s,r:u}}function Bh(t,e){var r=t==null?"":t+"";return e&&(U(e)?r=e.replace("{value}",r):Y(e)&&(r=e(t))),r}var r6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=t6(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,n,i,a,o){var s=this.group,u=r.get("clockwise"),l=-r.get("startAngle")/180*Math.PI,f=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),p=c.get("roundCap"),h=p?Ls:It,d=c.get("show"),v=c.getModel("lineStyle"),m=v.get("width"),g=[l,f];gu(g,!u),l=g[0],f=g[1];for(var y=f-l,_=l,x=[],S=0;d&&S<a.length;S++){var b=Math.min(Math.max(a[S][0],0),1);f=l+y*b;var E=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:u,r0:o.r-m,r:o.r},silent:!0});E.setStyle({fill:a[S][1]}),E.setStyle(v.getLineStyle(["color","width"])),x.push(E),_=f}x.reverse(),w(x,function(D){return s.add(D)});var A=function(D){if(D<=0)return a[0][1];var C;for(C=0;C<a.length;C++)if(a[C][0]>=D&&(C===0?0:a[C-1][0])<D)return a[C][1];return a[C-1][1]};this._renderTicks(r,n,i,A,o,l,f,u,m),this._renderTitleAndDetail(r,n,i,A,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,A,o,l,f,u,m)},e.prototype._renderTicks=function(r,n,i,a,o,s,u,l,f){for(var c=this.group,p=o.cx,h=o.cy,d=o.r,v=+r.get("min"),m=+r.get("max"),g=r.getModel("splitLine"),y=r.getModel("axisTick"),_=r.getModel("axisLabel"),x=r.get("splitNumber"),S=y.get("splitNumber"),b=te(g.get("length"),d),E=te(y.get("length"),d),A=s,D=(u-s)/x,C=D/S,T=g.getModel("lineStyle").getLineStyle(),F=y.getModel("lineStyle").getLineStyle(),M=g.get("distance"),I,L,B=0;B<=x;B++){if(I=Math.cos(A),L=Math.sin(A),g.get("show")){var R=M?M+f:f,O=new Pt({shape:{x1:I*(d-R)+p,y1:L*(d-R)+h,x2:I*(d-b-R)+p,y2:L*(d-b-R)+h},style:T,silent:!0});T.stroke==="auto"&&O.setStyle({stroke:a(B/x)}),c.add(O)}if(_.get("show")){var R=_.get("distance")+M,V=Bh(ye(B*(m-v)/x+v,nS),_.get("formatter")),G=a(B/x),H=I*(d-b-R)+p,q=L*(d-b-R)+h,Q=_.get("rotate"),j=0;Q==="radial"?(j=-A+2*Math.PI,j>Math.PI/2&&(j+=Math.PI)):Q==="tangential"?j=-A-Math.PI/2:ie(Q)&&(j=Q*Math.PI/180),j===0?c.add(new be({style:pt(_,{text:V,x:H,y:q,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:I<-.4?"left":I>.4?"right":"center"},{inheritColor:G}),silent:!0})):c.add(new be({style:pt(_,{text:V,x:H,y:q,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:H,originY:q,rotation:j}))}if(y.get("show")&&B!==x){var R=y.get("distance");R=R?R+f:f;for(var oe=0;oe<=S;oe++){I=Math.cos(A),L=Math.sin(A);var ge=new Pt({shape:{x1:I*(d-R)+p,y1:L*(d-R)+h,x2:I*(d-E-R)+p,y2:L*(d-E-R)+h},silent:!0,style:F});F.stroke==="auto"&&ge.setStyle({stroke:a((B+oe/S)/x)}),c.add(ge),A+=C}A-=C}else A+=D}},e.prototype._renderPointer=function(r,n,i,a,o,s,u,l,f){var c=this.group,p=this._data,h=this._progressEls,d=[],v=r.get(["pointer","show"]),m=r.getModel("progress"),g=m.get("show"),y=r.getData(),_=y.mapDimension("value"),x=+r.get("min"),S=+r.get("max"),b=[x,S],E=[s,u];function A(C,T){var F=y.getItemModel(C),M=F.getModel("pointer"),I=te(M.get("width"),o.r),L=te(M.get("length"),o.r),B=r.get(["pointer","icon"]),R=M.get("offsetCenter"),O=te(R[0],o.r),V=te(R[1],o.r),G=M.get("keepAspect"),H;return B?H=ot(B,O-I/2,V-L,I,L,null,G):H=new cT({shape:{angle:-Math.PI/2,width:I,r:L,x:O,y:V}}),H.rotation=-(T+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function D(C,T){var F=m.get("roundCap"),M=F?Ls:It,I=m.get("overlap"),L=I?m.get("width"):f/y.count(),B=I?o.r-L:o.r-(C+1)*L,R=I?o.r:o.r-C*L,O=new M({shape:{startAngle:s,endAngle:T,cx:o.cx,cy:o.cy,clockwise:l,r0:B,r:R}});return I&&(O.z2=mt(y.get(_,C),[x,S],[100,0],!0)),O}(g||v)&&(y.diff(p).add(function(C){var T=y.get(_,C);if(v){var F=A(C,s);Me(F,{rotation:-((isNaN(+T)?E[0]:mt(T,b,E,!0))+Math.PI/2)},r),c.add(F),y.setItemGraphicEl(C,F)}if(g){var M=D(C,s),I=m.get("clip");Me(M,{shape:{endAngle:mt(T,b,E,I)}},r),c.add(M),Tu(r.seriesIndex,y.dataType,C,M),d[C]=M}}).update(function(C,T){var F=y.get(_,C);if(v){var M=p.getItemGraphicEl(T),I=M?M.rotation:s,L=A(C,I);L.rotation=I,we(L,{rotation:-((isNaN(+F)?E[0]:mt(F,b,E,!0))+Math.PI/2)},r),c.add(L),y.setItemGraphicEl(C,L)}if(g){var B=h[T],R=B?B.shape.endAngle:s,O=D(C,R),V=m.get("clip");we(O,{shape:{endAngle:mt(F,b,E,V)}},r),c.add(O),Tu(r.seriesIndex,y.dataType,C,O),d[C]=O}}).execute(),y.each(function(C){var T=y.getItemModel(C),F=T.getModel("emphasis"),M=F.get("focus"),I=F.get("blurScope"),L=F.get("disabled"),B=a(mt(y.get(_,C),b,[0,1],!0));if(v){var R=y.getItemGraphicEl(C),O=y.getItemVisual(C,"style"),V=O.fill;if(R instanceof je){var G=R.style;R.useStyle(N({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},O))}else R.useStyle(O),R.type!=="pointer"&&R.setColor(V);R.setStyle(T.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",B),R.z2EmphasisLift=0,Ht(R,T),Mt(R,M,I,L)}if(g){var H=d[C];H.useStyle(y.getItemVisual(C,"style")),H.setStyle(T.getModel(["progress","itemStyle"]).getItemStyle()),H.style.fill==="auto"&&H.setStyle("fill",B),H.z2EmphasisLift=0,Ht(H,T),Mt(H,M,I,L)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),u=i.get("offsetCenter"),l=i.get("keepAspect"),f=ot(s,n.cx-o/2+te(u[0],n.r),n.cy-o/2+te(u[1],n.r),o,o,null,l);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,u=r.getData(),l=u.mapDimension("value"),f=+r.get("min"),c=+r.get("max"),p=new _e,h=[],d=[],v=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);u.diff(this._data).add(function(g){h[g]=new be({silent:!0}),d[g]=new be({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],d[g]=s._detailEls[y]}).execute(),u.each(function(g){var y=u.getItemModel(g),_=u.get(l,g),x=new _e,S=a(mt(_,[f,c],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var E=b.get("offsetCenter"),A=o.cx+te(E[0],o.r),D=o.cy+te(E[1],o.r),C=h[g];C.attr({z2:m?0:2,style:pt(b,{x:A,y:D,text:u.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:S})}),x.add(C)}var T=y.getModel("detail");if(T.get("show")){var F=T.get("offsetCenter"),M=o.cx+te(F[0],o.r),I=o.cy+te(F[1],o.r),L=te(T.get("width"),o.r),B=te(T.get("height"),o.r),R=r.get(["progress","show"])?u.getItemVisual(g,"style").fill:S,C=d[g],O=T.get("formatter");C.attr({z2:m?0:2,style:pt(T,{x:M,y:I,text:Bh(_,O),width:isNaN(L)?null:L,height:isNaN(B)?null:B,align:"center",verticalAlign:"middle"},{inheritColor:R})}),cc(C,{normal:T},_,function(G){return Bh(G,O)}),v&&L1(C,g,u,r,{getFormattedLabel:function(G,H,q,Q,j,oe){return Bh(oe?oe.interpolatedValue:_,O)}}),x.add(C)}p.add(x)}),this.group.add(p),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(Pe),pT=r6;var n6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return jn(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:$.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(ke),hT=n6;function ny(t){t.registerChartView(pT),t.registerSeriesModel(hT)}var Jn="funnel",i6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Os(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return jn(this,{coordDimensions:["value"],encodeDefaulter:Ce(pc,this)})},e.prototype._defaultLabelLine=function(r){ya(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},e.prototype.getDataParams=function(r){var n=this.getData(),i=t.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series."+Jn,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},e})(ke),dT=i6;var a6=["itemStyle","opacity"],o6=(function(t){P(e,t);function e(r,n){var i=t.call(this)||this,a=i,o=new Gt,s=new be;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return e.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),u=r.getItemLayout(n),l=s.getModel("emphasis"),f=s.get(a6);f=f==null?1:f,i||Xr(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:u.points}),a.style.opacity=0,Me(a,{style:{opacity:f}},o,n)):we(a,{style:{opacity:f},shape:{points:u.points}},o,n),Ht(a,s),this._updateLabel(r,n),Mt(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,u=r.getItemModel(n),l=r.getItemLayout(n),f=l.label,c=r.getItemVisual(n,"style"),p=c.fill;rr(o,nr(u),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=u.getModel("label"),d=h.get("color"),v=d==="inherit"?p:null;i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var m=f.linePoints;a.setShape({points:m}),i.textGuideLineConfig={anchor:m?new pe(m[0][0],m[0][1]):null},we(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Yp(i,Xp(u),{stroke:p})},e})(Yr),s6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Jn,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(u){var l=new o6(a,u);a.setItemGraphicEl(u,l),s.add(l)}).update(function(u,l){var f=o.getItemGraphicEl(l);f.updateData(a,u),s.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var l=o.getItemGraphicEl(u);gn(l,r,u)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Jn,e})(Pe),vT=s6;function u6(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(u){return u}),i=[],a=e==="ascending",o=0,s=t.count();o<s;o++)i[o]=o;return Y(e)?i.sort(e):e!=="none"&&i.sort(function(u,l){return a?n[u]-n[l]:n[l]-n[u]}),i}function l6(t){var e=t.hostModel,r=gT(e);t.each(function(n){var i=t.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),u=t.getItemLayout(n),l=u.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,p,h,d;if(f)o==="insideLeft"?(p=(l[0][0]+l[3][0])/2+5,h=(l[0][1]+l[3][1])/2,c="left"):o==="insideRight"?(p=(l[1][0]+l[2][0])/2-5,h=(l[1][1]+l[2][1])/2,c="right"):(p=(l[0][0]+l[1][0]+l[2][0]+l[3][0])/4,h=(l[0][1]+l[1][1]+l[2][1]+l[3][1])/4,c="center"),d=[[p,h],[p,h]];else{var v=void 0,m=void 0,g=void 0,y=void 0,_=s.get("length");U(o)&&(!r&&ue(["top","bottom"],o)>-1&&(o="left"),r&&ue(["left","right"],o)>-1&&(o="bottom")),o==="left"?(v=(l[3][0]+l[0][0])/2,m=(l[3][1]+l[0][1])/2,g=v-_,p=g-5,c="right"):o==="right"?(v=(l[1][0]+l[2][0])/2,m=(l[1][1]+l[2][1])/2,g=v+_,p=g+5,c="left"):o==="top"?(v=(l[3][0]+l[0][0])/2,m=(l[3][1]+l[0][1])/2,y=m-_,h=y-5,c="center"):o==="bottom"?(v=(l[1][0]+l[2][0])/2,m=(l[1][1]+l[2][1])/2,y=m+_,h=y+5,c="center"):o==="rightTop"?(v=r?l[3][0]:l[1][0],m=r?l[3][1]:l[1][1],r?(y=m-_,h=y-5,c="center"):(g=v+_,p=g+5,c="top")):o==="rightBottom"?(v=l[2][0],m=l[2][1],r?(y=m+_,h=y+5,c="center"):(g=v+_,p=g+5,c="bottom")):o==="leftTop"?(v=l[0][0],m=r?l[0][1]:l[1][1],r?(y=m-_,h=y-5,c="center"):(g=v-_,p=g-5,c="right")):o==="leftBottom"?(v=r?l[1][0]:l[3][0],m=r?l[1][1]:l[2][1],r?(y=m+_,h=y+5,c="center"):(g=v-_,p=g-5,c="right")):(v=(l[1][0]+l[2][0])/2,m=(l[1][1]+l[2][1])/2,r?(y=m+_,h=y+5,c="center"):(g=v+_,p=g+5,c="left")),r?(g=v,p=g):(y=m,h=y),d=[[v,m],[g,y]]}u.label={linePoints:d,x:p,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}var mT=Vo(Jn,f6);function f6(t,e){t.eachSeriesByType(Jn,function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=Kr(r,e),s=Bt(r.getBoxLayoutParams(),o.refContainer),u=gT(r),l=s.width,f=s.height,c=u6(n,a),p=s.x,h=s.y,d=u?[te(r.get("minSize"),f),te(r.get("maxSize"),f)]:[te(r.get("minSize"),l),te(r.get("maxSize"),l)],v=n.getDataExtent(i),m=r.get("min"),g=r.get("max");m==null&&(m=Math.min(v[0],0)),g==null&&(g=v[1]);var y=r.get("funnelAlign"),_=r.get("gap"),x=u?l:f,S=(x-_*(n.count()-1))/n.count(),b=function(L,B){if(u){var R=n.get(i,L)||0,O=mt(R,[m,g],d,!0),V=void 0;switch(y){case"top":V=h;break;case"center":V=h+(f-O)/2;break;case"bottom":V=h+(f-O);break}return[[B,V],[B,V+O]]}var G=n.get(i,L)||0,H=mt(G,[m,g],d,!0),q;switch(y){case"left":q=p;break;case"center":q=p+(l-H)/2;break;case"right":q=p+l-H;break}return[[q,B],[q+H,B]]};a==="ascending"&&(S=-S,_=-_,u?p+=l:h+=f,c=c.reverse());for(var E=0;E<c.length;E++){var A=c[E],D=c[E+1],C=n.getItemModel(A);if(u){var T=C.get(["itemStyle","width"]);T==null?T=S:(T=te(T,l),a==="ascending"&&(T=-T));var F=b(A,p),M=b(D,p+T);p+=T+_,n.setItemLayout(A,{points:F.concat(M.slice().reverse())})}else{var I=C.get(["itemStyle","height"]);I==null?I=S:(I=te(I,f),a==="ascending"&&(I=-I));var F=b(A,h),M=b(D,h+I);h+=I+_,n.setItemLayout(A,{points:F.concat(M.slice().reverse())})}}l6(n)})}function gT(t){return t.get("orient")==="horizontal"}function iy(t){t.registerChartView(vT),t.registerSeriesModel(dT),t.registerLayout(mT),t.registerProcessor(Ja(Jn))}var uo=le(),yT=J,ay=fe,c6=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,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,e,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new _e,this.createPointerEl(s,l,e,r),this.createLabelEl(s,l,e,r),n.getZr().add(s);else{var p=Ce(_T,r,c);this.updatePointerEl(s,l,p),this.updateLabelEl(s,l,p,r)}ST(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.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&&Qr(i).w>s)return!0;if(o){var u=Mh(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=uo(e).pointerEl=new Ne[a.type](yT(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=uo(e).labelEl=new be(yT(r.label));e.add(a),xT(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=uo(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=uo(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),xT(a,i))},t.prototype._renderHandle=function(e){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=Ta(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Zp(l.event)},onmousedown:ay(this._onHandleDragMove,this,0,0),drift:ay(this._onHandleDragMove,this),ondragend:ay(this._onHandleDragEnd,this)}),n.add(i)),ST(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");k(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,Vp(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){_T(this._axisPointerModel,!r&&this._moveAnimation,this._handle,oy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(oy(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(oy(i)),uo(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){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}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.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),hl(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function _T(t,e,r,n){bT(uo(r).lastProp,n)||(uo(r).lastProp=n,e?we(r,n,t):(r.stopAnimation(),r.attr(n)))}function bT(t,e){if(W(t)&&W(e)){var r=!0;return w(e,function(n,i){r=r&&bT(t[i],n)}),!!r}else return t===e}function xT(t,e){t[e.get(["label","show"])?"show":"hide"]()}function oy(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function ST(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}var ET=c6;function wT(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function p6(t,e,r,n,i){var a=r.get("value"),o=sy(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Sn(s.get("padding")||0),l=s.getFont(),f=Zl(o,l),c=i.position,p=f.width+u[1]+u[3],h=f.height+u[0]+u[2],d=i.align;d==="right"&&(c[0]-=p),d==="center"&&(c[0]-=p/2);var v=i.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),h6(c,p,h,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:pt(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:m}),z2:10}}function h6(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function sy(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Ds(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,c=l&&l.getDataParams(f);c&&s.seriesData.push(c)}),U(o)?a=o.replace("{value}",a):Y(o)&&(a=o(s))}return a}function uy(t,e,r){var n=St();return ji(n,n,r.rotation),_o(n,n,r.position),sc([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function CT(t,e,r,n,i,a){var o=Ps.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),p6(e,n,i,a,{position:uy(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function AT(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function DT(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function TT(t,e,r){return Qr(t,{fromStat:{sers:z(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function MT(t,e,r){return[ve(He(e[0],e[1]),t-r/2),He(t+r/2,ve(e[0],e[1]))]}var d6=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=s.getGlobalExtent(),c=IT(u,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var h=wT(a),d=v6[l](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=ll(u.getRect(),i);CT(n,r,v,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=ll(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=uy(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=IT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=He(u[1],c[f]),c[f]=ve(u[0],c[f]);var p=(l[1]+l[0])/2,h=[p,p];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(ET);function IT(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var v6={line:function(t,e,r,n){var i=AT([e,n[0]],[e,n[1]],PT(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=TT(t,i,a),s=n[1]-n[0],u=MT(e,r,o),l=u[0],f=u[1];return{type:"Rect",shape:DT([l,n[0]],[f-l,s],PT(t))}}};function PT(t){return t.dim==="x"?0:1}var LT=d6;var m6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:$.color.border,width:1,type:"dashed"},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.color.accent60,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:$.color.accent40,throttle:40}},e})(xe),BT=m6;var ei=le(),g6=w;function Oh(t,e,r){if(!ce.node){var n=e.getZr();ei(n).records||(ei(n).records={}),y6(n,e);var i=ei(n).records[t]||(ei(n).records[t]={});i.handler=r}}function y6(t,e){if(ei(t).initialized)return;ei(t).initialized=!0,r("click",Ce(ly,"click")),r("mousemove",Ce(ly,"mousemove")),r("mousewheel",Ce(ly,"mousewheel")),r("globalout",x6);function r(n,i){t.on(n,function(a){var o=S6(e);g6(ei(t).records,function(s){s&&i(s,a,o.dispatchAction)}),_6(o.pendings,e)})}}function _6(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function x6(t,e,r){t.handler("leave",null,r)}function ly(t,e,r,n){e.handler(t,r,n)}function S6(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function Tl(t,e){if(!ce.node){var r=e.getZr(),n=(ei(r).records||{})[t];n&&(ei(r).records[t]=null)}}var b6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";Oh("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})})},e.prototype.remove=function(r,n){Tl("axisPointer",n)},e.prototype.dispose=function(r,n){Tl("axisPointer",n)},e.type="axisPointer",e})(ze),RT=b6;function Ml(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Pr(a,t);if(o==null||o<0||k(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(t.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),c=f.dim,p=l.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(p),v=[];v[h]=a.get(d,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(v)||[]}else r=u.dataToPoint(a.getValues(z(u.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var NT=le();function fy(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||fe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Rh(i)&&(i=Ml({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var u=Rh(i),l=a.axesInfo,f=s.axesInfo,c=n==="leave"||Rh(i),p={},h={},d={list:[],map:{}},v={showPointer:Ce(w6,h),showTooltip:Ce(C6,d)};w(s.coordSysMap,function(g,y){var _=u||g.containPoint(i);w(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,E=M6(l,x);if(!c&&_&&(!l||E)){var A=E&&E.value;A==null&&!u&&(A=b.pointToData(i)),A!=null&&kT(x,A,v,!1,p)}})});var m={};return w(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&w(_.axesInfo,function(x,S){var b=h[S];if(x!==g&&b){var E=b.value;_.mapper&&(E=g.axis.scale.parse(_.mapper(E,zT(x),zT(g)))),m[g.key]=E}})}),w(m,function(g,y){kT(f[y],g,v,!0,p)}),A6(h,f,p),D6(d,i,t,o),T6(f,o,r),p}}function kT(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=E6(e,t),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&N(i,s[0]),!n&&t.snap&&a.containData(u)&&u!=null&&(e=u),r.showPointer(t,e,s),r.showTooltip(t,o,u)}}function E6(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),c,p;if(u.getAxisTooltipData){var h=u.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=u.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!p.length)return;c=u.getData().get(f[0],p[0])}if(it(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,i=c,a.length=0),w(p,function(m){a.push({seriesIndex:u.seriesIndex,dataIndexInside:m,dataIndex:u.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function w6(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function C6(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var u=e.coordSys.model,l=Hs(u),f=t.map[l];f||(f=t.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.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 A6(t,e,r){var n=r.axesInfo=[];w(e,function(i,a){var o=i.axisPointerModel.option,s=t[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 D6(t,e,r,n){if(Rh(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function T6(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=NT(n)[i]||{},o=NT(n)[i]={};w(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&w(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],u=[];function l(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}w(a,function(f,c){!o[c]&&u.push(l(f))}),w(o,function(f,c){!a[c]&&s.push(l(f))}),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 M6(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function zT(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Rh(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Nh(t){Fh.registerAxisPointerClass("CartesianAxisPointer",LT),t.registerComponentModel(BT),t.registerComponentView(RT),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!k(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=UD(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},fy)}function cy(t){ut(Ih),ut(Nh)}function UT(t,e){var r=Sn(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Ee({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var F6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:$.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:$.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},e})(xe),VT=F6;function kh(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function HT(t){if(ce.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var py=HT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),GT=HT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function hy(t,e){if(!t)return e;e=ms(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function WT(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var I6=hy(GT,"transition"),dy=hy(py,"transform"),P6="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ce.transform3dSupported?"will-change:transform;":"");function L6(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function B6(t,e,r){if(!U(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=jr(e);var a=L6(r),o=Math.max(Math.round(i)*1.5,6),s="",u=dy+":",l;ue(["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,c=o+i,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",v=["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="'+v.join("")+'"></div>'}function O6(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(ce.transformSupported?""+dy+i:",left"+i+",top"+i)),I6+":"+a}function $T(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ce.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ce.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+dy+":"+o+";":[["top",0],["left",0],[py,o]]}function R6(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=X(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),w(["decoration","align"],function(l){var f=t.get(l);f&&e.push("text-"+l+":"+f)}),e.join(";")}function N6(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),u=t.get("shadowColor"),l=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=ep(t,"html"),h=l+"px "+f+"px "+s+"px "+u;return i.push("box-shadow:"+h),e&&a>0&&i.push(O6(a,r,n)),o&&i.push("background-color:"+o),w(["width","color","radius"],function(d){var v="border-"+d,m=ms(v),g=t.get(m);g!=null&&i.push(v+":"+g+(d==="color"?"":"px"))}),i.push(R6(c)),p!=null&&i.push("padding:"+Sn(p).join("px ")+"px"),i.join(";")+";"}function YT(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&pb(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var k6=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ce.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(U(a)?document.querySelector(a):Hi(a)?a:Y(a)&&a(e.getDom()));YT(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,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();ur(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=WT(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=P6+N6(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+$T(a[0],a[1],!0)+("border-color:"+jr(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(a)&&n.get("trigger")==="item"&&!kh(n)&&(s=B6(n,i,a)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",k(e)||(e=[e]);for(var u=0;u<e.length;u++)Hi(e[u])&&e[u].parentNode!==o&&o.appendChild(e[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(YT(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=$T(n[0],n[1]);w(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ce.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(fe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;hb(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),XT=k6;var z6=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),jT(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;W(e)&>(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new be({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ep(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),w(["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})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=qT(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;jT(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Ui(a.borderWidth||0),s=qT(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(fe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Ui(t){return Math.max(0,t)}function qT(t){var e=Ui(t.shadowBlur||0),r=Ui(t.shadowOffsetX||0),n=Ui(t.shadowOffsetY||0);return{left:Ui(e-r),right:Ui(e+r),top:Ui(e-n),bottom:Ui(e+n)}}function jT(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var KT=z6;var U6=new Ee({shape:{x:-1,y:-1,width:2,height:2}}),V6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(ce.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=SS(i.get("renderMode"));this._tooltipContent=a==="richText"?new KT(n):new XT(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(ce.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")?Vp(this,"_updatePosition",50,"fixRate"):hl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");Oh("itemTooltip",this._api,fe(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),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})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ce.node||!i.getDom())){var o=ZT(a,i);this._ticket="";var s=a.dataByCoordSys,u=$6(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=U6;f.x=a.x,f.y=a.y,f.update(),de(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 c=Ml(a,n),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.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))}},e.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,this._cbParamsList=null,a.from!==this.uid&&this._hide(ZT(a,i))},e.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(),c=Fl([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.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=de(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var u,l;no(i,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(de(f).dataIndex!=null?u=f:de(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=fe(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Fl([n.tooltipOption],a),u=this._renderMode,l=[],f=En("section",{blocks:[],noHeader:!0}),c=[],p=new tp;w(r,function(y){w(y.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,b=x.axis,E=b.scale.parse(S);if(!(!x||S==null)){var A=sy(S,b,i,_.seriesDataIndices,_.valueLabelOpt),D=En("section",{header:A,noHeader:!dt(A),sortBlocks:!0,blocks:[]});f.blocks.push(D),w(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),F=C.dataIndexInside,M=T.getDataParams(F);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Ds(x.axis,{value:E}),M.axisValueLabel=A,M.marker=p.makeTooltipMarker("item",jr(M.color),u);var I=Ym(T.formatTooltip(F,!0,null)),L=I.frag;if(L){var B=Fl([T],a).get("valueFormatter");D.blocks.push(B?N({valueFormatter:B},L):L)}I.text&&c.push(I.text),l.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),v=Qm(f,p,u,d,i.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=u==="richText"?`
|
|
21
|
+
`];function En(t,e){return e.type=t,e}function Km(t){return t.type==="section"}function zb(t){return Km(t)?NP:kP}function Ub(t){if(Km(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return w(t.blocks,function(i){var a=Ub(i);a>=e&&(e=a+ +(n&&(!a||Km(i)&&!i.noHeader)))}),e}return 0}function NP(t,e,r,n){var i=e.noHeader,a=zP(Ub(e)),o=[],s=e.blocks||[];Ue(!s||k(s)),s=s||[];var u=t.orderMode;if(e.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Ie(l,u)){var f=new J1(l[u],null);s.sort(function(v,m){return f.evaluate(v.sortParam,m.sortParam)})}else u==="seriesDesc"&&s.reverse()}w(s,function(v,m){var g=e.valueFormatter,y=zb(v)(g?N(N({},t),{valueFormatter:g}):t,v,m>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Zm(n,o.join(""),i?r:a.html);if(i)return c;var p=Yc(e.header,"ordinal",t.useUTC),h=kb(n,t.renderMode).nameStyle,d=Nb(n);return t.renderMode==="richText"?Vb(t,p,h)+a.richText+c:Zm(n,'<div style="'+h+";"+d+';">'+tt(p)+"</div>"+c,r)}function kP(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,u=e.name,l=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=k(x)?x:[x],z(x,function(S,b){return Yc(S,k(h)?h[b]:h,l)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||$.color.secondary,i),p=a?"":Yc(u,"ordinal",l),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),v=!s||!a,m=!s&&a,g=kb(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":c)+(a?"":Vb(t,p,y))+(o?"":HP(t,d,v,m,_)):Zm(n,(s?"":c)+(a?"":UP(p,!s,y))+(o?"":VP(d,v,m,_)),r)}}function Qm(t,e,r,n,i,a){if(t){var o=zb(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function zP(t){return{html:OP[t],richText:RP[t]}}function Zm(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=Nb(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function UP(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+tt(t)+"</span>"}function VP(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=k(t)?t:[t],'<span style="'+a+";"+n+'">'+z(t,function(o){return tt(o)}).join(" ")+"</span>"}function Vb(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function HP(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(k(e)?e.join(" "):e,a)}function Jc(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return jr(n)}function ep(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var tp=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=wu()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=Xc({color:r,type:e,renderMode:n,markerId:i});return U(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};k(r)?w(r,function(a){return N(n,a)}):N(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function Hb(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),u=k(s),l=Jc(e,r),f,c,p,h;if(o>1||u&&!o){var d=GP(s,e,r,a,l);f=d.inlineValues,c=d.inlineValueTypes,p=d.blocks,h=d.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=f=Gn(i,r,a[0]),c=v.type}else h=f=u?s[0]:s;var m=zo(e),g=m&&e.name||"",y=i.getName(r),_=n?g:y;return En("section",{header:g,noHeader:n||!m,sortParam:h,blocks:[En("nameValue",{markerType:"item",markerColor:l,name:_,noName:!dt(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(p||[])})}function GP(t,e,r,n,i){var a=e.getData(),o=Dt(t,function(c,p,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?w(n,function(c){f(Gn(a,r,c),c)}):w(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?l.push(En("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),u.push(h.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var Fi=le();function rp(t,e){return t.getName(e)||t.getId(e)}var WP="__universalTransitionEnabled",np=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ti({count:YP,reset:XP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Fi(this).sourceManager=new Qc(this);a.prepareSource();var o=this.getInitialData(r,i);Wb(o,this),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,Gb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ai(this),a=i?bn(r):{},o=this.subType;xe.hasClass(o)&&(o+="Series"),me(r,n.getTheme().get(this.subType)),me(r,this.getDefaultOption()),ya(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&mr(r,a,i)},e.prototype.mergeOption=function(r,n){r=me(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Ai(this);i&&mr(this.option,r,i);var a=Fi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Wb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,Gb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!$e(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&ya(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Jm(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Fi(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Jm(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Fi(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return K(r)},e.prototype.getSourceManager=function(){return Fi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Fi(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,d=o.getDimensionIndex(n),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),_=u.dataToCoord(y),x=l-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return Hb({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ce.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Ju.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.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=rp(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},e.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)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ne(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[rp(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[WP])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.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"){W(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var c=n[f],p=rp(r,c);l[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[u-1],p=rp(r,h);o.selectedMap=(i={},i[p]=!0,i),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.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)}},e.registerClass=function(r){return xe.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(xe);nt(np,Ib);nt(np,Ju);ql(np,xe);function Gb(t){var e=t.name;zo(t)||(t.name=$P(t)||e)}function $P(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return w(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function YP(t){return t.model.getRawData().count()}function XP(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),qP}function qP(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Wb(t,e){w(cd(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ce(jP,e))})}function jP(t,e){var r=Jm(t);return r&&r.setOutputEnd((e||this).count()),e}function Jm(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var ke=np;var KP=ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),ZP=ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),QP=ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,c=Math.sin(l),p=Math.cos(l),h=o*.6,d=o*.7;t.moveTo(r-f,u+s),t.arc(r,u,o,Math.PI-l,Math.PI*2+l),t.bezierCurveTo(r+f-c*h,u+s+p*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,u+s+p*h,r-f,u+s),t.closePath()}}),JP=ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),eL={line:Pt,rect:Ee,roundRect:Ee,square:Ee,circle:Hn,diamond:ZP,pin:QP,arrow:JP,triangle:KP},tL={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},eg={};w(eL,function(t,e){eg[e]=new t});var rL=ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=ra(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=eg[n];i||(n="rect",i=eg[n]),tL[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function nL(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||$.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function ot(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=Hu(t.slice(8),new re(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?u=Zo(t.slice(7),{},new re(e,r,n,i),o?"center":"cover"):u=new rL({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=nL,a&&u.setColor(a),u}function ip(t){return k(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function ap(t,e){if(t!=null)return k(t)||(t=[t,t]),[te(t[0],e[0])||0,te(X(t[1],t[0]),e[1])||0]}var aL=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var n;return _n(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new _e,i=ot("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=r.itemHeight*.8,l=ot(s,(r.itemWidth-u)/2,(r.itemHeight-u)/2,u,u,r.itemStyle.fill);n.add(l),l.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return l.rotation=f*Math.PI/180,l.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill=$.color.neutral00,l.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(ke),$b=aL;function _s(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Gn(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Gn(t,e,r[o]));return a.join(" ")}}function op(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!k(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var oL=(function(t){P(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var u=ot(r,-1,-1,2,2,null,s);u.attr({z2:X(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),u.drift=sL,this._symbolType=r,this.add(u)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){_a(this.childAt(0))},e.prototype.downplay=function(){xa(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,u=e.getSymbolSize(r,n),l=e.getSymbolZ2(r,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,u,l,p)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:u[0]/2,scaleY:u[1]/2};c?h.attr(d):we(h,d,s,n),Xr(h)}if(this._updateCommon(r,n,u,i,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Me(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),u=r.hostModel,l,f,c,p,h,d,v,m,g;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,v=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),v=nr(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=ap(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=r.getItemVisual(n,"style"),E=b.fill;if(s instanceof je){var D=s.style;s.useStyle(N({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},b))}else s.__isEmptyBrush?s.useStyle(N({},b)):s.useStyle(b),s.style.decal=null,s.setColor(E,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(n,"liftZ"),C=this._z2;A!=null?C==null&&(this._z2=s.z2,s.z2+=A):C!=null&&(s.z2=C,this._z2=null);var T=o&&o.useNameLabel;rr(s,v,{labelFetcher:u,labelDataIndex:n,defaultText:F,inheritColor:E,defaultOpacity:b.opacity});function F(L){return T?r.getName(L):_s(r,L)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=l,s.ensureState("select").style=c,s.ensureState("blur").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),Mt(this,p,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=de(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var u=a.getTextContent();u&&Ko(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ko(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return ip(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(_e);function sL(t,e){this.parent.drift(t,e)}var el=oL;function sp(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Yb(t){return t!=null&&!W(t)&&(t={isIgnore:t}),t||{}}function Xb(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:nr(e),cursorStyle:e.get("cursor")}}function qb(t,e,r,n,i,a,o){var s=new t(e,r,n,i);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var uL=(function(){function t(e){this.group=new _e,this._SymbolCtor=e||el}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Yb(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,u=this._seriesScope=Xb(e),l={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var p=f(c);sp(e,p,c,r)&&qb(o,e,c,u,l,p,n)}).update(function(c,p){var h=a.getItemGraphicEl(p),d=f(c);if(!sp(e,d,c,r)){n.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)n.remove(h),h=new o(e,c,u,l),h.setPosition(d);else{h.updateData(e,c,u,l);var g={x:d[0],y:d[1]};s?h.attr(g):we(h,g,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){n.remove(p)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a<o;a++){var s=r.getItemGraphicEl(a),u=n._getSymbolPoint(a);sp(r,u,a,e)?(s=s||qb(n._SymbolCtor,r,a,n._seriesScope,{disableAnimation:!0},u,n.group),s.stopAnimation(),s.setPosition(u),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Xb(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n,i){this._progressiveEls=[],i=Yb(i);function a(l){l.isGroup||(l.incremental=n,l.ensureState("emphasis").hoverLayer=Vu)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(sp(r,s,o,i)){var u=new this._SymbolCtor(r,o,this._seriesScope);u.traverse(a),u.setPosition(s),this.group.add(u),r.setItemGraphicEl(o,u),this._progressiveEls.push(u)}}},t.prototype.eachRendered=function(e){Ma(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})(),up=uL;function lp(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=lL(i,r),o=n.dim,s=i.dim,u=e.mapDimension(s),l=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=z(t.dimensions,function(d){return e.mapDimension(d)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return qr(e,c[0])&&(p=!0,c[0]=h),qr(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:u,baseDim:l,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function lL(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:ie(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function fp(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function ar(t,e){return!isFinite(t)||!isFinite(e)}var fL=typeof Float32Array!==Ei?Float32Array:void 0,jb=typeof Float64Array!==Ei?Float64Array:void 0;function gr(t){return cp({ctor:fL},t).arr}function cp(t,e){var r=t.arr,n=t.ctor;if(e>Su&&(e=Su),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch{}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}function cL(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function tg(t,e,r,n,i,a,o,s){for(var u=cL(t,e),l=[],f=[],c=[],p=[],h=[],d=[],v=[],m=lp(i,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<u.length;_++){var x=u[_],S=!0,b=void 0,E=void 0;switch(x.cmd){case"=":b=x.idx*2,E=x.idx1*2;var D=g[b],A=g[b+1],C=y[E],T=y[E+1];(isNaN(D)||isNaN(A))&&(D=C,A=T),l.push(D,A),f.push(C,T),c.push(r[b],r[b+1]),p.push(n[E],n[E+1]),v.push(e.getRawIndex(x.idx1));break;case"+":var F=x.idx,M=m.dataDimsForPoint,I=i.dataToPoint([e.get(M[0],F),e.get(M[1],F)]);E=F*2,l.push(I[0],I[1]),f.push(y[E],y[E+1]);var L=fp(m,i,e,F);c.push(L[0],L[1]),p.push(n[E],n[E+1]),v.push(e.getRawIndex(F));break;case"-":S=!1}S&&(h.push(x),d.push(d.length))}d.sort(function(oe,ge){return v[oe]-v[ge]});for(var B=l.length,R=gr(B),O=gr(B),V=gr(B),G=gr(B),H=[],_=0;_<d.length;_++){var q=d[_],Q=_*2,j=q*2;R[Q]=l[j],R[Q+1]=l[j+1],O[Q]=f[j],O[Q+1]=f[j+1],V[Q]=c[j],V[Q+1]=c[j+1],G[Q]=p[j],G[Q+1]=p[j+1],H[_]=h[q]}return{current:R,next:O,stackedOnCurrent:V,stackedOnNext:G,status:H}}var Ii=Math.min,Pi=Math.max;function rg(t,e,r,n,i,a,o,s,u){for(var l,f,c,p,h,d,v=r,m=0;m<n;m++){var g=e[v*2],y=e[v*2+1];if(v>=i||v<0)break;if(ar(g,y)){if(u){v+=a;continue}break}if(v===r)t[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-l,x=y-f;if(_*_+x*x<.5){v+=a;continue}if(o>0){for(var S=v+a,b=e[S*2],E=e[S*2+1];b===g&&E===y&&m<n;)m++,S+=a,v+=a,b=e[S*2],E=e[S*2+1],g=e[v*2],y=e[v*2+1],_=g-l,x=y-f;var D=m+1;if(u)for(;ar(b,E)&&D<n;)D++,S+=a,b=e[S*2],E=e[S*2+1];var A=.5,C=0,T=0,F=void 0,M=void 0;if(D>=n||ar(b,E))h=g,d=y;else{C=b-l,T=E-f;var I=g-l,L=b-g,B=y-f,R=E-y,O=void 0,V=void 0;if(s==="x"){O=Math.abs(I),V=Math.abs(L);var G=C>0?1:-1;h=g-G*O*o,d=y,F=g+G*V*o,M=y}else if(s==="y"){O=Math.abs(B),V=Math.abs(R);var H=T>0?1:-1;h=g,d=y-H*O*o,F=g,M=y+H*V*o}else O=Math.sqrt(I*I+B*B),V=Math.sqrt(L*L+R*R),A=V/(V+O),h=g-C*o*(1-A),d=y-T*o*(1-A),F=g+C*o*A,M=y+T*o*A,F=Ii(F,Pi(b,g)),M=Ii(M,Pi(E,y)),F=Pi(F,Ii(b,g)),M=Pi(M,Ii(E,y)),C=F-g,T=M-y,h=g-C*O/V,d=y-T*O/V,h=Ii(h,Pi(l,g)),d=Ii(d,Pi(f,y)),h=Pi(h,Ii(l,g)),d=Pi(d,Ii(f,y)),C=g-h,T=y-d,F=g+C*V/O,M=y+T*V/O}t.bezierCurveTo(c,p,h,d,g,y),c=F,p=M}else t.lineTo(g,y)}l=g,f=y,v+=a}return m}var Kb=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),Zb=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Kb},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&ar(i[o*2-2],i[o*2-1]);o--);for(;a<o&&ar(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=rg(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=bt.CMD,s,u,l=n==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],u=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=l?(r-s)/(h-s):(r-u)/(d-u),_<=1&&_>=0){var x=l?(d-u)*_+u:(h-s)*_+s;return l?[r,x]:[x,r]}s=h,u=d;break;case o.C:h=a[c++],d=a[c++],v=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=l?aa(s,h,v,g,r,f):aa(u,d,m,y,r,f);if(S>0)for(var b=0;b<S;b++){var E=f[b];if(E<=1&&E>=0){var x=l?Ve(u,d,m,y,E):Ve(s,h,v,g,E);return l?[r,x]:[x,r]}}s=g,u=y;break}}},e})(ae);var pL=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Kb),Qb=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new pL},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ar(i[s*2-2],i[s*2-1]);s--);for(;o<s&&ar(i[o*2],i[o*2+1]);o++);}for(;o<s;){var l=rg(r,i,o,s,s,1,n.smooth,u,n.connectNulls);rg(r,a,o+l-1,l,s,-1,n.stackedOnSmooth,u,n.connectNulls),o+=l+1,r.closePath()}},e})(ae);function Ha(){var t=le();return function(e){var r=t(e),n=e.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 tE=le(),hL=Ha(),ng=(function(){function t(){this.group=new _e,this.uid=xn("viewChart"),this.renderTask=Ti({plan:dL,reset:vL}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&eE(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&eE(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Ma(this.group,e)},t.markUpdateMethod=function(e,r){tE(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Jb(t,e,r){t&&Bu(t)&&(e==="emphasis"?_a:xa)(t,r)}function eE(t,e,r){var n=Pr(t,e),i=e&&e.highlightKey!=null?YS(e.highlightKey):null;n!=null?w(Ge(n),function(a){Jb(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Jb(a,r,i)})}go(ng,["dispose"]);ni(ng);function dL(t){return hL(t.model)}function vL(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&tE(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](e,r,n,i),mL[u]}var mL={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Pe=ng;function ig(t,e,r,n,i){var a=t.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 c=new Ee({shape:{x:o,y:s,width:u,height:l}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),d=p.inverse;h?(d&&(c.shape.x+=u),c.shape.width=0):(d||(c.shape.y+=l),c.shape.height=0);var v=Y(i)?function(m){i(m,c)}:null;Me(c,{shape:{width:u,height:l,x:o,y:s}},r,null,n,v)}return c}function ag(t,e,r){var n=t.getArea(),i=ye(n.r0,1),a=ye(n.r,1),o=new It({shape:{cx:ye(t.cx,1),cy:ye(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Me(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function rE(t,e,r,n,i){if(t){if(t.type==="polar")return ag(t,e,r);if(t.type==="cartesian2d")return ig(t,e,r,n,i)}else return null;return null}function nE(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function pp(t,e){return t.type===e}var iE=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();ni(iE);var Wt=iE;var gL=0,yL=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gL,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&z(n,_L);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!U(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},t})();function _L(t){return W(t)&&t.value!=null?t.value:t+""}var tl=yL;var or=0,xs=1,xL={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},oE=ne(xL),Ss=2,sE=3;function bs(t,e,r){var n;t=t||{};var i=Ye();if(i){var a=i.createBreakScaleMapper(e,r);a.hasBreaks()&&(w(oE,function(o){a[o]&&(t[o]=fe(a[o],a))}),n=a)}return n==null&&SL(t,r),{brk:n,mapper:t}}function hp(t,e){w(oE,function(r){t[r]=e[r]})}function dp(t,e){t.freeze=Be}function $n(t){return t.getExtentUnsafe(or,Ss)}function Ga(t,e){return t.getExtentUnsafe(xs,e)||t.getExtentUnsafe(or,e)}function uE(t){var e=Ga(t,sE);return e[1]-e[0]}function Es(t){var e=t.getExtentUnsafe(or,sE);return e[1]-e[0]}function SL(t,e){var r=t||{},n=[];return r._extents=n,n[or]=e?e.slice():wt(),N(r,bL),r}var bL={needTransform:function(){return!1},normalize:function(t){var e=this._extents[xs]||this._extents[or];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[xs]||this._extents[or];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Ga(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[or].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){aE(this._extents,or,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[or].slice()),aE(n,t,e,r)},freeze:function(){}};function aE(t,e,r,n){Un(r,n)&&(t[e][0]=r,t[e][1]=n)}function vp(t){return ws(t)||wn(t)}function ws(t){return t.type==="interval"}function Cs(t){return t.type==="time"}function wn(t){return t.type==="log"}function _t(t){return t.type==="ordinal"}function lE(t){var e=No(t),r=_i(10,e),n=Jt(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ye(n*r,-e)}function Zr(t){return cr(t)+2}function rl(t,e){return gi(t)/gi(e)}function mp(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return _i(e,t)}function gp(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Oe(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!Wr(n[0])||!Wr(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function fE(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Wa(t,e){return t=t||e,Jt(ve(t,1))}function yp(t,e,r){var n=$n(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&u(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)u(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&u(n[1],!0,!0);function u(l,f,c){r({value:l,offInterval:f},c)}}var cE=(function(t){P(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,hp(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new tl({})),k(i)&&(i=new tl({categories:z(i,function(o){return W(o)?o.value:o})})),n._ordinalMeta=i;var a=bs(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,dp(n,a.mapper),n}return e.parse=function(r){return r==null?r=NaN:U(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Jt(r),r},e.prototype.getTicks=function(){var r=[];return yp(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.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=He(s,n.length);o<u;++o){var l=i[o]=n[o];a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=$n(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Jt(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e})(Wt);Wt.registerClass(cE);var pE=cE;function Ds(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var u=i[s],l=i[s-1];if(!(l.break||u.break)){for(var f=0,c=[],p=u.value-l.value,h=p/e,d=Zr(h);f<e-1;){var v=ye(l.value+(f+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),f++}var m=Ye();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},n,o),a.push(c)}}return a}var hE=(function(t){P(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=Oc(n,r),a=bs(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return J(this._cfg)},e.prototype.setConfig=function(r){var n=$n(this);this._cfg=r=J(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Zr(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=$n(this),o=n.niceExtent,s=n.intervalPrecision,u=Ye(),l=this.brk,f=u&&l,c=[];if(!i)return c;if(r.breakTicks==="only_break"&&f)return u.addBreaksToTicks(c,l.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ye(o[0]-i,s):a[0]});for(var h=function(_,x){return Jt((x-_)/i)},d=n.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=He(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=ye(v+i,s),l){var g=l.calcNiceTickMultiple(v,h);g>=0&&(v=ye(v+g*i,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ye(y+i,s):a[1]}),f&&u.pruneTicksByBreak(r.pruneByBreak,c,l.breaks,function(_){return _.value},n.interval,a),f&&r.breakTicks!=="none"&&u.addBreaksToTicks(c,l.breaks,a),c},e.prototype.getMinorTicks=function(r){return Ds(this,r,Na(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=cr(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=ye(r.value,i,!0);return Zu(a)},e.type="interval",e})(Wt);Wt.registerClass(hE);var Cn=hE;var EL=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},vE=(function(t){P(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=Oc(n,r),a=bs(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return Wn(r.value,Lm[bb(ds(this._minLevelUnit))]||Lm.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return Eb(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=$n(this),a=Ye(),o=this.brk,s=a&&o,u=[];if(!n)return u;var l=this._useUTC;if(s&&r.breakTicks==="only_break")return Ye().addBreaksToTicks(u,o.breaks,i),u;u=FL(this._minLevelUnit,this._approxInterval,l,i,Es(this),o);var f=ir.length-1,c=0;return w(u,function(p){p.time&&(f=Math.min(f,ue(ir,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ye().pruneTicksByBreak(r.pruneByBreak,u,o.breaks,function(p){return p.value},this._approxInterval,i),s&&r.breakTicks!=="none"&&Ye().addBreaksToTicks(u,o.breaks,i,function(p){for(var h=Math.max(ue(ir,za(p.vmin,l)),ue(ir,za(p.vmax,l))),d=0,v=0;v<ir.length;v++)if(!mE(ir[v],p.vmin,p.vmax,l)){d=v;break}var m=Math.min(d,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:ir[g],upperTimeUnit:ir[m]}}),u},e.prototype.getMinorTicks=function(r){return Ds(this,r,Na(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return ie(r)?Math.round(r):+zt(r)},e.type="time",e})(Wt),_p=[["second",kc],["minute",zc],["hour",hs],["quarter-day",hs*6],["half-day",hs*12],["day",vr*1.2],["half-week",vr*3.5],["week",vr*7],["month",vr*31],["quarter",vr*95],["half-year",Pm/2],["year",Pm]];function mE(t,e,r,n){return vs(new Date(e),t,n).getTime()===vs(new Date(r),t,n).getTime()}function wL(t,e){return t/=vr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function CL(t){var e=30*vr;return t/=e,t>6?6:t>3?3:t>2?2:1}function DL(t){return t/=hs,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function dE(t,e){return t/=e?zc:kc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function AL(t){return ve(kn(t,!0),1)}function TL(t,e,r){var n=Math.max(0,ue(ir,e)-1);return vs(new Date(t),ir[n],r).getTime()}function ML(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function FL(t,e,r,n,i,a){var o=3e3,s=_b,u=0;function l(B,R,O,V,G,H,q){for(var Q=ML(G,B),j=R,oe=new Date(j);j<O&&j<=n[1]&&(q.push({value:j}),!(u++>o));)if(oe[G](oe[V]()+B),j=oe.getTime(),a){var ge=a.calcNiceTickMultiple(j,Q);ge>0&&(oe[G](oe[V]()+ge*B),j=oe.getTime())}q.push({value:j,notAdd:j>n[1]})}function f(B,R,O){var V=[],G=!R.length;if(!mE(ds(B),n[0],n[1],r)){G&&(R=[{value:TL(n[0],B,r)},{value:n[1]}]);for(var H=0;H<R.length-1;H++){var q=R[H].value,Q=R[H+1].value;if(q!==Q){var j=void 0,oe=void 0,ge=void 0,Xe=!1;switch(B){case"year":j=Math.max(1,Math.round(e/vr/365)),oe=Bm(r),ge=wb(r);break;case"half-year":case"quarter":case"month":j=CL(e),oe=Uc(r),ge=Om(r);break;case"week":case"half-week":case"day":j=wL(e,31),oe=Vc(r),ge=Rm(r),Xe=!0;break;case"half-day":case"quarter-day":case"hour":j=DL(e),oe=Hc(r),ge=Nm(r);break;case"minute":j=dE(e,!0),oe=Gc(r),ge=km(r);break;case"second":j=dE(e,!1),oe=Wc(r),ge=zm(r);break;case"millisecond":j=AL(e),oe=$c(r),ge=Um(r);break}Q>=n[0]&&q<=n[1]&&l(j,q,Q,oe,ge,Xe,V),B==="year"&&O.length>1&&H===0&&O.unshift({value:O[0].value-j})}}for(var H=0;H<V.length;H++)O.push(V[H])}}for(var c=[],p=[],h=0,d=0,v=0;v<s.length;++v){var m=ds(s[v]);if(Sb(s[v])){f(s[v],c[c.length-1]||[],p);var g=s[v+1]?ds(s[v+1]):null;if(m!==g){if(p.length){d=h,p.sort(function(B,R){return B.value-R.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=n[0]&&x<=n[1]&&h++)}var S=i/e;if(h>S*1.5&&d>S/1.5||(c.push(y),h>S||t===s[v]))break}p=[]}}}for(var b=Fe(z(c,function(B){return Fe(B,function(R){return R.value>=n[0]&&R.value<=n[1]&&!R.notAdd})}),function(B){return B.length>0}),E=b.length-1,D=[],v=0;v<b.length;++v)for(var A=b[v],C=0;C<A.length;++C){var T=za(A[C].value,r);D.push({value:A[C].value,time:{level:E-v,upperTimeUnit:T,lowerTimeUnit:T}})}Uo(D,CS,null),D.sort(function(B,R){return B.value-R.value});var F=D[0],M=D[D.length-1],I=za(n[0],r),L=za(n[1],r);return(!F||F.value>n[0])&&D.unshift({value:n[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.value<n[1])&&D.push({value:n[1],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),D}var gE=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=vr,r[1]+=vr),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-vr}t.setExtent(r[0],r[1]);var i=Wa(e.splitNumber,10),a=Es(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var u=_p.length,l=Math.min(EL(_p,a,0,u),u-1),f=_p[l][1],c=_p[Math.max(l-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Wt.registerClass(vE);var yE=vE;var xp=0,Sp=1,IL=2,bE=(function(t){P(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=Cn.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[xp]=i[Sp]=a[xp]=a[Sp]=NaN,hp(n,e.mapperMethods);var s=Ye(),u=r.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(u,n,{noNegative:!0},IL,l),n.powStub=new Cn({breakParsed:l.original}),n.intervalStub=new Cn({breakParsed:l.transformed}),dp(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=Ye(),o=this.intervalStub,s=o.getExtent(),u=i.getExtent(),l={lookup:{from:s,to:u}};return z(o.getTicks(r||{}),function(f){var c=f.value,p=mp(c,n,l),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,Na(i),this._lookup);d&&(h=d.vBreak,p=d.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return Ds(this,r,Na(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(rl(r,this.base))},scale:function(r){return mp(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=rl(r,this.base),n&&n.depth===Ss?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return _E.depth=i,xE.lookup=this._lookup,mp(i===Ss?r:this.intervalStub.transformOut(r,_E),this.base,xE)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(or,r,n)},setExtent2:function(r,n,i){if(!(!Un(n,i)||n<=0||i<=0)){var a=SE,o=SE;if(r===or){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[xp]=n,a[Sp]=i);var u=this.base;this.intervalStub.setExtent2(r,o[xp]=rl(n,u),o[Sp]=rl(i,u))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Un(n[0],n[1])&&it(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(Wt);Wt.registerClass(bE);var _E={},xE={},SE=[],EE=bE;var bp={value:1,category:1,time:1,log:1};var wE=le();function wp(t){var e=t.get("type");return(e==null||!Ie(bp,e)&&!Wt.getClass(e))&&(e="value"),e}function Cp(t,e,r){var n=Ye(),i;switch(n&&(i=og(t,e,r)),e){case"category":return new pE({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:wt()});case"time":return new yE({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new EE({logBase:t.get("logBase"),breakOption:i});case"value":return new Cn({breakOption:i});default:return new(Wt.getClass(e)||Cn)({})}}function CE(t,e,r){var n=r?Ga(t,null):t.getExtentUnsafe(or,null),i=n[0],a=n[1];return Un(i,a)?i===e||a===e?LL:i<e&&a>e?PL:Ep:Ep}var PL=1,LL=2,Ep=3;function DE(t){wE(t).noOnMyZero=!0}function AE(t){return wE(t).noOnMyZero}function nl(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=xb(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(U(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(Y(e)){if(t.type==="category")return function(i,a){return e(As(t,i),i.value-t.scale.getExtent()[0],null)};var n=Ye();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(As(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function As(t,e){var r=t.scale;return _t(r)?r.getLabel(e):e.value}function Dp(t){var e=t.get("interval");return e??"auto"}function TE(t){return t.type==="category"&&Dp(t.getLabelModel())===0}function ME(t,e){var r={};return w(t.mapDimensionsAll(e),function(n){r[Ac(t,n)]=!0}),ne(r)}function Li(t){return t==="middle"||t==="center"}function $a(t){return t.getShallow("show")}function og(t,e,r){var n=t.get("breaks",!0);if(n!=null){if(!Ye())return;if(!r||!BL(e)){if(0)var i;return}return n}}function BL(t){return t!=="category"}function Ap(t,e,r,n,i,a){var o=wn(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var u=t.powStub,l={depth:Ss},f=t.transformOut(n[0],l),c=t.transformOut(n[1],l),p=fE(r,n);e[0]&&!p[0]&&(f=i[0]),e[1]&&!p[1]&&(c=i[1]),u.setExtent(f,c)}s.setConfig(a)}function Yn(t,e){return _t(t)?t.getRawOrdinalNumber(e.value):e.value}function Tp(t,e){return _t(t)&&!!e.get("boundaryGap")}function FE(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function IE(t){for(var e=wt(),r=wt(),n=0;n<t.length;){var i=t[n++],a=t[n++];ar(i,a)||(Au(e,i),Au(r,a))}return[e,r]}function PE(t,e){var r=IE(t),n=r[0],i=r[1],a=IE(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function LE(t){return ie(t)?t:t?.5:0}function OL(t,e,r){if(r.valueDim==null)return[];for(var n=e.count(),i=gr(n*2),a=0;a<n;a++){var o=fp(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Bi(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],u=0,l=[],f=[],c=[],p=[];if(i){for(u=0;u<t.length;u+=2){var h=e||t;ar(h[u],h[u+1])||p.push(t[u],t[u+1])}t=p}for(u=0;u<t.length-2;u+=2)switch(c[0]=t[u+2],c[1]=t[u+3],f[0]=t[u],f[1]=t[u+1],s.push(f[0],f[1]),n){case"end":l[o]=c[o],l[1-o]=f[1-o],s.push(l[0],l[1]);break;case"middle":var d=(f[o]+c[o])/2,v=[];l[o]=v[o]=d,l[1-o]=f[1-o],v[1-o]=c[1-o],s.push(l[0],l[1]),s.push(v[0],v[1]);break;default:l[o]=f[o],l[1-o]=c[1-o],s.push(l[0],l[1])}return s.push(t[u++],t[u++]),s}function RL(t,e){var r=[],n=t.length,i,a;function o(f,c,p){var h=f.coord,d=(p-h)/(c.coord-h),v=lf(d,[f.color,c.color]);return{coord:p,color:v}}for(var s=0;s<n;s++){var u=t[s],l=u.coord;if(l<0)i=u;else if(l>e){a?r.push(o(a,u,e)):i&&r.push(o(i,u,0),o(i,u,e));break}else i&&(r.push(o(i,u,0)),i=null),r.push(u),a=u}return r}function NL(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var u=e.getAxis(i),l=z(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,c=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),c.reverse());var p=RL(l,i==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return l[0].coord<0?c[1]?c[1]:l[f-1].color:c[0]?c[0]:l[0].color;var d=10,v=p[0].coord-d,m=p[h-1].coord+d,g=m-v;if(g<.001)return"transparent";w(p,function(_){_.offset=(_.coord-v)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new jo(0,0,0,0,p,!0);return y[i]=v,y[i+"2"]=m,y}}}function kL(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&zL(a,e))){var o=e.mapDimension(a.dim),s={};return w(a.getViewLabels(),function(u){u.tick.offInterval||(s[Yn(a.scale,u.tick)]=1)}),function(u){return!s.hasOwnProperty(e.get(o,u))}}}}function zL(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(el.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function UL(t){for(var e=t.length/2;e>0&&ar(t[e*2-2],t[e*2-1]);e--);return e-1}function BE(t,e){return[t[e*2],t[e*2+1]]}function VL(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,u=-1,l=0;l<n;l++)if(o=t[l*2+i],!ar(o,t[l*2+1-i])){if(l===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){u=l;break}s=l,a=o}return{range:[s,u],t:(e-a)/(o-a)}}function OE(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Vt.length;e++)if(t.get([Vt[e],"endLabel","show"]))return!0;return!1}function ug(t,e,r,n){if(pp(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},u=OE(n)?function(h,d){t._endLabelOnDuring(h,d,o,s,a,i,e)}:null,l=e.getBaseAxis().isHorizontal(),f=ig(e,r,n,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},u);if(!n.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);l?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return u&&u(1,f),f}else return ag(e,r,n)}function HL(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var GL=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new _e,n=new up;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=fe(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),u=r.getModel("lineStyle"),l=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!n.ssr&&r.get("animation"),y=!l.isEmpty(),_=l.get("origin"),x=lp(a,s,_),S=y&&OL(a,s,x),b=r.get("showSymbol"),E=r.get("connectNulls"),D=b&&!c&&kL(r,s,a),A=this._data;A&&A.eachItemGraphicEl(function(De,Le){De.__temp&&(o.remove(De),A.setItemGraphicEl(Le,null))}),b||h.remove(),o.add(m);var C=c?!1:r.get("step"),T;a&&a.getArea&&r.get("clip",!0)&&(T=a.getArea(),T.width!=null?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var F=NL(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&p.type===a.type&&C===this._step))b&&h.updateData(s,{isIgnore:D,clipShape:T,disableAnimation:!0,getSymbolPoint:function(De){return[f[De*2],f[De*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,T),C&&(S&&(S=Bi(S,f,a,C,E)),f=Bi(f,null,a,C,E)),d=this._newPolyline(f),y?v=this._newPolygon(f,S):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,jr(F)),m.setClipPath(ug(this,a,!0,r));else{y&&!v?v=this._newPolygon(f,S):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,jr(F));var M=m.getClipPath();if(M){var I=ug(this,a,!1,r);Me(M,{shape:I.shape},r)}else m.setClipPath(ug(this,a,!0,r));b&&h.updateData(s,{isIgnore:D,clipShape:T,disableAnimation:!0,getSymbolPoint:function(De){return[f[De*2],f[De*2+1]]}}),(!FE(this._stackedOnPoints,S)||!FE(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,i,C,_,E):(C&&(S&&(S=Bi(S,f,a,C,E)),f=Bi(f,null,a,C,E)),d.setShape({points:f}),v&&v.setShape({points:f,stackedOnPoints:S})))}var L=r.getModel("emphasis"),B=L.get("focus"),R=L.get("blurScope"),O=L.get("disabled");if(d.useStyle(ee(u.getLineStyle(),{fill:"none",stroke:F,lineJoin:"bevel"})),Ht(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var V=d.getState("emphasis").style;V.lineWidth=+d.style.lineWidth+1}de(d).seriesIndex=r.seriesIndex,Mt(d,B,R,O);var G=LE(r.get("smooth")),H=r.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:H,connectNulls:E}),v){var q=s.getCalculationInfo("stackedOnSeries"),Q=0;v.useStyle(ee(l.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),q&&(Q=LE(q.get("smooth"))),v.setShape({smooth:G,stackedOnSmooth:Q,smoothMonotone:H,connectNulls:E}),Ht(v,r,"areaStyle"),de(v).seriesIndex=r.seriesIndex,Mt(v,B,R,O)}var j=this._changePolyState;s.eachItemGraphicEl(function(De){De&&(De.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=C,this._valueOrigin=_;var oe=r.get("triggerEvent"),ge=r.get("triggerLineEvent"),Xe=ge===!0||oe===!0||oe==="line",We=ge===!0||oe===!0||oe==="area";this.packEventData(r,d,Xe),v&&this.packEventData(r,v,We)},e.prototype.packEventData=function(r,n,i){de(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Pr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],c=u[s*2+1];if(ar(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;l=new el(o,s),l.x=f,l.y=c,l.setZ(p,h);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=p,d.z=h,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Pe.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Pr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else Pe.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;Fv(this._polyline,r),n&&Fv(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Zb({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Qb({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var l=r.hostModel,f=l.get("animationDuration");Y(f)&&(f=f(null));var c=l.get("animationDelay")||0,p=Y(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(i)if(o){var x=i,S=n.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var b=i;a?(g=b.x,y=b.x+b.width,_=h.x):(g=b.y+b.height,y=b.y,_=h.y)}var E=y===g?0:(_-g)/(y-g);u&&(E=1-E);var D=Y(c)?c(d):f*E+p,A=v.getSymbolPath(),C=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:D}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(OE(r)){var o=r.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new be({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=UL(u);f>=0&&(rr(s,nr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?op(o,h):_s(o,c)},enableTextSetter:!0},HL(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){r<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var c=i.getLayout("points"),p=i.hostModel,h=p.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=u.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=n.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?v:0)*(y?-1:1),b=(g?0:-v)*(y?-1:1),E=g?"x":"y",D=VL(c,x,E),A=D.range,C=A[1]-A[0],T=void 0;if(C>=1){if(C>1&&!h){var F=BE(c,A[0]);l.attr({x:F[0]+S,y:F[1]+b}),o&&(T=p.getRawValue(A[0]))}else{var F=f.getPointOn(x,E);F&&l.attr({x:F[0]+S,y:F[1]+b});var M=p.getRawValue(A[0]),I=p.getRawValue(A[1]);o&&(T=Of(i,d,M,I,D.t))}a.lastFrameIndex=A[0]}else{var L=r===1||a.lastFrameIndex>0?A[0]:0,F=BE(c,L);o&&(T=p.getRawValue(L)),l.attr({x:F[0]+S,y:F[1]+b})}if(o){var B=Ia(l);typeof B.setLabelText=="function"&&B.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,u){var l=this._polyline,f=this._polygon,c=r.hostModel,p=tg(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin,s),h=p.current,d=p.stackedOnCurrent,v=p.next,m=p.stackedOnNext;if(o&&(d=Bi(p.stackedOnCurrent,p.current,i,o,u),h=Bi(p.current,null,i,o,u),m=Bi(p.stackedOnNext,p.next,i,o,u),v=Bi(p.next,null,i,o,u)),PE(h,v)>3e3||f&&PE(d,m)>3e3){l.stopAnimation(),l.setShape({points:v}),f&&(f.stopAnimation(),f.setShape({points:v,stackedOnPoints:m}));return}l.shape.__points=p.current,l.shape.points=h;var g={shape:{points:v}};p.current!==h&&(g.shape.__points=p.next),l.stopAnimation(),we(l,g,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),we(f,{shape:{stackedOnPoints:m}},c),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=r.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var E=l.shape.__points,D=0;D<y.length;D++){var A=y[D].el,C=y[D].ptIdx*2;A.x=E[C],A.y=E[C+1],A.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Pe),RE=GL;function Ya(t,e){return{seriesType:t,plan:Ha(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=z(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),u=s.length,l=n.getCalculationInfo("stackResultDimension");qr(n,s[0])&&(s[0]=l),qr(n,s[1])&&(s[1]=l);var f=n.getStore(),c=n.getDimensionIndex(s[0]),p=n.getDimensionIndex(s[1]);return u&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&gr(v*u),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(u===1){var b=f.get(c,_);S=i.dataToPoint(b,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=i.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):d.setItemLayout(_,S.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var WL={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},$L=function(t){return Math.round(t.length/2)};function il(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),c=n.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/h));var d=void 0;U(a)?d=WL[a]:Y(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(l.dim),1/h,d,$L))}}}}}function lg(t){t.registerChartView(RE),t.registerSeriesModel($b),t.registerLayout(Ya("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,il("line"))}var YL=le(),al=le(),sr={estimate:1,determine:2};function Ts(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function NE(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:z(zE(r,n),function(i,a){return{formattedLabel:nl(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?XL(t,e):jL(t)}function kE(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:zE(i,n)}:t.type==="category"?qL(t,e):{ticks:n.getTicks(r)}}function zE(t,e){var r=e.getExtent(),n=[];return w(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),Uo(n,DS,null),xi(n),z(n,function(i){return{value:i}})}function XL(t,e){var r=t.getLabelModel(),n=UE(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function UE(t,e,r){var n=ZL(t),i=Dp(e),a=r.kind===sr.estimate;if(!a){var o=HE(n,i);if(o)return o}var s,u;Y(i)?s=Mp(t,i,!1):(u=i==="auto"?QL(t,r):i,s=Mp(t,u,!1));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return fg(n,i,l),!0}):fg(n,i,l),l}function qL(t,e){var r=KL(t),n=Dp(e),i=HE(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),Y(n))a=Mp(t,n,!0);else if(n==="auto"){var s=UE(t,t.getLabelModel(),Ts(sr.determine));o=s.labelCategoryInterval,a=z(s.labels,function(u){return u.tick})}else o=n,a=Mp(t,o,!0);return fg(r,n,{ticks:a,tickCategoryInterval:o})}function jL(t){var e=t.scale.getTicks(),r=nl(t);return{labels:z(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var KL=VE("axisTick"),ZL=VE("axisLabel");function VE(t){return function(r){return al(r)[t]||(al(r)[t]={list:[]})}}function HE(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function fg(t,e,r){return t.list.push({key:e,value:r}),r}function QL(t,e){if(e.kind===sr.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return al(t).autoInterval=r,!0}),r}var n=al(t).autoInterval;return n??(al(t).autoInterval=t.calculateCategoryInterval(e))}function GE(t,e){var r=e.kind,n=eB(t),i=nl(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),d=Math.abs(p*Math.sin(a)),v=0,m=0;c<=s[1];c+=l){var g=0,y=0,_=Zl(i({value:c}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var x=v/h,S=m/d;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(r===sr.estimate)return e.out.noPxChangeTryDetermine.push(fe(JL,null,t,b,u)),b;var E=WE(t,b,u);return E??b}function JL(t,e,r){return WE(t,e,r)==null}function WE(t,e,r){var n=YL(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function eB(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Mp(t,e,r){var n=nl(t),i=t.scale,a=[],o=Y(e);return yp(i,o?0:e,function(s,u){var l=i.getLabel(s);if(o){var f=!!e(s.value,l);if(s.offInterval=!f,!f&&!u)return}a.push(r?s:{formattedLabel:n(s),rawLabel:l,tick:s})}),a}var Fp=le();function $E(t){Fp(t).prepare={}}function YE(t){Fp(t).fullUpdate={}}function XE(t){return Fp(t).prepare}function Xa(t){return Fp(t).fullUpdate}var tB=Rf(),Ip="|&",Ms=le(),Pp=-2,qE=-1,rB=le();function jE(t,e){var r=t.model,n=Ms(Xa(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function KE(t,e){return JE(jE(t,e))}function ZE(t,e){var r=[];return QE(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(JE(n))}),r}function QE(t,e){var r=Ms(Xa(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function JE(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function ew(t,e){var r=t.model.ecModel,n=Ms(Xa(r)).axSer;n&&Lp(r,n.get(t.model.uid),e)}function hg(t,e,r){var n=jE(t,e);n&&Lp(t.model.ecModel,n.sers,r)}function Lp(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function tw(t,e,r){var n=Ms(Xa(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){r(a.axis)})}function dg(t,e){var r=t.model,n=Ms(Xa(r.ecModel)).keys;n&&w(n.get(r.uid),function(i){if(0)var a;e(i)})}function nB(t){var e=rB(XE(t)),r=e.keyed||(e.keyed=K());QE(t,function(n,i,a){var o=r.get(i)||r.set(i,K()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&nw.liPosMinGap(t,n,s)})}function rw(t,e){nw[t]=e}var nw={};function ol(t,e,r){if(t){var n=e.ecModel,i=Ms(Xa(n)),a=t.model.uid;if(0)var o,s;var u=i.axSer||(i.axSer=K()),l=u.get(a)||u.set(a,[]);if(0)var f;l.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=pg.get(cg(c,p,r))||pg.get(cg(c,p,null));if(h){var d=i.keyed||(i.keyed=K()),v=i.keys||(i.keys=K()),m=h.key,g=d.get(m)||d.set(m,K()),y=g.get(a);y||(y=g.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(v.get(a)||v.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function cg(t,e,r){return t+Ip+X(e,!0)+Ip+(r||"")}function iw(t,e){var r=cg(e.seriesType,e.baseAxis,e.coordSysType);pg.set(r,e),tB(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:nB})})}var pg=K();var iB=.8;function Qr(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=uE(n);it(o)||(o=NaN);var s=t.getExtent(),u=Oe(s[1]-s[0]);return _t(n)?aB(r,t,o,u):i?oB(r,t,o,u,i):a==null,a!=null&&(r.w=it(r.w)?ve(a,r.w):a),r}function aB(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function oB(t,e,r,n,i){var a=!1,o=-1/0;w(i.key?[KE(e,i.key)]:ZE(e,i.sers||[]),function(s){var u=s.liPosMinGap;u!=null&&(u>0?(u>o&&(o=u),a=!1):u===Pp&&(a=!0))}),it(r)&&r>0&&it(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*iB,t.w2=t.w*r/n)}var aw=[0,1],sB=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),mt(e,aw,ow(this),r)},t.prototype.coordToData=function(e,r){var n=mt(e,ow(this),aw,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=kE(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=z(n.ticks,function(s){return{coord:this.dataToCoord(Yn(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=uB(this,i,a);return z(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(_t(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=z(n,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||Ts(sr.determine),NE(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return Qr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Ts(sr.determine),GE(this,e)},t})();function ow(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function uB(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=Qr(t).w;if(!i)return!1;w(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var Fs=sB;var lB=(function(t){P(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.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},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(Fs),sw=lB;var uw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],fB=1,Bp=2,fw=fB|Bp;function sl(t,e,r){r=r||fw,e?t.dirty|=r:t.dirty&=~r}function cw(t,e){return e=e||fw,t.dirty==null||!!(t.dirty&e)}function Jr(t){if(t)return cw(t)&&mg(t,t.label,t),t}function mg(t,e,r){var n=e.getComputedTransform();t.transform=lc(t.transform,n);var i=t.localRect=ts(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=Fa.textMargin);for(var c=0;c<4;c++)vg[c]=f===Fa.minMargin&&u&&u[c]!=null?u[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Fa.textMargin&&Jo(i,vg,!1,!1);var p=t.rect=ts(t.rect,i);return n&&p.applyTransform(n),f===Fa.minMargin&&Jo(p,vg,!1,!1),t.axisAligned=uc(n),(t.label=t.label||{}).ignore=e.ignore,sl(t,!1),sl(t,!0,Bp),t}var vg=[0,0,0,0];function pw(t,e,r){return t.transform=lc(t.transform,r),t.localRect=ts(t.localRect,e),t.rect=ts(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=uc(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function hw(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function gg(t,e){for(var r=0;r<uw.length;r++){var n=uw[r];t[n]==null&&(t[n]=e[n])}return Jr(t)}function lw(t){var e=t.obb;return(!e||cw(t,Bp))&&(t.obb=e=e||new nc,e.fromBoundingRect(t.localRect,t.transform),sl(t,!1,Bp)),e}function dw(t,e,r,n,i){var a=t.length,o=yn[e],s=Ci[e];if(a<2)return!1;t.sort(function(A,C){return A.rect[o]-C.rect[o]});for(var u=0,l,f=!1,c=0,p=0;p<a;p++){var h=t[p],d=h.rect;l=d[o]-u,l<0&&(d[o]-=l,h.label[o]-=l,f=!0);var v=Math.max(-l,0);c+=v,u=d[o]+d[s]}c>0&&i&&b(-c/a,0,a);var m=t[0],g=t[a-1],y,_;x(),y<0&&E(-y,.8),_<0&&E(_,.8),x(),S(y,_,1),S(_,y,-1),x(),y<0&&D(-y),_<0&&D(_);function x(){y=m.rect[o]-r,_=n-g.rect[o]-g.rect[s]}function S(A,C,T){if(A<0){var F=Math.min(C,-A);if(F>0){b(F*T,0,a);var M=F+A;M<0&&E(-M*T,1)}else E(-A*T,1)}}function b(A,C,T){A!==0&&(f=!0);for(var F=C;F<T;F++){var M=t[F],I=M.rect;I[o]+=A,M.label[o]+=A}}function E(A,C){for(var T=[],F=0,M=1;M<a;M++){var I=t[M-1].rect,L=Math.max(t[M].rect[o]-I[o]-I[s],0);T.push(L),F+=L}if(F){var B=Math.min(Math.abs(A)/F,C);if(A>0)for(var M=0;M<a-1;M++){var R=T[M]*B;b(R,0,M+1)}else for(var M=a-1;M>0;M--){var R=T[M-1]*B;b(-R,M,a)}}}function D(A){var C=A<0?-1:1;A=Math.abs(A);for(var T=Math.ceil(A/(a-1)),F=0;F<a-1;F++)if(C>0?b(T,0,F+1):b(-T,a-F-1,a),A-=T,A<=0)return}return f}function vw(t){var e=[];t.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function r(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var n=0;n<t.length;n++){var i=Jr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,u=0;u<e.length;u++)if(Op(i,e[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function Op(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:lw(t).intersect(lw(e),r,n)}var cB=null;function qa(){return cB}var mw="expandAxisBreak";var Oi=Math.PI,pB=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],hB=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ri=le(),_w=le(),_g=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function dB(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,u=bg(t.axisName)&&Li(t.nameLocation);w(n,function(d){var v=Jr(d);if(!(!v||v.label.ignore)){o.push(v);var m=a.transGroup;u&&(m.transform?lr(ul,m.transform):xr(ul),v.transform&&zr(ul,ul,v.transform),re.copy(Rp,v.localRect),Rp.applyTransform(ul),s?s.union(Rp):re.copy(s=new re(0,0,0,0),Rp))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,v){return Math.abs(d.label[l]-f)-Math.abs(v.label[l]-f)}),u&&s){var c=i.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new re(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ul=St(),Rp=new re(0,0,0,0),xg=function(t,e,r,n,i,a){if(Li(t.nameLocation)){var o=a.stOccupiedRect;o&&xw(pw({},o,a.transGroup.transform),n,i)}else Sg(a.labelInfoList,a.dirVec,n,i)};function xw(t,e,r){var n=new pe;Op(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&hw(e,n)}function Sg(t,e,r,n){for(var i=pe.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||xw(s,r,n)}}var ja=(function(){function t(e,r,n,i){this.group=new _e,this._axisModel=e,this._api=r,this._local={},this._shared=i||new _g(xg),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){if(0)var r;var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=X(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=X(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:X(e.nameDirection,1),tickDirection:X(e.tickDirection,1),labelDirection:X(e.labelDirection,1),labelOffset:X(e.labelOffset,0),silent:X(e.silent,!0),axisName:i,nameLocation:Zt(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:bg(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new _e({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new pe(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w(vB,function(i){e[i]&&mB[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=bu(r-e),a,o;return ga(i)?(o=n>0?"top":"bottom",a="center"):ga(i-Oi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Oi?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),vB=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],mB={axisLine:function(t,e,r,n,i,a,o){if(0)var s;var u=n.get(["axisLine","show"]);if(u==="auto"&&(u=!0,t.raw.axisLineAutoShow!=null&&(u=!!t.raw.axisLineAutoShow)),!!u){var l=n.axis.getExtent(),f=a.transform,c=[l[0],0],p=[l[1],0],h=c[0]>p[0];f&&(et(c,c,f),et(p,p,f));var d=N({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&ka(n.axis.scale))qa().buildAxisBreakLine(n,i,a,v);else{var m=new Pt(N({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},v));Aa(m.shape,m.style.lineWidth),m.anid="line",i.add(m)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);U(g)&&(g=[g,g]),(U(y)||ie(y))&&(y=[y,y]);var _=ap(n.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];w([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(b,E){if(g[E]!=="none"&&g[E]!=null){var D=ot(g[E],-x/2,-S/2,x,S,d.stroke,!0),A=b.r+b.offset,C=h?p:c;D.attr({rotation:b.rotate,x:C[0]+A*Math.cos(t.rotation),y:C[1]-A*Math.sin(t.rotation),silent:!0,z2:11}),i.add(D)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){if(0)var u;var l=yw(e,i,s);l&&gw(t,e,r,n,i,a,o,sr.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){if(0)var u;var l=yw(e,i,s);l&&gw(t,e,r,n,i,a,o,sr.determine);var f=xB(t,i,a,n);_B(t,e.labelLayoutList,f),SB(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var u=r.ensureRecord(n);if(0)var l;e.nameEl&&(i.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var f=t.axisName;if(bg(f)){var c=t.nameLocation,p=t.nameDirection,h=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,v=n.axis.getExtent(),m=n.axis.inverse?-1:1,g=new pe(0,0),y=new pe(0,0);c==="start"?(g.x=v[0]-m*d,y.x=-m):c==="end"?(g.x=v[1]+m*d,y.x=m):(g.x=(v[0]+v[1])/2,g.y=t.labelOffset+p*d,y.y=p);var _=St();y.transform(ji(_,_,t.rotation));var x=n.get("nameRotate");x!=null&&(x=x*Oi/180);var S,b;Li(c)?S=ja.innerTextLayout(t.rotation,x??t.rotation,p):(S=gB(t.rotation,c,x||0,v),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var E=h.getFont(),D=n.get("nameTruncate",!0)||{},A=D.ellipsis,C=Wi(t.raw.nameTruncateMaxWidth,D.maxWidth,b),T=s.nameMarginLevel||0,F=new be({x:g.x,y:g.y,rotation:S.rotation,silent:ja.isLabelSilent(n),style:pt(h,{text:f,font:E,overflow:"truncate",width:C,ellipsis:A,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(es({el:F,componentModel:n,itemName:f}),F.__fullText=f,F.anid="name",n.get("triggerEvent")){var M=ja.makeAxisEventDataBase(n);M.targetType="axisName",M.name=f,de(F).eventData=M}a.add(F),F.updateTransform(),e.nameEl=F;var I=u.nameLayout=Jr({label:F,priority:F.z2,defaultAttr:{ignore:F.ignore},marginDefault:Li(c)?pB[T]:hB[T]});if(u.nameLocation=c,i.add(F),F.decomposeTransform(),t.shouldNameMoveOverlap&&I){var L=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,I,y,L)}}}};function gw(t,e,r,n,i,a,o,s){bw(e)||bB(t,e,i,s,n,o);var u=e.labelLayoutList;EB(t,n,u,a),DB(n,t.rotation,u);var l=t.optionHideOverlap;yB(n,u,l),l&&vw(Fe(u,function(f){return f&&!f.label.ignore})),dB(t,r,n,u)}function gB(t,e,r,n){var i=bu(r-t),a,o,s=n[0]>n[1],u=e==="start"&&!s||e!=="start"&&s;return ga(i-Oi/2)?(o=u?"bottom":"top",a="center"):ga(i-Oi*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<Oi*1.5&&i>Oi/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function yB(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(TE(n))return;function a(l,f,c){var p=Jr(e[f]),h=Jr(e[c]),d=n.scale;if(!(!p||!h)){if(l==null){if(!r&&i)return;var v=Ri(p.label).labelInfo.tick;if(Cs(d)&&v.notNice||_t(d)&&v.offInterval){Is(p.label);return}}if(l===!1||p.suggestIgnore){Is(p.label);return}if(h.suggestIgnore){Is(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=gg({marginForce:g},p),h=gg({marginForce:g},h)}Op(p,h,null,{touchThreshold:m})&&Is(l?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),u=e.length;a(o,0,1),a(s,u-1,u-2)}function _B(t,e,r){t.showMinorTicks||w(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=_w(a),s=Ri(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Is(a);return}}})}function Is(t){t&&(t.ignore=!0)}function Sw(t,e,r,n,i){for(var a=[],o=[],s=[],u=0;u<t.length;u++){var l=t[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,e&&(et(o,o,e),et(s,s,e));var f=new Pt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Aa(f.shape,f.style.lineWidth),f.anid=i+"_"+t[u].tickValue,a.push(f);var c=_w(f);c.onBand=!!t[u].onBand,c.tickValue=t[u].tickValue}return a}function xB(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=t.tickDirection*a.get("length"),l=i.getTicksCoords(),f=Sw(l,r.transform,u,ee(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function SB(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=i*o.get("length"),f=ee(u.getLineStyle(),ee(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=Sw(s[c],r.transform,l,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function yw(t,e,r){if(bw(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),yg(t,null,null,null))}return!0}function bB(t,e,r,n,i,a){var o=i.axis,s=Wi(t.raw.axisLabelShow,i.get(["axisLabel","show"])),u=new _e;r.add(u);var l=Ts(n);if(!s||o.scale.isBlank()){yg(e,[],u,l);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(l),p=(Wi(t.raw.labelRotate,f.get("rotate"))||0)*Oi/180,h=ja.innerTextLayout(t.rotation,p,t.labelDirection),d=i.getCategories&&i.getCategories(!0),v=[],m=i.get("triggerEvent"),g=1/0,y=-1/0;w(c,function(x,S){var b,E=x.tick,D=x.formattedLabel,A=x.rawLabel,C=f,T=Yn(o.scale,E);if(d&&d[T]){var F=d[T];W(F)&&F.textStyle&&(C=new Ae(F.textStyle,f,i.ecModel))}var M=C.getTextColor()||i.get(["axisLine","lineStyle","color"]),I=C.getShallow("align",!0)||h.textAlign,L=X(C.getShallow("alignMinLabel",!0),I),B=X(C.getShallow("alignMaxLabel",!0),I),R=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||h.textVerticalAlign,O=X(C.getShallow("verticalAlignMinLabel",!0),R),V=X(C.getShallow("verticalAlignMaxLabel",!0),R),G=10+(((b=E.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,G),y=Math.max(y,G);var H=new be({x:0,y:0,rotation:0,silent:ja.isLabelSilent(i),z2:G,style:pt(C,{text:D,align:S===0?L:S===c.length-1?B:I,verticalAlign:S===0?O:S===c.length-1?V:R,fill:Y(M)?M(o.type==="category"?A:o.type==="value"?T+"":T,S):M})});H.anid="label_"+T;var q=Ri(H);if(q.labelInfo=x,q.layoutRotation=h.rotation,es({el:H,componentModel:i,itemName:D,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:A,tickIndex:S}}),m){var Q=ja.makeAxisEventDataBase(i);Q.targetType="axisLabel",Q.value=A,Q.tickIndex=S;var j=x.tick.break;if(j){var oe=j.parsedBreak;Q.break={start:oe.vmin,end:oe.vmax}}o.type==="category"&&(Q.dataIndex=T),de(H).eventData=Q,j&&CB(i,a,H,j)}v.push(H),u.add(H)});var _=z(v,function(x){return{label:x,priority:Ri(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});yg(e,_,u,l)}function bw(t){return!!t.labelLayoutList}function yg(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function EB(t,e,r,n){var i=e.get(["axisLabel","margin"]);w(r,function(a,o){var s=Jr(a);if(s){var u=s.label,l=Ri(u);s.suggestIgnore=u.ignore,u.ignore=!1,oi(Xn,wB);var f=e.axis;Xn.x=f.dataToCoord(Yn(f.scale,l.labelInfo.tick)),Xn.y=t.labelOffset+t.labelDirection*i,Xn.rotation=l.layoutRotation,n.add(Xn),Xn.updateTransform(),n.remove(Xn),Xn.decomposeTransform(),oi(u,Xn),u.markRedraw(),sl(s,!0),Jr(s)}})}var Xn=new Ee,wB=new Ee;function bg(t){return!!t}function CB(t,e,r,n){r.on("click",function(i){var a={type:mw,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function DB(t,e,r){var n=Ye();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&Ri(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&w(i,function(o){qa().adjustBreakLabelPair(t.axis.inverse,e,[Jr(r[o[0]]),Jr(r[o[1]])])})}}var Ps=ja;function ll(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,u=n.dim,l=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[l[2]-c,l[3]+c]:[l[0]-c,l[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}i.position=[u==="y"?p[f[s]]:l[0],u==="x"?p[f[s]]:l[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Wi(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var v=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-v:v,i.z2=1,i}function Ew(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function ww(t){var e={xAxisModel:null,yAxisModel:null};return w(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Et).models[0];e[n]=a}),e}function Cw(t,e,r,n,i,a){for(var o=ll(t,r),s=!1,u=!1,l=0;l<e.length;l++)vp(e[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type==="category"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new Ps(r,n,o,i)}function Dw(t,e,r){var n=ll(e,r);if(0)var i;t.updateCfg(n)}var TB=le(),Np=1;var MB=3,Mw=(function(){function t(e,r,n,i,a){var o=_t(e),s=o?r.getCategories().length:null,u;if(o){var l=r.getCategories(!0);u=l&&!l.length}var f=n.slice();(ws(e)||wn(e)||Cs(e))&&(bv(f,fl(e,r.get("dataMin",!0))),Ev(f,fl(e,r.get("dataMax",!0)))),ES(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=fl(e,Y(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=fl(e,Y(d)?d({min:f[0],max:f[1]}):d),p[1]=c[1]!=null);var v=FB(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?u?f[0]:s?0:NaN:f[0]-v[0]*m),c[1]==null&&(c[1]=o?u?f[1]:s?s-1:NaN:f[1]+v[1]*m),!Wr(c[0])&&(c[0]=NaN),!Wr(c[1])&&(c[1]=NaN);var g=u||Fn(c[0])||Fn(c[1])||o&&!s,y=ws(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=fl(e,r.get("startValue",!0)),b=S!=null;!it(S)&&i&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),it(S)&&(b||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var E=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};Aw(E,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),Aw(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function Aw(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),wS(e))}function fl(t,e){return e==null?null:Fn(e)?NaN:t.parse(e)}function FB(t,e){var r;if(_t(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=k(n)?n:[n,n]}return[Tw(r[0]),Tw(r[1])]}function Tw(t){return Ur(typeof t=="boolean"?0:t,1)||0}function Fw(t){var e=TB(t.scale);return e.extent||(e.extent=wt()),e}function Iw(t,e){Fw(t).dimIdxInCoord=e.get(t.dim)}function kp(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||IB(r,t,i,n,e)}function IB(t,e,r,n,i){var a=Fw(e),o=a.extent,s=!1;ew(e,function(f){if(f.boxCoordinateSystem){var c=Cc(f).coord,p=a.dimIdxInCoord;if(p>=0){if(k(c)){var h=c[p];h!=null&&!k(h)&&Au(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var v=t.getFilter?t.getFilter():null;w(ME(d,r),function(m){bS(o,d.getApproximateExtent(m,v))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var u=LB(t,e,n),l=new Mw(t,n,o,s,u);Pw(t,l,i),a.extent=null}function PB(t,e){var r=t.scale;Pw(r,new Mw(r,t.model,e,!1,!1),MB)}function Pw(t,e,r){t.rawExtentInfo=e,e.from=r}function Lw(t,e){Eg.set(t,e)}var Eg=K();function zp(t,e,r,n,i){t.rawExtentInfo||PB({scale:t,model:e},i||wt());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function LB(t,e,r){var n=Tp(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return dg(e,function(o){a=!!Eg.get(o)||a}),a}function Bw(t,e,r,n){if(r.ctnShp){var i;if(dg(t,function(s){var u=Eg.get(s);if(u){var l=u(t,n);l&&(i=i||[0,0],bv(i,l[0]),Ev(i,l[1]),DE(t))}}),!!i){var a=e.getExtent();if(_t(e))t.onBand||e.setExtent2(xs,He(a[0],a[0]+i[0]),ve(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=He(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=ve(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(xs,o[0],o[1])}}}}function Ow(){rw("liPosMinGap",BB)}function BB(t,e,r){var n=K(),i=r.serUids,a=r.liPosMinGap,o,s=e.axis,u=s.scale,l=u.needTransform(),f=u.getFilter?u.getFilter():null,c=_c(f);function p(_){Lp(t,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){n.set(x.uid,1),(!i||!i.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}cp(Ka,h);var d=0;p(function(_,x,S){for(var b=0,E=S.count();b<E;++b){var D=S.get(_,b);isFinite(D)&&(!f||xc(c,D))&&(l&&(D=u.transformIn(D,null)),Ka.arr[d++]=D)}});var v=Ka.typed?Ka.arr.subarray(0,d):(Ka.arr.length=d,Ka.arr);Ka.typed?v.sort():xi(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=it(m)?m:d>0?Pp:qE,r.serUids=n}var Ka=cp({ctor:jb},50);function Rw(t){return function(e,r){var n=Qr(e,{fromStat:{key:t}});if(it(n.w2))return[-n.w2/2,n.w2/2]}}function cl(t,e){return t+Ip+e}function Nw(t){return Ow(),{liPosMinGap:!_t(t.scale)}}var qn="bar";function kw(t,e,r,n){iw(t,{key:e,seriesType:r,coordSysType:n,getMetrics:Nw})}function zw(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var wg={left:0,right:0,top:0,bottom:0},pl=["25%","25%"],Lr="cartesian2d",OB=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=bn(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&mr(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&mr(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:wg,outerBoundsContain:"all",outerBoundsClampWidth:pl[0],outerBoundsClampHeight:pl[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},e})(xe),Uw=OB;var RB=Rf(),NB="__ec_stack_";function Vw(t){return t.get("stack")||NB+t.seriesIndex}function kB(t,e){var r=zB(t,e);return r.columnMap=UB(r),r}function zB(t,e){var r=cl(e,Lr),n=[],i=Qr(t,{fromStat:{key:r},min:1});return hg(t,r,function(a){n.push({barWidth:te(a.get("barWidth"),i.w),barMaxWidth:te(a.get("barMaxWidth"),i.w),barMinWidth:te(a.get("barMinWidth")||(Ww(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:Vw(a)})}),{bandWidthResult:i,seriesInfo:n}}function UB(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};w(t.seriesInfo,function(v,m){m||(a=v.defaultBarGap||0);var g=v.stackId;Ie(s,g)||n++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=v.barWidth;_&&!y.width&&(y.width=_,_=He(r,_),r-=_);var x=v.barMaxWidth;x&&(y.maxWidth=x);var S=v.barMinWidth;S&&(y.minWidth=S);var b=v.barGap;b!=null&&(a=b);var E=v.barCategoryGap;E!=null&&(i=E)}),i==null&&(i=ve(35-o.length*4,15)+"%");var u=te(i,e),l=te(a,1),f=(r-u)/(n+(n-1)*l);f=ve(f,0),w(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=He(_,g)),y&&(_=ve(_,y)),m.width=_,r-=_+l*_,n--}else{var _=f;g&&g<_&&(_=He(g,r)),y&&y>_&&(_=y),_!==f&&(m.width=_,r-=_+l*_,n--)}}),f=(r-u)/(n+(n-1)*l),f=ve(f,0);var c=0,p;w(o,function(v){var m=s[v];m.width||(m.width=f),p=m,c+=m.width*(1+l)}),p&&(c-=p.width*l);var h={},d=-c/2;return w(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+l)}),h}function Hw(t){return{seriesType:t,overallReset:function(e){var r=cl(t,Lr);tw(e,r,function(n){var i=kB(n,t);hg(n,r,function(a){var o=i.columnMap[Vw(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function Gw(t){return{seriesType:t,plan:Ha(),reset:function(e){if(Ew(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=e.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=qr(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(zw(a))),d=Ww(e),v=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=d&&gr(S*3),E=d&&u&&gr(S*3),D=d&&gr(S),A=n.master.getRect(),C=p?A.width:A.height,T,F=x.getStore(),M=0;(T=_.next())!=null;){var I=F.get(c?m:o,T),L=F.get(s,T),B=h,R=void 0;c&&(R=+I-F.get(o,T));var O=void 0,V=void 0,G=void 0,H=void 0;if(p){var q=n.dataToPoint([I,L]);c&&(B=n.dataToPoint([R,L])[0]),O=B,V=q[1]+y,G=q[0]-B,H=g,Oe(G)<v&&(G=(G<0?-1:1)*v)}else{var q=n.dataToPoint([L,I]);c&&(B=n.dataToPoint([L,R])[1]),O=q[0]+y,V=B,G=g,H=q[1]-B,Oe(H)<v&&(H=(H<=0?-1:1)*v)}d?(b[M]=O,b[M+1]=V,b[M+2]=p?G:H,E&&(E[M]=p?A.x:O,E[M+1]=p?V:A.y,E[M+2]=C),D[T]=T):x.setItemLayout(T,{x:O,y:V,width:G,height:H}),M+=3}d&&x.setLayout({largePoints:b,largeDataIndices:D,largeBackgroundPoints:E,valueAxisHorizontal:p})}}}}}}function Ww(t){return t.pipelineContext&&t.pipelineContext.large}function VB(t){return Rw(cl(t,Lr))}function $w(t){RB(t,function(){function e(r){var n=cl(r,Lr);kw(t,n,r,Lr),Lw(n,VB(r))}e("bar"),e("pictorialBar")})}var Yw=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return _n(null,this,{useEncodeDefaulter:!0})},e.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)w(a.getAxes(),function(p,h){if(p.type==="category"&&n!=null){var d=p.getTicksCoords(),v=p.getTickModel().get("alignWithLabel"),m=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<d.length;S++){var b=d[S].coord,E=S===d.length-1?d[S-1].tickValue+x:d[S].tickValue;if(E===m){_=b;break}else if(E<m)y=b;else if(y!=null&&E>m){_=(b+y)/2;break}S===1&&(x=E-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=p.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=l+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ke);ke.registerClass(Yw);var Cg=Yw;var HB=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return _n(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,n){var i=kf(this,r,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series."+qn,e.dependencies=["grid","polar"],e.defaultOption=Tc(Cg.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:$.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Cg),Xw=HB;var Up="\0__throttleOriginMethod",qw="\0__throttleRate",jw="\0__throttleType";function Za(t,e,r){var n,i=0,a=0,o=null,s,u,l,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(u,l||[])}var p=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),u=this,l=h;var v=f||e,m=f||r;f=null,s=n-(m?i:a)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),i=n};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function Vp(t,e,r,n){var i=t[e];if(i){var a=i[Up]||i,o=i[jw],s=i[qw];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Za(a,r,n==="debounce"),i[Up]=a,i[jw]=n,i[qw]=r}return i}}function hl(t,e){var r=t[e];r&&r[Up]&&(r.clear&&r.clear(),t[e]=r[Up])}var WB=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),$B=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new WB},e.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,c=n.endAngle,p=n.clockwise,h=Math.PI*2,d=p?c-f<h:f-c<h;d||(f=c-(p?h:-h));var v=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+i,m*o+a),r.arc(v*l+i,m*l+a,u,-Math.PI+f,f,!p)):r.moveTo(v*s+i,m*s+a),r.arc(i,a,s,f,c,!p),r.arc(g*l+i,y*l+a,u,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(i,a,o,c,f,p)},e})(ae),Ls=$B;function Kw(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return ra(n,i,a);var s=t(o),u=i.distance!=null?i.distance:5,l=this.shape,f=l.cx,c=l.cy,p=l.r,h=l.r0,d=(p+h)/2,v=l.startAngle,m=l.endAngle,g=(v+m)/2,y=r?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(v),b=c+p*x(v),E="left",D="top";switch(s){case"startArc":S=f+(h-u)*_(g),b=c+(h-u)*x(g),E="center",D="top";break;case"insideStartArc":S=f+(h+u)*_(g),b=c+(h+u)*x(g),E="center",D="bottom";break;case"startAngle":S=f+d*_(v)+Hp(v,u+y,!1),b=c+d*x(v)+Gp(v,u+y,!1),E="right",D="middle";break;case"insideStartAngle":S=f+d*_(v)+Hp(v,-u+y,!1),b=c+d*x(v)+Gp(v,-u+y,!1),E="left",D="middle";break;case"middle":S=f+d*_(g),b=c+d*x(g),E="center",D="middle";break;case"endArc":S=f+(p+u)*_(g),b=c+(p+u)*x(g),E="center",D="bottom";break;case"insideEndArc":S=f+(p-u)*_(g),b=c+(p-u)*x(g),E="center",D="top";break;case"endAngle":S=f+d*_(m)+Hp(m,u+y,!0),b=c+d*x(m)+Gp(m,u+y,!0),E="left",D="middle";break;case"insideEndAngle":S=f+d*_(m)+Hp(m,-u+y,!0),b=c+d*x(m)+Gp(m,-u+y,!0),E="right",D="middle";break;default:return ra(n,i,a)}return n=n||{},n.x=S,n.y=b,n.align=E,n.verticalAlign=D,n}}function Zw(t,e,r,n){if(ie(n)){t.setTextConfig({rotation:n});return}else if(k(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,u,l=r(e);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:t.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),t.setTextConfig({rotation:f})}function Hp(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Gp(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Qa(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;k(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:z(n,function(a){return Ur(a,i)})}}var Dg=Math.max,Ag=Math.min,YB=(function(t){P(e,t);function e(){var r=t.call(this)||this;return r.type=qn,r._isFirstFrame=!0,r}return e.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))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){Ma(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,f=l.getBaseAxis(),c;l.type==="cartesian2d"?c=f.isHorizontal():l.type==="polar"&&(c=f.dim==="angle");var p=r.isAnimationEnabled()?r:null,h=XB(r,l);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,v=l.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=a&&a.isInitSort,E=a&&a.type==="changeAxisOrder";function D(T){var F=Wp[l.type](s,T);if(!F)return null;var M=eO(l,c,F);return M.useStyle(y.getItemStyle()),l.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[T]=M,M}s.diff(u).add(function(T){var F=s.getItemModel(T),M=Wp[l.type](s,T,F);if(M&&(g&&D(T),!(!s.hasValue(T)||!rC[l.type](M)))){var I=!1;d&&(I=Qw[l.type](v,M));var L=Jw[l.type](r,s,T,M,c,p,f.model,!1,m);h&&(L.forceLabelAnimation=!0),nC(L,s,T,F,M,r,c,l.type==="polar"),b?L.attr({shape:M}):h?eC(h,p,L,M,T,c,!1,!1):Me(L,{shape:M},r,T),s.setItemGraphicEl(T,L),o.add(L),L.ignore=I}}).update(function(T,F){var M=s.getItemModel(T),I=Wp[l.type](s,T,M);if(I){if(g){var L=void 0;S.length===0?L=D(F):(L=S[F],L.useStyle(y.getItemStyle()),l.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),x[T]=L);var B=Wp[l.type](s,T),R=uC(c,B,l);we(L,{shape:R},p,T)}var O=u.getItemGraphicEl(F);if(!s.hasValue(T)||!rC[l.type](I)){o.remove(O);return}var V=!1;d&&(V=Qw[l.type](v,I),V&&o.remove(O));var G=O&&(O.type==="sector"&&m||O.type==="sausage"&&!m);if(G&&(O&&gn(O,r,F),O=null),O?Xr(O):O=Jw[l.type](r,s,T,I,c,p,f.model,!0,m),h&&(O.forceLabelAnimation=!0),E){var H=O.getTextContent();if(H){var q=Ia(H);q.prevValue!=null&&(q.prevValue=q.value)}}else nC(O,s,T,M,I,r,c,l.type==="polar");b?O.attr({shape:I}):h?eC(h,p,O,I,T,c,!0,E):we(O,{shape:I},r,T,null),s.setItemGraphicEl(T,O),O.ignore=V,o.add(O)}}).remove(function(T){var F=u.getItemGraphicEl(T);F&&gn(F,r,T)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new _e);A.removeAll();for(var C=0;C<x.length;++C)A.add(x[C]);o.add(A),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),aC(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),aC(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&rE(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.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)}}},e.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:z(a,function(o){return o.ordinalNumber})}},e.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)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.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},e.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}))}},e.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})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.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){gn(a,r,de(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=qn,e})(Pe),Qw={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=Dg(e.x,t.x),s=Ag(e.x+e.width,i),u=Dg(e.y,t.y),l=Ag(e.y+e.height,a),f=s<o,c=l<u;return e.x=f&&o>i?s:o,e.y=c&&u>a?l:u,e.width=f?0:s-o,e.height=c?0:l-u,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Ag(e.r,t.r),a=Dg(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Jw={cartesian2d:function(t,e,r,n,i,a,o,s,u){var l=new Ee({shape:N({},n),z2:1});if(l.__dataIndex=r,l.name="item",a){var f=l.shape,c=i?"height":"width";f[c]=0}return l},polar:function(t,e,r,n,i,a,o,s,u){var l=!i&&u?Ls:It,f=new l({shape:n,z2:1});f.name="item";var c=sC(i);if(f.calculateTextPosition=Kw(c,{isRoundCap:l===Ls}),a){var p=f.shape,h=i?"r":"endAngle",d={};p[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?we:Me)(f,{shape:d},a)}return f}};function XB(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function eC(t,e,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?we:Me)(r,{shape:u},e,i,null);var f=e?t.baseAxis.model:null;(o?we:Me)(r,{shape:l},f,i)}function tC(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var qB=["x","y","width","height"],jB=["cx","cy","r","startAngle","endAngle"],rC={cartesian2d:function(t){return!tC(t,qB)},polar:function(t){return!tC(t,jB)}},Wp={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?ZB(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(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function KB(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function sC(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function nC(t,e,r,n,i,a,o,s){var u=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=Qa(n.getModel("itemStyle"),f,!0);N(f,c),t.setShape(f)}}else{var l=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",l)}t.useStyle(u);var p=n.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?tO(i,a.coordinateSystem):rO(i,a.coordinateSystem),d=nr(n);rr(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:_s(a.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=n.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,Zw(t,m==="outside"?h:m,sC(o),n.get(["label","rotate"]))}cc(v,d,a.getRawValue(r),function(y){return op(e,y)});var g=n.getModel(["emphasis"]);Mt(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Ht(t,n),KB(i)&&(t.style.fill="none",t.style.stroke="none",w(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function ZB(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var QB=(function(){function t(){}return t})(),iC=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new QB},e.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])},e})(ae);function aC(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=t.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints"),f=n?Nf(t):0;if(l){var c=new iC({shape:{points:l},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(u.getItemStyle()),e.add(c),r&&r.push(c)}var p=new iC({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(i.getVisual("style")),p.style.stroke=null,de(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",oC),p.on("mousemove",oC)),r&&r.push(p)}var oC=Za(function(t){var e=this,r=JB(e,t.offsetX,t.offsetY);de(e).dataIndex=r>=0?r:null},30,!1);function JB(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],u=[],l=t.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(u[n]=l,u[i]=a[p+2],s[n]=a[p+n],s[i]=a[p+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),e>=s[0]&&e<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[f]}return-1}function uC(t,e,r){if(pp(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function eO(t,e,r){var n=t.type==="polar"?It:Ee;return new n({shape:uC(e,r,t),silent:!0,z2:0})}function tO(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function rO(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var lC=YB;function Tg(t){t.registerChartView(lC),t.registerSeriesModel(Xw),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Hw(qn)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Gw(qn)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,il(qn)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),$w(t)}function fC(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}w([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=N({},i),o.dispatchAction(N(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Bs(t,e,r,n,i){var a=t+e;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 c=o.getData(),p=Pr(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:k(p)?c.getName(p[0]):c.getName(p),selected:U(u)?u:N({},u)})}})}function cC(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Bs("map","selectchanged",e,i,n),Bs("pie","selectchanged",e,i,n)):n.fromAction==="select"?(Bs("map","selected",e,i,n),Bs("pie","selected",e,i,n)):n.fromAction==="unselect"&&(Bs("map","unselected",e,i,n),Bs("pie","unselected",e,i,n))})}function Ja(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.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})}}}}function jn(t,e,r){e=k(e)&&{coordDimensions:e}||N({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=us(n,e).dimensions,a=new ss(i,t);return a.initData(n,r),a}var nO=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),Os=nO;var en="pie",iO=le(),pC=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Os(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return jn(this,{coordDimensions:["value"],encodeDefaulter:Ce(pc,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=iO(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),a=i.seats=vv(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){ya(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},e.type="series."+en,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(ke);ob({fullType:pC.type,getCoord2:function(t){return t.getShallow("center")}});var hC=pC;var Fq=Math.PI*2,Iq=bt.CMD;function dC(t,e,r,n,i,a,o,s){var u=i-t,l=a-e,f=r-t,c=n-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=u*f+l*c,d=h/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var v=o[0]=t+d*f,m=o[1]=e+d*c;return Math.sqrt((v-i)*(v-i)+(m-a)*(m-a))}var Ni=new pe,Ze=new pe,Ct=new pe,ki=new pe,Dn=new pe;var $p=[],$t=new pe;function vC(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ni.fromArray(t[0]),Ze.fromArray(t[1]),Ct.fromArray(t[2]),pe.sub(ki,Ni,Ze),pe.sub(Dn,Ct,Ze);var r=ki.len(),n=Dn.len();if(!(r<.001||n<.001)){ki.scale(1/r),Dn.scale(1/n);var i=ki.dot(Dn),a=Math.cos(e);if(a<i){var o=dC(Ze.x,Ze.y,Ct.x,Ct.y,Ni.x,Ni.y,$p,!1);$t.fromArray($p),$t.scaleAndAdd(Dn,o/Math.tan(Math.PI-e));var s=Ct.x!==Ze.x?($t.x-Ze.x)/(Ct.x-Ze.x):($t.y-Ze.y)/(Ct.y-Ze.y);if(isNaN(s))return;s<0?pe.copy($t,Ze):s>1&&pe.copy($t,Ct),$t.toArray(t[1])}}}}function mC(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Ni.fromArray(t[0]),Ze.fromArray(t[1]),Ct.fromArray(t[2]),pe.sub(ki,Ze,Ni),pe.sub(Dn,Ct,Ze);var n=ki.len(),i=Dn.len();if(!(n<.001||i<.001)){ki.scale(1/n),Dn.scale(1/i);var a=ki.dot(e),o=Math.cos(r);if(a<o){var s=dC(Ze.x,Ze.y,Ct.x,Ct.y,Ni.x,Ni.y,$p,!1);$t.fromArray($p);var u=Math.PI/2,l=Math.acos(Dn.dot(e)),f=u+l-r;if(f>=u)pe.copy($t,Ct);else{$t.scaleAndAdd(Dn,s/Math.tan(Math.PI/2-f));var c=Ct.x!==Ze.x?($t.x-Ze.x)/(Ct.x-Ze.x):($t.y-Ze.y)/(Ct.y-Ze.y);if(isNaN(c))return;c<0?pe.copy($t,Ze):c>1&&pe.copy($t,Ct)}$t.toArray(t[1])}}}}function Mg(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function aO(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=xo(n[0],n[1]),a=xo(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=nu([],n[1],n[0],o/i),u=nu([],n[1],n[2],o/a),l=nu([],s,u,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),t.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function Yp(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,u=0;u<Wo.length;u++){var l=Wo[u],f=e[l],c=l==="normal";if(f){var p=f.get("show"),h=c?s:X(i.states[l]&&i.states[l].ignore,s);if(h||!X(p,o)){var d=c?n:n&&n.states[l];d&&(d.ignore=!0),n&&Mg(n,!0,l,f);continue}n||(n=new Gt,t.setTextGuideLine(n),!c&&(s||!o)&&Mg(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Mg(n,!1,l,f)}}if(n){ee(n.style,r),n.style.fill=null;var v=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,n.buildPath=aO}}function Xp(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Vt.length;n++){var i=Vt[n];r[i]=t.getModel([i,e])}return r}var oO=Math.PI/180;function gC(t,e,r,n,i,a,o,s,u,l){if(t.length<2)return;function f(v){for(var m=v.rB,g=m*m,y=0;y<v.list.length;y++){var _=v.list[y],x=Math.abs(_.label.y-r),S=n+_.len,b=S*S,E=Math.sqrt(Math.abs((1-x*x/g)*b)),D=e+(E+_.len2)*i,A=D-_.label.x,C=_.targetTextWidth-A*i;_C(_,C,!0),_.label.x=D}}function c(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var _=v[y],x=_.label.y>r?g:m,S=Math.abs(_.label.y-r);if(S>=x.maxY){var b=_.label.x-e-_.len2*i,E=n+_.len,D=Math.abs(b)<E?Math.sqrt(S*S/(1-b*b/E/E)):E;x.rB=D,x.maxY=S}x.list.push(_)}f(m),f(g)}for(var p=t.length,h=0;h<p;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-l;t[h].linePoints[1][0]+=d,t[h].label.x=l}dw(t,1,u,u+o)&&c(t)}function sO(t,e,r,n,i,a,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<t.length;p++){var h=t[p].label;Fg(t[p])||(h.x<e?(f=Math.min(f,h.x),u.push(t[p])):(c=Math.max(c,h.x),l.push(t[p])))}for(var p=0;p<t.length;p++){var d=t[p];if(!Fg(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,v=d.linePoints,m=void 0;d.labelAlignTo==="edge"?h.x<e?m=v[2][0]-d.labelDistance-o-d.edgeDistance:m=o+i-d.edgeDistance-v[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?m=f-o-d.bleedMargin:m=o+i-c-d.bleedMargin:h.x<e?m=h.x-o-d.bleedMargin:m=o+i-h.x-d.bleedMargin,d.targetTextWidth=m,_C(d,m,!1)}}gC(l,e,r,n,1,i,a,o,s,c),gC(u,e,r,n,-1,i,a,o,s,f);for(var p=0;p<t.length;p++){var d=t[p];if(!Fg(d)&&d.linePoints){var h=d.label,v=d.linePoints,g=d.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:_,S=d.rect.width+x,b=v[1][0]-v[2][0];g?h.x<e?v[2][0]=o+d.edgeDistance+S+d.labelDistance:v[2][0]=o+i-d.edgeDistance-S-d.labelDistance:(h.x<e?v[2][0]=h.x+d.labelDistance:v[2][0]=h.x-d.labelDistance,v[1][0]=v[2][0]+b),v[1][1]=v[2][1]=h.y}}}function _C(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,u=s?s[1]+s[3]:0,l=i.overflow,f=a.width+(o?0:u);if(e<f||r){if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-u);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var p=e-u,h=e<f?p:r?p>t.unconstrainedWidth?null:p:null;n.setStyle("width",h)}xC(a,n)}}}function xC(t,e){yC.rect=t,mg(yC,e,uO)}var uO={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},yC={};function Fg(t){return t.position==="center"}function Ig(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*oO,s=e.getLayout("viewRect"),u=e.getLayout("r"),l=s.width,f=s.x,c=s.y,p=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var E in b.states)if(b.states[E].ignore===!1)return!0;return!1}e.each(function(b){var E=e.getItemGraphicEl(b),D=E.shape,A=E.getTextContent(),C=E.getTextGuideLine(),T=e.getItemModel(b),F=T.getModel("label"),M=F.get("position")||T.get(["emphasis","label","position"]),I=F.get("distanceToLabelLine"),L=F.get("alignTo"),B=te(F.get("edgeDistance"),l),R=F.get("bleedMargin");R==null&&(R=Math.min(l,p)>200?10:2);var O=T.getModel("labelLine"),V=O.get("length");V=te(V,l);var G=O.get("length2");if(G=te(G,l),Math.abs(D.endAngle-D.startAngle)<o){w(A.states,h),A.ignore=!0,C&&(w(C.states,h),C.ignore=!0);return}if(d(A)){var H=(D.startAngle+D.endAngle)/2,q=Math.cos(H),Q=Math.sin(H),j,oe,ge,Xe;n=D.cx,i=D.cy;var We=M==="inside"||M==="inner";if(M==="center")j=D.cx,oe=D.cy,Xe="center";else{var De=(We?(D.r+D.r0)/2*q:D.r*q)+n,Le=(We?(D.r+D.r0)/2*Q:D.r*Q)+i;if(j=De+q*3,oe=Le+Q*3,!We){var he=De+q*(V+u-D.r),Se=Le+Q*(V+u-D.r),Xt=he+(q<0?-1:1)*G,qe=Se;L==="edge"?j=q<0?f+B:f+l-B:j=Xt+(q<0?-I:I),oe=qe,ge=[[De,Le],[he,Se],[Xt,qe]]}Xe=We?"center":L==="edge"?q>0?"right":"left":q>0?"left":"right"}var Rr=Math.PI,qt=0,Nr=F.get("rotate");if(ie(Nr))qt=Nr*(Rr/180);else if(M==="center")qt=0;else if(Nr==="radial"||Nr===!0){var co=q<0?-H+Rr:-H;qt=co}else if(Nr==="tangential"||Nr==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var kr=Math.atan2(q,Q);kr<0&&(kr=Rr*2+kr);var Gl=Q>0;Gl&&Nr!=="tangential-noflip"&&(kr=Rr+kr),qt=kr-Rr}if(a=!!qt,A.x=j,A.y=oe,A.rotation=qt,A.setStyle({verticalAlign:"middle"}),We){A.setStyle({align:Xe});var rd=A.states.select;rd&&(rd.x+=A.x,rd.y+=A.y)}else{var po=new re(0,0,0,0);xC(po,A),r.push({label:A,labelLine:C,position:M,len:V,len2:G,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new pe(q,Q),linePoints:ge,textAlign:Xe,labelDistance:I,labelAlignTo:L,edgeDistance:B,bleedMargin:R,rect:po,unconstrainedWidth:po.width,labelStyleWidth:A.style.width})}E.setTextConfig({inside:We})}}),!a&&t.get("avoidLabelOverlap")&&sO(r,n,i,u,l,p,f,c);for(var v=0;v<r.length;v++){var m=r[v],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(w(g.states,h),g.ignore=!0);var x=g.states.select;x&&(x.x+=g.x,x.y+=g.y)}if(y){var S=m.linePoints;_||!S?(w(y.states,h),y.ignore=!0):(vC(S,m.minTurnAngle),mC(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new pe(S[0][0],S[0][1])})}}}var SC=Math.PI*2,qp=Math.PI/180,bC=Vo(en,lO);function lO(t,e){t.eachSeriesByType(en,function(r){var n=r.getData(),i=n.mapDimension("value"),a=Mb(r,e),o=a.cx,s=a.cy,u=a.r,l=a.r0,f=a.viewRect,c=-r.get("startAngle")*qp,p=r.get("endAngle"),h=r.get("padAngle")*qp;p=p==="auto"?c-SC:-p*qp;var d=r.get("minAngle")*qp,v=d+h,m=0;n.each(i,function(B){!isNaN(B)&&m++});var g=n.getSum(i),y=Math.PI/(g||m)*2,_=r.get("clockwise"),x=r.get("roseType"),S=r.get("stillShowZeroSum"),b=n.getDataExtent(i);b[0]=0;var E=_?1:-1,D=[c,p],A=E*h/2;gu(D,!_),c=D[0],p=D[1];var C=Pg(r);C.startAngle=c,C.endAngle=p,C.clockwise=_,C.cx=o,C.cy=s,C.r=u,C.r0=l;var T=Math.abs(p-c),F=T,M=0,I=c;if(n.setLayout({viewRect:f,r:u}),n.each(i,function(B,R){var O;if(isNaN(B)){n.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:l,r:x?NaN:u});return}x!=="area"?O=g===0&&S?y:B*y:O=T/m,O<v?(O=v,F-=v):M+=B;var V=I+E*O,G=0,H=0;h>O?(G=I+E*O/2,H=G):(G=I+A,H=V-A),n.setItemLayout(R,{angle:O,startAngle:G,endAngle:H,clockwise:_,cx:o,cy:s,r0:l,r:x?mt(B,b,[l,u]):u}),I=V}),F<SC&&m)if(F<=.001){var L=T/m;n.each(i,function(B,R){if(!isNaN(B)){var O=n.getItemLayout(R);O.angle=L;var V=0,G=0;L<h?(V=c+E*(R+1/2)*L,G=V):(V=c+E*R*L+A,G=c+E*(R+1)*L-A),O.startAngle=V,O.endAngle=G}})}else y=F/M,I=c,n.each(i,function(B,R){if(!isNaN(B)){var O=n.getItemLayout(R),V=O.angle===v?v:B*y,G=0,H=0;V<h?(G=I+E*V/2,H=G):(G=I+A,H=I+E*V-A),O.startAngle=G,O.endAngle=H,I+=E*V}})})}var Pg=le();var fO=(function(t){P(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new be;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.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),c=N(Qa(u.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(Me(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):p==="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,we(o,{shape:{endAngle:f.endAngle}},s,n))}else Xr(o),we(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),Ht(o,u);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),v=Math.cos(h)*d,m=Math.sin(h)*d,g=u.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=N({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},Qa(l.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:v,y:m,shape:Qa(u.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:Qa(u.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&N(y.ensureState("select"),{x:v,y:m}),N(_.ensureState("select"),{x:v,y:m}),Mt(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},e.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;rr(a,nr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:l,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Gt,this.setTextGuideLine(h)),Yp(this,Xp(o),{stroke:l,opacity:Zt(s.get(["lineStyle","opacity"]),f,1)})}},e})(It),cO=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=en,r.ignoreLabelLineUpdate=!0,r}return e.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),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(l=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var p=Pg(r),h=new It({shape:J(p)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,u.add(h)}o.diff(s).add(function(d){var v=new fO(o,d,l);o.setItemGraphicEl(d,v),u.add(v)}).update(function(d,v){var m=s.getItemGraphicEl(v);m.updateData(o,d,l),m.off("click"),u.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var v=s.getItemGraphicEl(d);gn(v,r,d)}).execute(),Ig(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.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}},e.type=en,e})(Pe),EC=cO;function Lg(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ie(o)&&!isNaN(o)&&o<0)})}}}function Bg(t){t.registerChartView(EC),t.registerSeriesModel(hC),fC(en,t.registerAction),t.registerLayout(bC),t.registerProcessor(Ja(en)),t.registerProcessor(Lg(en))}var th={};jt(th,{dispose:()=>NO,disposeAll:()=>kO,getElementSSRData:()=>Zg,getInstance:()=>zO,init:()=>eh,registerPainter:()=>Kg,registerSSRDataGetter:()=>Qg,version:()=>UO});var Rs=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),pO=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Rs(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Rs(r,e),"drag",e.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 Rs(u,e),"dragleave",e.event),s&&s!==u&&this.handler.dispatchToElement(new Rs(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Rs(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Rs(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),wC=pO;var hO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Og=[],dO=ce.browser.firefox&&+ce.browser.version.split(".")[0]<39;function jp(t,e,r,n){return r=r||{},n?CC(t,e,r):dO&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):CC(t,e,r),r}function CC(t,e,r){if(ce.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(Mm(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Fc(Og,t,n,i)){r.zrX=Og[0],r.zrY=Og[1];return}}r.zrX=r.zrY=0}function Kp(t){return t||window.event}function ur(t,e,r){if(e=Kp(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&jp(t,o,e,r)}else{jp(t,e,e,r);var a=vO(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&hO.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function vO(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function DC(t,e,r,n){t.addEventListener(e,r,n)}function AC(t,e,r,n){t.removeEventListener(e,r,n)}var Zp=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var MC=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var u=i[o],l=jp(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Ng)if(Ng.hasOwnProperty(r)){var n=Ng[r](this._track,e);if(n)return n}},t})();function TC(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function mO(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Ng={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=TC(n)/TC(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=mO(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};var IC="silent";function gO(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.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:yO}}function yO(){Zp(this.event)}var _O=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Nt),dl=(function(){function t(e,r){this.x=e,this.y=r}return t})(),xO=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],kg=new re(0,0,0,0),PC=(function(t){P(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new dl(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new _O,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new wC(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(w(xO,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=LC(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 dl(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)},e.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})},e.prototype.resize=function(){this._hovered=new dl(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=gO(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)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new dl(r,n);if(FC(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new re(r-l,n-l,u,u),c=a.length-1;c>=0;c--){var p=a[c];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(kg.copy(p.getBoundingRect()),p.transform&&kg.applyTransform(p.transform),kg.intersect(f)&&s.push(p))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<l;m+=h)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),_=n+m*Math.sin(g);if(FC(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new MC);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 dl;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Nt);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){PC.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=LC(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||xo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function SO(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?IC:!0}return!1}function FC(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=SO(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==IC)){e.target=o;break}}}function LC(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var BC=PC;var NC=32,vl=7;function bO(t){for(var e=0;t>=NC;)e|=t&1,t>>=1;return t+e}function OC(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;EO(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function EO(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function RC(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,u;o<s;)u=o+s>>>1,i(a,t[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;l>0;)t[o+l]=t[o+l-1],l--}t[o]=a}}function zg(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])>0){for(s=n-i;u<s&&a(t,e[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(t,e[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(t,e[r+f])>0?o=f+1:u=f}return u}function Ug(t,e,r,n,i,a){var o=0,s=0,u=1;if(a(t,e[r+i])<0){for(s=i+1;u<s&&a(t,e[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(t,e[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(t,e[r+f])<0?u=f:o=f+1}return u}function wO(t,e){var r=vl,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function u(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function l(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],v=i[h],m=n[h+1],g=i[h+1];i[h]=v+g,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=Ug(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=zg(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):p(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,_=v,x=h;if(t[x++]=t[_++],--m===0){for(g=0;g<d;g++)t[x+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y];return}for(var S=r,b,E,D;;){b=0,E=0,D=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],E++,b=0,--m===0){D=!0;break}}else if(t[x++]=o[y++],b++,E=0,--d===1){D=!0;break}while((b|E)<S);if(D)break;do{if(b=Ug(t[_],o,y,d,0,e),b!==0){for(g=0;g<b;g++)t[x+g]=o[y+g];if(x+=b,y+=b,d-=b,d<=1){D=!0;break}}if(t[x++]=t[_++],--m===0){D=!0;break}if(E=zg(o[y],t,_,m,0,e),E!==0){for(g=0;g<E;g++)t[x+g]=t[_+g];if(x+=E,_+=E,m-=E,m===0){D=!0;break}}if(t[x++]=o[y++],--d===1){D=!0;break}S--}while(b>=vl||E>=vl);if(D)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[x+g]=t[_+g];t[x+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[x+g]=o[y+g]}}function p(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=h+d-1,_=m-1,x=v+m-1,S=0,b=0;if(t[x--]=t[y--],--d===0){for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(x-=d,y-=d,b=x+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_];return}for(var E=r;;){var D=0,A=0,C=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],D++,A=0,--d===0){C=!0;break}}else if(t[x--]=o[_--],A++,D=0,--m===1){C=!0;break}while((D|A)<E);if(C)break;do{if(D=d-Ug(o[_],t,h,d,d-1,e),D!==0){for(x-=D,y-=D,d-=D,b=x+1,S=y+1,g=D-1;g>=0;g--)t[b+g]=t[S+g];if(d===0){C=!0;break}}if(t[x--]=o[_--],--m===1){C=!0;break}if(A=m-zg(t[y],o,0,m,m-1,e),A!==0){for(x-=A,_-=A,m-=A,b=x+1,S=_+1,g=0;g<A;g++)t[b+g]=o[S+g];if(m<=1){C=!0;break}}if(t[x--]=t[y--],--d===0){C=!0;break}E--}while(D>=vl||A>=vl);if(C)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),m===1){for(x-=d,y-=d,b=x+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function eo(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<NC){a=OC(t,r,n,e),RC(t,r,n,r+a,e);return}var o=wO(t,e),s=bO(i);do{if(a=OC(t,r,n,e),a<s){var u=i;u>s&&(u=s),RC(t,r,r+u,r+a,e),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var kC=!1;function Vg(){kC||(kC=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function zC(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var CO=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zC}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,eo(n,zC)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=i,f=e;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=At),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Vg(),d.z=0),isNaN(d.z2)&&(Vg(),d.z2=0),isNaN(d.zlevel)&&(Vg(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,n);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=ue(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),UC=CO;var VC;VC=ce.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Hg=VC;function to(){return new Date().getTime()}var DO=(function(t){P(e,t);function e(r){var n=t.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 e.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},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.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}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=to()-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())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Hg(n),!r._paused&&r.update())}Hg(n)},e.prototype.start=function(){this._running||(this._time=to(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=to(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=to()-this._pauseStart,this._paused=!1)},e.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},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new pu(r,n.loop);return this.addAnimator(i),i},e})(Nt),HC=DO;var AO=300,Gg=ce.domSupported,Wg=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=z(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),GC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},WC=!1;function Xg(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TO(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function $g(t){t&&(t.zrByTouch=!0)}function MO(t,e){return ur(t.dom,new FO(t,e),!0)}function YC(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var FO=(function(){function t(e,r){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),tn={mousedown:function(t){t=ur(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ur(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ur(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ur(this.dom,t);var e=t.toElement||t.relatedTarget;YC(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){WC=!0,t=ur(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){WC||(t=ur(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ur(this.dom,t),$g(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),tn.mousemove.call(this,t),tn.mousedown.call(this,t)},touchmove:function(t){t=ur(this.dom,t),$g(t),this.handler.processGesture(t,"change"),tn.mousemove.call(this,t)},touchend:function(t){t=ur(this.dom,t),$g(t),this.handler.processGesture(t,"end"),tn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<AO&&tn.click.call(this,t)},pointerdown:function(t){tn.mousedown.call(this,t)},pointermove:function(t){Xg(t)||tn.mousemove.call(this,t)},pointerup:function(t){tn.mouseup.call(this,t)},pointerout:function(t){Xg(t)||tn.mouseout.call(this,t)}};w(["click","dblclick","contextmenu"],function(t){tn[t]=function(e){e=ur(this.dom,e),this.trigger(t,e)}});var qg={pointermove:function(t){Xg(t)||qg.mousemove.call(this,t)},pointerup:function(t){qg.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function IO(t,e){var r=e.domHandlers;ce.pointerEventsSupported?w(Wg.pointer,function(n){Qp(e,n,function(i){r[n].call(t,i)})}):(ce.touchEventsSupported&&w(Wg.touch,function(n){Qp(e,n,function(i){r[n].call(t,i),TO(e)})}),w(Wg.mouse,function(n){Qp(e,n,function(i){i=Kp(i),e.touching||r[n].call(t,i)})}))}function PO(t,e){ce.pointerEventsSupported?w(GC.pointer,r):ce.touchEventsSupported||w(GC.mouse,r);function r(n){function i(a){a=Kp(a),YC(t,a.target)||(a=MO(t,a),e.domHandlers[n].call(t,a))}Qp(e,n,i,{capture:!0})}}function Qp(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,DC(t.domTarget,e,r,n)}function Yg(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&AC(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var $C=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),LO=(function(t){P(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new $C(r,tn),Gg&&(i._globalHandlerScope=new $C(document,qg)),IO(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Yg(this._localHandlerScope),Gg&&Yg(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Gg&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?PO(this,n):Yg(n)}},e})(Nt),XC=LO;var Jp={},ro={};function BO(t){delete ro[t]}function OO(t){if(!t)return!1;if(typeof t=="string")return oa(t,1)<hu;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=oa(e[i].color,1);return r/=n,r<hu}return!1}var RO=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new UC,o=n.renderer||"canvas";Jp[o]||(o=ne(Jp)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Jp[o](r,a,n,e),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!ce.node&&!ce.worker&&!u?new XC(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?ce.touchEventsSupported:!!f,p=44,h;c&&(h=X(n.pointerSize,p)),this.handler=new BC(a,s,l,s.root,h),this.animation=new HC({stage:{update:u?null:function(){return i._flush(!1)}}}),u||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=OO(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=to(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=to();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof _e&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,BO(this.id))},t})();function eh(t,e){var r=new RO(qs(),t,e);return ro[r.id]=r,r}function NO(t){t.dispose()}function kO(){for(var t in ro)ro.hasOwnProperty(t)&&ro[t].dispose();ro={}}function zO(t){return ro[t]}function Kg(t,e){Jp[t]=e}var jg;function Zg(t){if(typeof jg=="function")return jg(t)}function Qg(t){jg=t}var UO="6.1.0";var qC="";typeof navigator<"u"&&(qC=navigator.platform||"");var Ns="rgba(0, 0, 0, 0.2)",jC=$.color.theme[0],VO=Fo(jC,null,null,.9),rh={darkMode:"auto",colorBy:"series",color:$.color.theme,gradientColor:[VO,jC],aria:{decal:{decals:[{color:Ns,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ns,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ns,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ns,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ns,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ns,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qC.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 HO=K();function KC(t,e,r){var n=HO.get(e);if(!n)return r;var i=n(t);if(!i)return r;if(0)for(var a;a<i.length;a++);return r.concat(i)}var nh,ml,ZC,QC="\0_ec_inner",GO=1;var rD=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ae(a),this._locale=new Ae(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=tD(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,tD(n))},e.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"?ZC(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&&w(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=K(),l=n&&n.replaceMergeMainTypeMap;U1(this),w(r,function(c,p){c!=null&&(xe.hasClass(p)?p&&(s.push(p),u.set(p,!0)):i[p]=i[p]==null?J(c):me(i[p],c,!0))}),l&&l.each(function(c,p){xe.hasClass(p)&&!u.get(p)&&(s.push(p),u.set(p,!0))}),xe.topologicalTravel(s,xe.getAllClassMainTypes(),f,this);function f(c){var p=KC(this,c,Ge(r[c])),h=a.get(c),d=h?l&&l.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=mS(h,p,d);yS(v,c,xe),i[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;w(v,function(S,b){var E=S.existing,D=S.newOption;if(!D)E&&(E.mergeOption({},this),E.optionUpdated({},!1));else{var A=c==="series",C=xe.getClass(c,S.keyInfo.subType,!A);if(!C){if(0)var T,F;return}if(c==="tooltip"){if(_)return;_=!0}if(E&&E.constructor===C)E.name=S.keyInfo.name,E.mergeOption(D,this),E.optionUpdated(D,!1);else{var M=N({componentIndex:b},S.keyInfo);E=new C(D,this,this,M),N(E,M),S.brandNew&&(E.__requireNewView=!0),E.init(D,this,this),E.optionUpdated(null,!0)}}E?(m.push(E.option),g.push(E),y++):(m.push(void 0),g.push(void 0))},this),i[c]=m,a.set(c,g),o.set(c,y),c==="series"&&nh(this)}this._seriesIndices||nh(this)},e.prototype.getOption=function(){var r=J(this.option);return w(r,function(n,i){if(xe.hasClass(i)){for(var a=Ge(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!ko(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[QC],r},e.prototype.setTheme=function(r){this._theme=new Ae(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.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]}}},e.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=[],w(Ge(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=JC("id",a,s):o!=null?u=JC("name",o,s):u=Fe(s,function(l){return!!l}),eD(u,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Fe(this._componentsMap.get(i),function(l){return!!l});return u(eD(o,r));function s(l){var f=i+"Index",c=i+"Id",p=i+"Name";return l&&(l[f]!=null||l[c]!=null||l[p]!=null)?{mainType:i,index:l[f],id:l[c],name:l[p]}:null}function u(l){return r.filter?Fe(l,r.filter):l}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Y(r)){var o=n,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,p,d,d.componentIndex)}})}else for(var u=U(r)?a.get(r):W(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=pr(r,null);return Fe(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Fe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Fe(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){ml(this),w(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){w(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){ml(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return w(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return ml(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){ml(this);var i=[];w(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=K(i)},e.prototype.restoreData=function(r){nh(this);var n=this._componentsMap,i=[];n.each(function(a,o){xe.hasClass(o)&&i.push(o)}),xe.topologicalTravel(i,xe.getAllClassMainTypes(),function(a){w(n.get(a),function(o){o&&(a!=="series"||!WO(o,r))&&o.restoreData()})})},e.internalField=(function(){nh=function(r){var n=r._seriesIndices=[];w(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=K(n)},ml=function(r){},ZC=function(r,n){r.option={},r.option[QC]=GO,r._componentsMap=K({series:[]}),r._componentsCount=K();var i=n.aria;W(i)&&i.enabled==null&&(i.enabled=!0),$O(n,r._theme.option),me(n,rh,!1),r._mergeOption(n,null)}})(),e})(Ae);function WO(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function $O(t,e){var r=t.color&&!t.colorLayer;w(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||xe.hasClass(i)||(typeof n=="object"?t[i]=t[i]?me(t[i],n,!1):J(n):t[i]==null&&(t[i]=n))})}function JC(t,e,r){if(k(e)){var n=K();return w(e,function(a){if(a!=null){var o=pr(a,null);o!=null&&n.set(a,!0)}}),Fe(r,function(a){return a&&n.get(a[t])})}else{var i=pr(e,null);return Fe(r,function(a){return a&&i!=null&&a[t]===i})}}function eD(t,e){return e.hasOwnProperty("subType")?Fe(t,function(r){return r&&r.subType===e.subType}):t}function tD(t){var e=K();return t&&w(Ge(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}nt(rD,Ju);var ih=rD;var YO=/^(min|max)?(.+)$/,XO=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(w(Ge(e.series),function(o){o&&o.data&&$e(o.data)&&ti(o.data)}),w(Ge(e.dataset),function(o){o&&o.source&&$e(o.source)&&ti(o.source)})),e=J(e);var i=this._optionBackup,a=qO(e,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},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],J(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=J(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){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++)jO(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!ZO(o,this._currentMediaIndices)&&(s=z(o,function(f){return J(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function qO(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,u=t.options,l=t.media,f=!!t.media,c=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&k(l)&&w(l,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),p(a),w(u,function(h){return p(h)}),w(n,function(h){return p(h.option)});function p(h){w(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function jO(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return w(t,function(a,o){var s=o.match(YO);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();KO(n[l],a,u)||(i=!1)}}),i}function KO(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function ZO(t,e){return t.join(",")===e.join(",")}var nD=XO;var rn=w,yl=W,iD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Jg(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=iD.length;r<n;r++){var i=iD[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?me(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?me(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Ot(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,ee(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function gl(t){Ot(t,"itemStyle"),Ot(t,"lineStyle"),Ot(t,"areaStyle"),Ot(t,"label"),Ot(t,"labelLine"),Ot(t,"upperLabel"),Ot(t,"edgeLabel")}function rt(t,e){var r=yl(t)&&t[e],n=yl(r)&&r.textStyle;if(n)for(var i=0,a=xv.length;i<a;i++){var o=xv[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Br(t){t&&(gl(t),rt(t,"label"),t.emphasis&&rt(t.emphasis,"label"))}function QO(t){if(yl(t)){Jg(t),gl(t),rt(t,"label"),rt(t,"upperLabel"),rt(t,"edgeLabel"),t.emphasis&&(rt(t.emphasis,"label"),rt(t.emphasis,"upperLabel"),rt(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Jg(e),Br(e));var r=t.markLine;r&&(Jg(r),Br(r));var n=t.markArea;n&&Br(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!$e(a))for(var o=0;o<a.length;o++)Br(a[o]);w(t.categories,function(l){gl(l)})}if(i&&!$e(i))for(var o=0;o<i.length;o++)Br(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Br(s[o]);if(r=t.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)k(u[o])?(Br(u[o][0]),Br(u[o][1])):Br(u[o]);t.type==="gauge"?(rt(t,"axisLabel"),rt(t,"title"),rt(t,"detail")):t.type==="treemap"?(Ot(t.breadcrumb,"itemStyle"),w(t.levels,function(l){gl(l)})):t.type==="tree"&&gl(t.leaves)}}function Kn(t){return k(t)?t:t?[t]:[]}function aD(t){return(k(t)?t[0]:t)||{}}function e0(t,e){rn(Kn(t.series),function(n){yl(n)&&QO(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),rn(r,function(n){rn(Kn(t[n]),function(i){i&&(rt(i,"axisLabel"),rt(i.axisPointer,"label"))})}),rn(Kn(t.parallel),function(n){var i=n&&n.parallelAxisDefault;rt(i,"axisLabel"),rt(i&&i.axisPointer,"label")}),rn(Kn(t.calendar),function(n){Ot(n,"itemStyle"),rt(n,"dayLabel"),rt(n,"monthLabel"),rt(n,"yearLabel")}),rn(Kn(t.radar),function(n){rt(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)}),rn(Kn(t.geo),function(n){yl(n)&&(Br(n),rn(Kn(n.regions),function(i){Br(i)}))}),rn(Kn(t.timeline),function(n){Br(n),Ot(n,"label"),Ot(n,"itemStyle"),Ot(n,"controlStyle",!0);var i=n.data;k(i)&&w(i,function(a){W(a)&&(Ot(a,"label"),Ot(a,"itemStyle"))})}),rn(Kn(t.toolbox),function(n){Ot(n,"iconStyle"),rn(n.feature,function(i){Ot(i,"iconStyle")})}),rt(aD(t.axisPointer),"label"),rt(aD(t.tooltip).axisPointer,"label")}function JO(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function eR(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function oD(t){t&&w(tR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var tR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],t0=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _l(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<t0.length;r++){var n=t0[r][1],i=t0[r][0];e[n]!=null&&(e[i]=e[n])}}function sD(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function uD(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function nR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function lD(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&lD(t[r].children,e)}function ah(t,e){e0(t,e),t.series=Ge(t.series),w(t.series,function(r){if(W(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),sD(r.label);var i=r.data;if(i&&!$e(i))for(var a=0;a<i.length;a++)sD(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=JO(r,"pointer.color");o!=null&&eR(r,"itemStyle.color",o)}else if(n==="bar"){_l(r),_l(r.backgroundStyle),_l(r.emphasis);var i=r.data;if(i&&!$e(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(_l(i[a]),_l(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)),uD(r),lD(r.data,uD)}else n==="graph"||n==="sankey"?nR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ee(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),oD(r)}}),t.dataRange&&(t.visualMap=t.dataRange),w(rR,function(r){var n=t[r];n&&(k(n)||(n=[n]),w(n,function(i){oD(i)}))})}var fD=Ho(iR);function iR(t){var e=K();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.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.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),w(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),aR(r)}})}function aR(t){w(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,u=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&p>=0&&y>0||u==="samesign"&&p<=0&&y<0){p=uS(p,y),v=y;break}}}return n[0]=p,n[1]=v,n})})}var r0=(function(){function t(){this.group=new _e,this.uid=xn("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();go(r0);ni(r0);var ze=r0;var cD=le(),pD={itemStyle:nn(um,!0),lineStyle:nn(sm,!0)},oR={lineStyle:"stroke",itemStyle:"fill"};function hD(t,e){var r=t.visualStyleMapper||pD[e];return r||(console.warn("Unknown style type '"+e+"'."),pD.itemStyle)}function dD(t,e){var r=t.visualDrawType||oR[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var vD={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=hD(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=dD(t,n),l=o[u],f=Y(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[u]||(o[u]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Y(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||Y(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var v=t.getDataParams(d),m=N({},o);m[u]=f(v),h.setItemVisual(d,"style",m)}}}},xl=new Ae,mD={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=hD(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){xl.option=u[n];var l=i(xl),f=o.ensureUniqueItemVisual(s,"style");N(f,l),xl.option.decal&&(o.setItemVisual(s,"decal",xl.option.decal),xl.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},gD={performRawSeries:!0,overallReset:function(t){var e=K();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();cD(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=cD(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=dD(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=n.getName(l)||l+"",d=n.count();p[u]=r.getColorFromPalette(h,o,d)}})}})}};var oh=Math.PI;function n0(t,e){e=e||{},ee(e,{text:"loading",textColor:$.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new _e,n=new Ee({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new be({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ee({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Ea({shape:{startAngle:-oh/2,endAngle:-oh/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:oh*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:oh*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-u*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:u),f=t.getHeight()/2;e.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:t.getWidth(),height:t.getHeight()})},r.resize(),r}var sR=(function(){function t(e,r,n,i){this._stageTaskMap=K(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__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}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):kf(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=K();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;w(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Ue(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;w(e,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,d=p.agentStubMap;d.each(function(m){s(i,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,n);var v=o.getPerformArgs(p,i.block);d.each(function(m){m.perform(v)}),p.perform(v)&&(a=!0)}else c&&c.each(function(m,g){s(i,m)&&m.dirty();var y=o.getPerformArgs(m,i.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=K(),u=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||Ti({plan:pR,reset:hR,count:vR}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ti({reset:uR});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=K(),l=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";Ue(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):w(n.getSeries(),d);function d(v){var m=v.uid,g=u.set(m,s&&s.get(m)||(p=!0,Ti({reset:lR,onDirty:cR})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(v,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.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},t.wrapStageHandler=function(e,r){return Y(e)&&(e={overallReset:e,seriesType:mR(e)}),e.uid=xn("stageHandler"),r&&(e.visualType=r),e},t})();function uR(t){t.overallReset(t.ecModel,t.api,t.payload)}function lR(t){return t.dirtyOnOverallProgress&&fR}function fR(){this.agent.dirty(),this.getDownstream().dirty()}function cR(){this.agent&&this.agent.dirty()}function pR(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function hR(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ge(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?z(e,function(r,n){return yD(n)}):dR}var dR=yD(0);function yD(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function vR(t){return t.data.count()}function mR(t){sh=null;try{t(Sl,_D)}catch{}return sh}var Sl={},_D={},sh;xD(Sl,ih);xD(_D,Vf);Sl.eachSeriesByType=Sl.eachRawSeriesByType=function(t){sh=t};Sl.eachComponent=function(t){t.mainType==="series"&&t.subType&&(sh=t.subType)};function xD(t,e){for(var r in e.prototype)t[r]=Be}var i0=sR;var Z=$.darkColor,SD=Z.background,bl=function(){return{axisLine:{lineStyle:{color:Z.axisLine}},splitLine:{lineStyle:{color:Z.axisSplitLine}},splitArea:{areaStyle:{color:[Z.backgroundTint,Z.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Z.axisMinorSplitLine}},axisLabel:{color:Z.axisLabel},axisName:{}}},bD={label:{color:Z.secondary},itemStyle:{borderColor:Z.borderTint},dividerLineStyle:{color:Z.border}},ED={darkMode:!0,color:Z.theme,backgroundColor:SD,axisPointer:{lineStyle:{color:Z.border},crossStyle:{color:Z.borderShade},label:{color:Z.tertiary}},legend:{textStyle:{color:Z.secondary},pageTextStyle:{color:Z.tertiary}},textStyle:{color:Z.secondary},title:{textStyle:{color:Z.primary},subtextStyle:{color:Z.quaternary}},toolbox:{iconStyle:{borderColor:Z.accent50},feature:{dataView:{backgroundColor:SD,textColor:Z.primary,textareaColor:Z.background,textareaBorderColor:Z.border,buttonColor:Z.accent50,buttonTextColor:Z.neutral00}}},tooltip:{backgroundColor:Z.neutral20,defaultBorderColor:Z.border,textStyle:{color:Z.tertiary}},dataZoom:{borderColor:Z.accent10,textStyle:{color:Z.tertiary},brushStyle:{color:Z.backgroundTint},handleStyle:{color:Z.neutral00,borderColor:Z.accent20},moveHandleStyle:{color:Z.accent40},emphasis:{handleStyle:{borderColor:Z.accent50}},dataBackground:{lineStyle:{color:Z.accent30},areaStyle:{color:Z.accent20}},selectedDataBackground:{lineStyle:{color:Z.accent50},areaStyle:{color:Z.accent30}}},visualMap:{textStyle:{color:Z.secondary},handleStyle:{borderColor:Z.neutral30}},timeline:{lineStyle:{color:Z.accent10},label:{color:Z.tertiary},controlStyle:{color:Z.accent30,borderColor:Z.accent30}},calendar:{itemStyle:{color:Z.neutral00,borderColor:Z.neutral20},dayLabel:{color:Z.tertiary},monthLabel:{color:Z.secondary},yearLabel:{color:Z.secondary}},matrix:{x:bD,y:bD,backgroundColor:{borderColor:Z.axisLine},body:{itemStyle:{borderColor:Z.borderTint}}},timeAxis:bl(),logAxis:bl(),valueAxis:bl(),categoryAxis:bl(),line:{symbol:"circle"},graph:{color:Z.theme},gauge:{title:{color:Z.secondary},axisLine:{lineStyle:{color:[[1,Z.neutral05]]}},axisLabel:{color:Z.axisLabel},detail:{color:Z.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Z.background}},radar:(function(){var t=bl();return t.axisName={color:Z.axisLabel},t.axisLine.lineStyle.color=Z.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:Z.neutral20,textStyle:{color:Z.secondary}},emphasis:{itemStyle:{color:Z.neutral30}}}},sunburst:{itemStyle:{borderColor:Z.background}},map:{itemStyle:{borderColor:Z.border,areaColor:Z.neutral10},label:{color:Z.tertiary},emphasis:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}},select:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}}},geo:{itemStyle:{borderColor:Z.border,areaColor:Z.neutral10},emphasis:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}},select:{label:{color:Z.primary},itemStyle:{color:Z.highlight}}}};ED.categoryAxis.splitLine.show=!1;var wD=ED;var CD=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(U(e)){var a=Qt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(e,function(u,l){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=l.lastIndexOf(p);if(h>0&&h===l.length-p.length){var d=l.slice(0,h);d!=="data"&&(r.mainType=d,r[p.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,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(e,r.otherQuery,i,a));function f(c,p,h,d){return c[h]==null||p[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var a0=["symbol","symbolSize","symbolRotate","symbolOffset"],DD=a0.concat(["symbolKeepAspect"]),AD={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<a0.length;o++){var s=a0[o],u=t.get(s);Y(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(N({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var l=ne(i);function f(c,p){for(var h=t.getRawValue(p),d=t.getDataParams(p),v=0;v<l.length;v++){var m=l[v];c.setItemVisual(p,m,i[m](h,d))}}return{dataEach:a?f:null}}},TD={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<DD.length;s++){var u=DD[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function MD(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function FD(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function no(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var gR=new Nt,yr=gR;var ID={};function PD(t,e){ID[t]=e}function o0(t){return ID[t]}var yR={};function uh(t,e){yR[t]=e}var _R=Math.round(Math.random()*9),xR=typeof Object.defineProperty=="function",SR=(function(){function t(){this._id="__ec_inner_"+_R++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return xR?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),LD=SR;function io(t){return isFinite(t)}function bR(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.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=io(n)?n:0,i=io(i)?i:1,a=io(a)?a:0,o=io(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function ER(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,u=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,u=u*a),o=io(o)?o:.5,s=io(s)?s:.5,u=u>=0&&io(u)?u:.5;var l=t.createRadialGradient(o,s,0,o,s,u);return l}function s0(t,e,r){for(var n=e.type==="radial"?ER(t,e,r):bR(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function BD(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function lh(t){return parseInt(t,10)}function u0(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||lh(s[n])||lh(t.style[n]))-(lh(s[a])||0)-(lh(s[o])||0)||0}function wR(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:ie(t)?[t]:k(t)?t:null}function El(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&wR(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=z(r,function(a){return a/i}),n/=i)}return[r,n]}var CR=new bt(!0);function fh(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function OD(t){return typeof t=="string"&&t!=="none"}function ch(t){var e=t.fill;return e!=null&&e!=="none"}function RD(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function ND(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function kD(t,e,r){var n=Js(e.image,e.__image,r);if(yo(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Yi),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function DR(t,e,r,n,i){var a,o=fh(r),s=ch(r),u=r.strokePercent,l=u<1,f=!e.path;(!e.silent||l)&&f&&e.createPathProxy();var c=e.path||CR,p=e.__dirty;if(!n){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,_=void 0,x=void 0,S=void 0,b=void 0,E=void 0;(v||m)&&(E=e.getBoundingRect()),v&&(_=p?s0(t,h,E):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?s0(t,d,E):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?kD(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=p||!e.__canvasStrokePattern?kD(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),v?t.fillStyle=_:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var D=e.getGlobalScale();c.setScale(D[0],D[1],e.segmentIgnoreThreshold);var A,C;t.setLineDash&&r.lineDash&&(a=El(e),A=a[0],C=a[1]);var T=!0;(f||p&pi)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?u:1),A&&(t.setLineDash(A),t.lineDashOffset=C),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&ND(t,r),s&&RD(t,r)):(s&&RD(t,r),o&&ND(t,r)),A&&t.setLineDash([])}function AR(t,e,r){var n=e.__image=Js(r.image,e.__image,e,e.onload);if(!(!n||!yo(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.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;t.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,c=o-l,p=s-f;t.drawImage(n,l,f,c,p,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function TR(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Kt,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=El(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(fh(r)&&t.strokeText(i,r.x,r.y),ch(r)&&t.fillText(i,r.x,r.y)):(ch(r)&&t.fillText(i,r.x,r.y),fh(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var zD=["shadowBlur","shadowOffsetX","shadowOffsetY"],UD=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function YD(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Yt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?ln.opacity:o}(n||e.blend!==r.blend)&&(a||(Yt(t,i),a=!0),t.globalCompositeOperation=e.blend||ln.blend);for(var s=0;s<zD.length;s++){var u=zD[s];(n||e[u]!==r[u])&&(a||(Yt(t,i),a=!0),t[u]=t.dpr*(e[u]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Yt(t,i),a=!0),t.shadowColor=e.shadowColor||ln.shadowColor),a}function VD(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=YD(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Yt(t,i),s=!0),OD(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Yt(t,i),s=!0),OD(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Yt(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Yt(t,i),s=!0),t.lineWidth=l)}for(var f=0;f<UD.length;f++){var c=UD[f],p=c[0];(n||a[p]!==o[p])&&(s||(Yt(t,i),s=!0),t[p]=a[p]||c[1])}return s}function MR(t,e,r,n,i){return YD(t,e.style,r&&r.style,n,i)}function XD(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function FR(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),XD(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function IR(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var HD=1,GD=2,WD=3,$D=4;function PR(t){var e=ch(t),r=fh(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Yt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function ph(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};l0(t,e,r),f0(t,r)}function l0(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~At,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,u=!1;if((!a||BD(i,a))&&(a&&(Yt(t,r),t.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Yt(t,r),t.save(),FR(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~At,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=e instanceof ae&&e.autoBatch&&PR(o);s||IR(n,l.transform)?(Yt(t,r),XD(t,e)):f||Yt(t,r),e instanceof ae?(r.lastDrawType!==HD&&(u=!0,r.lastDrawType=HD),VD(t,e,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),DR(t,e,o,f,r)):e instanceof ma?(r.lastDrawType!==WD&&(u=!0,r.lastDrawType=WD),VD(t,e,l,u,r),TR(t,e,o)):e instanceof je?(r.lastDrawType!==GD&&(u=!0,r.lastDrawType=GD),MR(t,e,l,u,r),AR(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==$D&&(u=!0,r.lastDrawType=$D),LR(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&Yt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function f0(t,e){Yt(t,e),e.prevElClipPaths&&t.restore()}function LR(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),l0(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}f0(t,a);for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),l0(t,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}f0(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var c0=new LD,qD=new an(100),jD=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function wl(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&c0.delete(t);var a=c0.get(t);if(a)return a;var o=ee(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,c0.set(t,s),t.dirty=!1,s;function u(l){for(var f=[r],c=!0,p=0;p<jD.length;++p){var h=o[jD[p]];if(h!=null&&!k(h)&&!U(h)&&!ie(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var v=qD.get(d);v&&(i?l.svgElement=v:l.image=v)}var m=ZD(o.dashArrayX),g=BR(o.dashArrayY),y=KD(o.symbol),_=OR(m),x=QD(g),S=!i&<.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},E=A(),D;S&&(S.width=E.width*r,S.height=E.height*r,D=S.getContext("2d")),C(),c&&qD.put(d,S||b),l.image=S,l.svgElement=b,l.svgWidth=E.width,l.svgHeight=E.height;function A(){for(var T=1,F=0,M=_.length;F<M;++F)T=gv(T,_[F]);for(var I=1,F=0,M=y.length;F<M;++F)I=gv(I,y[F].length);T*=I;var L=x*_.length*y.length;if(0)var B;return{width:Math.max(1,Math.min(T,o.maxTileWidth)),height:Math.max(1,Math.min(L,o.maxTileHeight))}}function C(){D&&(D.clearRect(0,0,S.width,S.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,S.width,S.height)));for(var T=0,F=0;F<g.length;++F)T+=g[F];if(T<=0)return;for(var M=-x,I=0,L=0,B=0;M<E.height;){if(I%2===0){for(var R=L/2%y.length,O=0,V=0,G=0;O<E.width*2;){for(var H=0,F=0;F<m[B].length;++F)H+=m[B][F];if(H<=0)break;if(V%2===0){var q=(1-o.symbolSize)*.5,Q=O+m[B][V]*q,j=M+g[I]*q,oe=m[B][V]*o.symbolSize,ge=g[I]*o.symbolSize,Xe=G/2%y[R].length;We(Q,j,oe,ge,y[R][Xe])}O+=m[B][V],++G,++V,V===m[B].length&&(V=0)}++B,B===m.length&&(B=0)}M+=g[I],++L,++I,I===g.length&&(I=0)}function We(De,Le,he,Se,Xt){var qe=i?1:r,Rr=ot(Xt,De*qe,Le*qe,he*qe,Se*qe,o.color,o.symbolKeepAspect);if(i){var qt=n.painter.renderOneToVNode(Rr);qt&&b.children.push(qt)}else ph(D,Rr)}}}}function KD(t){if(!t||t.length===0)return[["rect"]];if(U(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!U(t[r])){e=!1;break}if(e)return KD([t]);for(var n=[],r=0;r<t.length;++r)U(t[r])?n.push([t[r]]):n.push(t[r]);return n}function ZD(t){if(!t||t.length===0)return[[0,0]];if(ie(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!ie(t[n])){r=!1;break}if(r)return ZD([t]);for(var i=[],n=0;n<t.length;++n)if(ie(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=z(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function BR(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ie(t)){var e=Math.ceil(t);return[e,e]}var r=z(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function OR(t){return z(t,function(e){return QD(e)})}function QD(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var JD=Ho(RR);function RR(t,e){t.eachRawSeries(function(r){if(!t.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=wl(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=wl(i,e)}}})}var NR="6.1.0",kR={zrender:"6.1.0"},zR=1,UR=800,VR=900,HR=920,GR=1e3,WR=2e3,eA=5e3,lA=1e3,$R=1100,E0=2e3,fA=3e3,YR=4e3,Sh=4500,XR=4600,qR=5e3,jR=6e3,cA=7e3,w0={PROCESSOR:{SERIES_FILTER:UR,AXIS_STATISTICS:HR,FILTER:GR,STATISTIC:eA,STATISTICS:eA},VISUAL:{LAYOUT:lA,PROGRESSIVE_LAYOUT:$R,GLOBAL:E0,CHART:fA,POST_CHART_LAYOUT:XR,COMPONENT:YR,BRUSH:qR,CHART_ITEM:Sh,ARIA:jR,DECAL:cA}},st="__flagInMainProcess",hh="__mainProcessVersion",xt="__pendingUpdate",p0="__needsUpdateStatus",tA=/^[a-zA-Z0-9_]+$/,h0="__connectUpdateStatus",rA=0,KR=1,ZR=2;function pA(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return dA(this,t,e)}}function hA(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return dA(this,t,e)}}function dA(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Nt.prototype[e].apply(t,r)}var vA=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Nt),mA=vA.prototype;mA.on=hA("on");mA.off=hA("off");var ao,d0,dh,Zn,vh,v0,m0,ks,zs,nA,iA,g0,aA,mh,oA,gA,Or,sA,Us,gh=(function(t){P(e,t);function e(r,n,i){var a=t.call(this,new CD)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",u=!1;if(a[hh]=1,0)var l;i.ssr&&Qg(function(h){var d=de(h),v=d.dataIndex;if(v!=null){var m=K();return m.set("series_index",d.seriesIndex),m.set("data_index",v),d.ssrType&&m.set("ssr_type",d.ssrType),m}});var f=a._zr=eh(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:X(i.useDirtyRect,u),useCoarsePointer:X(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Za(fe(f.flush,f),17),a._updateTheme(n),a._locale=mb(i.locale||Lc),a._coordSysMgr=new fs;var c=a._api=oA(a);function p(h,d){return h.__prio-d.__prio}return eo(_h,p),eo(x0,p),a._scheduler=new i0(a,c,x0,_h),a._messageCenter=new vA,a._initEvents(),a.resize=fe(a.resize,a),f.animation.on("frame",a._onframe,a),nA(f,a),iA(f,a),ti(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(sA(this),this[xt]){var a=this[xt].silent;this[st]=!0,Us(this);try{ao(this),Zn.update.call(this,null,this[xt].updateParams)}catch(u){throw this[st]=!1,this[xt]=null,u}this._zr.flush(),this[st]=!1,this[xt]=null,ks.call(this,a),zs.call(this,a)}else if(r.unfinished){var o=zR;do{r.unfinished=!1;var s=lt.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),v0(this,n),r.performVisualTasks(n),mh(this,this._model,i,"remain",{}),o-=lt.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[st]){if(this._disposed){this.id;return}var a,o,s;if(W(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[st]=!0,Us(this),!this._model||n){var u=new nD(this._api),l=this._theme,f=this._model=new ih;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},S0);var c={seriesTransition:s,optionChanged:!0};if(i)this[xt]={silent:a,updateParams:c},this[st]=!1,this.getZr().wakeUp();else{try{ao(this),Zn.update.call(this,null,c)}catch(p){throw this[xt]=null,this[st]=!1,p}this._ssr||this._zr.flush(),this[xt]=null,this[st]=!1,ks.call(this,a),zs.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[st]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[xt]&&(a==null&&(a=this[xt].silent),o=this[xt].updateParams,this[xt]=null),this[st]=!0,Us(this);try{this._updateTheme(r),i.setTheme(this._theme),ao(this),Zn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[st]=!1,s}this[st]=!1,ks.call(this,a),zs.call(this,a)}}},e.prototype._updateTheme=function(r){U(r)&&(r=yA[r]),r&&(r=J(r),r&&ah(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ce.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.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()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return w(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;w(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 w(a,function(u){u.group.ignore=!1}),s},e.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(xh[i]){var u=s,l=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();w(oo,function(_,x){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(J(r)),b=_.getDom().getBoundingClientRect();u=a(b.left,u),l=a(b.top,l),f=o(b.right,f),c=o(b.bottom,c),p.push({dom:S,left:b.left,top:b.top})}}),u*=h,l*=h,f*=h,c*=h;var d=f-u,v=c-l,m=lt.createCanvas(),g=eh(m,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:v}),n){var y="";return w(p,function(_){var x=_.left-u,S=_.top-l;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Ee({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),w(p,function(_){var x=new je({style:{x:_.left*h-u,y:_.top*h-l,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return vh(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return vh(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return vh(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Bf(i,r);return w(o,function(s,u){u.indexOf("Models")>=0&&w(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var c=this._chartsMap[l.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,l))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Bf(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?MD(s,u,n):FD(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;w(QR,function(i){var a=function(o){var s=r.getModel(),u=o.target,l,f=i==="globalout";if(f?l={}:u&&no(u,function(v){var m=de(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return l=g&&g.getDataParams(m.dataIndex,m.dataType,u)||{},!0}else if(m.eventData)return l=N({},m.eventData),!0},!0),l){var c=l.componentType,p=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=l.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=i,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:h,view:d},r.trigger(i,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;w(_0,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),cC(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Sv(this.getDom(),D0,"");var n=this,i=n._api,a=n._model;w(n._componentsViews,function(o){o.dispose(a,i)}),w(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 oo[n.id]},e.prototype.resize=function(r){if(!this[st]){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[xt]&&(a==null&&(a=this[xt].silent),i=!0,this[xt]=null),this[st]=!0,Us(this);try{i&&ao(this),Zn.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(o){throw this[st]=!1,o}this[st]=!1,ks.call(this,a),zs.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(W(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!b0[r]){var i=b0[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=N({},r);return n.type=y0[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(W(n)||(n={silent:!!n}),!!yh[r.type]&&this._model){if(this[st]){this._pendingActions.push(r);return}var i=n.silent;m0.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ce.browser.weChat&&this._throttledZrFlush(),ks.call(this,i),zs.call(this,i)}},e.prototype.updateLabelLayout=function(){yr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.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()},e.internalField=(function(){ao=function(c){$E(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),d0(c,!0),d0(c,!1),p.plan()},d0=function(c,p){for(var h=c._model,d=c._scheduler,v=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<v.length;_++)v[_].__alive=!1;p?h.eachComponent(function(b,E){b!=="series"&&x(E)}):h.eachSeries(x);function x(b){var E=b.__requireNewView;b.__requireNewView=!1;var D="_ec_"+b.id+"_"+b.type,A=!E&&m[D];if(!A){var C=Qt(b.type),T=p?ze.getClass(C.main,C.sub):Pe.getClass(C.sub);A=new T,A.init(h,y),m[D]=A,v.push(A),g.add(A.group)}b.__viewId=A.__id=D,A.__alive=!0,A.__model=b,A.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&d.prepareView(A,b,h,y)}for(var _=0;_<v.length;){var S=v[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),v.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},dh=function(c,p,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){w([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=_S(h,d,v),y=h.excludeSeriesId,_;y!=null&&(_=K(),w(Ge(y),function(S){var b=pr(S,null);b!=null&&_.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(!b)if(Rv(h))if(S instanceof ke)h.type===wi&&!h.notBlur&&!S.get(["emphasis","disabled"])&&US(S,h,c._api);else{var E=Yf(S.mainType,S.componentIndex,h.name,c._api),D=E.focusSelf,A=E.dispatchers;h.type===wi&&D&&!h.notBlur&&Hf(S.mainType,S.componentIndex,c._api),A&&w(A,function(C){h.type===wi?_a(C):xa(C)})}else Xf(h)&&S instanceof ke&&(GS(S,h,c._api),Ov(S),Or(c))},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;b||x(c[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},Zn={prepareAndUpdate:function(c){ao(this),Zn.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){YE(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),yr.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),v0(this,h),m.update(h,d),n(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&v.setDarkMode(_),g0(this,h,d,c,p),yr.trigger("afterupdate",h,d)}},updateTransform:function(c){var p=this,h=p._model,d=p._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==zf){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,d,c);x&&x.update&&v.push(_)}else v.push(_)}});var m=K();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,d,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),mh(p,h,d,c,{},m),yr.trigger("afterupdate",h,d)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),Pe.markUpdateMethod(c,"updateView"),n(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),g0(this,p,this._api,c,{}),yr.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),Pe.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=p.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,p._api,c)}}),h.eachSeries(function(d){var v=p._chartsMap[d.__viewId];v.updateVisual(d,h,p._api,c)}),yr.trigger("afterupdate",h,this._api))},updateLayout:function(c){Zn.update.call(this,c)}};function r(c,p,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=Bf(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,d,v))!=null)return y}}vh=r,v0=function(c,p){var h=c._chartsMap,d=c._scheduler;p.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},m0=function(c,p){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=yh[v],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Qt(y[0]);this[st]=!0,Us(this);var S=[c],b=!1;c.batch&&(b=!0,S=z(c.batch,function(B){return B=ee(N({},B),c),B.batch=null,B}));var E=[],D,A=[],C=g.nonRefinedEventType,T=Xf(c),F=Rv(c);if(F&&Bv(this._api),w(S,function(B){var R=g.action(B,d,h._api);if(g.refineEvent?A.push(R):D=R,D=D||N({},B),D.type=C,E.push(D),F){var O=Du(c),V=O.queryOptionMap,G=O.mainTypeSpecified,H=G?V.keys()[0]:"series";dh(h,_,B,H),Or(h)}else T?(dh(h,_,B,"series"),Or(h)):x&&dh(h,_,B,x.main,x.sub)}),_!=="none"&&!F&&!T&&!x)try{this[xt]?(ao(this),Zn.update.call(this,c),this[xt]=null):Zn[_].call(this,c)}catch(B){throw this[st]=!1,B}if(b?D={type:C,escapeConnect:m,batch:E}:D=E[0],this[st]=!1,!p){var M=void 0;if(g.refineEvent){var I=g.refineEvent(A,c,d,this._api).eventContent;Ue(W(I)),M=ee({type:g.refinedEventType},I),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var L=this._messageCenter;L.trigger(D.type,D),M&&L.trigger(M.type,M)}},ks=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();m0.call(this,h,c)}},zs=function(c){!c&&this.trigger("updated")},nA=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[xt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},iA=function(c,p){c.on("mouseover",function(h){var d=h.target,v=no(d,Bu);v&&(VS(v,h,p._api),Or(p))}).on("mouseout",function(h){var d=h.target,v=no(d,Bu);v&&(HS(v,h,p._api),Or(p))}).on("click",function(h){var d=h.target,v=no(d,function(y){return de(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=de(v);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function i(c){var p=[],h=[],d=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),d){var v=p.concat(h),m,g;eo(v,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),w(v,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}g0=function(c,p,h,d,v){i(p),aA(c,p,h,d,v),w(c._chartsViews,function(m){m.__alive=!1}),mh(c,p,h,d,v),w(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},aA=function(c,p,h,d,v,m){w(m||c._componentsViews,function(g){var y=g.__model;l(y,g),g.render(y,p,h,d),u(y,g),f(y,g)})},mh=function(c,p,h,d,v,m){var g=c._scheduler;v=N(v||{},{updatedSeries:p.getSeries()}),yr.trigger("series:beforeupdate",p,h,v);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,d),l(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),Ov(_)}),g.unfinished=y||g.unfinished,yr.trigger("series:layoutlabels",p,h,v),yr.trigger("series:transition",p,h,v),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];u(_,x),f(_,x)}),o(c,p),yr.trigger("series:afterupdate",p,h,v)},Or=function(c){c[p0]=!0,c.getZr().wakeUp()},Us=function(c){c[hh]=(c[hh]+1)%1e6},sA=function(c){c[p0]&&(c.getZr().storage.traverse(function(p){Da(p)||a(p)}),c[p0]=!1)};function a(c){for(var p=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||p.push(v)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Fu&&c.states.emphasis?p.push("emphasis"):c.hoverState===Mu&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>X(p.get("hoverLayerThreshold"),rh.hoverLayerThreshold)&&!ce.node&&!ce.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Vu&&(x.hoverLayer=m?qv:Xv)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function u(c,p){if(!c.preventAutoZ){var h=rm(c);p.eachRendered(function(d){return nm(d,h.z,h.zlevel),!0})}}function l(c,p){p.eachRendered(function(h){if(!Da(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Da(g))return;if(g instanceof ae&&XS(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}oA=function(c){return new((function(p){P(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){_a(d,v),Or(c)},h.prototype.leaveEmphasis=function(d,v){xa(d,v),Or(c)},h.prototype.enterBlur=function(d){kS(d),Or(c)},h.prototype.leaveBlur=function(d){Iv(d),Or(c)},h.prototype.enterSelect=function(d){Pv(d),Or(c)},h.prototype.leaveSelect=function(d){Lv(d),Or(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[hh]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Vf))(c)},gA=function(c){function p(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[h0]=d}}w(y0,function(h,d){c._messageCenter.on(d,function(v){if(xh[c.group]&&c[h0]!==rA){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];w(oo,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,rA),w(g,function(y){y[h0]!==KR&&y.dispatchAction(m)}),p(g,ZR)}})})}})(),e})(Nt),C0=gh.prototype;C0.on=pA("on");C0.off=pA("off");C0.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var QR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var yh={},y0={},_0={},x0=[],S0=[],_h=[],yA={},b0={},oo={},xh={},JR=+new Date-0,eN=+new Date-0,D0="_echarts_instance_";function tN(t,e,r){var n=!(r&&r.ssr);if(n){var i=A0(t);if(i)return i}var a=new gh(t,e,r);return a.id="ec_"+JR++,oo[a.id]=a,n&&Sv(t,D0,a.id),gA(a),yr.trigger("afterinit",a),a}function rN(t){if(k(t)){var e=t;t=null,w(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+eN++,w(e,function(r){r.group=t})}return xh[t]=!0,t}function _A(t){xh[t]=!1}var nN=_A;function iN(t){U(t)?t=oo[t]:t instanceof gh||(t=A0(t)),t instanceof gh&&!t.isDisposed()&&t.dispose()}function A0(t){return oo[xS(t,D0)]}function aN(t){return oo[t]}function T0(t,e){yA[t]=e}function bh(t){ue(S0,t)<0&&S0.push(t)}function Eh(t,e){L0(x0,t,e,WR)}function M0(t){Cl("afterinit",t)}function F0(t){Cl("afterupdate",t)}function Cl(t,e){yr.on(t,e)}function zi(t,e,r){var n,i,a,o,s;Y(e)&&(r=e,e=""),W(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function u(f){return f.toLowerCase()}i=u(i||n);var l=a?u(n):i;yh[n]||(Ue(tA.test(n)&&tA.test(i)),a&&Ue(i!==n),yh[n]={actionType:n,refinedEventType:i,nonRefinedEventType:l,update:o,action:r,refineEvent:a},_0[i]=1,a&&s&&(_0[l]=1),y0[l]=n)}function I0(t,e){fs.register(t,e)}function oN(t){var e=fs.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function sN(t,e){uh(t,e)}function P0(t,e){L0(_h,t,e,lA,"layout",!0)}function Qn(t,e){L0(_h,t,e,fA,"visual",!0)}var uA=[];function L0(t,e,r,n,i,a){if((Y(e)||W(e))&&(r=e,e=n),!(ue(uA,r)>=0)){uA.push(r);var o=i0.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function wh(t,e){b0[t]=e}function uN(t){$l({createCanvas:t})}function B0(t,e,r){var n=o0("registerMap");n&&n(t,e,r)}function lN(t){var e=o0("getMap");return e&&e(t)}var O0=Bb;Qn(E0,vD);Qn(Sh,mD);Qn(Sh,gD);Qn(E0,AD);Qn(Sh,TD);Qn(cA,JD);bh(ah);Eh(VR,fD);wh("default",n0);zi({type:wi,event:wi,update:wi},Be);zi({type:Iu,event:Iu,update:Iu},Be);zi({type:Pu,event:Wf,update:Pu,action:Be,refineEvent:R0,publishNonRefinedEvent:!0});zi({type:Gf,event:Wf,update:Gf,action:Be,refineEvent:R0,publishNonRefinedEvent:!0});zi({type:Lu,event:Wf,update:Lu,action:Be,refineEvent:R0,publishNonRefinedEvent:!0});function R0(t,e,r,n){return{eventContent:{selected:WS(r),isFromClick:e.isFromClick||!1}}}T0("default",{});T0("dark",wD);var fN={};var xA=[],cN={registerPreprocessor:bh,registerProcessor:Eh,registerPostInit:M0,registerPostUpdate:F0,registerUpdateLifecycle:Cl,registerAction:zi,registerCoordinateSystem:I0,registerLayout:P0,registerVisual:Qn,registerTransform:O0,registerLoading:wh,registerMap:B0,registerImpl:PD,PRIORITY:w0,ComponentModel:xe,ComponentView:ze,SeriesModel:ke,ChartView:Pe,registerComponentModel:function(t){xe.registerClass(t)},registerComponentView:function(t){ze.registerClass(t)},registerSeriesModel:function(t){ke.registerClass(t)},registerChartView:function(t){Pe.registerClass(t)},registerCustomSeries:function(t,e){uh(t,e)},registerSubTypeDefaulter:function(t,e){xe.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Kg(t,e)}};function ut(t){if(k(t)){w(t,function(e){ut(e)});return}ue(xA,t)>=0||(xA.push(t),Y(t)&&(t={install:t}),t.install(cN))}var pN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return _n(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:"clone"}},e})(ke),SA=pN;var bA=4,hN=(function(){function t(){}return t})(),dN=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new hN},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,u=r.getContext?r.getContext():r,l=u&&a[0]<bA,f=this.softClipShape,c;if(l){this._ctx=u;return}for(this._ctx=null,c=this._off;c<i.length;){var p=i[c++],h=i[c++];isNaN(p)||isNaN(h)||f&&!f.contain(p,h)||(s.x=p-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var u=n[s++],l=n[s++];isNaN(u)||isNaN(l)||o&&!o.contain(u,l)||a.fillRect(u-i[0]/2,l-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),u=Math.max(o[1],4),l=a.length/2-1;l>=0;l--){var f=l*2,c=a[f]-s/2,p=a[f+1]-u/2;if(r>=c&&n>=p&&r<=c+s&&n<=p+u)return l}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],u=1/0,l=1/0,f=-1/0,c=-1/0,p=0;p<i.length;){var h=i[p++],d=i[p++];u=Math.min(h,u),f=Math.max(h,f),l=Math.min(d,l),c=Math.max(d,c)}r=this._rect=new re(u-o/2,l-s/2,f-u+o,c-l+s)}return r},e})(ae),vN=(function(){function t(){this.group=new _e}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n,i){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var u=s.length,l=new Float32Array(u+o.length);l.set(s),l.set(o,u),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,r,i)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new dN({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=ot(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<bA;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),u=s&&s.fill;u&&e.setColor(u);var l=de(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){l.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(l.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),EA=vN;var mN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,N0(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),Nf(n),N0(n)),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),this._finished){var o=Ya("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(N0(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new EA:new up,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(Pe);function N0(t){return{clipShape:nE(t)}}var wA=mN;var Vs=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var Ch=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Et).models[0]},e.type="cartesian2dAxis",e})(xe);nt(Ch,Vs);var CA={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:"auto",onZeroAxisIndex:null,lineStyle:{color:$.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},gN=me({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},CA),k0=me({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},CA),yN=me({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},k0),_N=ee({logBase:10},k0),Dh={category:gN,value:k0,time:yN,log:_N};function Ah(t,e,r,n){w(bp,function(i,a){var o=me(me({},Dh[a],!0),n,!0),s=(function(u){P(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,c){var p=Ai(this),h=p?bn(f):{},d=c.getTheme();me(f,d.get(a+"Axis")),me(f,this.getDefaultOption()),f.type=DA(f),p&&mr(f,h,p)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=tl.createByAxisModel(this))},l.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(f){var c=qa();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},l.type=e+"Axis."+a,l.defaultOption=o,l})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",DA)}function DA(t){return t.type||(t.data?"category":"value")}var xN=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Fe(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),AA=xN;var Dl=["x","y"];function TA(t){return(t.type==="interval"||t.type==="time")&&!ka(t)}var SN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Lr,r.dimensions=Dl,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!TA(r)||!TA(n))){var i=Ga(r,null),a=Ga(n,null),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,c=(s[1]-o[1])/l,p=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,p,h];this._invTransform=lr([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.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]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new re(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.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 et(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},e.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},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return et(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},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.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 re(a,o,s,u)},e})(AA),MA=SN;function Th(t,e){var r=t.scale,n=t.model,i=zp(r,n,n.ecModel,t,null),a=wn(r),o=wn(e)?e.intervalStub:e,s=a?r.intervalStub:r,u=r.base,l=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=l.length-1,p,h,d;if(c===1)p=h=0,d=1;else if(c===2){var v=Oe(l[0].value-l[1].value),m=Oe(l[1].value-l[2].value);p=h=0,v===m?d=2:(d=1,v<m?p=v/m:h=m/v)}else{var g=o.getConfig().interval;p=(1-(l[0].value-f[0].value)/g)%1,h=(1-(f[c].value-l[c].value)/g)%1,d=c-(p?1:0)-(h?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],x=[i.fixMM[0]||_,i.fixMM[1]||_],S=r.getExtent(),b=s.getExtent(),E=gp(b,x),D,A,C,T,F,M;function I(q){for(var Q=50,j=0;j<Q&&!q();j++)C=a?C*ve(u,2):lE(C),T=Zr(C)}function L(){D=ye(M-C*p,T)}function B(){A=ye(F+C*h,T)}function R(){M=p?ye(D+C*p,T):D}function O(){F=h?ye(A-C*h,T):A}if(x[0]&&x[1]){D=E[0],A=E[1],C=(A-D)/(d+p+h);var V=t.getExtent(),G=Oe(V[1]-V[0]);T=oS([A,D],G,.5/d),R(),O(),it(T)&&(C=ye(C,T))}else{var H=E[1]-E[0];C=a?ve(Ro(H),1):kn(H/d,mv),T=Zr(C),x[0]?(D=E[0],I(function(){if(R(),F=ye(M+C*d,T),B(),A>=E[1])return!0})):x[1]?(A=E[1],I(function(){if(O(),M=ye(F-C*d,T),L(),D<=E[0])return!0})):I(function(){M=ye(yi(E[0]/C)*C,T),F=ye(Fr(E[1]/C)*C,T);var q=Jt((F-M)/C);if(q<=d){var Q=d-q,j=void 0,oe=i.incl0||a;if(oe&&E[0]===0)j=[0,Q];else if(oe&&E[1]===0)j=[Q,0];else{var ge=Fr(Q/2);j=Q%2===0?[ge,ge]:D+A<E[0]+E[1]?[ge,ge+1]:[ge+1,ge]}if(M=ye(M-C*j[0],T),F=ye(F+C*j[1],T),L(),B(),D<=E[0]&&A>=E[1])return!0}})}Ap(r,x,b,[D,A],S,{interval:C,intervalCount:d,intervalPrecision:T,niceExtent:[M,F]})}function FA(t,e){var r=wn(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=gp(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var u=r?EN(n,e):bN(n,e),l=u.intervalPrecision,f=u.interval,c=e.userInterval;c!=null&&(u.interval=c,u.intervalPrecision=Zr(c)),i[0]||(s[0]=ye(Fr(s[0]/f)*f,l)),i[1]||(s[1]=ye(yi(s[1]/f)*f,l)),c!=null&&(u.niceExtent=s.slice()),Ap(t,i,o,s,a,u)}function bN(t,e){var r=Wa(e.splitNumber,5),n=Es(t),i=e.minInterval,a=e.maxInterval,o=kn(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Zr(o),u=t.getExtent(),l=[ye(yi(u[0]/o)*o,s),ye(Fr(u[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function EN(t,e){var r=Wa(e.splitNumber,10),n=t.getExtent(),i=Es(t),a=ve(Ro(i),1),o=r/i*a;o<=.5&&(a*=10);var s=Zr(a),u=[ye(yi(n[0]/a)*a,s),ye(Fr(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:u}}function z0(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;U0(e,r,n,i,null)}function U0(t,e,r,n,i){var a=zp(t,e,n,r,i),o=ws(t)||Cs(t);wN(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&Bw(r,t,a,n)}function wN(t,e){CN[t.type](t,e)}var CN={interval:FA,log:FA,time:gE,ordinal:Be};var IA=[[3,1],[0,2]],DN=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Dl,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;w(this._axesList,function(o){kp(o,Np);var s=o.scale;_t(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=ne(o),u=[],l=s.length-1;l>=0;l--){var f=o[+s[l]];f.__alignTo?u.push(f):z0(f)}w(u,function(c){TN(c,c.__alignTo)?z0(c):Th(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};w(n.x,function(o){PA(n,"y",o,a)}),w(n.y,function(o){PA(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Kr(e,r),a=this._rect=Bt(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,u=e.get("containLabel");if(V0(o,a),!n){var l=FN(a,s,o,u,r),f=void 0;if(u)RA?(RA(this._axesList,a),V0(o,a)):f=NA(a.clone(),"axisLabel",null,a,o,l,i);else{var c=IN(e,a,i),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;p&&(f=NA(p,h,d,a,o,l,i))}kA(a,o,sr.determine,null,f,i),w(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}W(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Et).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Et).models[0],a=e.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,ue(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}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,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,w(s.x,function(f,c){w(s.y,function(p,h){var d="x"+c+"y"+h,v=new MA(d);v.master=i,v.model=e,i._coordsMap[d]=v,i._coordsList.push(v),v.addAxis(f),v.addAxis(p)})}),BA(s.x),BA(s.y);function l(f){return function(c,p){if(AN(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=wp(c),v=new sw(f,Cp(c,d,!0),[0,0],d,h);v.onBand=Tp(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=p,a._axesList.push(v),s[f][p]=v,u[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return w(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);ue(r,a)<0&&r.push(a),ue(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),w(o._axesList,function(s){Iw(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;ub({targetModel:i,coordSysType:Lr,coordSysProvider:s});function s(){var u=ww(i),l=u.xAxisModel,f=u.yAxisModel;a=l.axis,o=f.axis;var c=l.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(l.componentIndex,f.componentIndex)}a&&o&&(ol(a,i,Lr),ol(o,i,Lr))},this),n},t.dimensions=Dl,t.dimIdxMap=Yu(Dl),t})();function AN(t,e){return t.getCoordSysModel()===e}function PA(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)LA(s,i[u])&&(a=i[u]);else for(var l in i)if(Ie(i,l)&&LA(s,i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function LA(t,e){if(!e)return!1;var r=e.scale,n=CE(r,0,!1),i=e&&e.type!=="category"&&e.type!=="time"&&n!==Ep;return i&&t==="auto"&&AE(e)&&(i=!1),i}function BA(t){for(var e=ne(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];vp(a.scale)&&og(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&w(n,function(o){o.__alignTo=r})}function TN(t,e){return ka(t.scale)||ka(e.scale)||e.scale.getTicks().length<2}function MN(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function V0(t,e){w(t.x,function(r){return OA(r,e.x,e.width)}),w(t.y,function(r){return OA(r,e.y,e.height)})}function OA(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),MN(t,e)}var RA;function NA(t,e,r,n,i,a,o){kA(n,i,sr.estimate,e,!1,o);var s=[0,0,0,0];l(0),l(1),f(n,0,NaN),f(n,1,NaN);var u=Zs(s,function(p){return p>0})==null;return Jo(n,s,!0,!0,r),V0(i,n),u;function l(p){w(i[yn[p]],function(h){if($a(h.model)){var d=a.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(Yn(h.scale,Ri(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=d.nameLayout;if(_){var y=Li(d.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,d){var v=t[yn[h]]-p[yn[h]],m=p[Ci[h]]+p[yn[h]]-(t[Ci[h]]+t[yn[h]]);v=c(v,1-d),m=c(m,d);var g=IA[h][0],y=IA[h][1];s[g]=ve(s[g],v),s[y]=ve(s[y],m)}function c(p,h){return p>0&&!Fn(h)&&h>1e-4&&(p/=h),p}}function FN(t,e,r,n,i){var a=new _g(PN);return w(r,function(o){return w(o,function(s){if($a(s.model)){var u=!n;s.axisBuilder=Cw(t,e,s.model,i,a,u)}})}),a}function kA(t,e,r,n,i,a){var o=r===sr.determine;w(e,function(l){return w(l,function(f){$a(f.model)&&(Dw(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[yn[1-l]]=t[Ci[l]]<=a.refContainer[Ci[l]]*.5?0:1-l===1?2:1}w(e,function(l,f){return w(l,function(c){$a(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function IN(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=Bt(t.get("outerBounds",!0)||wg,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ue(["all","axisLabel"],a)<0?o="all":o=a;var s=[Lf(X(t.get("outerBoundsClampWidth",!0),pl[0]),e.width),Lf(X(t.get("outerBoundsClampHeight",!0),pl[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var PN=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";xg(t,e,r,n,i,a),Li(t.nameLocation)||w(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Sg(s.labelInfoList,s.dirVec,n,i)})},zA=DN;function UA(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return LN(r,t,e),r.seriesInvolved&&ON(r,t),r}function LN(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];w(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Hs(s.model),l=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=s;var f=s.model,c=f.getModel("tooltip",n);if(w(s.getAxes(),Ce(v,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&w(d.baseAxes,Ce(v,h?"cross":!0,p)),h&&w(d.otherAxes,Ce(v,"cross",!1))}function v(m,g,y){var _=y.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!m&&!G0(_))){g==null&&(g=_.get("triggerTooltip")),_=m?BN(y,c,i,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),E=Hs(y.model),D=g||S||y.type==="category",A=t.axesInfo[E]={key:E,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:D,snap:S,useHandle:G0(_),seriesModels:[],linkGroup:null};l[E]=A,t.seriesInvolved=t.seriesInvolved||D;var C=RN(a,y);if(C!=null){var T=o[C]||(o[C]={axesInfo:{}});T.axesInfo[E]=A,T.mapper=a[C].mapper,A.linkGroup=T}}}})}function BN(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};w(s,function(p){u[p]=J(o.get(p))}),u.snap=t.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 c=u.lineStyle=o.get("crossStyle");c&&ee(l,c.textStyle)}}return t.model.getModel("axisPointer",new Ae(u,r,n))}function ON(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||w(t.coordSysAxesInfo[Hs(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 RN(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(H0(a[n+"AxisId"],r.id)||H0(a[n+"AxisIndex"],r.componentIndex)||H0(a[n+"AxisName"],r.name))return i}}function H0(t,e){return t==="all"||k(t)&&ue(t,e)>=0||t===e}function VA(t){var e=Mh(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=G0(r);a==null&&(i.status=s?"show":"hide");var u=n.getExtent();(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Mh(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Hs(t)]}function HA(t){var e=Mh(t);return e&&e.axisPointerModel}function G0(t){return!!t.get(["handle","show"])}function Hs(t){return t.type+"||"+t.id}var GA={},NN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&VA(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=HA(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){GA[r]=n},e.getAxisPointerClass=function(r){return r&&GA[r]},e.type="axis",e})(ze),Fh=NN;var $0=le();function WA(t,e,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,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,c=$0(t).splitAreaColors,p=K(),h=0;if(c)for(var d=0;d<l.length;d++){var v=c.get(l[d].tickValue);if(v!=null){h=(v+(f-1)*d)%f;break}}var m=i.toGlobalCoord(l[0].coord),g=o.getAreaStyle();s=k(s)?s:[s];for(var d=1;d<l.length;d++){var y=i.toGlobalCoord(l[d].coord),_=void 0,x=void 0,S=void 0,b=void 0;i.isHorizontal()?(_=m,x=u.y,S=y-_,b=u.height,m=_+S):(_=u.x,x=m,S=u.width,b=y-x,m=x+b);var E=l[d-1].tickValue;E!=null&&p.set(E,h),e.add(new Ee({anid:E!=null?"area_"+E:null,shape:{x:_,y:x,width:S,height:b},style:ee({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}$0(t).splitAreaColors=p}}}function $A(t){$0(t).splitAreaColors=null}var kN=["splitArea","splitLine","minorSplitLine","breakArea"],YA=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _e,this.group.add(this._axisGroup),!!$a(r)){this._axisGroup.add(r.axis.axisBuilder.group),w(kN,function(u){r.get([u,"show"])&&zN[u](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Jv(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){$A(this)},e.type="cartesianAxis",e})(Fh),zN={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=k(u)?u:[u];for(var c=n.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!l||y===d.length-1&&!f)){var x=d[y].tickValue;p?(v[0]=_,v[1]=c.y,m[0]=_,m[1]=c.y+c.height):(v[0]=c.x,v[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%u.length,b=new Pt({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:ee({stroke:u[S]},g),silent:!0});Aa(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=n.coordinateSystem.getRect(),l=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var v=0;v<f[d].length;v++){var m=a.toGlobalCoord(f[d][v].coord);l?(c[0]=m,c[1]=u.y,p[0]=m,p[1]=u.y+u.height):(c[0]=u.x,c[1]=m,p[0]=u.x+u.width,p[1]=m);var g=new Pt({anid:"minor_line_"+f[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});Aa(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,n,i){WA(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=qa(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},Y0=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(YA);var XA=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Y0.type,r}return e.type="yAxis",e})(YA);var UN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ee({shape:r.coordinateSystem.getRect(),style:ee({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(ze),qA={offset:0};function Ih(t){t.registerComponentView(UN),t.registerComponentModel(Uw),t.registerCoordinateSystem("cartesian2d",zA),Ah(t,"x",Ch,qA),Ah(t,"y",Ch,qA),t.registerComponentView(Y0),t.registerComponentView(XA),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function X0(t){ut(Ih),t.registerSeriesModel(SA),t.registerChartView(wA),t.registerLayout(Ya("scatter"))}function q0(t){var e=t.polar;if(e){k(e)||(e=[e]);var r=[];w(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],k(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}w(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var so="radar",VN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Os(fe(this.getData,this),fe(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return jn(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),u=this.getData().getName(r),l=u===""?this.name:u,f=Jc(this,r);return En("section",{header:l,sortBlocks:!0,blocks:z(s,function(c){var p=a.get(a.mapDimension(c.dim),r);return En("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:p,sortParam:p})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(z(i.dimensions,function(l){return n.mapDimension(l)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var u=i.getIndicatorAxes();return i.coordToPoint(u[o].dataToCoord(a[o]),o)}}},e.type="series."+so,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(ke),jA=VN;var HN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=so,r}return e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),u=this._data;function l(p,h){var d=p.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var v=ip(p.getItemVisual(h,"symbolSize")),m=ot(d,-1,-1,2,2),g=p.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),m}}function f(p,h,d,v,m,g){d.removeAll();for(var y=0;y<h.length-1;y++){var _=l(v,m);_&&(_.__dimIdx=y,p[y]?(_.setPosition(p[y]),Ne[g?"initProps":"updateProps"](_,{x:h[y][0],y:h[y][1]},r,m)):_.setPosition(h[y]),d.add(_))}}function c(p){return z(p,function(h){return[a.cx,a.cy]})}s.diff(u).add(function(p){var h=s.getItemLayout(p);if(h){var d=new Yr,v=new Gt,m={shape:{points:h}};d.shape.points=c(h),v.shape.points=c(h),Me(d,m,r,p),Me(v,m,r,p);var g=new _e,y=new _e;g.add(v),g.add(d),g.add(y),f(v.shape.points,h,y,s,p,!0),s.setItemGraphicEl(p,g)}}).update(function(p,h){var d=u.getItemGraphicEl(h),v=d.childAt(0),m=d.childAt(1),g=d.childAt(2),y={shape:{points:s.getItemLayout(p)}};y.shape.points&&(f(v.shape.points,y.shape.points,g,s,p,!1),Xr(m),Xr(v),we(v,y,r),we(m,y,r),s.setItemGraphicEl(p,d))}).remove(function(p){o.remove(u.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,h){var d=s.getItemModel(h),v=p.childAt(0),m=p.childAt(1),g=p.childAt(2),y=s.getItemVisual(h,"style"),_=y.fill;o.add(p),v.useStyle(ee(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Ht(v,d,"lineStyle"),Ht(m,d,"areaStyle");var x=d.getModel("areaStyle"),S=x.isEmpty()&&x.parentModel.isEmpty();m.ignore=S,w(["emphasis","select","blur"],function(E){var D=d.getModel([E,"areaStyle"]),A=D.isEmpty()&&D.parentModel.isEmpty();m.ensureState(E).ignore=A&&S;var C=d.getModel([E,"lineStyle"]).getLineStyle();v.ensureState(E).style=C;var T=D.getAreaStyle();m.ensureState(E).style=T;var F=d.getModel([E,"itemStyle"]).getItemStyle();g.eachChild(function(M){M.ensureState(E).style=J(F)})}),m.useStyle(ee(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var b=d.getModel("emphasis");g.eachChild(function(E){if(E instanceof je){var D=E.style;E.useStyle(N({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},y))}else E.useStyle(y),E.setColor(_),E.style.strokeNoScale=!0;var A=s.getStore().get(s.getDimensionIndex(E.__dimIdx),h);(A==null||isNaN(A))&&(A=""),rr(E,nr(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:E.__dimIdx,defaultText:A,inheritColor:_,defaultOpacity:y.opacity})}),Mt(p,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=so,e})(Pe),KA=HN;var Al=Dh.value,Gs="radar",j0=Gs,ZA=Gs,K0=5;function Ph(t,e){return ee({show:e},t)}var GN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("clockwise"),a=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),u=this.get("axisLabel"),l=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),p=this.get("axisNameGap"),h=this.get("triggerEvent"),d=z(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var m=l;v.color!=null&&(m=ee({color:v.color},l));var g=me(J(v),{boundaryGap:r,splitNumber:n,clockwise:i,scale:a,axisLine:o,axisTick:s,axisLabel:u,name:v.text,showName:f,nameLocation:"end",nameGap:p,nameTextStyle:m,triggerEvent:h},!1);if(U(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else Y(c)&&(g.name=c(g.name,g));var _=new Ae(g,null,this.ecModel);return nt(_,Vs.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=xn("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=j0,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:K0,axisNameGap:15,scale:!1,shape:"polygon",axisLine:me({lineStyle:{color:$.color.neutral20}},Al.axisLine),axisLabel:Ph(Al.axisLabel,!1),axisTick:Ph(Al.axisTick,!1),splitLine:Ph(Al.splitLine,!0),splitArea:Ph(Al.splitArea,!0),indicator:[]},e})(xe),QA=GN;var WN=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r,i),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,n){var i=r.coordinateSystem,a=i.getIndicatorAxes(),o=z(a,function(s){var u=s.model.get("showName")?s.name:"",l=new Ps(s.model,n,{axisName:u,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),u=o.getModel("lineStyle"),l=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),p=u.get("color"),h=l.get("color"),d=k(p)?p:[p],v=k(h)?h:[h],m=[],g=[];function y(L,B,R){var O=R%B.length;return L[O]=L[O]||[],O}if(a==="circle")for(var _=i[0].getTicksCoords(),x=n.cx,S=n.cy,b=0;b<_.length;b++){if(f){var E=y(m,d,b);m[E].push(new Hn({shape:{cx:x,cy:S,r:_[b].coord}}))}if(c&&b<_.length-1){var E=y(g,v,b);g[E].push(new ba({shape:{cx:x,cy:S,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var D,A=z(i,function(L,B){var R=L.getTicksCoords();return D=D==null?R.length-1:Math.min(R.length-1,D),z(R,function(O){return n.coordToPoint(O.coord,B)})}),C=[],b=0;b<=D;b++){for(var T=[],F=0;F<i.length;F++)T.push(A[F][b]);if(T[0]&&T.push(T[0].slice()),f){var E=y(m,d,b);m[E].push(new Gt({shape:{points:T}}))}if(c&&C){var E=y(g,v,b-1);g[E].push(new Yr({shape:{points:T.concat(C)}}))}C=T.slice().reverse()}var M=u.getLineStyle(),I=l.getAreaStyle();w(g,function(L,B){this.group.add(Qo(L,{style:ee({stroke:"none",fill:v[B%v.length]},I),silent:!0}))},this),w(m,function(L,B){this.group.add(Qo(L,{style:ee({fill:"none",stroke:d[B%d.length]},M),silent:!0}))},this)},e.type="radar",e})(ze),JA=WN;var $N=(function(t){P(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e})(Fs),eT=$N;var YN=(function(){function t(e,r,n){this.type=Gs,this.dimensions=[],this._model=e,this._indicatorAxes=z(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new eT(o,new Cn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,u=-1,l=0;l<this._indicatorAxes.length;l++){var f=this._indicatorAxes[l],c=Math.abs(a-f.angle);c<o&&(s=f,u=l,o=c)}return[u,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,r){var n=Kr(e,r).refContainer,i=e.get("center"),a=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=te(i[0],n.width)+n.x,this.cy=te(i[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(U(s)||ie(s))&&(s=[0,s]),this.r0=te(s[0],o),this.r=te(s[1],o);var u=a?-1:1;w(this._indicatorAxes,function(l,f){l.setExtent(this.r0,this.r);var c=this.startAngle+u*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},t.prototype.update=function(e,r){var n=this._indicatorAxes,i=this._model,a=Wa(i.get("splitNumber"),K0),o=new Cn;o.setExtent(0,a),o.setConfig({interval:1}),w(n,function(s){kp(s,Np),Th(s,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent(j0,function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType(ZA,function(i){if(i.get("coordinateSystem")===Gs){var a=i.coordinateSystem=n[i.get("radarIndex")||0];a&&w(a.getIndicatorAxes(),function(o){ol(o,i,Gs)})}}),n},t.dimensions=[],t})(),tT=YN;function rT(t){t.registerCoordinateSystem("radar",tT),t.registerComponentModel(QA),t.registerComponentView(JA),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var aT=Vo(so,XN);function XN(t){t.eachSeriesByType(so,function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();w(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(u,l){n[l]=n[l]||[];var f=i.dataToPoint(u,s);n[l][s]=nT(f)?f:iT(i)})}),r.each(function(o){var s=Zs(n[o],function(u){return nT(u)})||iT(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function nT(t){return!isNaN(t[0])&&!isNaN(t[1])}function iT(t){return[t.cx,t.cy]}function Z0(t){ut(rT),t.registerChartView(KA),t.registerSeriesModel(jA),t.registerLayout(aT),t.registerProcessor(Ja("radar")),t.registerPreprocessor(q0)}var qN=1e-8;function oT(t,e){return Math.abs(t-e)<qN}function Q0(t,e,r){var n=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];n+=Tr(i[0],i[1],o[0],o[1],e,r),i=o}var s=t[0];return(!oT(i[0],s[0])||!oT(i[1],s[1]))&&(n+=Tr(i[0],i[1],s[0],s[1],e,r)),n!==0}var KN=[];function J0(t,e){for(var r=0;r<t.length;r++)et(t[r],t[r],e)}function sT(t,e,r,n){for(var i=0;i<t.length;i++){var a=t[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Sr(e,e,a),br(r,r,a))}}function ZN(t){for(var e=0,r=0,n=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var u=t[s][0],l=t[s][1],f=a*l-u*o;e+=f,r+=(a+u)*f,n+=(o+l)*f,a=u,o=l}return e?[r/e/3,n/e/3,e]:[t[0][0]||0,t[0][1]||0]}var uT=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})();var ey=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})();var ty=(function(){function t(e){this.type="linestring",this.points=e}return t})();var lT=(function(t){P(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,u=s&&s.length;u>i&&(n=o,i=u)}if(n)return ZN(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},e.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?sT(s.exterior,i,a,r):w(s.points,function(u){sT(u,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new re(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},e.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var u=s.exterior,l=s.interiors;if(Q0(u,r[0],r[1])){for(var f=0;f<(l?l.length:0);f++)if(Q0(l[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var u=new re(r,n,i,a),l=o.calculateTransform(u),f=this.geometries,c=0;c<f.length;c++){var p=f[c];p.type==="polygon"?(J0(p.exterior,l),w(p.interiors,function(h){J0(h,l)})):w(p.points,function(h){J0(h,l)})}o=this._rect,o.copy(u),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new e(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(uT);var Dte=(function(t){P(e,t);function e(r,n){var i=t.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=xr(KN),o=r;o&&!o.isGeoSVGGraphicRoot;)zr(a,o.getLocalTransform(),a),o=o.parent;return lr(a,a),et(i,i,a),i},e})(uT);function QN(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var n=e.features;return w(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=fT(s,o,r);break;case"Polygon":ry(s,o,r);break;case"MultiLineString":ry(s,o,r);break;case"MultiPolygon":w(s,function(u,l){return ry(u,o[l],r)})}}),e.UTF8Encoding=!1,e}function ry(t,e,r){for(var n=0;n<t.length;n++)t[n]=fT(t[n],e[n],r)}function fT(t,e,r){for(var n=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,u=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),u=u>>1^-(u&1),s+=i,u+=a,i=s,a=u,n.push([s/r,u/r])}return n}function Lh(t,e){return t=QN(t),z(Fe(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new ey(o[0],o.slice(1)));break;case"MultiPolygon":w(i.coordinates,function(u){u[0]&&a.push(new ey(u[0],u.slice(1)))});break;case"LineString":a.push(new ty([i.coordinates]));break;case"MultiLineString":a.push(new ty(i.coordinates))}var s=new lT(n[e||"name"],a,n.cp);return s.properties=n,s})}var JN=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),e6=(function(t){P(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new JN},e.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,u=n.angle,l=n.x-i(u)*s*(s>=o/3?1:2),f=n.y-a(u)*s*(s>=o/3?1:2);u=n.angle-Math.PI/2,r.moveTo(l,f),r.lineTo(n.x+i(u)*s,n.y+a(u)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(u)*s,n.y-a(u)*s),r.lineTo(l,f)},e})(ae),cT=e6;function t6(t,e){var r=t.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=te(r[0],e.getWidth()),s=te(r[1],e.getHeight()),u=te(t.get("radius"),a/2);return{cx:o,cy:s,r:u}}function Bh(t,e){var r=t==null?"":t+"";return e&&(U(e)?r=e.replace("{value}",r):Y(e)&&(r=e(t))),r}var r6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=t6(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,n,i,a,o){var s=this.group,u=r.get("clockwise"),l=-r.get("startAngle")/180*Math.PI,f=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),p=c.get("roundCap"),h=p?Ls:It,d=c.get("show"),v=c.getModel("lineStyle"),m=v.get("width"),g=[l,f];gu(g,!u),l=g[0],f=g[1];for(var y=f-l,_=l,x=[],S=0;d&&S<a.length;S++){var b=Math.min(Math.max(a[S][0],0),1);f=l+y*b;var E=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:u,r0:o.r-m,r:o.r},silent:!0});E.setStyle({fill:a[S][1]}),E.setStyle(v.getLineStyle(["color","width"])),x.push(E),_=f}x.reverse(),w(x,function(A){return s.add(A)});var D=function(A){if(A<=0)return a[0][1];var C;for(C=0;C<a.length;C++)if(a[C][0]>=A&&(C===0?0:a[C-1][0])<A)return a[C][1];return a[C-1][1]};this._renderTicks(r,n,i,D,o,l,f,u,m),this._renderTitleAndDetail(r,n,i,D,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,D,o,l,f,u,m)},e.prototype._renderTicks=function(r,n,i,a,o,s,u,l,f){for(var c=this.group,p=o.cx,h=o.cy,d=o.r,v=+r.get("min"),m=+r.get("max"),g=r.getModel("splitLine"),y=r.getModel("axisTick"),_=r.getModel("axisLabel"),x=r.get("splitNumber"),S=y.get("splitNumber"),b=te(g.get("length"),d),E=te(y.get("length"),d),D=s,A=(u-s)/x,C=A/S,T=g.getModel("lineStyle").getLineStyle(),F=y.getModel("lineStyle").getLineStyle(),M=g.get("distance"),I,L,B=0;B<=x;B++){if(I=Math.cos(D),L=Math.sin(D),g.get("show")){var R=M?M+f:f,O=new Pt({shape:{x1:I*(d-R)+p,y1:L*(d-R)+h,x2:I*(d-b-R)+p,y2:L*(d-b-R)+h},style:T,silent:!0});T.stroke==="auto"&&O.setStyle({stroke:a(B/x)}),c.add(O)}if(_.get("show")){var R=_.get("distance")+M,V=Bh(ye(B*(m-v)/x+v,nS),_.get("formatter")),G=a(B/x),H=I*(d-b-R)+p,q=L*(d-b-R)+h,Q=_.get("rotate"),j=0;Q==="radial"?(j=-D+2*Math.PI,j>Math.PI/2&&(j+=Math.PI)):Q==="tangential"?j=-D-Math.PI/2:ie(Q)&&(j=Q*Math.PI/180),j===0?c.add(new be({style:pt(_,{text:V,x:H,y:q,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:I<-.4?"left":I>.4?"right":"center"},{inheritColor:G}),silent:!0})):c.add(new be({style:pt(_,{text:V,x:H,y:q,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:H,originY:q,rotation:j}))}if(y.get("show")&&B!==x){var R=y.get("distance");R=R?R+f:f;for(var oe=0;oe<=S;oe++){I=Math.cos(D),L=Math.sin(D);var ge=new Pt({shape:{x1:I*(d-R)+p,y1:L*(d-R)+h,x2:I*(d-E-R)+p,y2:L*(d-E-R)+h},silent:!0,style:F});F.stroke==="auto"&&ge.setStyle({stroke:a((B+oe/S)/x)}),c.add(ge),D+=C}D-=C}else D+=A}},e.prototype._renderPointer=function(r,n,i,a,o,s,u,l,f){var c=this.group,p=this._data,h=this._progressEls,d=[],v=r.get(["pointer","show"]),m=r.getModel("progress"),g=m.get("show"),y=r.getData(),_=y.mapDimension("value"),x=+r.get("min"),S=+r.get("max"),b=[x,S],E=[s,u];function D(C,T){var F=y.getItemModel(C),M=F.getModel("pointer"),I=te(M.get("width"),o.r),L=te(M.get("length"),o.r),B=r.get(["pointer","icon"]),R=M.get("offsetCenter"),O=te(R[0],o.r),V=te(R[1],o.r),G=M.get("keepAspect"),H;return B?H=ot(B,O-I/2,V-L,I,L,null,G):H=new cT({shape:{angle:-Math.PI/2,width:I,r:L,x:O,y:V}}),H.rotation=-(T+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function A(C,T){var F=m.get("roundCap"),M=F?Ls:It,I=m.get("overlap"),L=I?m.get("width"):f/y.count(),B=I?o.r-L:o.r-(C+1)*L,R=I?o.r:o.r-C*L,O=new M({shape:{startAngle:s,endAngle:T,cx:o.cx,cy:o.cy,clockwise:l,r0:B,r:R}});return I&&(O.z2=mt(y.get(_,C),[x,S],[100,0],!0)),O}(g||v)&&(y.diff(p).add(function(C){var T=y.get(_,C);if(v){var F=D(C,s);Me(F,{rotation:-((isNaN(+T)?E[0]:mt(T,b,E,!0))+Math.PI/2)},r),c.add(F),y.setItemGraphicEl(C,F)}if(g){var M=A(C,s),I=m.get("clip");Me(M,{shape:{endAngle:mt(T,b,E,I)}},r),c.add(M),Tu(r.seriesIndex,y.dataType,C,M),d[C]=M}}).update(function(C,T){var F=y.get(_,C);if(v){var M=p.getItemGraphicEl(T),I=M?M.rotation:s,L=D(C,I);L.rotation=I,we(L,{rotation:-((isNaN(+F)?E[0]:mt(F,b,E,!0))+Math.PI/2)},r),c.add(L),y.setItemGraphicEl(C,L)}if(g){var B=h[T],R=B?B.shape.endAngle:s,O=A(C,R),V=m.get("clip");we(O,{shape:{endAngle:mt(F,b,E,V)}},r),c.add(O),Tu(r.seriesIndex,y.dataType,C,O),d[C]=O}}).execute(),y.each(function(C){var T=y.getItemModel(C),F=T.getModel("emphasis"),M=F.get("focus"),I=F.get("blurScope"),L=F.get("disabled"),B=a(mt(y.get(_,C),b,[0,1],!0));if(v){var R=y.getItemGraphicEl(C),O=y.getItemVisual(C,"style"),V=O.fill;if(R instanceof je){var G=R.style;R.useStyle(N({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},O))}else R.useStyle(O),R.type!=="pointer"&&R.setColor(V);R.setStyle(T.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",B),R.z2EmphasisLift=0,Ht(R,T),Mt(R,M,I,L)}if(g){var H=d[C];H.useStyle(y.getItemVisual(C,"style")),H.setStyle(T.getModel(["progress","itemStyle"]).getItemStyle()),H.style.fill==="auto"&&H.setStyle("fill",B),H.z2EmphasisLift=0,Ht(H,T),Mt(H,M,I,L)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),u=i.get("offsetCenter"),l=i.get("keepAspect"),f=ot(s,n.cx-o/2+te(u[0],n.r),n.cy-o/2+te(u[1],n.r),o,o,null,l);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,u=r.getData(),l=u.mapDimension("value"),f=+r.get("min"),c=+r.get("max"),p=new _e,h=[],d=[],v=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);u.diff(this._data).add(function(g){h[g]=new be({silent:!0}),d[g]=new be({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],d[g]=s._detailEls[y]}).execute(),u.each(function(g){var y=u.getItemModel(g),_=u.get(l,g),x=new _e,S=a(mt(_,[f,c],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var E=b.get("offsetCenter"),D=o.cx+te(E[0],o.r),A=o.cy+te(E[1],o.r),C=h[g];C.attr({z2:m?0:2,style:pt(b,{x:D,y:A,text:u.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:S})}),x.add(C)}var T=y.getModel("detail");if(T.get("show")){var F=T.get("offsetCenter"),M=o.cx+te(F[0],o.r),I=o.cy+te(F[1],o.r),L=te(T.get("width"),o.r),B=te(T.get("height"),o.r),R=r.get(["progress","show"])?u.getItemVisual(g,"style").fill:S,C=d[g],O=T.get("formatter");C.attr({z2:m?0:2,style:pt(T,{x:M,y:I,text:Bh(_,O),width:isNaN(L)?null:L,height:isNaN(B)?null:B,align:"center",verticalAlign:"middle"},{inheritColor:R})}),cc(C,{normal:T},_,function(G){return Bh(G,O)}),v&&L1(C,g,u,r,{getFormattedLabel:function(G,H,q,Q,j,oe){return Bh(oe?oe.interpolatedValue:_,O)}}),x.add(C)}p.add(x)}),this.group.add(p),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(Pe),pT=r6;var n6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return jn(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:$.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(ke),hT=n6;function ny(t){t.registerChartView(pT),t.registerSeriesModel(hT)}var Jn="funnel",i6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Os(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return jn(this,{coordDimensions:["value"],encodeDefaulter:Ce(pc,this)})},e.prototype._defaultLabelLine=function(r){ya(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},e.prototype.getDataParams=function(r){var n=this.getData(),i=t.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series."+Jn,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},e})(ke),dT=i6;var a6=["itemStyle","opacity"],o6=(function(t){P(e,t);function e(r,n){var i=t.call(this)||this,a=i,o=new Gt,s=new be;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return e.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),u=r.getItemLayout(n),l=s.getModel("emphasis"),f=s.get(a6);f=f??1,i||Xr(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:u.points}),a.style.opacity=0,Me(a,{style:{opacity:f}},o,n)):we(a,{style:{opacity:f},shape:{points:u.points}},o,n),Ht(a,s),this._updateLabel(r,n),Mt(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,u=r.getItemModel(n),l=r.getItemLayout(n),f=l.label,c=r.getItemVisual(n,"style"),p=c.fill;rr(o,nr(u),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=u.getModel("label"),d=h.get("color"),v=d==="inherit"?p:null;i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var m=f.linePoints;a.setShape({points:m}),i.textGuideLineConfig={anchor:m?new pe(m[0][0],m[0][1]):null},we(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Yp(i,Xp(u),{stroke:p})},e})(Yr),s6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Jn,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(u){var l=new o6(a,u);a.setItemGraphicEl(u,l),s.add(l)}).update(function(u,l){var f=o.getItemGraphicEl(l);f.updateData(a,u),s.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var l=o.getItemGraphicEl(u);gn(l,r,u)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Jn,e})(Pe),vT=s6;function u6(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(u){return u}),i=[],a=e==="ascending",o=0,s=t.count();o<s;o++)i[o]=o;return Y(e)?i.sort(e):e!=="none"&&i.sort(function(u,l){return a?n[u]-n[l]:n[l]-n[u]}),i}function l6(t){var e=t.hostModel,r=gT(e);t.each(function(n){var i=t.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),u=t.getItemLayout(n),l=u.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,p,h,d;if(f)o==="insideLeft"?(p=(l[0][0]+l[3][0])/2+5,h=(l[0][1]+l[3][1])/2,c="left"):o==="insideRight"?(p=(l[1][0]+l[2][0])/2-5,h=(l[1][1]+l[2][1])/2,c="right"):(p=(l[0][0]+l[1][0]+l[2][0]+l[3][0])/4,h=(l[0][1]+l[1][1]+l[2][1]+l[3][1])/4,c="center"),d=[[p,h],[p,h]];else{var v=void 0,m=void 0,g=void 0,y=void 0,_=s.get("length");U(o)&&(!r&&ue(["top","bottom"],o)>-1&&(o="left"),r&&ue(["left","right"],o)>-1&&(o="bottom")),o==="left"?(v=(l[3][0]+l[0][0])/2,m=(l[3][1]+l[0][1])/2,g=v-_,p=g-5,c="right"):o==="right"?(v=(l[1][0]+l[2][0])/2,m=(l[1][1]+l[2][1])/2,g=v+_,p=g+5,c="left"):o==="top"?(v=(l[3][0]+l[0][0])/2,m=(l[3][1]+l[0][1])/2,y=m-_,h=y-5,c="center"):o==="bottom"?(v=(l[1][0]+l[2][0])/2,m=(l[1][1]+l[2][1])/2,y=m+_,h=y+5,c="center"):o==="rightTop"?(v=r?l[3][0]:l[1][0],m=r?l[3][1]:l[1][1],r?(y=m-_,h=y-5,c="center"):(g=v+_,p=g+5,c="top")):o==="rightBottom"?(v=l[2][0],m=l[2][1],r?(y=m+_,h=y+5,c="center"):(g=v+_,p=g+5,c="bottom")):o==="leftTop"?(v=l[0][0],m=r?l[0][1]:l[1][1],r?(y=m-_,h=y-5,c="center"):(g=v-_,p=g-5,c="right")):o==="leftBottom"?(v=r?l[1][0]:l[3][0],m=r?l[1][1]:l[2][1],r?(y=m+_,h=y+5,c="center"):(g=v-_,p=g-5,c="right")):(v=(l[1][0]+l[2][0])/2,m=(l[1][1]+l[2][1])/2,r?(y=m+_,h=y+5,c="center"):(g=v+_,p=g+5,c="left")),r?(g=v,p=g):(y=m,h=y),d=[[v,m],[g,y]]}u.label={linePoints:d,x:p,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}var mT=Vo(Jn,f6);function f6(t,e){t.eachSeriesByType(Jn,function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=Kr(r,e),s=Bt(r.getBoxLayoutParams(),o.refContainer),u=gT(r),l=s.width,f=s.height,c=u6(n,a),p=s.x,h=s.y,d=u?[te(r.get("minSize"),f),te(r.get("maxSize"),f)]:[te(r.get("minSize"),l),te(r.get("maxSize"),l)],v=n.getDataExtent(i),m=r.get("min"),g=r.get("max");m==null&&(m=Math.min(v[0],0)),g==null&&(g=v[1]);var y=r.get("funnelAlign"),_=r.get("gap"),x=u?l:f,S=(x-_*(n.count()-1))/n.count(),b=function(L,B){if(u){var R=n.get(i,L)||0,O=mt(R,[m,g],d,!0),V=void 0;switch(y){case"top":V=h;break;case"center":V=h+(f-O)/2;break;case"bottom":V=h+(f-O);break}return[[B,V],[B,V+O]]}var G=n.get(i,L)||0,H=mt(G,[m,g],d,!0),q;switch(y){case"left":q=p;break;case"center":q=p+(l-H)/2;break;case"right":q=p+l-H;break}return[[q,B],[q+H,B]]};a==="ascending"&&(S=-S,_=-_,u?p+=l:h+=f,c=c.reverse());for(var E=0;E<c.length;E++){var D=c[E],A=c[E+1],C=n.getItemModel(D);if(u){var T=C.get(["itemStyle","width"]);T==null?T=S:(T=te(T,l),a==="ascending"&&(T=-T));var F=b(D,p),M=b(A,p+T);p+=T+_,n.setItemLayout(D,{points:F.concat(M.slice().reverse())})}else{var I=C.get(["itemStyle","height"]);I==null?I=S:(I=te(I,f),a==="ascending"&&(I=-I));var F=b(D,h),M=b(A,h+I);h+=I+_,n.setItemLayout(D,{points:F.concat(M.slice().reverse())})}}l6(n)})}function gT(t){return t.get("orient")==="horizontal"}function iy(t){t.registerChartView(vT),t.registerSeriesModel(dT),t.registerLayout(mT),t.registerProcessor(Ja(Jn))}var uo=le(),yT=J,ay=fe,c6=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,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,e,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new _e,this.createPointerEl(s,l,e,r),this.createLabelEl(s,l,e,r),n.getZr().add(s);else{var p=Ce(_T,r,c);this.updatePointerEl(s,l,p),this.updateLabelEl(s,l,p,r)}ST(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.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&&Qr(i).w>s)return!0;if(o){var u=Mh(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=uo(e).pointerEl=new Ne[a.type](yT(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=uo(e).labelEl=new be(yT(r.label));e.add(a),xT(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=uo(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=uo(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),xT(a,i))},t.prototype._renderHandle=function(e){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=Ta(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Zp(l.event)},onmousedown:ay(this._onHandleDragMove,this,0,0),drift:ay(this._onHandleDragMove,this),ondragend:ay(this._onHandleDragEnd,this)}),n.add(i)),ST(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");k(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,Vp(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){_T(this._axisPointerModel,!r&&this._moveAnimation,this._handle,oy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(oy(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(oy(i)),uo(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){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}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.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),hl(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function _T(t,e,r,n){bT(uo(r).lastProp,n)||(uo(r).lastProp=n,e?we(r,n,t):(r.stopAnimation(),r.attr(n)))}function bT(t,e){if(W(t)&&W(e)){var r=!0;return w(e,function(n,i){r=r&&bT(t[i],n)}),!!r}else return t===e}function xT(t,e){t[e.get(["label","show"])?"show":"hide"]()}function oy(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function ST(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}var ET=c6;function wT(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function p6(t,e,r,n,i){var a=r.get("value"),o=sy(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Sn(s.get("padding")||0),l=s.getFont(),f=Zl(o,l),c=i.position,p=f.width+u[1]+u[3],h=f.height+u[0]+u[2],d=i.align;d==="right"&&(c[0]-=p),d==="center"&&(c[0]-=p/2);var v=i.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),h6(c,p,h,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:pt(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:m}),z2:10}}function h6(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function sy(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:As(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,c=l&&l.getDataParams(f);c&&s.seriesData.push(c)}),U(o)?a=o.replace("{value}",a):Y(o)&&(a=o(s))}return a}function uy(t,e,r){var n=St();return ji(n,n,r.rotation),_o(n,n,r.position),sc([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function CT(t,e,r,n,i,a){var o=Ps.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),p6(e,n,i,a,{position:uy(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function DT(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function AT(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function TT(t,e,r){return Qr(t,{fromStat:{sers:z(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function MT(t,e,r){return[ve(He(e[0],e[1]),t-r/2),He(t+r/2,ve(e[0],e[1]))]}var d6=(function(t){P(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=s.getGlobalExtent(),c=IT(u,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var h=wT(a),d=v6[l](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=ll(u.getRect(),i);CT(n,r,v,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=ll(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=uy(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=IT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=He(u[1],c[f]),c[f]=ve(u[0],c[f]);var p=(l[1]+l[0])/2,h=[p,p];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(ET);function IT(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var v6={line:function(t,e,r,n){var i=DT([e,n[0]],[e,n[1]],PT(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=TT(t,i,a),s=n[1]-n[0],u=MT(e,r,o),l=u[0],f=u[1];return{type:"Rect",shape:AT([l,n[0]],[f-l,s],PT(t))}}};function PT(t){return t.dim==="x"?0:1}var LT=d6;var m6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:$.color.border,width:1,type:"dashed"},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.color.accent60,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:$.color.accent40,throttle:40}},e})(xe),BT=m6;var ei=le(),g6=w;function Oh(t,e,r){if(!ce.node){var n=e.getZr();ei(n).records||(ei(n).records={}),y6(n,e);var i=ei(n).records[t]||(ei(n).records[t]={});i.handler=r}}function y6(t,e){if(ei(t).initialized)return;ei(t).initialized=!0,r("click",Ce(ly,"click")),r("mousemove",Ce(ly,"mousemove")),r("mousewheel",Ce(ly,"mousewheel")),r("globalout",x6);function r(n,i){t.on(n,function(a){var o=S6(e);g6(ei(t).records,function(s){s&&i(s,a,o.dispatchAction)}),_6(o.pendings,e)})}}function _6(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function x6(t,e,r){t.handler("leave",null,r)}function ly(t,e,r,n){e.handler(t,r,n)}function S6(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function Tl(t,e){if(!ce.node){var r=e.getZr(),n=(ei(r).records||{})[t];n&&(ei(r).records[t]=null)}}var b6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";Oh("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})})},e.prototype.remove=function(r,n){Tl("axisPointer",n)},e.prototype.dispose=function(r,n){Tl("axisPointer",n)},e.type="axisPointer",e})(ze),RT=b6;function Ml(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Pr(a,t);if(o==null||o<0||k(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(t.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),c=f.dim,p=l.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(p),v=[];v[h]=a.get(d,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(v)||[]}else r=u.dataToPoint(a.getValues(z(u.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var NT=le();function fy(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||fe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Rh(i)&&(i=Ml({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var u=Rh(i),l=a.axesInfo,f=s.axesInfo,c=n==="leave"||Rh(i),p={},h={},d={list:[],map:{}},v={showPointer:Ce(w6,h),showTooltip:Ce(C6,d)};w(s.coordSysMap,function(g,y){var _=u||g.containPoint(i);w(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,E=M6(l,x);if(!c&&_&&(!l||E)){var D=E&&E.value;D==null&&!u&&(D=b.pointToData(i)),D!=null&&kT(x,D,v,!1,p)}})});var m={};return w(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&w(_.axesInfo,function(x,S){var b=h[S];if(x!==g&&b){var E=b.value;_.mapper&&(E=g.axis.scale.parse(_.mapper(E,zT(x),zT(g)))),m[g.key]=E}})}),w(m,function(g,y){kT(f[y],g,v,!0,p)}),D6(h,f,p),A6(d,i,t,o),T6(f,o,r),p}}function kT(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=E6(e,t),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&N(i,s[0]),!n&&t.snap&&a.containData(u)&&u!=null&&(e=u),r.showPointer(t,e,s),r.showTooltip(t,o,u)}}function E6(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),c,p;if(u.getAxisTooltipData){var h=u.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=u.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!p.length)return;c=u.getData().get(f[0],p[0])}if(it(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,i=c,a.length=0),w(p,function(m){a.push({seriesIndex:u.seriesIndex,dataIndexInside:m,dataIndex:u.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function w6(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function C6(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var u=e.coordSys.model,l=Hs(u),f=t.map[l];f||(f=t.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.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 D6(t,e,r){var n=r.axesInfo=[];w(e,function(i,a){var o=i.axisPointerModel.option,s=t[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 A6(t,e,r,n){if(Rh(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function T6(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=NT(n)[i]||{},o=NT(n)[i]={};w(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&w(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],u=[];function l(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}w(a,function(f,c){!o[c]&&u.push(l(f))}),w(o,function(f,c){!a[c]&&s.push(l(f))}),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 M6(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function zT(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Rh(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Nh(t){Fh.registerAxisPointerClass("CartesianAxisPointer",LT),t.registerComponentModel(BT),t.registerComponentView(RT),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!k(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=UA(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},fy)}function cy(t){ut(Ih),ut(Nh)}function UT(t,e){var r=Sn(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Ee({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var F6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:$.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:$.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},e})(xe),VT=F6;function kh(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function HT(t){if(ce.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var py=HT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),GT=HT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function hy(t,e){if(!t)return e;e=ms(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function WT(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var I6=hy(GT,"transition"),dy=hy(py,"transform"),P6="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ce.transform3dSupported?"will-change:transform;":"");function L6(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function B6(t,e,r){if(!U(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=jr(e);var a=L6(r),o=Math.max(Math.round(i)*1.5,6),s="",u=dy+":",l;ue(["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,c=o+i,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",v=["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="'+v.join("")+'"></div>'}function O6(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(ce.transformSupported?""+dy+i:",left"+i+",top"+i)),I6+":"+a}function $T(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ce.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ce.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+dy+":"+o+";":[["top",0],["left",0],[py,o]]}function R6(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=X(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),w(["decoration","align"],function(l){var f=t.get(l);f&&e.push("text-"+l+":"+f)}),e.join(";")}function N6(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),u=t.get("shadowColor"),l=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=ep(t,"html"),h=l+"px "+f+"px "+s+"px "+u;return i.push("box-shadow:"+h),e&&a>0&&i.push(O6(a,r,n)),o&&i.push("background-color:"+o),w(["width","color","radius"],function(d){var v="border-"+d,m=ms(v),g=t.get(m);g!=null&&i.push(v+":"+g+(d==="color"?"":"px"))}),i.push(R6(c)),p!=null&&i.push("padding:"+Sn(p).join("px ")+"px"),i.join(";")+";"}function YT(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&pb(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var k6=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ce.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(U(a)?document.querySelector(a):Hi(a)?a:Y(a)&&a(e.getDom()));YT(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,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();ur(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=WT(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=P6+N6(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+$T(a[0],a[1],!0)+("border-color:"+jr(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(a)&&n.get("trigger")==="item"&&!kh(n)&&(s=B6(n,i,a)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",k(e)||(e=[e]);for(var u=0;u<e.length;u++)Hi(e[u])&&e[u].parentNode!==o&&o.appendChild(e[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(YT(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=$T(n[0],n[1]);w(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ce.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(fe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;hb(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),XT=k6;var z6=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),jT(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;W(e)&>(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new be({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ep(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),w(["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})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=qT(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;jT(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Ui(a.borderWidth||0),s=qT(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(fe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Ui(t){return Math.max(0,t)}function qT(t){var e=Ui(t.shadowBlur||0),r=Ui(t.shadowOffsetX||0),n=Ui(t.shadowOffsetY||0);return{left:Ui(e-r),right:Ui(e+r),top:Ui(e-n),bottom:Ui(e+n)}}function jT(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var KT=z6;var U6=new Ee({shape:{x:-1,y:-1,width:2,height:2}}),V6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(ce.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=SS(i.get("renderMode"));this._tooltipContent=a==="richText"?new KT(n):new XT(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(ce.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")?Vp(this,"_updatePosition",50,"fixRate"):hl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");Oh("itemTooltip",this._api,fe(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),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})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ce.node||!i.getDom())){var o=ZT(a,i);this._ticket="";var s=a.dataByCoordSys,u=$6(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=U6;f.x=a.x,f.y=a.y,f.update(),de(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 c=Ml(a,n),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.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))}},e.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,this._cbParamsList=null,a.from!==this.uid&&this._hide(ZT(a,i))},e.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(),c=Fl([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.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=de(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var u,l;no(i,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(de(f).dataIndex!=null?u=f:de(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=fe(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Fl([n.tooltipOption],a),u=this._renderMode,l=[],f=En("section",{blocks:[],noHeader:!0}),c=[],p=new tp;w(r,function(y){w(y.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,b=x.axis,E=b.scale.parse(S);if(!(!x||S==null)){var D=sy(S,b,i,_.seriesDataIndices,_.valueLabelOpt),A=En("section",{header:D,noHeader:!dt(D),sortBlocks:!0,blocks:[]});f.blocks.push(A),w(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),F=C.dataIndexInside,M=T.getDataParams(F);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=As(x.axis,{value:E}),M.axisValueLabel=D,M.marker=p.makeTooltipMarker("item",jr(M.color),u);var I=Ym(T.formatTooltip(F,!0,null)),L=I.frag;if(L){var B=Fl([T],a).get("valueFormatter");A.blocks.push(B?N({valueFormatter:B},L):L)}I.text&&c.push(I.text),l.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),v=Qm(f,p,u,d,i.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=u==="richText"?`
|
|
22
22
|
|
|
23
|
-
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,g,l,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=de(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,c=o.dataType,p=l.getData(c),h=this._renderMode,d=r.positionDefault,v=Fl([p.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=l.getDataParams(f,c),y=new tp;g.marker=y.makeTooltipMarker("item",jr(g.color),h);var _=Ym(l.formatTooltip(f,!1,c)),x=v.get("order"),S=v.get("valueFormatter"),b=_.frag,E=b?Qm(S?N({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),v.get("textStyle")):_.text,A="item_"+l.name+"_"+f;this._showOrMove(v,function(){this._showTooltipContent(v,E,g,A,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=de(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(U(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=J(u),u.content=tt(u.content));var c=[u],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:u.content});var h=r.positionDefault,d=Fl(c,this._tooltipModel,h?{position:h}:null),v=d.get("content"),m=Math.random()+"",g=new tp;this._showOrMove(d,function(){var y=J(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");u=u||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),v=d.color;if(p)if(U(p)){var m=r.ecModel.get("useUTC"),g=k(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=Wn(g.axisValue,h,m)),h=gs(h,i,!0)}else if(Y(p)){var _=fe(function(x,S){x===this._ticket&&(c.setContent(S,f,r,v,u),this._updatePosition(r,u,o,s,c,i,l))},this);this._ticket=a,h=p(i,a,_)}else h=p;c.setContent(h,f,r,v,u),c.show(r,v),this._updatePosition(r,u,o,s,c,i,l)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||k(n))return{color:a||o};if(!k(n))return{color:a||n.color||n.borderColor}},e.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 c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),Y(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:c.slice()})),k(n))i=te(n[0],l),a=te(n[1],f);else if(W(n)){var v=n;v.width=c[0],v.height=c[1];var m=Bt(v,{width:l,height:f});i=m.x,a=m.y,p=null,h=null}else if(U(n)&&u){var g=W6(n,d,c,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=H6(i,a,o,l,f,p?null:20,h?null:20);i=g[0],a=g[1]}if(p&&(i-=QT(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=QT(h)?c[1]/2:h==="bottom"?c[1]:0),kh(r)){var g=G6(i,a,o,l,f);i=g[0],a=g[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&w(i,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},c=f.dataByAxis||[];o=o&&l.length===c.length,o&&w(l,function(p,h){var d=c[h]||{},v=p.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&p.value===d.value&&p.axisType===d.axisType&&p.axisId===d.axisId&&v.length===m.length,o&&w(v,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&w(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ce.node||!n.getDom()||(hl(this,"_updatePosition"),this._tooltipContent.dispose(),Tl("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(ze);function Fl(t,e,r){var n=e.ecModel,i;r?(i=new De(r,n,n),i=new De(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof De&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(i=new De(o,i,n)))}return i}function ZT(t,e){return t.dispatchAction||fe(e.dispatchAction,e)}function H6(t,e,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(t+u+a+2>n?t-=u+a:t+=a),o!=null&&(e+l+o>i?e-=l+o:e+=o),[t,e]}function G6(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function W6(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=e.width,f=e.height;switch(t){case"inside":s=e.x+l/2-i/2,u=e.y+f/2-a/2;break;case"top":s=e.x+l/2-i/2,u=e.y-a-o;break;case"bottom":s=e.x+l/2-i/2,u=e.y+f+o;break;case"left":s=e.x-i-o,u=e.y+f/2-a/2;break;case"right":s=e.x+l+o,u=e.y+f/2-a/2}return[s,u]}function QT(t){return t==="center"||t==="middle"}function $6(t,e,r){var n=Au(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Si(e,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=de(l).tooltipConfig;if(f&&f.name===t.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}var JT=V6;function vy(t){ut(Nh),t.registerComponentModel(VT),t.registerComponentView(JT),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Be),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Be)}var Y6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},e})(xe),X6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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=X(r.get("textBaseline"),r.get("textVerticalAlign")),f=new be({style:pt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),p=r.get("subtext"),h=new be({style:pt(s,{text:p,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),v=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!d&&!m,h.silent=!v&&!m,d&&f.on("click",function(){Gm(d,"_"+r.get("target"))}),v&&h.on("click",function(){Gm(v,"_"+r.get("subtarget"))}),de(f).eventData=de(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),p&&a.add(h);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Kr(r,i),x=Bt(y,_.refContainer,r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?x.x+=x.width:u==="center"&&(x.x+=x.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?x.y+=x.height:l==="middle"&&(x.y+=x.height/2),l=l||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:u,verticalAlign:l};f.setStyle(S),h.setStyle(S),g=a.getBoundingRect();var b=x.margin,E=r.getItemStyle(["color","opacity"]);E.fill=r.get("backgroundColor");var A=new Ee({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:r.get("borderRadius")},style:E,subPixelOptimize:!0,silent:!0});a.add(A)}},e.type="title",e})(ze);function my(t){t.registerComponentModel(Y6),t.registerComponentView(X6)}var q6=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},j6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),k(n)&&w(n,function(a,o){U(a)&&(a={type:a}),n[o]=me(a,q6(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(u){var l=u.name;i.push(l);var f;if(u.legendVisualProvider){var c=u.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(u)||(i=i.concat(p)),p.length?n=n.concat(p):f=!0}else f=!0;f&&zo(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=K(),s=z(a,function(u){return(U(u)||ie(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new De(u,this,this.ecModel))},this);this._data=Fe(s,function(u){return!!u})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;w(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;w(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;w(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ue(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:$.size.m,align:"auto",backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:$.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(xe),Il=j6;var Ws=Ce,gy=w,zh=_e,K6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new zh),this.group.add(this._selectorGroup=new zh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,u,s,l);var f=Kr(r,i).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=Bt(c,f,p),d=this.layoutInner(r,o,h,a,u,l),v=Bt(ee({width:d.width,height:d.height},c),f,p);this.group.x=v.x-d.x,this.group.y=v.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=UT(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this.getContentGroup(),f=K(),c=n.get("selectedMode"),p=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),gy(n.getData(),function(d,v){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
24
|
-
`)){var y=new zh;y.newline=!0,l.add(y);return}var _=i.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},b=x.getVisual("legendIcon"),E=x.getVisual("style"),
|
|
25
|
-
`||i==="")){var a=t.isSelected(i);Ie(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function r5(t){t.registerAction("legendToggleSelect","legendselectchanged",Ce(Pl,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ce(Pl,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ce(Pl,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ce(Pl,"select")),t.registerAction("legendUnSelect","legendunselected",Ce(Pl,"unSelect"))}var n5=Ho(J6);function J6(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function Vh(t){t.registerComponentModel(Il),t.registerComponentView(Uh),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,n5),t.registerSubTypeDefaulter("legend",function(){return"plain"}),r5(t)}var e8=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=bn(r);t.prototype.init.call(this,r,n,i),i5(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),i5(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Tc(Il.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),e})(Il);function i5(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,mr(e,r,{type:"box",ignoreSize:!!i})}var a5=e8;var o5=_e,xy=["width","height"],Sy=["x","y"],t8=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new o5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new o5)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,u);var f=this._controllerGroup,c=n.get("pageIconSize",!0),p=k(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new be({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=Ta(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:fe(l._pageGo,l,g,n,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=v,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=xy[l],c=Sy[l],p=xy[1-l],h=Sy[1-l];o&&Ua("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),v=u.getBoundingRect(),m=[-v.x,-v.y],g=J(i);o&&(g[f]=i[f]-v[f]-d);var y=this._layoutContentAndController(r,a,g,l,f,p,h,c);if(o){if(s==="end")m[l]+=y[f]+d;else{var _=v[f]+d;m[l]-=_,y[c]-=_}y[f]+=v[f]+d,m[1-l]+=y[h]+y[p]/2-v[p]/2,y[p]=Math.max(y[p],v[p]),y[h]=Math.min(y[h],v[h]+m[1-l]),u.x=m[0],u.y=m[1],u.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,u,l){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;Ua(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Ua("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=p.getBoundingRect(),v=this._showController=h[o]>i[o],m=[-h.x,-h.y];n||(m[a]=f[l]);var g=[0,0],y=[-d.x,-d.y],_=X(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=v?i[o]:h[o],S[s]=Math.max(h[s],d[s]),S[u]=Math.min(0,d[u]+y[1-a]),c.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=S[s],c.setClipPath(new Ee({shape:b})),c.__rectSize=b[o]}else p.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(r);return E.pageIndex!=null&&we(f,{x:E.contentPosition[0],y:E.contentPosition[1]},v?r:null),this._updatePageInfoView(r,E),S},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=xy[o],u=Sy[o],l=this._findTargetItemIndex(n),f=i.children(),c=f[l],p=f.length,h=p?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=x(c);d.contentPosition[o]=-v.s;for(var m=l+1,g=v,y=v,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=l-1,g=v,y=v,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function x(b){if(b){var E=b.getBoundingRect(),A=E[u]+b[u];return{s:A,e:A+E[s],i:b.__legendDataIndex}}}function S(b,E){return b.e>=E&&b.s<=E+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===r&&(n=s)}),n!=null?n:a},e.type="legend.scroll",e})(Uh),s5=t8;function by(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function u5(t){ut(Vh),t.registerComponentModel(a5),t.registerComponentView(s5),by(t)}function Ey(t){ut(Vh),ut(u5)}var r8=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,i){t.prototype.init.call(this,r,n,i),this._sourceManager=new Qc(this),qm(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),qm(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ut},e})(xe);var n8=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(ze);function wy(t){t.registerComponentModel(r8),t.registerComponentView(n8)}var Hh={};jt(Hh,{Axis:()=>Fs,ChartView:()=>Pe,ComponentModel:()=>xe,ComponentView:()=>ze,List:()=>ss,Model:()=>De,PRIORITY:()=>w0,SeriesModel:()=>ke,color:()=>ff,connect:()=>rN,dataTool:()=>fN,dependencies:()=>kR,disConnect:()=>nN,disconnect:()=>_D,dispose:()=>iN,env:()=>ce,extendChartView:()=>p8,extendComponentModel:()=>l8,extendComponentView:()=>f8,extendSeriesModel:()=>c8,format:()=>My,getCoordinateSystemDimensions:()=>oN,getInstanceByDom:()=>D0,getInstanceById:()=>aN,getMap:()=>lN,graphic:()=>Ty,helper:()=>Cy,init:()=>tN,innerDrawElementOnCanvas:()=>ph,matrix:()=>Pn,number:()=>Ay,parseGeoJSON:()=>Lh,parseGeoJson:()=>Lh,registerAction:()=>zi,registerCoordinateSystem:()=>I0,registerCustomSeries:()=>sN,registerLayout:()=>P0,registerLoading:()=>wh,registerLocale:()=>Bc,registerMap:()=>B0,registerPostInit:()=>M0,registerPostUpdate:()=>F0,registerPreprocessor:()=>bh,registerProcessor:()=>Eh,registerTheme:()=>T0,registerTransform:()=>O0,registerUpdateLifecycle:()=>Cl,registerVisual:()=>Qn,setCanvasCreator:()=>uN,setPlatformAPI:()=>$l,throttle:()=>Za,time:()=>Dy,use:()=>ut,util:()=>Fy,vector:()=>Er,version:()=>NR,zrUtil:()=>se,zrender:()=>th});var Cy={};jt(Cy,{createDimensions:()=>ab,createList:()=>i8,createScale:()=>o8,createSymbol:()=>ot,createTextStyle:()=>u8,dataStack:()=>a8,enableHoverEmphasis:()=>$o,getECData:()=>de,getLayoutRect:()=>Bt,mixinAxisModelCommonMethods:()=>s8});function i8(t){return _n(null,t)}var a8={isDimensionStacked:qr,enableDataStack:Ac,getStackedDimension:Dc};function o8(t,e){var r=e;e instanceof De||(r=new De(e));var n=wp(r),i=Cp(r,n,!1);return t[1]<t[0]&&(t=t.slice().reverse()),U0(i,r,null,null,t),i}function s8(t){nt(t,Vs)}function u8(t,e){return e=e||{},pt(t,null,null,e.state!=="normal")}var Ay={};jt(Ay,{MAX_SAFE_INTEGER:()=>Su,asc:()=>xi,getPercentWithPrecision:()=>sS,getPixelPrecision:()=>aS,getPrecision:()=>cr,getPrecisionSafe:()=>dv,isNumeric:()=>Eu,isRadianAroundZero:()=>ga,linearMap:()=>mt,nice:()=>kn,numericToNumber:()=>Ir,parseDate:()=>zt,parsePercent:()=>te,quantile:()=>lS,quantity:()=>Ro,quantityExponent:()=>No,reformIntervals:()=>fS,remRadian:()=>bu,round:()=>iS});var Dy={};jt(Dy,{format:()=>Wn,parse:()=>zt,roundTime:()=>vs});var Ty={};jt(Ty,{Arc:()=>Ea,BezierCurve:()=>zu,BoundingRect:()=>re,Circle:()=>Hn,CompoundPath:()=>qo,Ellipse:()=>Ru,Group:()=>_e,Image:()=>je,IncrementalDisplayable:()=>ic,Line:()=>Pt,LinearGradient:()=>jo,Polygon:()=>Yr,Polyline:()=>Gt,RadialGradient:()=>Jf,Rect:()=>Ee,Ring:()=>ba,Sector:()=>It,Text:()=>be,clipPointsByRect:()=>em,clipRectByRect:()=>tm,createIcon:()=>Ta,extendPath:()=>Kv,extendShape:()=>jv,getShapeClass:()=>Zv,getTransform:()=>Qv,initProps:()=>Me,makeImage:()=>Hu,makePath:()=>Zo,mergePath:()=>Qo,registerShape:()=>dr,resizePath:()=>oc,updateProps:()=>we});var My={};jt(My,{addCommas:()=>Zu,capitalFirst:()=>Db,encodeHTML:()=>tt,formatTime:()=>Ab,formatTpl:()=>gs,getTextRect:()=>Vm,getTooltipMarker:()=>Xc,normalizeCssArray:()=>Sn,toCamelCase:()=>ms,truncateText:()=>Md});var Fy={};jt(Fy,{bind:()=>fe,clone:()=>J,curry:()=>Ce,defaults:()=>ee,each:()=>w,extend:()=>N,filter:()=>Fe,indexOf:()=>ue,inherits:()=>Ks,isArray:()=>k,isFunction:()=>Y,isObject:()=>W,isString:()=>U,map:()=>z,merge:()=>me,reduce:()=>At});function l8(t){var e=xe.extend(t);return xe.registerClass(e),e}function f8(t){var e=ze.extend(t);return ze.registerClass(e),e}function c8(t){var e=ke.extend(t);return ke.registerClass(e),e}function p8(t){var e=Pe.extend(t);return Pe.registerClass(e),e}var Iy=Math.sin,Py=Math.cos,l5=Math.PI,lo=Math.PI*2,h8=180/l5,d8=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,u){var l=s-o,f=!u,c=Math.abs(l),p=un(c-lo)||(f?l>=lo:-l>=lo),h=l>0?l%lo:l%lo+lo,d=!1;p?d=!0:un(c)?d=!1:d=h>=l5==!!f;var v=e+n*Py(o),m=r+i*Iy(o);this._start&&this._add("M",v,m);var g=Math.round(a*h8);if(p){var y=1/this._p,_=(f?1:-1)*(lo-y);this._add("A",n,i,g,1,+f,e+n*Py(o+_),r+i*Iy(o+_)),y>.01&&this._add("A",n,i,g,0,+f,v,m)}else{var x=e+n*Py(s),S=r+i*Iy(s);this._add("A",n,i,g,+d,+f,x,S)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,u,l){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),Gh=d8;var Ll="none",v8=Math.round;function m8(t){var e=t.fill;return e!=null&&e!==Ll}function g8(t){var e=t.stroke;return e!=null&&e!==Ll}var Ly=["lineCap","miterLimit","lineJoin"],y8=z(Ly,function(t){return"stroke-"+t.toLowerCase()});function By(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof je){t("opacity",i);return}if(m8(e)){var a=ci(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&t("fill-opacity",o)}else t("fill",Ll);if(g8(e)){var s=ci(e.stroke);t("stroke",s.color);var u=e.strokeNoScale?r.getLineScale():1,l=u?(e.lineWidth||0)/u:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if((n||l!==1)&&t("stroke-width",l),(n||c)&&t("paint-order",c?"stroke":"fill"),(n||f<1)&&t("stroke-opacity",f),e.lineDash){var p=El(r),h=p[0],d=p[1];h&&(d=v8(d||0),t("stroke-dasharray",h.join(",")),(d||n)&&t("stroke-dashoffset",d))}else n&&t("stroke-dasharray",Ll);for(var v=0;v<Ly.length;v++){var m=Ly[v];if(n||e[m]!==Bo[m]){var g=e[m]||Bo[m];g&&t(y8[v],g)}}}else n&&t("stroke",Ll)}var f5="http://www.w3.org/2000/svg",Oy="http://www.w3.org/1999/xlink",c5="http://www.w3.org/2000/xmlns/",p5="http://www.w3.org/XML/1998/namespace",Ry="ecmeta_";function Wh(t){return document.createElementNS(f5,t)}function Qe(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function _8(t,e){var r=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function x8(t){return"</"+t+">"}function Bl(t,e){e=e||{};var r=e.newline?`
|
|
23
|
+
`:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,g,l,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=de(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,c=o.dataType,p=l.getData(c),h=this._renderMode,d=r.positionDefault,v=Fl([p.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=l.getDataParams(f,c),y=new tp;g.marker=y.makeTooltipMarker("item",jr(g.color),h);var _=Ym(l.formatTooltip(f,!1,c)),x=v.get("order"),S=v.get("valueFormatter"),b=_.frag,E=b?Qm(S?N({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),v.get("textStyle")):_.text,D="item_"+l.name+"_"+f;this._showOrMove(v,function(){this._showTooltipContent(v,E,g,D,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=de(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(U(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=J(u),u.content=tt(u.content));var c=[u],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:u.content});var h=r.positionDefault,d=Fl(c,this._tooltipModel,h?{position:h}:null),v=d.get("content"),m=Math.random()+"",g=new tp;this._showOrMove(d,function(){var y=J(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");u=u||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),v=d.color;if(p)if(U(p)){var m=r.ecModel.get("useUTC"),g=k(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=Wn(g.axisValue,h,m)),h=gs(h,i,!0)}else if(Y(p)){var _=fe(function(x,S){x===this._ticket&&(c.setContent(S,f,r,v,u),this._updatePosition(r,u,o,s,c,i,l))},this);this._ticket=a,h=p(i,a,_)}else h=p;c.setContent(h,f,r,v,u),c.show(r,v),this._updatePosition(r,u,o,s,c,i,l)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||k(n))return{color:a||o};if(!k(n))return{color:a||n.color||n.borderColor}},e.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 c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),Y(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:c.slice()})),k(n))i=te(n[0],l),a=te(n[1],f);else if(W(n)){var v=n;v.width=c[0],v.height=c[1];var m=Bt(v,{width:l,height:f});i=m.x,a=m.y,p=null,h=null}else if(U(n)&&u){var g=W6(n,d,c,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=H6(i,a,o,l,f,p?null:20,h?null:20);i=g[0],a=g[1]}if(p&&(i-=QT(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=QT(h)?c[1]/2:h==="bottom"?c[1]:0),kh(r)){var g=G6(i,a,o,l,f);i=g[0],a=g[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&w(i,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},c=f.dataByAxis||[];o=o&&l.length===c.length,o&&w(l,function(p,h){var d=c[h]||{},v=p.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&p.value===d.value&&p.axisType===d.axisType&&p.axisId===d.axisId&&v.length===m.length,o&&w(v,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&w(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ce.node||!n.getDom()||(hl(this,"_updatePosition"),this._tooltipContent.dispose(),Tl("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(ze);function Fl(t,e,r){var n=e.ecModel,i;r?(i=new Ae(r,n,n),i=new Ae(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ae&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(i=new Ae(o,i,n)))}return i}function ZT(t,e){return t.dispatchAction||fe(e.dispatchAction,e)}function H6(t,e,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(t+u+a+2>n?t-=u+a:t+=a),o!=null&&(e+l+o>i?e-=l+o:e+=o),[t,e]}function G6(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function W6(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=e.width,f=e.height;switch(t){case"inside":s=e.x+l/2-i/2,u=e.y+f/2-a/2;break;case"top":s=e.x+l/2-i/2,u=e.y-a-o;break;case"bottom":s=e.x+l/2-i/2,u=e.y+f+o;break;case"left":s=e.x-i-o,u=e.y+f/2-a/2;break;case"right":s=e.x+l+o,u=e.y+f/2-a/2}return[s,u]}function QT(t){return t==="center"||t==="middle"}function $6(t,e,r){var n=Du(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Si(e,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=de(l).tooltipConfig;if(f&&f.name===t.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}var JT=V6;function vy(t){ut(Nh),t.registerComponentModel(VT),t.registerComponentView(JT),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Be),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Be)}var Y6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},e})(xe),X6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.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=X(r.get("textBaseline"),r.get("textVerticalAlign")),f=new be({style:pt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),p=r.get("subtext"),h=new be({style:pt(s,{text:p,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),v=r.get("sublink"),m=r.get("triggerEvent",!0);f.silent=!d&&!m,h.silent=!v&&!m,d&&f.on("click",function(){Gm(d,"_"+r.get("target"))}),v&&h.on("click",function(){Gm(v,"_"+r.get("subtarget"))}),de(f).eventData=de(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),p&&a.add(h);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Kr(r,i),x=Bt(y,_.refContainer,r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?x.x+=x.width:u==="center"&&(x.x+=x.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?x.y+=x.height:l==="middle"&&(x.y+=x.height/2),l=l||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:u,verticalAlign:l};f.setStyle(S),h.setStyle(S),g=a.getBoundingRect();var b=x.margin,E=r.getItemStyle(["color","opacity"]);E.fill=r.get("backgroundColor");var D=new Ee({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:r.get("borderRadius")},style:E,subPixelOptimize:!0,silent:!0});a.add(D)}},e.type="title",e})(ze);function my(t){t.registerComponentModel(Y6),t.registerComponentView(X6)}var q6=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},j6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),k(n)&&w(n,function(a,o){U(a)&&(a={type:a}),n[o]=me(a,q6(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(u){var l=u.name;i.push(l);var f;if(u.legendVisualProvider){var c=u.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(u)||(i=i.concat(p)),p.length?n=n.concat(p):f=!0}else f=!0;f&&zo(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=K(),s=z(a,function(u){return(U(u)||ie(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new Ae(u,this,this.ecModel))},this);this._data=Fe(s,function(u){return!!u})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;w(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;w(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;w(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ue(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:$.size.m,align:"auto",backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:$.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(xe),Il=j6;var Ws=Ce,gy=w,zh=_e,K6=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new zh),this.group.add(this._selectorGroup=new zh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,u,s,l);var f=Kr(r,i).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=Bt(c,f,p),d=this.layoutInner(r,o,h,a,u,l),v=Bt(ee({width:d.width,height:d.height},c),f,p);this.group.x=v.x-d.x,this.group.y=v.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=UT(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this.getContentGroup(),f=K(),c=n.get("selectedMode"),p=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),gy(n.getData(),function(d,v){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
24
|
+
`)){var y=new zh;y.newline=!0,l.add(y);return}var _=i.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},b=x.getVisual("legendIcon"),E=x.getVisual("style"),D=this._createItem(_,g,v,d,n,r,S,E,b,c,a);D.on("click",Ws(e5,g,null,a,h)).on("mouseover",Ws(yy,_.name,null,a,h)).on("mouseout",Ws(_y,_.name,null,a,h)),i.ssr&&D.eachChild(function(A){var C=de(A);C.seriesIndex=_.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),p&&D.eachChild(function(A){m.packEventData(A,n,_,v,g)}),f.set(g,!0)}else i.eachRawSeries(function(A){var C=this;if(!f.get(g)&&A.legendVisualProvider){var T=A.legendVisualProvider;if(!T.containName(g))return;var F=T.indexOfName(g),M=T.getItemVisual(F,"style"),I=T.getItemVisual(F,"legendIcon"),L=vt(M.fill);L&&L[3]===0&&(L[3]=.2,M=N(N({},M),{fill:sn(L,"rgba")}));var B=this._createItem(A,g,v,d,n,r,{},M,I,c,a);B.on("click",Ws(e5,null,g,a,h)).on("mouseover",Ws(yy,null,g,a,h)).on("mouseout",Ws(_y,null,g,a,h)),i.ssr&&B.eachChild(function(R){var O=de(R);O.seriesIndex=A.seriesIndex,O.dataIndex=v,O.ssrType="legend"}),p&&B.eachChild(function(R){C.packEventData(R,n,A,v,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};de(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();gy(r,function(l){var f=l.type,c=new be({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var p=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);rr(c,{normal:p,emphasis:h},{defaultText:l.title}),$o(c)})},e.prototype._createItem=function(r,n,i,a,o,s,u,l,f,c,p){var h=r.visualDrawType,d=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=Z6(f,a,u,l,h,m,p),S=new zh,b=a.getModel("textStyle");if(Y(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:d,itemHeight:v,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var E=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;S.add(Q6({itemWidth:d,itemHeight:v,icon:f,iconRotate:E,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var D=s==="left"?d+5:-5,A=s,C=o.get("formatter"),T=n;U(C)&&C?T=C.replace("{name}",n??""):Y(C)&&(T=C(n));var F=m?b.getTextColor():a.get("inactiveColor");S.add(new be({style:pt(b,{text:T,x:D,y:v/2,fill:F,align:A,verticalAlign:"middle"},{inheritColor:F})}));var M=new Ee({shape:S.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&es({el:M,componentModel:o,itemName:n,itemTooltipOption:I.option}),S.add(M),S.eachChild(function(L){L.silent=!0}),M.silent=!c,this.getContentGroup().add(S),$o(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Ua(r.get("orient"),u,r.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),c=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Ua("horizontal",l,r.get("selectorItemGap",!0));var p=l.getBoundingRect(),h=[-p.x,-p.y],d=r.get("selectorButtonGap",!0),v=r.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=f[m]+d:c[v]+=p[m]+d,h[1-v]+=f[g]/2-p[g]/2,l.x=h[0],l.y=h[1],u.x=c[0],u.y=c[1];var _={x:0,y:0};return _[m]=f[m]+d+p[m],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+h[1-v]),_}else return u.x=c[0],u.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(ze);function Z6(t,e,r,n,i,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),gy(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var u=e.getModel("itemStyle"),l=u.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=u.getShallow("decal");l.decal=!c||c==="inherit"?n.decal:wl(c,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:r).opacity),s(l,n);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),v=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&v?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function Q6(t){var e=t.icon||"roundRect",r=ot(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=$.color.neutral00,r.style.lineWidth=2),r}function e5(t,e,r,n){_y(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),yy(t,e,r,n)}function yy(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function _y(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}var Uh=K6;function Pl(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),t5(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){w(i,function(u,l){s[u?"select":"unSelect"](l)}),t5(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function t5(t,e){var r=e||{};return w(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
25
|
+
`||i==="")){var a=t.isSelected(i);Ie(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function r5(t){t.registerAction("legendToggleSelect","legendselectchanged",Ce(Pl,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ce(Pl,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ce(Pl,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ce(Pl,"select")),t.registerAction("legendUnSelect","legendunselected",Ce(Pl,"unSelect"))}var n5=Ho(J6);function J6(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function Vh(t){t.registerComponentModel(Il),t.registerComponentView(Uh),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,n5),t.registerSubTypeDefaulter("legend",function(){return"plain"}),r5(t)}var e8=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=bn(r);t.prototype.init.call(this,r,n,i),i5(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),i5(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Tc(Il.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),e})(Il);function i5(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,mr(e,r,{type:"box",ignoreSize:!!i})}var a5=e8;var o5=_e,xy=["width","height"],Sy=["x","y"],t8=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new o5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new o5)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,u);var f=this._controllerGroup,c=n.get("pageIconSize",!0),p=k(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new be({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=Ta(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:fe(l._pageGo,l,g,n,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=v,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=xy[l],c=Sy[l],p=xy[1-l],h=Sy[1-l];o&&Ua("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),v=u.getBoundingRect(),m=[-v.x,-v.y],g=J(i);o&&(g[f]=i[f]-v[f]-d);var y=this._layoutContentAndController(r,a,g,l,f,p,h,c);if(o){if(s==="end")m[l]+=y[f]+d;else{var _=v[f]+d;m[l]-=_,y[c]-=_}y[f]+=v[f]+d,m[1-l]+=y[h]+y[p]/2-v[p]/2,y[p]=Math.max(y[p],v[p]),y[h]=Math.min(y[h],v[h]+m[1-l]),u.x=m[0],u.y=m[1],u.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,u,l){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;Ua(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Ua("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=p.getBoundingRect(),v=this._showController=h[o]>i[o],m=[-h.x,-h.y];n||(m[a]=f[l]);var g=[0,0],y=[-d.x,-d.y],_=X(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=v?i[o]:h[o],S[s]=Math.max(h[s],d[s]),S[u]=Math.min(0,d[u]+y[1-a]),c.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=S[s],c.setClipPath(new Ee({shape:b})),c.__rectSize=b[o]}else p.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(r);return E.pageIndex!=null&&we(f,{x:E.contentPosition[0],y:E.contentPosition[1]},v?r:null),this._updatePageInfoView(r,E),S},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=xy[o],u=Sy[o],l=this._findTargetItemIndex(n),f=i.children(),c=f[l],p=f.length,h=p?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=x(c);d.contentPosition[o]=-v.s;for(var m=l+1,g=v,y=v,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=l-1,g=v,y=v,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function x(b){if(b){var E=b.getBoundingRect(),D=E[u]+b[u];return{s:D,e:D+E[s],i:b.__legendDataIndex}}}function S(b,E){return b.e>=E&&b.s<=E+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===r&&(n=s)}),n??a},e.type="legend.scroll",e})(Uh),s5=t8;function by(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function u5(t){ut(Vh),t.registerComponentModel(a5),t.registerComponentView(s5),by(t)}function Ey(t){ut(Vh),ut(u5)}var r8=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,i){t.prototype.init.call(this,r,n,i),this._sourceManager=new Qc(this),qm(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),qm(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ut},e})(xe);var n8=(function(t){P(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(ze);function wy(t){t.registerComponentModel(r8),t.registerComponentView(n8)}var Hh={};jt(Hh,{Axis:()=>Fs,ChartView:()=>Pe,ComponentModel:()=>xe,ComponentView:()=>ze,List:()=>ss,Model:()=>Ae,PRIORITY:()=>w0,SeriesModel:()=>ke,color:()=>ff,connect:()=>rN,dataTool:()=>fN,dependencies:()=>kR,disConnect:()=>nN,disconnect:()=>_A,dispose:()=>iN,env:()=>ce,extendChartView:()=>p8,extendComponentModel:()=>l8,extendComponentView:()=>f8,extendSeriesModel:()=>c8,format:()=>My,getCoordinateSystemDimensions:()=>oN,getInstanceByDom:()=>A0,getInstanceById:()=>aN,getMap:()=>lN,graphic:()=>Ty,helper:()=>Cy,init:()=>tN,innerDrawElementOnCanvas:()=>ph,matrix:()=>Pn,number:()=>Dy,parseGeoJSON:()=>Lh,parseGeoJson:()=>Lh,registerAction:()=>zi,registerCoordinateSystem:()=>I0,registerCustomSeries:()=>sN,registerLayout:()=>P0,registerLoading:()=>wh,registerLocale:()=>Bc,registerMap:()=>B0,registerPostInit:()=>M0,registerPostUpdate:()=>F0,registerPreprocessor:()=>bh,registerProcessor:()=>Eh,registerTheme:()=>T0,registerTransform:()=>O0,registerUpdateLifecycle:()=>Cl,registerVisual:()=>Qn,setCanvasCreator:()=>uN,setPlatformAPI:()=>$l,throttle:()=>Za,time:()=>Ay,use:()=>ut,util:()=>Fy,vector:()=>Er,version:()=>NR,zrUtil:()=>se,zrender:()=>th});var Cy={};jt(Cy,{createDimensions:()=>ab,createList:()=>i8,createScale:()=>o8,createSymbol:()=>ot,createTextStyle:()=>u8,dataStack:()=>a8,enableHoverEmphasis:()=>$o,getECData:()=>de,getLayoutRect:()=>Bt,mixinAxisModelCommonMethods:()=>s8});function i8(t){return _n(null,t)}var a8={isDimensionStacked:qr,enableDataStack:Dc,getStackedDimension:Ac};function o8(t,e){var r=e;e instanceof Ae||(r=new Ae(e));var n=wp(r),i=Cp(r,n,!1);return t[1]<t[0]&&(t=t.slice().reverse()),U0(i,r,null,null,t),i}function s8(t){nt(t,Vs)}function u8(t,e){return e=e||{},pt(t,null,null,e.state!=="normal")}var Dy={};jt(Dy,{MAX_SAFE_INTEGER:()=>Su,asc:()=>xi,getPercentWithPrecision:()=>sS,getPixelPrecision:()=>aS,getPrecision:()=>cr,getPrecisionSafe:()=>dv,isNumeric:()=>Eu,isRadianAroundZero:()=>ga,linearMap:()=>mt,nice:()=>kn,numericToNumber:()=>Ir,parseDate:()=>zt,parsePercent:()=>te,quantile:()=>lS,quantity:()=>Ro,quantityExponent:()=>No,reformIntervals:()=>fS,remRadian:()=>bu,round:()=>iS});var Ay={};jt(Ay,{format:()=>Wn,parse:()=>zt,roundTime:()=>vs});var Ty={};jt(Ty,{Arc:()=>Ea,BezierCurve:()=>zu,BoundingRect:()=>re,Circle:()=>Hn,CompoundPath:()=>qo,Ellipse:()=>Ru,Group:()=>_e,Image:()=>je,IncrementalDisplayable:()=>ic,Line:()=>Pt,LinearGradient:()=>jo,Polygon:()=>Yr,Polyline:()=>Gt,RadialGradient:()=>Jf,Rect:()=>Ee,Ring:()=>ba,Sector:()=>It,Text:()=>be,clipPointsByRect:()=>em,clipRectByRect:()=>tm,createIcon:()=>Ta,extendPath:()=>Kv,extendShape:()=>jv,getShapeClass:()=>Zv,getTransform:()=>Qv,initProps:()=>Me,makeImage:()=>Hu,makePath:()=>Zo,mergePath:()=>Qo,registerShape:()=>dr,resizePath:()=>oc,updateProps:()=>we});var My={};jt(My,{addCommas:()=>Zu,capitalFirst:()=>Ab,encodeHTML:()=>tt,formatTime:()=>Db,formatTpl:()=>gs,getTextRect:()=>Vm,getTooltipMarker:()=>Xc,normalizeCssArray:()=>Sn,toCamelCase:()=>ms,truncateText:()=>Md});var Fy={};jt(Fy,{bind:()=>fe,clone:()=>J,curry:()=>Ce,defaults:()=>ee,each:()=>w,extend:()=>N,filter:()=>Fe,indexOf:()=>ue,inherits:()=>Ks,isArray:()=>k,isFunction:()=>Y,isObject:()=>W,isString:()=>U,map:()=>z,merge:()=>me,reduce:()=>Dt});function l8(t){var e=xe.extend(t);return xe.registerClass(e),e}function f8(t){var e=ze.extend(t);return ze.registerClass(e),e}function c8(t){var e=ke.extend(t);return ke.registerClass(e),e}function p8(t){var e=Pe.extend(t);return Pe.registerClass(e),e}var Iy=Math.sin,Py=Math.cos,l5=Math.PI,lo=Math.PI*2,h8=180/l5,d8=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,u){var l=s-o,f=!u,c=Math.abs(l),p=un(c-lo)||(f?l>=lo:-l>=lo),h=l>0?l%lo:l%lo+lo,d=!1;p?d=!0:un(c)?d=!1:d=h>=l5==!!f;var v=e+n*Py(o),m=r+i*Iy(o);this._start&&this._add("M",v,m);var g=Math.round(a*h8);if(p){var y=1/this._p,_=(f?1:-1)*(lo-y);this._add("A",n,i,g,1,+f,e+n*Py(o+_),r+i*Iy(o+_)),y>.01&&this._add("A",n,i,g,0,+f,v,m)}else{var x=e+n*Py(s),S=r+i*Iy(s);this._add("A",n,i,g,+d,+f,x,S)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,u,l){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),Gh=d8;var Ll="none",v8=Math.round;function m8(t){var e=t.fill;return e!=null&&e!==Ll}function g8(t){var e=t.stroke;return e!=null&&e!==Ll}var Ly=["lineCap","miterLimit","lineJoin"],y8=z(Ly,function(t){return"stroke-"+t.toLowerCase()});function By(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof je){t("opacity",i);return}if(m8(e)){var a=ci(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&t("fill-opacity",o)}else t("fill",Ll);if(g8(e)){var s=ci(e.stroke);t("stroke",s.color);var u=e.strokeNoScale?r.getLineScale():1,l=u?(e.lineWidth||0)/u:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if((n||l!==1)&&t("stroke-width",l),(n||c)&&t("paint-order",c?"stroke":"fill"),(n||f<1)&&t("stroke-opacity",f),e.lineDash){var p=El(r),h=p[0],d=p[1];h&&(d=v8(d||0),t("stroke-dasharray",h.join(",")),(d||n)&&t("stroke-dashoffset",d))}else n&&t("stroke-dasharray",Ll);for(var v=0;v<Ly.length;v++){var m=Ly[v];if(n||e[m]!==Bo[m]){var g=e[m]||Bo[m];g&&t(y8[v],g)}}}else n&&t("stroke",Ll)}var f5="http://www.w3.org/2000/svg",Oy="http://www.w3.org/1999/xlink",c5="http://www.w3.org/2000/xmlns/",p5="http://www.w3.org/XML/1998/namespace",Ry="ecmeta_";function Wh(t){return document.createElementNS(f5,t)}function Qe(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function _8(t,e){var r=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function x8(t){return"</"+t+">"}function Bl(t,e){e=e||{};var r=e.newline?`
|
|
26
26
|
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,u=i.text;return _8(o,s)+(o!=="style"?tt(u):u||"")+(a?""+r+z(a,function(l){return n(l)}).join(r)+r:"")+x8(o)}return n(t)}function h5(t,e,r){r=r||{};var n=r.newline?`
|
|
27
|
-
`:"",i=" {"+n,a=n+"}",o=z(ne(t),function(u){return u+i+z(ne(t[u]),function(l){return l+":"+t[u][l]+";"}).join(n)+a}).join(n),s=z(ne(e),function(u){return"@keyframes "+u+i+z(ne(e[u]),function(l){return l+i+z(ne(e[u][l]),function(f){var c=e[u][l][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Ol(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Ny(t,e,r,n){return Qe("svg","root",{width:t,height:e,xmlns:f5,"xmlns:xlink":Oy,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var S8=0;function $h(){return S8++}var d5={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},fo="transform-origin";function b8(t,e,r){var n=N({},t.shape);N(n,e),t.buildPath(r,n);var i=new Gh;return i.reset(gf(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function E8(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[fo]=r+"px "+n+"px")}var w8={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function m5(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function C8(t,e,r){var n=t.shape.paths,i={},a,o;if(w(n,function(u){var l=Ol(r.zrId);l.animation=!0,Rl(u,{},l,!0);var f=l.cssAnims,c=l.cssNodes,p=ne(f),h=p.length;if(h){o=p[h-1];var d=f[o];for(var v in d){var m=d[v];i[v]=i[v]||{d:""},i[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=m5(i,r);return a.replace(o,s)}}function v5(t){return U(t)?d5[t]?"cubic-bezier("+d5[t]+")":To(t)?t:"":""}function Rl(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof qo){var s=C8(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var u={},l=0;l<a;l++){var f=i[l],c=[f.getMaxTime()/1e3+"s"],p=v5(f.getClip().easing),h=f.getDelay();p?c.push(p):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");u[d]=u[d]||[d,[]],u[d][1].push(f)}function v(y){var _=y[1],x=_.length,S={},b={},E={},A="animation-timing-function";function D(We,Ae,Le){for(var he=We.getTracks(),Se=We.getMaxTime(),Xt=0;Xt<he.length;Xt++){var qe=he[Xt];if(qe.needsAnimate()){var Rr=qe.keyframes,qt=qe.propName;if(Le&&(qt=Le(qt)),qt)for(var Nr=0;Nr<Rr.length;Nr++){var co=Rr[Nr],kr=Math.round(co.time/Se*100)+"%",Gl=v5(co.easing),po=co.rawValue;(U(po)||ie(po))&&(Ae[kr]=Ae[kr]||{},Ae[kr][qt]=co.rawValue,Gl&&(Ae[kr][A]=Gl))}}}}for(var C=0;C<x;C++){var T=_[C],F=T.targetName;F?F==="shape"&&D(T,b):!n&&D(T,S)}for(var M in S){var I={};oi(I,t),N(I,S[M]);var L=yf(I),B=S[M][A];E[M]=L?{transform:L}:{},E8(E[M],I),B&&(E[M][A]=B)}var R,O=!0;for(var M in b){E[M]=E[M]||{};var V=!R,B=b[M][A];V&&(R=new bt);var G=R.len();R.reset(),E[M].d=b8(t,b[M],R);var H=R.len();if(!V&&G!==H){O=!1;break}B&&(E[M][A]=B)}if(!O)for(var M in E)delete E[M].d;if(!n)for(var C=0;C<x;C++){var T=_[C],F=T.targetName;F==="style"&&D(T,E,function(he){return w8[he]})}for(var q=ne(E),Q=!0,j,C=1;C<q.length;C++){var oe=q[C-1],ge=q[C];if(E[oe][fo]!==E[ge][fo]){Q=!1;break}j=E[oe][fo]}if(Q&&j){for(var M in E)E[M][fo]&&delete E[M][fo];e[fo]=j}if(Fe(q,function(We){return ne(E[We]).length>0}).length){var Xe=m5(E,r);return Xe+" "+y[0]+" both"}}for(var m in u){var s=v(u[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+$h();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function y5(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};g5(n,e,r,!0)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,u=t.currentStates.indexOf("select")>=0&&s||o;u&&(a=Io(u))}var l=i.lineWidth;if(l){var f=!i.strokeNoScale&&t.transform?t.transform[0]:1;l=l/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),l&&(n["stroke-width"]=l),g5(n,e,r,!0)}}function g5(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+$h(),r.cssStyleCache[i]=a,r.cssNodes["."+a+(n?":hover":"")]=t),e.class=e.class?e.class+" "+a:a}var Nl=Math.round;function b5(t){return t&&U(t.src)}function E5(t){return t&&Y(t.toDataURL)}function ky(t,e,r,n){By(function(i,a){var o=i==="fill"||i==="stroke";o&&mf(a)?Hy(e,t,i,n):o&&su(a)?Gy(r,t,i,n):t[i]=a,o&&n.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),P8(r,t,n)}function zy(t,e){var r=Zg(e);r&&(r.each(function(n,i){n!=null&&(t[(Ry+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[Ry+"silent"]="true"))}function _5(t){return un(t[0]-1)&&un(t[1])&&un(t[2])&&un(t[3]-1)}function A8(t){return un(t[4])&&un(t[5])}function Uy(t,e,r){if(e&&!(A8(e)&&_5(e))){var n=r?10:1e4;t.transform=_5(e)?"translate("+Nl(e[4]*n)/n+" "+Nl(e[5]*n)/n+")":px(e)}}function x5(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(Nl(n[a][0]*r)/r),i.push(Nl(n[a][1]*r)/r);e.points=i.join(" ")}function S5(t){return!t.smooth}function D8(t){var e=z(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(n[o[1]]=Nl(s*i)/i)}}}var T8={circle:[D8(["cx","cy","r"])],polyline:[x5,S5],polygon:[x5,S5]};function M8(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function w5(t,e){var r=t.style,n=t.shape,i=T8[t.type],a={},o=e.animation,s="path",u=t.style.strokePercent,l=e.compress&&gf(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&M8(t))&&!(u<1)){s=t.type;var f=Math.pow(10,l);i[0](n,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;c&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var h=p.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||u!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new Gh),v.reset(l),p.rebuildPath(v,u),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=u),a.d=v.getStr()}return Uy(a,t.transform),ky(a,r,t,e),zy(a,t),e.animation&&Rl(t,a,e),e.emphasis&&y5(t,a,e),Qe(s,t.id+"",a)}function F8(t,e){var r=t.style,n=r.image;if(n&&!U(n)&&(b5(n)?n=n.src:E5(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,u={href:n,width:o,height:s};return i&&(u.x=i),a&&(u.y=a),Uy(u,t.transform),ky(u,r,t,e),zy(u,t),e.animation&&Rl(t,u,e),Qe("image",t.id+"",u)}}function I8(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Kt,a=r.x||0,o=dx(r.y||0,ta(i),r.textBaseline),s=hx[r.textAlign]||r.textAlign,u={"dominant-baseline":"central","text-anchor":s};if(hv(r)){var l="",f=r.fontStyle,c=pv(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||ad,h=r.fontWeight;l+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal"&&(l+="font-style:"+f+";"),h&&h!=="normal"&&(l+="font-weight:"+h+";"),u.style=l}else u.style="font: "+i;return n.match(/\s/)&&(u["xml:space"]="preserve"),a&&(u.x=a),o&&(u.y=o),Uy(u,t.transform),ky(u,r,t,e),zy(u,t),e.animation&&Rl(t,u,e),Qe("text",t.id+"",u,void 0,n)}}function Vy(t,e){if(t instanceof ae)return w5(t,e);if(t instanceof je)return F8(t,e);if(t instanceof ma)return I8(t,e)}function P8(t,e,r){var n=t.style;if(vx(n)){var i=mx(t),a=r.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),u=s[0],l=s[1];if(!u||!l)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,p=n.shadowBlur,h=ci(n.shadowColor),d=h.opacity,v=h.color,m=p/2/u,g=p/2/l,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Qe("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Qe("feDropShadow","",{dx:f/u,dy:c/l,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),a[i]=o}e.filter=uu(o)}}function Hy(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(df(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(vf(i))a="radialGradient",o.cx=X(i.x,.5),o.cy=X(i.y,.5),o.r=X(i.r,.5);else return;for(var s=i.colorStops,u=[],l=0,f=s.length;l<f;++l){var c=hf(s[l].offset)*100+"%",p=s[l].color,h=ci(p),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),u.push(Qe("stop",l+"",m))}var g=Qe(a,"",o,u),y=Bl(g),_=n.gradientCache,x=_[y];x||(x=n.zrId+"-g"+n.gradientIdx++,_[y]=x,o.id=x,n.defs[x]=Qe(a,x,o,u)),e[r]=uu(x)}function Gy(t,e,r,n){var i=t.style[r],a=t.getBoundingRect(),o={},s=i.repeat,u=s==="no-repeat",l=s==="repeat-x",f=s==="repeat-y",c;if(Hd(i)){var p=i.imageWidth,h=i.imageHeight,d=void 0,v=i.image;if(U(v)?d=v:b5(v)?d=v.src:E5(v)&&(d=v.toDataURL()),typeof Image=="undefined"){var m="Image width/height must been given explictly in svg-ssr renderer.";Ue(p,m),Ue(h,m)}else if(p==null||h==null){var g=function(C,T){if(C){var F=C.elm,M=p||T.width,I=h||T.height;C.tag==="pattern"&&(l?(I=1,M/=a.width):f&&(M=1,I/=a.height)),C.attrs.width=M,C.attrs.height=I,F&&(F.setAttribute("width",M),F.setAttribute("height",I))}},y=Js(d,null,t,function(C){u||g(b,C),g(c,C)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=Qe("image","img",{href:d,width:p,height:h}),o.width=p,o.height=h}else i.svgElement&&(c=J(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var _,x;u?_=x=1:l?(x=1,_=o.width/a.width):f?(_=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=yf(i);S&&(o.patternTransform=S);var b=Qe("pattern","",o,[c]),E=Bl(b),A=n.patternCache,D=A[E];D||(D=n.zrId+"-p"+n.patternIdx++,A[E]=D,o.id=D,b=n.defs[D]=Qe("pattern",D,o,[c])),e[r]=uu(D)}}function C5(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=Qe("clipPath",a,o,[w5(t,r)])}e["clip-path"]=uu(a)}function Wy(t){return document.createTextNode(t)}function Vi(t,e,r){t.insertBefore(e,r)}function $y(t,e){t.removeChild(e)}function Yy(t,e){t.appendChild(e)}function Xy(t){return t.parentNode}function qy(t){return t.nextSibling}function Yh(t,e){t.textContent=e}var A5=58,B8=120,O8=Qe("","");function jy(t){return t===void 0}function Dn(t){return t!==void 0}function R8(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function kl(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function zl(t){var e,r=t.children,n=t.tag;if(Dn(n)){var i=t.elm=Wh(n);if(qh(O8,t),k(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&Yy(i,zl(a))}else Dn(t.text)&&!W(t.text)&&Yy(i,Wy(t.text))}else t.elm=Wy(t.text);return t.elm}function D5(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Vi(t,zl(a),e)}}function Xh(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(Dn(i.tag)){var a=Xy(i.elm);$y(a,i.elm)}else $y(t,i.elm)}}function qh(t,e){var r,n=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==B8?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(c5,r,o):r.charCodeAt(3)===A5?n.setAttributeNS(p5,r,o):r.charCodeAt(5)===A5?n.setAttributeNS(Oy,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function N8(t,e,r){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],u=r.length-1,l=r[0],f=r[u],c,p,h,d;n<=a&&i<=u;)o==null?o=e[++n]:s==null?s=e[--a]:l==null?l=r[++i]:f==null?f=r[--u]:kl(o,l)?($s(o,l),o=e[++n],l=r[++i]):kl(s,f)?($s(s,f),s=e[--a],f=r[--u]):kl(o,f)?($s(o,f),Vi(t,o.elm,qy(s.elm)),o=e[++n],f=r[--u]):kl(s,l)?($s(s,l),Vi(t,s.elm,o.elm),s=e[--a],l=r[++i]):(jy(c)&&(c=R8(e,n,a)),p=c[l.key],jy(p)?Vi(t,zl(l),o.elm):(h=e[p],h.tag!==l.tag?Vi(t,zl(l),o.elm):($s(h,l),e[p]=void 0,Vi(t,h.elm,o.elm))),l=r[++i]);(n<=a||i<=u)&&(n>a?(d=r[u+1]==null?null:r[u+1].elm,D5(t,d,r,i,u)):Xh(t,e,n,a))}function $s(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(qh(t,e),jy(e.text)?Dn(n)&&Dn(i)?n!==i&&N8(r,n,i):Dn(i)?(Dn(t.text)&&Yh(r,""),D5(r,null,i,0,i.length-1)):Dn(n)?Xh(r,n,0,n.length-1):Dn(t.text)&&Yh(r,""):t.text!==e.text&&(Dn(n)&&Xh(r,n,0,n.length-1),Yh(r,e.text)))}function Ky(t,e){if(kl(t,e))$s(t,e);else{var r=t.elm,n=Xy(r);zl(e),n!==null&&(Vi(n,e.elm,qy(r)),Xh(n,[t],0,0))}return e}var k8=0,z8=(function(){function t(e,r,n){if(this.type="svg",this.configLayer=U8("configLayer"),this.storage=r,this._opts=n=N({},n),this.root=e,this._id="zr"+k8++,this._oldVNode=Ny(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Wh("svg");qh(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Ky(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Vy(e,Ol(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Ol(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=V8(n,i,this._backgroundColor,a);s&&o.push(s);var u=e.compress?null:this._mainVNode=Qe("g","main",{},[]);this._paintList(r,a,u?u.children:o),u&&o.push(u);var l=z(ne(a.defs),function(p){return a.defs[p]});if(l.length&&o.push(Qe("defs","defs",{},l)),e.animation){var f=h5(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Qe("style","stl",{},[],f);o.push(c)}}return Ny(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Bl(this.renderToVNode({animation:X(e.cssAnimation,!0),emphasis:X(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:X(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,u,l=0,f=0;f<i;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,d=u&&u.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(p&&u&&p[v]===u[v]);v--);for(var m=d-1;m>v;m--)o--,s=a[o-1];for(var g=v+1;g<h;g++){var y={};C5(p[g],y,r);var _=Qe("g","clip-g-"+l++,y,[]);(s?s.children:n).push(_),a[o++]=_,s=_}u=p;var x=Vy(c,r);x&&(s?s.children:n).push(x)}}},t.prototype.resize=function(e,r){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),i&&a&&(a.style.display="none",e=u0(i,0,n),r=u0(i,1,n),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(su(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var u=this._bgVNode&&this._bgVNode.elm;u&&(u.setAttribute("width",e),u.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=gx(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t})();function U8(t){return function(){}}function V8(t,e,r,n){var i;if(r&&r!=="none")if(i=Qe("rect","bg",{width:t,height:e,x:"0",y:"0"}),mf(r))Hy({fill:r},i.attrs,"fill",n);else if(su(r))Gy({style:{fill:r},dirty:Be,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=ci(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}var T5=z8;function Zy(t){t.registerPainter("svg",T5)}var H8=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),G8=new Set(["new","function","class","this","delete","typeof","void","in","of","var","let","const","return","if","while","for"]);function jh(t){let e=[],r=0,n=t.length;for(;r<n;){let i=t[r];if(/\s/.test(i)){r++;continue}if(/[0-9]/.test(i)||i==="."&&r+1<n&&/[0-9]/.test(t[r+1])){let s=r;for(;s<n&&/[0-9.]/.test(t[s]);)s++;e.push({type:"num",value:t.slice(r,s),position:r}),r=s;continue}if(i==="'"||i==='"'){let s=r+1,u="";for(;s<n&&t[s]!==i;)t[s]==="\\"&&s+1<n?(u+=t[s+1],s+=2):(u+=t[s],s++);if(s>=n)throw new Error("\u5B57\u7B26\u4E32\u672A\u95ED\u5408");e.push({type:"str",value:u,position:r}),r=s+1;continue}if(/[A-Za-z_$]/.test(i)){let s=r;for(;s<n&&/[A-Za-z0-9_$]/.test(t[s]);)s++;let u=t.slice(r,s);if(G8.has(u))throw new Error(`\u4E0D\u5141\u8BB8\u4F7F\u7528\u5173\u952E\u5B57: ${u}`);if(H8.has(u))throw new Error(`\u7981\u6B62\u8BBF\u95EE: ${u}`);u==="true"||u==="false"?e.push({type:"bool",value:u,position:r}):e.push({type:"ident",value:u,position:r}),r=s;continue}let a=t.slice(r,r+3);if(a==="==="||a==="!=="){e.push({type:"punc",value:a,position:r}),r+=3;continue}let o=t.slice(r,r+2);if(o==="=>")throw new Error("\u4E0D\u5141\u8BB8\u51FD\u6570\u5B9A\u4E49");if(["==","!=","<=",">=","&&","||"].includes(o)){e.push({type:"punc",value:o,position:r}),r+=2;continue}if(i==="=")throw new Error("\u4E0D\u5141\u8BB8\u8D4B\u503C");if(i===";")throw new Error("\u4E0D\u5141\u8BB8\u591A\u6761\u8BED\u53E5");if("+-*/%()[]{},:.?!<>".includes(i)){e.push({type:"punc",value:i,position:r}),r++;continue}throw new Error(`\u975E\u6CD5\u5B57\u7B26: ${i}`)}return e}function Kh(t){return new W8(t).parse()}var W8=class{constructor(t){this.pos=0,this.tokens=t}parse(){let t=this.parseTernary();if(this.pos<this.tokens.length)throw new Error(`\u8868\u8FBE\u5F0F\u5B58\u5728\u591A\u4F59\u5185\u5BB9: ${this.tokens[this.pos].value}`);return t}peek(){return this.tokens[this.pos]}next(){let t=this.tokens[this.pos++];if(!t)throw new Error("\u8868\u8FBE\u5F0F\u610F\u5916\u7ED3\u675F");return t}eatPunc(t){let e=this.peek();return e&&e.type==="punc"&&e.value===t?(this.pos++,!0):!1}expectPunc(t){var e,r;if(!this.eatPunc(t)){let n=(r=(e=this.peek())==null?void 0:e.position)!=null?r:0;throw new Error(`\u4F4D\u7F6E ${n}: \u671F\u671B "${t}"`)}}parseTernary(){let t=this.parseLogicalOr();if(this.eatPunc("?")){let e=this.parseTernary();this.expectPunc(":");let r=this.parseTernary();return{type:"ternary",cond:t,consequent:e,alternate:r}}return t}parseLogicalOr(){let t=this.parseLogicalAnd();for(;this.eatPunc("||");){let e=this.parseLogicalAnd();t={type:"binary",op:"||",left:t,right:e}}return t}parseLogicalAnd(){let t=this.parseEquality();for(;this.eatPunc("&&");){let e=this.parseEquality();t={type:"binary",op:"&&",left:t,right:e}}return t}parseEquality(){let t=this.parseRelational();for(;;){let e=this.peek();if((e==null?void 0:e.type)==="punc"&&["==","!=","===","!=="].includes(e.value)){this.pos++;let r=this.parseRelational();t={type:"binary",op:e.value,left:t,right:r}}else return t}}parseRelational(){let t=this.parseAdditive();for(;;){let e=this.peek();if((e==null?void 0:e.type)==="punc"&&["<",">","<=",">="].includes(e.value)){this.pos++;let r=this.parseAdditive();t={type:"binary",op:e.value,left:t,right:r}}else return t}}parseAdditive(){let t=this.parseMultiplicative();for(;;){let e=this.peek();if((e==null?void 0:e.type)==="punc"&&(e.value==="+"||e.value==="-")){this.pos++;let r=this.parseMultiplicative();t={type:"binary",op:e.value,left:t,right:r}}else return t}}parseMultiplicative(){let t=this.parseUnary();for(;;){let e=this.peek();if((e==null?void 0:e.type)==="punc"&&["*","/","%"].includes(e.value)){this.pos++;let r=this.parseUnary();t={type:"binary",op:e.value,left:t,right:r}}else return t}}parseUnary(){let t=this.peek();if((t==null?void 0:t.type)==="punc"&&["!","-","+"].includes(t.value)){this.pos++;let e=this.parseUnary();return{type:"unary",op:t.value,arg:e,prefix:!0}}return this.parsePostfix()}parsePostfix(){var e,r,n;let t=this.parsePrimary();for(;;)if(this.eatPunc(".")){let i=this.next();if(i.type!=="ident")throw new Error(`\u4F4D\u7F6E ${i.position}: \u6210\u5458\u8BBF\u95EE\u9700\u8981\u5C5E\u6027\u540D`);t={type:"member",object:t,property:i.value,computed:!1}}else if(this.eatPunc("[")){let i=this.parseTernary();this.expectPunc("]"),i.type==="str"?t={type:"member",object:t,property:i.value,computed:!1}:t={type:"member",object:t,property:(e=i.name)!=null?e:String(i.value),computed:!0}}else if(((r=this.peek())==null?void 0:r.type)==="punc"&&((n=this.peek())==null?void 0:n.value)==="("&&(t.type==="ident"||t.type==="member")){this.pos++;let i=this.parseArgs();t={type:"call",callee:t,args:i}}else return t}parseArgs(){let t=[];if(this.eatPunc(")"))return t;for(;;){if(t.push(this.parseTernary()),this.eatPunc(")"))return t;this.expectPunc(",")}}parsePrimary(){let t=this.next();if(t.type==="num"){let e=Number(t.value);if(isNaN(e))throw new Error(`\u975E\u6CD5\u6570\u5B57: ${t.value}`);return{type:"num",value:e}}if(t.type==="str")return{type:"str",value:t.value};if(t.type==="bool")return{type:"bool",value:t.value==="true"};if(t.type==="ident")return{type:"ident",name:t.value};if(t.value==="("){let e=this.parseTernary();return this.expectPunc(")"),e}if(t.value==="["){let e=[];if(!this.eatPunc("]"))for(;e.push(this.parseTernary()),!this.eatPunc("]");)this.expectPunc(",");return{type:"array",elements:e}}if(t.value==="{"){let e=[];if(!this.eatPunc("}"))for(;;){let r=this.next();if(r.type!=="ident"&&r.type!=="str")throw new Error(`\u4F4D\u7F6E ${r.position}: \u5BF9\u8C61\u952E\u5FC5\u987B\u662F\u6807\u8BC6\u7B26\u6216\u5B57\u7B26\u4E32`);if(this.expectPunc(":"),e.push({key:r.value,value:this.parseTernary()}),this.eatPunc("}"))break;this.expectPunc(",")}return{type:"object",properties:e}}throw new Error(`\u4F4D\u7F6E ${t.position}: \u610F\u5916\u7684\u7B26\u53F7: ${t.value}`)}},M5=20,$8=8;function _r(t,e=0){if(typeof t=="number")return Number.isFinite(t)?t:e;if(typeof t=="string"){let r=t.trim();if(r==="")return e;let n=Number(r);return Number.isFinite(n)?n:e}return t==null?e:typeof t=="boolean"?t?1:0:e}function Y8(t){if(typeof t=="number")return Number.isFinite(t);if(typeof t=="string"){let e=t.trim();return e!==""&&Number.isFinite(Number(e))}return!1}function Ys(t){return!Number.isFinite(t)||Number.isInteger(t)||Math.abs(t)>=1e15?t:Number(t.toPrecision(12))}function Xs(t){if(!Number.isFinite(t)||Number.isInteger(t))return 0;let e=String(t);if(e.includes("e")||e.includes("E"))return 0;let r=e.indexOf(".");return r===-1?0:e.length-r-1}function e_(t,e){if(!Number.isFinite(t))return 0;let r=Math.min(Math.max(e,0),12);if(r===0)return Math.round(t);let n=10**r,i=t*n;return!Number.isFinite(i)||Math.abs(i)>=1e15?Ys(t):Math.round(i)/n}function t_(t,e){let r=_r(t),n=_r(e),i=r+n;return e_(i,Math.max(Xs(r),Xs(n)))}function r_(t,e){let r=_r(t),n=_r(e),i=r-n;return e_(i,Math.max(Xs(r),Xs(n)))}function O5(t,e){let r=_r(t),n=_r(e),i=r*n;return e_(i,Xs(r)+Xs(n))}function R5(t,e){let r=_r(t),n=_r(e);return n===0?0:Ys(r/n)}function X8(t,e){let r=_r(t),n=_r(e);return n===0?0:Ys(r%n)}function q8(t){if(t==null)return 2;let e=Math.trunc(_r(t,2));return Number.isFinite(e)?Math.min(Math.max(e,-M5),M5):2}function Zh(t,e,r){let n=_r(t,0),i=q8(e);if(n===0)return 0;if(Math.abs(n)>=1e21)return Ys(n);let a=Math.max(i,0)+$8,o=n.toFixed(a);if(!/^-?\d+(\.\d+)?$/.test(o))return Ys(n);let s=o.startsWith("-"),u=o.replace("-","").replace(".",""),l=BigInt(u||"0");s&&(l=-l);let f=BigInt(10)**BigInt(a-i),c=l<BigInt(0)?-BigInt(1):BigInt(1),p=l<BigInt(0)?-l:l,h=p/f,d=p%f,v=BigInt(2)*d;r==="up"?d!==BigInt(0)&&(h+=BigInt(1)):r!=="down"&&v>=f&&(v>f||r==="half-up"||h%BigInt(2)===BigInt(1))&&(h+=BigInt(1));let m=c*h;return Ys(i>=0?Number(m)/10**i:Number(m)*10**-i)}var Qy={Math,Number,String,Boolean,parseInt,parseFloat,isNaN,true:!0,false:!1,null:null,undefined:void 0},j8=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),K8=new Set(["Number","String","Boolean","parseInt","parseFloat","isNaN"]);function Rt(t,e,r={}){switch(t.type){case"num":return t.value;case"str":return t.value;case"bool":return t.value;case"ident":return Z8(t.name,e,r);case"binary":return Q8(t,e,r);case"unary":return J8(t,e,r);case"ternary":return Rt(t.cond,e,r)?Rt(t.consequent,e,r):Rt(t.alternate,e,r);case"member":return rk(t,e,r);case"call":return nk(t,e,r);case"array":return t.elements.map(n=>Rt(n,e,r));case"object":return Object.fromEntries(t.properties.map(n=>[n.key,Rt(n.value,e,r)]))}}function Z8(t,e,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(Object.prototype.hasOwnProperty.call(Qy,t))return Qy[t];throw new Error(`\u672A\u5B9A\u4E49\u7684\u6807\u8BC6\u7B26: ${t}`)}function Q8(t,e,r){let n=Rt(t.left,e,r),i=Rt(t.right,e,r);switch(t.op){case"+":return tk(n,i)?t_(n,i):ek(n,i);case"-":return r_(n,i);case"*":return O5(n,i);case"/":return R5(n,i);case"%":return X8(n,i);case"<":return n<i;case">":return n>i;case"<=":return n<=i;case">=":return n>=i;case"==":return n==i;case"!=":return n!=i;case"===":return n===i;case"!==":return n!==i;case"&&":return n&&i;case"||":return n||i;default:throw new Error(`\u672A\u77E5\u8FD0\u7B97\u7B26: ${t.op}`)}}function J8(t,e,r){let n=Rt(t.arg,e,r);switch(t.op){case"-":return r_(0,n);case"+":return _r(n);case"!":return!n;default:throw new Error(`\u672A\u77E5\u4E00\u5143\u8FD0\u7B97\u7B26: ${t.op}`)}}function ek(t,e){return`${t==null?"":String(t)}${e==null?"":String(e)}`}function tk(t,e){let r=F5(t),n=F5(e);return r==="other"||n==="other"?!1:r==="num"||n==="num"}function F5(t){return t==null||t===""?"neutral":Y8(t)?"num":"other"}function rk(t,e,r){let n=Rt(t.object,e,r);if(n==null)throw new Error("\u65E0\u6CD5\u8BBF\u95EE\u7A7A\u503C\u7684\u5C5E\u6027");if(j8.has(t.property))throw new Error(`\u7981\u6B62\u8BBF\u95EE\u5C5E\u6027: ${t.property}`);return n[t.property]}function nk(t,e,r){if(t.callee.type==="ident"&&K8.has(t.callee.name)){let i=Qy[t.callee.name],a=t.args.map(o=>Rt(o,e,r));return i(...a)}if(t.callee.type==="member"&&t.callee.object.type==="ident"&&t.callee.object.name==="Math"){let i=Math[t.callee.property];if(typeof i!="function")throw new Error(`Math.${t.callee.property} \u4E0D\u662F\u65B9\u6CD5`);let a=t.args.map(o=>Rt(o,e,r));return i(...a)}let n;if(t.callee.type==="ident")n=t.callee.name;else if(t.callee.type==="member")throw new Error("\u4E0D\u652F\u6301\u65B9\u6CD5\u8C03\u7528\uFF0C\u8BF7\u4F7F\u7528\u9876\u7EA7\u51FD\u6570");if(n&&r[n]){let i=t.args.map(a=>Rt(a,e,r));return r[n](...i)}throw n&&Object.prototype.hasOwnProperty.call(e,n)?new Error(`${n} \u4E0D\u662F\u51FD\u6570`):new Error(`\u4E0D\u5141\u8BB8\u8C03\u7528: ${n!=null?n:"\u8868\u8FBE\u5F0F"}`)}function ik(t){let e=[],r=0,n=t.length;for(;r<n;){if(t[r]==="{"){let a=1,o=r+1;for(;o<n&&a>0;)t[o]==="{"?a++:t[o]==="}"&&a--,o++;if(a!==0)throw new Error(`\u4F4D\u7F6E ${r}: \u82B1\u62EC\u53F7\u672A\u95ED\u5408`);let s=t.slice(r+1,o-1);if(s.trim()==="")throw new Error(`\u4F4D\u7F6E ${r}: \u7A7A\u8868\u8FBE\u5F0F`);let u=jh(s),l=Kh(u);e.push({type:"expr",expression:l}),r=o;continue}let i=r;for(;i<n&&t[i]!=="{";)t[i]==="\\"&&i+1<n&&(t[i+1]==="{"||t[i+1]==="}")?i+=2:i++;e.push({type:"text",value:t.slice(r,i).replace(/\\([{}])/g,"$1")}),r=i}return{type:"template",parts:e}}function ak(t,e,r={}){let n="";for(let i of t.parts)if(i.type==="text")n+=i.value;else{let a=Rt(i.expression,e,r);n+=String(a!=null?a:"")}return n}function n_(t,e={}){let r=ik(t);return n=>ak(r,n,e)}function i_(t){let e=Number(t);if(isNaN(e))return String(t);let r=e<0?"-":"",n=Math.abs(e),[i,a]=n.toFixed(2).split("."),o=i.replace(/\B(?=(\d{3})+(?!\d))/g,",");return`${r}${o}.${a}`}function a_(t,e){let r;if(t instanceof Date)r=t;else if(typeof t=="number")r=new Date(t);else if(typeof t=="string")r=new Date(t);else return String(t);if(isNaN(r.getTime()))return String(t);let n=i=>String(i).padStart(2,"0");return e.replace("YYYY",String(r.getFullYear())).replace("MM",n(r.getMonth()+1)).replace("DD",n(r.getDate())).replace("HH",n(r.getHours())).replace("mm",n(r.getMinutes())).replace("ss",n(r.getSeconds()))}var Jy=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],ok=["","\u62FE","\u4F70","\u4EDF"],sk=["","\u4E07","\u4EBF","\u4E07\u4EBF","\u4EBF\u4EBF"];function uk(t){let e="",r=!1;for(let n=3;n>=0;n--){let i=Math.floor(t/10**n)%10;if(i===0){e&&(r=!0);continue}r&&(e+="\u96F6",r=!1),e+=Jy[i]+ok[n]}return e}function o_(t){var f;let e=Number(t);if(isNaN(e))return String(t);if(e===0)return"\u96F6\u5143\u6574";let r=e<0?"\u8D1F":"",[n,i]=Math.abs(e).toFixed(2).split("."),a=Math.ceil(n.length/4),o="",s=!1;for(let c=a-1;c>=0;c--){let p=n.length-c*4,h=parseInt(n.slice(Math.max(0,p-4),p),10);if(h===0){o&&(s=!0);continue}o&&(s||h<1e3)&&(o+="\u96F6"),s=!1,o+=uk(h)+((f=sk[c])!=null?f:"")}o=`${o||"\u96F6"}\u5143`;let u=parseInt(i[0],10),l=parseInt(i[1],10);return u===0&&l===0?o+="\u6574":(u===0?o+="\u96F6":o+=Jy[u]+"\u89D2",l>0&&(o+=Jy[l]+"\u5206")),r+o}function s_(t,e,r){return t?e:r}function u_(...t){return t.reduce((e,r)=>t_(e,r),0)}function l_(...t){return t.length===0?0:t.slice(1).reduce((e,r)=>r_(e,r),t_(t[0],0))}function f_(...t){return t.length===0?0:t.reduce((e,r)=>O5(e,r),1)}function c_(t,e){return R5(t,e)}function p_(t,e){return Zh(t,e,"half-up")}function Vl(t,e){return Zh(t,e,"up")}function Hl(t,e){return Zh(t,e,"down")}function h_(t,e){return Zh(t,e,"half-even")}var lk=class{constructor(){this.functions={}}registerFunction(t,e){this.functions[t]=e}evaluate(t,e){let r=jh(t),n=Kh(r);return Rt(n,e,this.functions)}render(t,e){return n_(t,this.functions)(e)}},fk=new lk,ck={MONEY:i_,DATE:a_,UPPER:o_,IF:s_,CONCAT:(...t)=>t.filter(e=>e!=null).map(String).join(""),IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,LEN:t=>String(t).length,ADD:u_,SUB:l_,MUL:f_,DIV:c_,ROUND:p_,ROUNDUP:Vl,CEIL:Vl,ROUNDDOWN:Hl,FLOOR:Hl,ROUNDBANK:h_};for(let[t,e]of Object.entries(ck))fk.registerFunction(t,e);var ase=25.4/72;function pk(){let t=0;return function(){return t+=1,`cell-${Date.now().toString(36)}-${t}`}}function hk(){let t=0;return function(){return t+=1,`row-${Date.now().toString(36)}-${t}`}}var dk=pk(),vk=hk(),Ul={width:.75,style:"solid",color:"#333333"};function N5(t){return{id:dk(),borders:{top:{...Ul},right:{...Ul},bottom:{...Ul},left:{...Ul}},...t}}function k5(){let t=[50,50,50],e=(n,i)=>({id:vk(),type:n,height:8,...i!==void 0?{repeatOnPage:i}:{},cells:t.map(()=>N5())}),r=e("header",!0);return r.cells.forEach((n,i)=>{n.formatter=`\u5217${i+1}`,n.align="center",n.fontWeight="bold"}),{rows:[r,e("data"),e("subtotal"),e("summary")],colWidths:t}}var I5=Symbol.for("worm-print-platform.element-capabilities.v1"),P5=globalThis;function z5(){let t=P5[I5];if(t)return t;let e={entries:new Map,nextSeq:0,bootstrapped:!1};return P5[I5]=e,mk(e),e}var d_=Object.freeze({text:{zoneAllowed:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"\u5185\u5BB9",dataSource:"main"}],defaultOptions:()=>({formatter:"\u6587\u672C",fontSize:12,textAlign:"left",height:5.3}),title:"\u6587\u672C"},longText:{defaultTextFit:"autoHeight",bindings:[{targetPath:"options.formatter",label:"\u5185\u5BB9",dataSource:"main"},{targetPath:"options.styler",label:"\u6837\u5F0F",dataSource:"main"}],defaultOptions:()=>({width:141.1,height:28.2,fontSize:12,lineHeight:18}),title:"\u957F\u6587"},barcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"\u5185\u5BB9",dataSource:"main"}],defaultOptions:()=>({width:56.4,height:14.1,title:"\u6761\u5F62\u7801",barcodeType:"code128",testData:"12345678"}),title:"\u6761\u5F62\u7801"},qrcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"\u5185\u5BB9",dataSource:"main"}],defaultOptions:()=>({width:28.2,height:28.2,title:"\u4E8C\u7EF4\u7801",testData:"qrcode"}),title:"\u4E8C\u7EF4\u7801"},image:{zoneAllowed:!0,bindings:[{targetPath:"options.src",label:"\u5185\u5BB9",dataSource:"main",placeholder:"\u8F93\u5165\u56FE\u7247\u8DEF\u5F84\uFF0C\u652F\u6301 /docfiles/... \u76F8\u5BF9\u8DEF\u5F84\u3001\u7EDD\u5BF9 URL \u6216 {\u5B57\u6BB5} \u8868\u8FBE\u5F0F"}],defaultOptions:()=>({width:28.2,height:28.2,fit:"contain"}),title:"\u56FE\u7247"},table:{rotationExcluded:!0,acceptsElementBorder:!1,bindings:[],defaultOptions:()=>{let{rows:t,colWidths:e}=k5(),r=e.reduce((i,a)=>i+a,0),n=t.reduce((i,a)=>i+a.height,0);return{width:r,height:n,tableMode:"dynamic",tableRows:t,tableColWidths:e,tableDefaultFontSize:10,tableDefaultColor:"#333333",tableDefaultPadding:1,fields:[],tablePagination:{enabled:!0}}},title:"\u8868\u683C"},flowList:{rotationExcluded:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"\u5355\u5143\u6A21\u677F",dataSource:"main",placeholder:"{drugs.name} {drugs.spec}"}],defaultOptions:()=>({width:141.1,height:21.2,fontSize:12,formatter:"{name} {spec}",flowColumns:4,flowRowHeight:8,flowGapX:4,flowAutoSpan:!1,flowMaxSpan:2,flowLayoutMode:"fixed",flowPaddingTop:0,flowPaddingRight:0,flowPaddingBottom:0,flowPaddingLeft:0}),title:"\u6D41\u5F0F\u5217\u8868"},hline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:70.6,height:1.8,borderWidth:.75}),title:"\u6A2A\u7EBF"},vline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:1.8,height:35.3,borderWidth:.75}),title:"\u7AD6\u7EBF"},rect:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"\u77E9\u5F62"},oval:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"\u692D\u5706"},html:{blocked:!0,defaultOptions:()=>({width:28.2,height:28.2}),title:"HTML"},pageNumber:{title:"\u9875\u7801"}});function mk(t){if(!t.bootstrapped){t.bootstrapped=!0;for(let[e,r]of Object.entries(d_))t.entries.has(e)||t.entries.set(e,{caps:r,seq:t.nextSeq++})}}function v_(t){var e,r;return t?{...(r=(e=z5().entries.get(t))==null?void 0:e.caps)!=null?r:{},type:t}:{type:""}}function m_(){return[...z5().entries.entries()].sort((t,e)=>t[1].seq-e[1].seq).map(([t])=>t)}var L5=Symbol.for("worm-print-platform.element-plugin-registry.v1"),B5=globalThis;function gk(){let t=B5[L5];if(t)return t;let e={plugins:new Map,typeIndex:new Map,configs:new Map,legacyAliases:new Map};return B5[L5]=e,e}function g_(t){var e;return{...(e=gk().configs.get(t))!=null?e:{}}}var ose=96/25.4,sse=25.4/96;var use=25.4/72;var U5=class{constructor(t){this.functions={},t!=null&&t.functions&&(this.functions={...t.functions})}registerFunction(t,e){this.functions[t]=e}evaluate(t,e){let r=jh(t),n=Kh(r);return Rt(n,e,this.functions)}render(t,e){return n_(t,this.functions)(e)}};function _k(){return m_().filter(t=>v_(t).blocked===!0)}var Ile=_k();var Ple=96/25.4;function xk(){return m_().filter(t=>v_(t).zoneAllowed===!0)}var Lle=xk();var Sk=new U5,bk={MONEY:i_,CONCAT:(...t)=>t.filter(e=>e!=null).join(""),IF:s_,FORMAT:t=>typeof t!="number"?String(t):t.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2}),SUBSTR:(t,e,r)=>String(t).slice(e,r?e+r:void 0),LEN:t=>String(t).length,ADD:u_,SUB:l_,MUL:f_,DIV:c_,ROUND:p_,ROUNDUP:Vl,CEIL:Vl,ROUNDDOWN:Hl,FLOOR:Hl,ROUNDBANK:h_,NOW:()=>new Date().toISOString().split("T")[0],IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,PAD:(t,e,r)=>String(t).padStart(e,r),REPLACE:(t,e,r)=>String(t).replace(new RegExp(e,"g"),r),JSON:t=>JSON.stringify(t,null,2),DATE:a_,UPPER:o_};for(let[t,e]of Object.entries(bk))Sk.registerFunction(t,e);var Ble=25.4/96;var Ole=Object.fromEntries(Object.entries(d_).filter(([,t])=>t.bindings!==void 0).map(([t,e])=>{var r;return[t,[...(r=e.bindings)!=null?r:[]]]}));var V5="@worm-print-platform/echarts";var Tn=["left","top","width","height","chartOption"],Qh=["dataSource","categoryField","valueFields","seriesField"],Mn=["title","legend","palette"],H5=[{type:"barChart",label:"\u67F1\u72B6\u56FE",icon:"ChartColumn",seriesType:"bar",orientation:"vertical",fields:[...Qh,...Mn,"stack"],requiredOptionKeys:Tn,defaultWidth:100,defaultHeight:60,notes:"\u67F1\u72B6\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6BCF\u5B57\u6BB5\u4E00\u4E2A series\uFF1Bseries[].data \u5199 $data \u5360\u4F4D\uFF1B\u56FA\u5B9A\u9AD8\uFF0C\u7981\u6B62 autoHeight"},{type:"barHChart",label:"\u6761\u5F62\u56FE",icon:"ChartBar",seriesType:"bar",orientation:"horizontal",fields:[...Qh,...Mn,"stack"],requiredOptionKeys:Tn,defaultWidth:100,defaultHeight:60,notes:"\u6A2A\u5411\u6761\u5F62\u56FE\uFF1AxAxis \u4E3A\u6570\u503C\u3001yAxis \u4E3A\u7C7B\u76EE\uFF1B\u7C7B\u76EE\u5199 yAxis.data \u7684 $data \u5360\u4F4D"},{type:"lineChart",label:"\u6298\u7EBF\u56FE",icon:"ChartLine",seriesType:"line",fields:[...Qh,...Mn,"stack"],requiredOptionKeys:Tn,defaultWidth:100,defaultHeight:60,notes:"\u6298\u7EBF\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF1B\u4E0D\u5199 areaStyle"},{type:"areaChart",label:"\u9762\u79EF\u56FE",icon:"ChartArea",seriesType:"line",fields:[...Qh,...Mn,"stack"],requiredOptionKeys:Tn,defaultWidth:100,defaultHeight:60,notes:"\u9762\u79EF\u56FE\uFF1A\u6298\u7EBF + series[].areaStyle\uFF1B\u5176\u4F59\u540C\u6298\u7EBF\u56FE"},{type:"pieChart",label:"\u997C\u56FE",icon:"ChartPie",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...Mn],requiredOptionKeys:Tn,defaultWidth:60,defaultHeight:60,notes:"\u997C\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u751F\u6210 { name, value }\uFF1B\u53EA\u9700\u4E00\u4E2A\u6570\u503C\u5B57\u6BB5"},{type:"doughnutChart",label:"\u73AF\u5F62\u56FE",icon:"Donut",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...Mn,"innerRadius"],requiredOptionKeys:Tn,defaultWidth:60,defaultHeight:60,notes:"\u73AF\u5F62\u56FE\uFF1A\u997C\u56FE + radius:[\u5185\u5F84,\u5916\u5F84]\uFF1B\u5185\u5F84\u7531\u9762\u677F\u914D\u7F6E"},{type:"scatterChart",label:"\u6563\u70B9\u56FE",icon:"ChartScatter",seriesType:"scatter",fields:["dataSource","categoryField","valueFields",...Mn,"bubble"],requiredOptionKeys:Tn,defaultWidth:80,defaultHeight:60,notes:"\u6563\u70B9\u56FE\uFF1A\u7C7B\u76EE\u5B57\u6BB5\u4F5C x\u3001\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C y\uFF1BchartBubble \u5F00\u542F\u65F6\u7528\u7B2C\u4E8C\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u70B9\u5927\u5C0F"},{type:"radarChart",label:"\u96F7\u8FBE\u56FE",icon:"Radar",seriesType:"radar",fields:["dataSource","categoryField","valueFields",...Mn,"radius"],requiredOptionKeys:Tn,defaultWidth:70,defaultHeight:60,notes:"\u96F7\u8FBE\u56FE\uFF1A\u6BCF\u4E2A\u6570\u503C\u5B57\u6BB5\u662F\u4E00\u4E2A\u7EF4\u5EA6\uFF08radar.indicator\uFF09\uFF0C\u6BCF\u884C\u6570\u636E\u662F\u4E00\u4E2A\u7CFB\u5217\uFF08\u7C7B\u76EE\u5B57\u6BB5\u4F5C\u7CFB\u5217\u540D\uFF09\uFF1B\u534A\u5F84\u7531\u9762\u677F\u5199 radar.radius\uFF08%\uFF0C\u9ED8\u8BA4 75\uFF09"},{type:"funnelChart",label:"\u6F0F\u6597\u56FE",icon:"Funnel",seriesType:"funnel",fields:["dataSource","categoryField","valueFields",...Mn,"padding"],requiredOptionKeys:Tn,defaultWidth:60,defaultHeight:60,notes:"\u6F0F\u6597\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6309\u6570\u503C\u964D\u5E8F\uFF1B\u56DB\u8FB9\u5185\u8FB9\u8DDD\u7531\u9762\u677F\u5199 series.left/right/top/bottom\uFF08%\uFF0C\u53F3\u4FA7\u9700\u7559\u5916\u7F6E\u6807\u7B7E\u7A7A\u95F4\uFF09"},{type:"gaugeChart",label:"\u4EEA\u8868\u76D8",icon:"Gauge",seriesType:"gauge",fields:["dataSource","valueFields",...Mn,"gaugeRange"],requiredOptionKeys:Tn,defaultWidth:60,defaultHeight:60,notes:"\u4EEA\u8868\u76D8\uFF1A\u53D6\u9996\u884C\u6570\u636E\u7684\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u6307\u9488\u503C\uFF1Bmin/max \u7531\u9762\u677F\u5199\u5165 series[0].min/max"}],kle=H5.map(t=>t.type);function Jh(t){return H5.find(e=>e.type===t)}function G5(){return g_(V5)}ut([Tg,lg,Bg,X0,Z0,iy,ny,cy,vy,Ey,my,wy,Zy]);var W5=new Set;function $5(){var r;let e=((r=G5().components)!=null?r:[]).filter(n=>n!=null&&!W5.has(n));if(e.length!==0){ut(e);for(let n of e)W5.add(n)}}function Ek(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function wk(t,e){let r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function Ck(t,e){let r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function ed(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function Y5(t,e){let r=Jh(t);if(!r)return e;let n=structuredClone(e),i=Ek(n.series);if(i.length===0)return n;if(r.seriesType==="pie")return n.series=i.map(s=>{var u;return{...s,type:"pie",...t==="doughnutChart"?{radius:(u=s.radius)!=null?u:["40%","70%"]}:{}}}),delete n.xAxis,delete n.yAxis,n;if(r.seriesType==="scatter")return n.series=i.map(s=>({...s,type:"scatter"})),n.xAxis=ed(n.xAxis,s=>({...s,type:"value",data:void 0})),n.yAxis=ed(n.yAxis,s=>({...s,type:"value",data:void 0})),n;if(r.seriesType==="radar")return n.series=i.map(s=>({...s,type:"radar"})),n;if(r.seriesType==="funnel")return n.series=i.map(s=>({...s,type:"funnel",sort:"descending"})),n;if(r.seriesType==="gauge")return n.series=i.map(s=>({...s,type:"gauge"})),n;let a=r.orientation==="horizontal",o=r.seriesType==="line"?"line":"bar";return n.xAxis=ed(n.xAxis,s=>wk(s,a)),n.yAxis=ed(n.yAxis,s=>Ck(s,a)),n.series=i.map(s=>{var l;let u={...s,type:o};return t==="areaChart"?u.areaStyle=(l=s.areaStyle)!=null?l:{}:delete u.areaStyle,u}),n}var Ak=3.7795275590551185;function td(t){let e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*Ak))}function Dk(t,e,r){var c;let n=/<svg\b[^>]*>/i.exec(t);if(!n)return t;let i=n[0],a=i.slice(4,-1),o=/\sstyle\s*=\s*"([^"]*)"/i.exec(a),s=((c=o==null?void 0:o[1])!=null?c:"").split(";").map(p=>p.trim()).filter(p=>p&&!/^(width|height|display)\s*:/i.test(p)).join(";"),u=a.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),l=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),f=`<svg${u} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${l}">`;return t.slice(0,n.index)+f+t.slice(n.index+i.length)}function X5(t){$5();let e=Y5(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("\u56FE\u8868 option \u975E\u6CD5\uFF1A\u9700\u8981\u5BF9\u8C61");let r=td(t.widthMm),n=td(t.heightMm),i=Hh.init(null,null,{renderer:"svg",ssr:!0,width:r,height:n});try{let a=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...a!=null?a:{}};return i.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),Dk(i.renderToSVGString(),r,n)}finally{i.dispose()}}var y_="2";function q5(t){var r,n,i,a,o;let e={};for(let s of Array.isArray(t)?t:[]){let u=typeof(s==null?void 0:s.key)=="string"?s.key:"";if(!u)continue;let l=(n=(r=s._chartOption)!=null?r:s.chartOption)!=null?n:{};try{e[u]=X5({key:u,type:String((i=s.type)!=null?i:""),option:l,widthMm:Number((a=s.widthMm)!=null?a:0),heightMm:Number((o=s.heightMm)!=null?o:0),fontFamily:typeof s.fontFamily=="string"?s.fontFamily:void 0})}catch(f){}}return e}function j5(t=globalThis){let e=t.__wormDom,r=e&&typeof e=="object"?e:t.__wormDom={};return r.renderAssets=q5,r.chartExecutorVersion="2",r}j5();return eM(Tk);})();
|
|
27
|
+
`:"",i=" {"+n,a=n+"}",o=z(ne(t),function(u){return u+i+z(ne(t[u]),function(l){return l+":"+t[u][l]+";"}).join(n)+a}).join(n),s=z(ne(e),function(u){return"@keyframes "+u+i+z(ne(e[u]),function(l){return l+i+z(ne(e[u][l]),function(f){var c=e[u][l][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Ol(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Ny(t,e,r,n){return Qe("svg","root",{width:t,height:e,xmlns:f5,"xmlns:xlink":Oy,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var S8=0;function $h(){return S8++}var d5={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},fo="transform-origin";function b8(t,e,r){var n=N({},t.shape);N(n,e),t.buildPath(r,n);var i=new Gh;return i.reset(gf(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function E8(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[fo]=r+"px "+n+"px")}var w8={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function m5(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function C8(t,e,r){var n=t.shape.paths,i={},a,o;if(w(n,function(u){var l=Ol(r.zrId);l.animation=!0,Rl(u,{},l,!0);var f=l.cssAnims,c=l.cssNodes,p=ne(f),h=p.length;if(h){o=p[h-1];var d=f[o];for(var v in d){var m=d[v];i[v]=i[v]||{d:""},i[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=m5(i,r);return a.replace(o,s)}}function v5(t){return U(t)?d5[t]?"cubic-bezier("+d5[t]+")":To(t)?t:"":""}function Rl(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof qo){var s=C8(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var u={},l=0;l<a;l++){var f=i[l],c=[f.getMaxTime()/1e3+"s"],p=v5(f.getClip().easing),h=f.getDelay();p?c.push(p):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");u[d]=u[d]||[d,[]],u[d][1].push(f)}function v(y){var _=y[1],x=_.length,S={},b={},E={},D="animation-timing-function";function A(We,De,Le){for(var he=We.getTracks(),Se=We.getMaxTime(),Xt=0;Xt<he.length;Xt++){var qe=he[Xt];if(qe.needsAnimate()){var Rr=qe.keyframes,qt=qe.propName;if(Le&&(qt=Le(qt)),qt)for(var Nr=0;Nr<Rr.length;Nr++){var co=Rr[Nr],kr=Math.round(co.time/Se*100)+"%",Gl=v5(co.easing),po=co.rawValue;(U(po)||ie(po))&&(De[kr]=De[kr]||{},De[kr][qt]=co.rawValue,Gl&&(De[kr][D]=Gl))}}}}for(var C=0;C<x;C++){var T=_[C],F=T.targetName;F?F==="shape"&&A(T,b):!n&&A(T,S)}for(var M in S){var I={};oi(I,t),N(I,S[M]);var L=yf(I),B=S[M][D];E[M]=L?{transform:L}:{},E8(E[M],I),B&&(E[M][D]=B)}var R,O=!0;for(var M in b){E[M]=E[M]||{};var V=!R,B=b[M][D];V&&(R=new bt);var G=R.len();R.reset(),E[M].d=b8(t,b[M],R);var H=R.len();if(!V&&G!==H){O=!1;break}B&&(E[M][D]=B)}if(!O)for(var M in E)delete E[M].d;if(!n)for(var C=0;C<x;C++){var T=_[C],F=T.targetName;F==="style"&&A(T,E,function(he){return w8[he]})}for(var q=ne(E),Q=!0,j,C=1;C<q.length;C++){var oe=q[C-1],ge=q[C];if(E[oe][fo]!==E[ge][fo]){Q=!1;break}j=E[oe][fo]}if(Q&&j){for(var M in E)E[M][fo]&&delete E[M][fo];e[fo]=j}if(Fe(q,function(We){return ne(E[We]).length>0}).length){var Xe=m5(E,r);return Xe+" "+y[0]+" both"}}for(var m in u){var s=v(u[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+$h();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function y5(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};g5(n,e,r,!0)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,u=t.currentStates.indexOf("select")>=0&&s||o;u&&(a=Io(u))}var l=i.lineWidth;if(l){var f=!i.strokeNoScale&&t.transform?t.transform[0]:1;l=l/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),l&&(n["stroke-width"]=l),g5(n,e,r,!0)}}function g5(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+$h(),r.cssStyleCache[i]=a,r.cssNodes["."+a+(n?":hover":"")]=t),e.class=e.class?e.class+" "+a:a}var Nl=Math.round;function b5(t){return t&&U(t.src)}function E5(t){return t&&Y(t.toDataURL)}function ky(t,e,r,n){By(function(i,a){var o=i==="fill"||i==="stroke";o&&mf(a)?Hy(e,t,i,n):o&&su(a)?Gy(r,t,i,n):t[i]=a,o&&n.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),P8(r,t,n)}function zy(t,e){var r=Zg(e);r&&(r.each(function(n,i){n!=null&&(t[(Ry+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[Ry+"silent"]="true"))}function _5(t){return un(t[0]-1)&&un(t[1])&&un(t[2])&&un(t[3]-1)}function D8(t){return un(t[4])&&un(t[5])}function Uy(t,e,r){if(e&&!(D8(e)&&_5(e))){var n=r?10:1e4;t.transform=_5(e)?"translate("+Nl(e[4]*n)/n+" "+Nl(e[5]*n)/n+")":px(e)}}function x5(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(Nl(n[a][0]*r)/r),i.push(Nl(n[a][1]*r)/r);e.points=i.join(" ")}function S5(t){return!t.smooth}function A8(t){var e=z(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(n[o[1]]=Nl(s*i)/i)}}}var T8={circle:[A8(["cx","cy","r"])],polyline:[x5,S5],polygon:[x5,S5]};function M8(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function w5(t,e){var r=t.style,n=t.shape,i=T8[t.type],a={},o=e.animation,s="path",u=t.style.strokePercent,l=e.compress&&gf(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&M8(t))&&!(u<1)){s=t.type;var f=Math.pow(10,l);i[0](n,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;c&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var h=p.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||u!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new Gh),v.reset(l),p.rebuildPath(v,u),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=u),a.d=v.getStr()}return Uy(a,t.transform),ky(a,r,t,e),zy(a,t),e.animation&&Rl(t,a,e),e.emphasis&&y5(t,a,e),Qe(s,t.id+"",a)}function F8(t,e){var r=t.style,n=r.image;if(n&&!U(n)&&(b5(n)?n=n.src:E5(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,u={href:n,width:o,height:s};return i&&(u.x=i),a&&(u.y=a),Uy(u,t.transform),ky(u,r,t,e),zy(u,t),e.animation&&Rl(t,u,e),Qe("image",t.id+"",u)}}function I8(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Kt,a=r.x||0,o=dx(r.y||0,ta(i),r.textBaseline),s=hx[r.textAlign]||r.textAlign,u={"dominant-baseline":"central","text-anchor":s};if(hv(r)){var l="",f=r.fontStyle,c=pv(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||ad,h=r.fontWeight;l+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal"&&(l+="font-style:"+f+";"),h&&h!=="normal"&&(l+="font-weight:"+h+";"),u.style=l}else u.style="font: "+i;return n.match(/\s/)&&(u["xml:space"]="preserve"),a&&(u.x=a),o&&(u.y=o),Uy(u,t.transform),ky(u,r,t,e),zy(u,t),e.animation&&Rl(t,u,e),Qe("text",t.id+"",u,void 0,n)}}function Vy(t,e){if(t instanceof ae)return w5(t,e);if(t instanceof je)return F8(t,e);if(t instanceof ma)return I8(t,e)}function P8(t,e,r){var n=t.style;if(vx(n)){var i=mx(t),a=r.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),u=s[0],l=s[1];if(!u||!l)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,p=n.shadowBlur,h=ci(n.shadowColor),d=h.opacity,v=h.color,m=p/2/u,g=p/2/l,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Qe("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Qe("feDropShadow","",{dx:f/u,dy:c/l,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),a[i]=o}e.filter=uu(o)}}function Hy(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(df(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(vf(i))a="radialGradient",o.cx=X(i.x,.5),o.cy=X(i.y,.5),o.r=X(i.r,.5);else return;for(var s=i.colorStops,u=[],l=0,f=s.length;l<f;++l){var c=hf(s[l].offset)*100+"%",p=s[l].color,h=ci(p),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),u.push(Qe("stop",l+"",m))}var g=Qe(a,"",o,u),y=Bl(g),_=n.gradientCache,x=_[y];x||(x=n.zrId+"-g"+n.gradientIdx++,_[y]=x,o.id=x,n.defs[x]=Qe(a,x,o,u)),e[r]=uu(x)}function Gy(t,e,r,n){var i=t.style[r],a=t.getBoundingRect(),o={},s=i.repeat,u=s==="no-repeat",l=s==="repeat-x",f=s==="repeat-y",c;if(Hd(i)){var p=i.imageWidth,h=i.imageHeight,d=void 0,v=i.image;if(U(v)?d=v:b5(v)?d=v.src:E5(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Ue(p,m),Ue(h,m)}else if(p==null||h==null){var g=function(C,T){if(C){var F=C.elm,M=p||T.width,I=h||T.height;C.tag==="pattern"&&(l?(I=1,M/=a.width):f&&(M=1,I/=a.height)),C.attrs.width=M,C.attrs.height=I,F&&(F.setAttribute("width",M),F.setAttribute("height",I))}},y=Js(d,null,t,function(C){u||g(b,C),g(c,C)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=Qe("image","img",{href:d,width:p,height:h}),o.width=p,o.height=h}else i.svgElement&&(c=J(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var _,x;u?_=x=1:l?(x=1,_=o.width/a.width):f?(_=1,x=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=yf(i);S&&(o.patternTransform=S);var b=Qe("pattern","",o,[c]),E=Bl(b),D=n.patternCache,A=D[E];A||(A=n.zrId+"-p"+n.patternIdx++,D[E]=A,o.id=A,b=n.defs[A]=Qe("pattern",A,o,[c])),e[r]=uu(A)}}function C5(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=Qe("clipPath",a,o,[w5(t,r)])}e["clip-path"]=uu(a)}function Wy(t){return document.createTextNode(t)}function Vi(t,e,r){t.insertBefore(e,r)}function $y(t,e){t.removeChild(e)}function Yy(t,e){t.appendChild(e)}function Xy(t){return t.parentNode}function qy(t){return t.nextSibling}function Yh(t,e){t.textContent=e}var D5=58,B8=120,O8=Qe("","");function jy(t){return t===void 0}function An(t){return t!==void 0}function R8(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function kl(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function zl(t){var e,r=t.children,n=t.tag;if(An(n)){var i=t.elm=Wh(n);if(qh(O8,t),k(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&Yy(i,zl(a))}else An(t.text)&&!W(t.text)&&Yy(i,Wy(t.text))}else t.elm=Wy(t.text);return t.elm}function A5(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Vi(t,zl(a),e)}}function Xh(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(An(i.tag)){var a=Xy(i.elm);$y(a,i.elm)}else $y(t,i.elm)}}function qh(t,e){var r,n=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==B8?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(c5,r,o):r.charCodeAt(3)===D5?n.setAttributeNS(p5,r,o):r.charCodeAt(5)===D5?n.setAttributeNS(Oy,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function N8(t,e,r){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],u=r.length-1,l=r[0],f=r[u],c,p,h,d;n<=a&&i<=u;)o==null?o=e[++n]:s==null?s=e[--a]:l==null?l=r[++i]:f==null?f=r[--u]:kl(o,l)?($s(o,l),o=e[++n],l=r[++i]):kl(s,f)?($s(s,f),s=e[--a],f=r[--u]):kl(o,f)?($s(o,f),Vi(t,o.elm,qy(s.elm)),o=e[++n],f=r[--u]):kl(s,l)?($s(s,l),Vi(t,s.elm,o.elm),s=e[--a],l=r[++i]):(jy(c)&&(c=R8(e,n,a)),p=c[l.key],jy(p)?Vi(t,zl(l),o.elm):(h=e[p],h.tag!==l.tag?Vi(t,zl(l),o.elm):($s(h,l),e[p]=void 0,Vi(t,h.elm,o.elm))),l=r[++i]);(n<=a||i<=u)&&(n>a?(d=r[u+1]==null?null:r[u+1].elm,A5(t,d,r,i,u)):Xh(t,e,n,a))}function $s(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(qh(t,e),jy(e.text)?An(n)&&An(i)?n!==i&&N8(r,n,i):An(i)?(An(t.text)&&Yh(r,""),A5(r,null,i,0,i.length-1)):An(n)?Xh(r,n,0,n.length-1):An(t.text)&&Yh(r,""):t.text!==e.text&&(An(n)&&Xh(r,n,0,n.length-1),Yh(r,e.text)))}function Ky(t,e){if(kl(t,e))$s(t,e);else{var r=t.elm,n=Xy(r);zl(e),n!==null&&(Vi(n,e.elm,qy(r)),Xh(n,[t],0,0))}return e}var k8=0,z8=(function(){function t(e,r,n){if(this.type="svg",this.configLayer=U8("configLayer"),this.storage=r,this._opts=n=N({},n),this.root=e,this._id="zr"+k8++,this._oldVNode=Ny(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Wh("svg");qh(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Ky(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Vy(e,Ol(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Ol(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=V8(n,i,this._backgroundColor,a);s&&o.push(s);var u=e.compress?null:this._mainVNode=Qe("g","main",{},[]);this._paintList(r,a,u?u.children:o),u&&o.push(u);var l=z(ne(a.defs),function(p){return a.defs[p]});if(l.length&&o.push(Qe("defs","defs",{},l)),e.animation){var f=h5(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Qe("style","stl",{},[],f);o.push(c)}}return Ny(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Bl(this.renderToVNode({animation:X(e.cssAnimation,!0),emphasis:X(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:X(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,u,l=0,f=0;f<i;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,d=u&&u.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(p&&u&&p[v]===u[v]);v--);for(var m=d-1;m>v;m--)o--,s=a[o-1];for(var g=v+1;g<h;g++){var y={};C5(p[g],y,r);var _=Qe("g","clip-g-"+l++,y,[]);(s?s.children:n).push(_),a[o++]=_,s=_}u=p;var x=Vy(c,r);x&&(s?s.children:n).push(x)}}},t.prototype.resize=function(e,r){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),i&&a&&(a.style.display="none",e=u0(i,0,n),r=u0(i,1,n),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(su(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var u=this._bgVNode&&this._bgVNode.elm;u&&(u.setAttribute("width",e),u.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=gx(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t})();function U8(t){return function(){}}function V8(t,e,r,n){var i;if(r&&r!=="none")if(i=Qe("rect","bg",{width:t,height:e,x:"0",y:"0"}),mf(r))Hy({fill:r},i.attrs,"fill",n);else if(su(r))Gy({style:{fill:r},dirty:Be,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=ci(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}var T5=z8;function Zy(t){t.registerPainter("svg",T5)}var H8=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),G8=new Set(["new","function","class","this","delete","typeof","void","in","of","var","let","const","return","if","while","for"]);function jh(t){let e=[],r=0,n=t.length;for(;r<n;){let i=t[r];if(/\s/.test(i)){r++;continue}if(/[0-9]/.test(i)||i==="."&&r+1<n&&/[0-9]/.test(t[r+1])){let s=r;for(;s<n&&/[0-9.]/.test(t[s]);)s++;e.push({type:"num",value:t.slice(r,s),position:r}),r=s;continue}if(i==="'"||i==='"'){let s=r+1,u="";for(;s<n&&t[s]!==i;)t[s]==="\\"&&s+1<n?(u+=t[s+1],s+=2):(u+=t[s],s++);if(s>=n)throw new Error("\u5B57\u7B26\u4E32\u672A\u95ED\u5408");e.push({type:"str",value:u,position:r}),r=s+1;continue}if(/[A-Za-z_$\u4e00-\u9fff]/.test(i)){let s=r;for(;s<n&&/[A-Za-z0-9_$\u4e00-\u9fff]/.test(t[s]);)s++;let u=t.slice(r,s);if(G8.has(u))throw new Error(`\u4E0D\u5141\u8BB8\u4F7F\u7528\u5173\u952E\u5B57: ${u}`);if(H8.has(u))throw new Error(`\u7981\u6B62\u8BBF\u95EE: ${u}`);u==="true"||u==="false"?e.push({type:"bool",value:u,position:r}):e.push({type:"ident",value:u,position:r}),r=s;continue}let a=t.slice(r,r+3);if(a==="==="||a==="!=="){e.push({type:"punc",value:a,position:r}),r+=3;continue}let o=t.slice(r,r+2);if(o==="=>")throw new Error("\u4E0D\u5141\u8BB8\u51FD\u6570\u5B9A\u4E49");if(["==","!=","<=",">=","&&","||"].includes(o)){e.push({type:"punc",value:o,position:r}),r+=2;continue}if(i==="=")throw new Error("\u4E0D\u5141\u8BB8\u8D4B\u503C");if(i===";")throw new Error("\u4E0D\u5141\u8BB8\u591A\u6761\u8BED\u53E5");if("+-*/%()[]{},:.?!<>".includes(i)){e.push({type:"punc",value:i,position:r}),r++;continue}throw new Error(`\u975E\u6CD5\u5B57\u7B26: ${i}`)}return e}function Kh(t){return new W8(t).parse()}var W8=class{constructor(t){this.pos=0,this.tokens=t}parse(){let t=this.parseTernary();if(this.pos<this.tokens.length)throw new Error(`\u8868\u8FBE\u5F0F\u5B58\u5728\u591A\u4F59\u5185\u5BB9: ${this.tokens[this.pos].value}`);return t}peek(){return this.tokens[this.pos]}next(){let t=this.tokens[this.pos++];if(!t)throw new Error("\u8868\u8FBE\u5F0F\u610F\u5916\u7ED3\u675F");return t}eatPunc(t){let e=this.peek();return e&&e.type==="punc"&&e.value===t?(this.pos++,!0):!1}expectPunc(t){if(!this.eatPunc(t)){let e=this.peek()?.position??0;throw new Error(`\u4F4D\u7F6E ${e}: \u671F\u671B "${t}"`)}}parseTernary(){let t=this.parseLogicalOr();if(this.eatPunc("?")){let e=this.parseTernary();this.expectPunc(":");let r=this.parseTernary();return{type:"ternary",cond:t,consequent:e,alternate:r}}return t}parseLogicalOr(){let t=this.parseLogicalAnd();for(;this.eatPunc("||");){let e=this.parseLogicalAnd();t={type:"binary",op:"||",left:t,right:e}}return t}parseLogicalAnd(){let t=this.parseEquality();for(;this.eatPunc("&&");){let e=this.parseEquality();t={type:"binary",op:"&&",left:t,right:e}}return t}parseEquality(){let t=this.parseRelational();for(;;){let e=this.peek();if(e?.type==="punc"&&["==","!=","===","!=="].includes(e.value)){this.pos++;let r=this.parseRelational();t={type:"binary",op:e.value,left:t,right:r}}else return t}}parseRelational(){let t=this.parseAdditive();for(;;){let e=this.peek();if(e?.type==="punc"&&["<",">","<=",">="].includes(e.value)){this.pos++;let r=this.parseAdditive();t={type:"binary",op:e.value,left:t,right:r}}else return t}}parseAdditive(){let t=this.parseMultiplicative();for(;;){let e=this.peek();if(e?.type==="punc"&&(e.value==="+"||e.value==="-")){this.pos++;let r=this.parseMultiplicative();t={type:"binary",op:e.value,left:t,right:r}}else return t}}parseMultiplicative(){let t=this.parseUnary();for(;;){let e=this.peek();if(e?.type==="punc"&&["*","/","%"].includes(e.value)){this.pos++;let r=this.parseUnary();t={type:"binary",op:e.value,left:t,right:r}}else return t}}parseUnary(){let t=this.peek();if(t?.type==="punc"&&["!","-","+"].includes(t.value)){this.pos++;let e=this.parseUnary();return{type:"unary",op:t.value,arg:e,prefix:!0}}return this.parsePostfix()}parsePostfix(){let t=this.parsePrimary();for(;;)if(this.eatPunc(".")){let e=this.next();if(e.type!=="ident")throw new Error(`\u4F4D\u7F6E ${e.position}: \u6210\u5458\u8BBF\u95EE\u9700\u8981\u5C5E\u6027\u540D`);t={type:"member",object:t,property:e.value,computed:!1}}else if(this.eatPunc("[")){let e=this.parseTernary();this.expectPunc("]"),e.type==="str"?t={type:"member",object:t,property:e.value,computed:!1}:t={type:"member",object:t,property:e.name??String(e.value),computed:!0}}else if(this.peek()?.type==="punc"&&this.peek()?.value==="("&&(t.type==="ident"||t.type==="member")){this.pos++;let e=this.parseArgs();t={type:"call",callee:t,args:e}}else return t}parseArgs(){let t=[];if(this.eatPunc(")"))return t;for(;;){if(t.push(this.parseTernary()),this.eatPunc(")"))return t;this.expectPunc(",")}}parsePrimary(){let t=this.next();if(t.type==="num"){let e=Number(t.value);if(isNaN(e))throw new Error(`\u975E\u6CD5\u6570\u5B57: ${t.value}`);return{type:"num",value:e}}if(t.type==="str")return{type:"str",value:t.value};if(t.type==="bool")return{type:"bool",value:t.value==="true"};if(t.type==="ident")return{type:"ident",name:t.value};if(t.value==="("){let e=this.parseTernary();return this.expectPunc(")"),e}if(t.value==="["){let e=[];if(!this.eatPunc("]"))for(;e.push(this.parseTernary()),!this.eatPunc("]");)this.expectPunc(",");return{type:"array",elements:e}}if(t.value==="{"){let e=[];if(!this.eatPunc("}"))for(;;){let r=this.next();if(r.type!=="ident"&&r.type!=="str")throw new Error(`\u4F4D\u7F6E ${r.position}: \u5BF9\u8C61\u952E\u5FC5\u987B\u662F\u6807\u8BC6\u7B26\u6216\u5B57\u7B26\u4E32`);if(this.expectPunc(":"),e.push({key:r.value,value:this.parseTernary()}),this.eatPunc("}"))break;this.expectPunc(",")}return{type:"object",properties:e}}throw new Error(`\u4F4D\u7F6E ${t.position}: \u610F\u5916\u7684\u7B26\u53F7: ${t.value}`)}},M5=20,$8=8;function _r(t,e=0){if(typeof t=="number")return Number.isFinite(t)?t:e;if(typeof t=="string"){let r=t.trim();if(r==="")return e;let n=Number(r);return Number.isFinite(n)?n:e}return t==null?e:typeof t=="boolean"?t?1:0:e}function Y8(t){if(typeof t=="number")return Number.isFinite(t);if(typeof t=="string"){let e=t.trim();return e!==""&&Number.isFinite(Number(e))}return!1}function Ys(t){return!Number.isFinite(t)||Number.isInteger(t)||Math.abs(t)>=1e15?t:Number(t.toPrecision(12))}function Xs(t){if(!Number.isFinite(t)||Number.isInteger(t))return 0;let e=String(t);if(e.includes("e")||e.includes("E"))return 0;let r=e.indexOf(".");return r===-1?0:e.length-r-1}function e_(t,e){if(!Number.isFinite(t))return 0;let r=Math.min(Math.max(e,0),12);if(r===0)return Math.round(t);let n=10**r,i=t*n;return!Number.isFinite(i)||Math.abs(i)>=1e15?Ys(t):Math.round(i)/n}function t_(t,e){let r=_r(t),n=_r(e),i=r+n;return e_(i,Math.max(Xs(r),Xs(n)))}function r_(t,e){let r=_r(t),n=_r(e),i=r-n;return e_(i,Math.max(Xs(r),Xs(n)))}function O5(t,e){let r=_r(t),n=_r(e),i=r*n;return e_(i,Xs(r)+Xs(n))}function R5(t,e){let r=_r(t),n=_r(e);return n===0?0:Ys(r/n)}function X8(t,e){let r=_r(t),n=_r(e);return n===0?0:Ys(r%n)}function q8(t){if(t==null)return 2;let e=Math.trunc(_r(t,2));return Number.isFinite(e)?Math.min(Math.max(e,-M5),M5):2}function Zh(t,e,r){let n=_r(t,0),i=q8(e);if(n===0)return 0;if(Math.abs(n)>=1e21)return Ys(n);let a=Math.max(i,0)+$8,o=n.toFixed(a);if(!/^-?\d+(\.\d+)?$/.test(o))return Ys(n);let s=o.startsWith("-"),u=o.replace("-","").replace(".",""),l=BigInt(u||"0");s&&(l=-l);let f=10n**BigInt(a-i),c=l<0n?-1n:1n,p=l<0n?-l:l,h=p/f,d=p%f,v=2n*d;r==="up"?d!==0n&&(h+=1n):r!=="down"&&v>=f&&(v>f||r==="half-up"||h%2n===1n)&&(h+=1n);let m=c*h;return Ys(i>=0?Number(m)/10**i:Number(m)*10**-i)}var Qy={Math,Number,String,Boolean,parseInt,parseFloat,isNaN,true:!0,false:!1,null:null,undefined:void 0},j8=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),K8=new Set(["Number","String","Boolean","parseInt","parseFloat","isNaN"]);function Rt(t,e,r={}){switch(t.type){case"num":return t.value;case"str":return t.value;case"bool":return t.value;case"ident":return Z8(t.name,e,r);case"binary":return Q8(t,e,r);case"unary":return J8(t,e,r);case"ternary":return Rt(t.cond,e,r)?Rt(t.consequent,e,r):Rt(t.alternate,e,r);case"member":return rk(t,e,r);case"call":return nk(t,e,r);case"array":return t.elements.map(n=>Rt(n,e,r));case"object":return Object.fromEntries(t.properties.map(n=>[n.key,Rt(n.value,e,r)]))}}function Z8(t,e,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(Object.prototype.hasOwnProperty.call(Qy,t))return Qy[t];throw new Error(`\u672A\u5B9A\u4E49\u7684\u6807\u8BC6\u7B26: ${t}`)}function Q8(t,e,r){let n=Rt(t.left,e,r),i=Rt(t.right,e,r);switch(t.op){case"+":return tk(n,i)?t_(n,i):ek(n,i);case"-":return r_(n,i);case"*":return O5(n,i);case"/":return R5(n,i);case"%":return X8(n,i);case"<":return n<i;case">":return n>i;case"<=":return n<=i;case">=":return n>=i;case"==":return n==i;case"!=":return n!=i;case"===":return n===i;case"!==":return n!==i;case"&&":return n&&i;case"||":return n||i;default:throw new Error(`\u672A\u77E5\u8FD0\u7B97\u7B26: ${t.op}`)}}function J8(t,e,r){let n=Rt(t.arg,e,r);switch(t.op){case"-":return r_(0,n);case"+":return _r(n);case"!":return!n;default:throw new Error(`\u672A\u77E5\u4E00\u5143\u8FD0\u7B97\u7B26: ${t.op}`)}}function ek(t,e){return`${t==null?"":String(t)}${e==null?"":String(e)}`}function tk(t,e){let r=F5(t),n=F5(e);return r==="other"||n==="other"?!1:r==="num"||n==="num"}function F5(t){return t==null||t===""?"neutral":Y8(t)?"num":"other"}function rk(t,e,r){let n=Rt(t.object,e,r);if(n==null)throw new Error("\u65E0\u6CD5\u8BBF\u95EE\u7A7A\u503C\u7684\u5C5E\u6027");if(j8.has(t.property))throw new Error(`\u7981\u6B62\u8BBF\u95EE\u5C5E\u6027: ${t.property}`);return n[t.property]}function nk(t,e,r){if(t.callee.type==="ident"&&K8.has(t.callee.name)){let i=Qy[t.callee.name],a=t.args.map(o=>Rt(o,e,r));return i(...a)}if(t.callee.type==="member"&&t.callee.object.type==="ident"&&t.callee.object.name==="Math"){let i=Math[t.callee.property];if(typeof i!="function")throw new Error(`Math.${t.callee.property} \u4E0D\u662F\u65B9\u6CD5`);let a=t.args.map(o=>Rt(o,e,r));return i(...a)}let n;if(t.callee.type==="ident")n=t.callee.name;else if(t.callee.type==="member")throw new Error("\u4E0D\u652F\u6301\u65B9\u6CD5\u8C03\u7528\uFF0C\u8BF7\u4F7F\u7528\u9876\u7EA7\u51FD\u6570");if(n&&r[n]){let i=t.args.map(a=>Rt(a,e,r));return r[n](...i)}throw n&&Object.prototype.hasOwnProperty.call(e,n)?new Error(`${n} \u4E0D\u662F\u51FD\u6570`):new Error(`\u4E0D\u5141\u8BB8\u8C03\u7528: ${n??"\u8868\u8FBE\u5F0F"}`)}function ik(t){let e=[],r=0,n=t.length;for(;r<n;){if(t[r]==="{"){let a=1,o=r+1;for(;o<n&&a>0;)t[o]==="{"?a++:t[o]==="}"&&a--,o++;if(a!==0)throw new Error(`\u4F4D\u7F6E ${r}: \u82B1\u62EC\u53F7\u672A\u95ED\u5408`);let s=t.slice(r+1,o-1);if(s.trim()==="")throw new Error(`\u4F4D\u7F6E ${r}: \u7A7A\u8868\u8FBE\u5F0F`);let u=jh(s),l=Kh(u);e.push({type:"expr",expression:l}),r=o;continue}let i=r;for(;i<n&&t[i]!=="{";)t[i]==="\\"&&i+1<n&&(t[i+1]==="{"||t[i+1]==="}")?i+=2:i++;e.push({type:"text",value:t.slice(r,i).replace(/\\([{}])/g,"$1")}),r=i}return{type:"template",parts:e}}function ak(t,e,r={}){let n="";for(let i of t.parts)if(i.type==="text")n+=i.value;else{let a=Rt(i.expression,e,r);n+=String(a??"")}return n}function n_(t,e={}){let r=ik(t);return n=>ak(r,n,e)}function i_(t){let e=Number(t);if(isNaN(e))return String(t);let r=e<0?"-":"",n=Math.abs(e),[i,a]=n.toFixed(2).split("."),o=i.replace(/\B(?=(\d{3})+(?!\d))/g,",");return`${r}${o}.${a}`}function a_(t,e){let r;if(t instanceof Date)r=t;else if(typeof t=="number")r=new Date(t);else if(typeof t=="string")r=new Date(t);else return String(t);if(isNaN(r.getTime()))return String(t);let n=i=>String(i).padStart(2,"0");return e.replace("YYYY",String(r.getFullYear())).replace("MM",n(r.getMonth()+1)).replace("DD",n(r.getDate())).replace("HH",n(r.getHours())).replace("mm",n(r.getMinutes())).replace("ss",n(r.getSeconds()))}var Jy=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],ok=["","\u62FE","\u4F70","\u4EDF"],sk=["","\u4E07","\u4EBF","\u4E07\u4EBF","\u4EBF\u4EBF"];function uk(t){let e="",r=!1;for(let n=3;n>=0;n--){let i=Math.floor(t/10**n)%10;if(i===0){e&&(r=!0);continue}r&&(e+="\u96F6",r=!1),e+=Jy[i]+ok[n]}return e}function o_(t){let e=Number(t);if(isNaN(e))return String(t);if(e===0)return"\u96F6\u5143\u6574";let r=e<0?"\u8D1F":"",[n,i]=Math.abs(e).toFixed(2).split("."),a=Math.ceil(n.length/4),o="",s=!1;for(let f=a-1;f>=0;f--){let c=n.length-f*4,p=parseInt(n.slice(Math.max(0,c-4),c),10);if(p===0){o&&(s=!0);continue}o&&(s||p<1e3)&&(o+="\u96F6"),s=!1,o+=uk(p)+(sk[f]??"")}o=`${o||"\u96F6"}\u5143`;let u=parseInt(i[0],10),l=parseInt(i[1],10);return u===0&&l===0?o+="\u6574":(u===0?o+="\u96F6":o+=Jy[u]+"\u89D2",l>0&&(o+=Jy[l]+"\u5206")),r+o}function s_(t,e,r){return t?e:r}function u_(...t){return t.reduce((e,r)=>t_(e,r),0)}function l_(...t){return t.length===0?0:t.slice(1).reduce((e,r)=>r_(e,r),t_(t[0],0))}function f_(...t){return t.length===0?0:t.reduce((e,r)=>O5(e,r),1)}function c_(t,e){return R5(t,e)}function p_(t,e){return Zh(t,e,"half-up")}function Vl(t,e){return Zh(t,e,"up")}function Hl(t,e){return Zh(t,e,"down")}function h_(t,e){return Zh(t,e,"half-even")}var lk=class{constructor(){this.functions={}}registerFunction(t,e){this.functions[t]=e}evaluate(t,e){let r=jh(t),n=Kh(r);return Rt(n,e,this.functions)}render(t,e){return n_(t,this.functions)(e)}},fk=new lk,ck={MONEY:i_,DATE:a_,UPPER:o_,IF:s_,CONCAT:(...t)=>t.filter(e=>e!=null).map(String).join(""),IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,LEN:t=>String(t).length,ADD:u_,SUB:l_,MUL:f_,DIV:c_,ROUND:p_,ROUNDUP:Vl,CEIL:Vl,ROUNDDOWN:Hl,FLOOR:Hl,ROUNDBANK:h_};for(let[t,e]of Object.entries(ck))fk.registerFunction(t,e);function pk(){let t=0;return function(){return t+=1,`cell-${Date.now().toString(36)}-${t}`}}function hk(){let t=0;return function(){return t+=1,`row-${Date.now().toString(36)}-${t}`}}var dk=pk(),vk=hk(),Ul={width:.75,style:"solid",color:"#333333"};function N5(t){return{id:dk(),borders:{top:{...Ul},right:{...Ul},bottom:{...Ul},left:{...Ul}},...t}}function k5(){let t=[50,50,50],e=(n,i)=>({id:vk(),type:n,height:8,...i!==void 0?{repeatOnPage:i}:{},cells:t.map(()=>N5())}),r=e("header",!0);return r.cells.forEach((n,i)=>{n.formatter=`\u5217${i+1}`,n.align="center",n.fontWeight="bold"}),{rows:[r,e("data"),e("subtotal"),e("summary")],colWidths:t}}var I5=Symbol.for("worm-print-platform.element-capabilities.v1"),P5=globalThis;function z5(){let t=P5[I5];if(t)return t;let e={entries:new Map,nextSeq:0,bootstrapped:!1};return P5[I5]=e,gk(e),e}var mk=Object.freeze({text:"\u793A\u4F8B\u6587\u672C",longText:"\u793A\u4F8B\u957F\u6587\u672C\u5185\u5BB9",barcode:"12345678",qrcode:"qrcode"});var d_=Object.freeze({text:{zoneAllowed:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"\u5185\u5BB9",dataSource:"main"}],defaultOptions:()=>({formatter:"\u6587\u672C",exampleValue:"\u793A\u4F8B\u6587\u672C",fontSize:12,textAlign:"left",height:5.3}),title:"\u6587\u672C"},longText:{defaultTextFit:"autoHeight",bindings:[{targetPath:"options.formatter",label:"\u5185\u5BB9",dataSource:"main"},{targetPath:"options.styler",label:"\u6837\u5F0F",dataSource:"main"}],defaultOptions:()=>({width:141.1,height:28.2,fontSize:12,lineHeight:18,exampleValue:"\u793A\u4F8B\u957F\u6587\u672C\u5185\u5BB9"}),title:"\u957F\u6587"},barcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"\u5185\u5BB9",dataSource:"main"}],defaultOptions:()=>({width:56.4,height:14.1,title:"\u6761\u5F62\u7801",barcodeType:"code128",testData:"12345678",exampleValue:"12345678"}),title:"\u6761\u5F62\u7801"},qrcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"\u5185\u5BB9",dataSource:"main"}],defaultOptions:()=>({width:28.2,height:28.2,title:"\u4E8C\u7EF4\u7801",testData:"qrcode",exampleValue:"qrcode"}),title:"\u4E8C\u7EF4\u7801"},image:{zoneAllowed:!0,bindings:[{targetPath:"options.src",label:"\u5185\u5BB9",dataSource:"main",placeholder:"\u8F93\u5165\u56FE\u7247\u8DEF\u5F84\uFF0C\u652F\u6301 /docfiles/... \u76F8\u5BF9\u8DEF\u5F84\u3001\u7EDD\u5BF9 URL \u6216 {\u5B57\u6BB5} \u8868\u8FBE\u5F0F"}],defaultOptions:()=>({width:28.2,height:28.2,fit:"contain"}),title:"\u56FE\u7247"},table:{rotationExcluded:!0,acceptsElementBorder:!1,bindings:[],defaultOptions:()=>{let{rows:t,colWidths:e}=k5(),r=e.reduce((i,a)=>i+a,0),n=t.reduce((i,a)=>i+a.height,0);return{width:r,height:n,tableMode:"dynamic",tableRows:t,tableColWidths:e,tableDefaultFontSize:10,tableDefaultColor:"#333333",tableDefaultPadding:1,fields:[],tablePagination:{enabled:!0}}},title:"\u8868\u683C"},flowList:{rotationExcluded:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"\u5355\u5143\u6A21\u677F",dataSource:"main",placeholder:"{drugs.name} {drugs.spec}"}],defaultOptions:()=>({width:141.1,height:21.2,fontSize:12,formatter:"{name} {spec}",flowColumns:4,flowRowHeight:8,flowGapX:4,flowAutoSpan:!1,flowMaxSpan:2,flowLayoutMode:"fixed",flowPaddingTop:0,flowPaddingRight:0,flowPaddingBottom:0,flowPaddingLeft:0}),title:"\u6D41\u5F0F\u5217\u8868"},hline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:70.6,height:1.8,borderWidth:.75}),title:"\u6A2A\u7EBF"},vline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:1.8,height:35.3,borderWidth:.75}),title:"\u7AD6\u7EBF"},rect:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"\u77E9\u5F62"},oval:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"\u692D\u5706"},html:{blocked:!0,defaultOptions:()=>({width:28.2,height:28.2}),title:"HTML"},pageNumber:{title:"\u9875\u7801"}});function gk(t){if(!t.bootstrapped){t.bootstrapped=!0;for(let[e,r]of Object.entries(d_))t.entries.has(e)||t.entries.set(e,{caps:r,seq:t.nextSeq++})}}function v_(t){return t?{...z5().entries.get(t)?.caps??{},type:t}:{type:""}}function m_(){return[...z5().entries.entries()].sort((t,e)=>t[1].seq-e[1].seq).map(([t])=>t)}var ose=25.4/72;var L5=Symbol.for("worm-print-platform.element-plugin-registry.v1"),B5=globalThis;function yk(){let t=B5[L5];if(t)return t;let e={plugins:new Map,typeIndex:new Map,configs:new Map,legacyAliases:new Map};return B5[L5]=e,e}function g_(t){return{...yk().configs.get(t)??{}}}var sse=96/25.4,use=25.4/96;var lse=25.4/72;var U5=class{constructor(t){this.functions={},t?.functions&&(this.functions={...t.functions})}registerFunction(t,e){this.functions[t]=e}evaluate(t,e){let r=jh(t),n=Kh(r);return Rt(n,e,this.functions)}render(t,e){return n_(t,this.functions)(e)}};function xk(){return m_().filter(t=>v_(t).blocked===!0)}var Lle=xk();var Ble=96/25.4;function Sk(){return m_().filter(t=>v_(t).zoneAllowed===!0)}var Ole=Sk();var bk=new U5,Ek={MONEY:i_,CONCAT:(...t)=>t.filter(e=>e!=null).join(""),IF:s_,FORMAT:t=>typeof t!="number"?String(t):t.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2}),SUBSTR:(t,e,r)=>String(t).slice(e,r?e+r:void 0),LEN:t=>String(t).length,ADD:u_,SUB:l_,MUL:f_,DIV:c_,ROUND:p_,ROUNDUP:Vl,CEIL:Vl,ROUNDDOWN:Hl,FLOOR:Hl,ROUNDBANK:h_,NOW:()=>new Date().toISOString().split("T")[0],IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,PAD:(t,e,r)=>String(t).padStart(e,r),REPLACE:(t,e,r)=>String(t).replace(new RegExp(e,"g"),r),JSON:t=>JSON.stringify(t,null,2),DATE:a_,UPPER:o_};for(let[t,e]of Object.entries(Ek))bk.registerFunction(t,e);var Rle=25.4/96;var Nle=Object.fromEntries(Object.entries(d_).filter(([,t])=>t.bindings!==void 0).map(([t,e])=>[t,[...e.bindings??[]]]));var V5="@worm-print-platform/echarts";var Tn=["left","top","width","height","chartOption"],Qh=["dataSource","categoryField","valueFields","seriesField"],Mn=["title","legend","palette"],H5=[{type:"barChart",label:"\u67F1\u72B6\u56FE",icon:"ChartColumn",seriesType:"bar",orientation:"vertical",fields:[...Qh,...Mn,"stack"],requiredOptionKeys:Tn,defaultWidth:100,defaultHeight:60,notes:"\u67F1\u72B6\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6BCF\u5B57\u6BB5\u4E00\u4E2A series\uFF1Bseries[].data \u5199 $data \u5360\u4F4D\uFF1B\u56FA\u5B9A\u9AD8\uFF0C\u7981\u6B62 autoHeight"},{type:"barHChart",label:"\u6761\u5F62\u56FE",icon:"ChartBar",seriesType:"bar",orientation:"horizontal",fields:[...Qh,...Mn,"stack"],requiredOptionKeys:Tn,defaultWidth:100,defaultHeight:60,notes:"\u6A2A\u5411\u6761\u5F62\u56FE\uFF1AxAxis \u4E3A\u6570\u503C\u3001yAxis \u4E3A\u7C7B\u76EE\uFF1B\u7C7B\u76EE\u5199 yAxis.data \u7684 $data \u5360\u4F4D"},{type:"lineChart",label:"\u6298\u7EBF\u56FE",icon:"ChartLine",seriesType:"line",fields:[...Qh,...Mn,"stack"],requiredOptionKeys:Tn,defaultWidth:100,defaultHeight:60,notes:"\u6298\u7EBF\u56FE\uFF1A\u7C7B\u76EE + \u591A\u4E2A\u6570\u503C\u5B57\u6BB5\uFF1B\u4E0D\u5199 areaStyle"},{type:"areaChart",label:"\u9762\u79EF\u56FE",icon:"ChartArea",seriesType:"line",fields:[...Qh,...Mn,"stack"],requiredOptionKeys:Tn,defaultWidth:100,defaultHeight:60,notes:"\u9762\u79EF\u56FE\uFF1A\u6298\u7EBF + series[].areaStyle\uFF1B\u5176\u4F59\u540C\u6298\u7EBF\u56FE"},{type:"pieChart",label:"\u997C\u56FE",icon:"ChartPie",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...Mn],requiredOptionKeys:Tn,defaultWidth:60,defaultHeight:60,notes:"\u997C\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u751F\u6210 { name, value }\uFF1B\u53EA\u9700\u4E00\u4E2A\u6570\u503C\u5B57\u6BB5"},{type:"doughnutChart",label:"\u73AF\u5F62\u56FE",icon:"Donut",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...Mn,"innerRadius"],requiredOptionKeys:Tn,defaultWidth:60,defaultHeight:60,notes:"\u73AF\u5F62\u56FE\uFF1A\u997C\u56FE + radius:[\u5185\u5F84,\u5916\u5F84]\uFF1B\u5185\u5F84\u7531\u9762\u677F\u914D\u7F6E"},{type:"scatterChart",label:"\u6563\u70B9\u56FE",icon:"ChartScatter",seriesType:"scatter",fields:["dataSource","categoryField","valueFields",...Mn,"bubble"],requiredOptionKeys:Tn,defaultWidth:80,defaultHeight:60,notes:"\u6563\u70B9\u56FE\uFF1A\u7C7B\u76EE\u5B57\u6BB5\u4F5C x\u3001\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C y\uFF1BchartBubble \u5F00\u542F\u65F6\u7528\u7B2C\u4E8C\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u70B9\u5927\u5C0F"},{type:"radarChart",label:"\u96F7\u8FBE\u56FE",icon:"Radar",seriesType:"radar",fields:["dataSource","categoryField","valueFields",...Mn,"radius"],requiredOptionKeys:Tn,defaultWidth:70,defaultHeight:60,notes:"\u96F7\u8FBE\u56FE\uFF1A\u6BCF\u4E2A\u6570\u503C\u5B57\u6BB5\u662F\u4E00\u4E2A\u7EF4\u5EA6\uFF08radar.indicator\uFF09\uFF0C\u6BCF\u884C\u6570\u636E\u662F\u4E00\u4E2A\u7CFB\u5217\uFF08\u7C7B\u76EE\u5B57\u6BB5\u4F5C\u7CFB\u5217\u540D\uFF09\uFF1B\u534A\u5F84\u7531\u9762\u677F\u5199 radar.radius\uFF08%\uFF0C\u9ED8\u8BA4 75\uFF09"},{type:"funnelChart",label:"\u6F0F\u6597\u56FE",icon:"Funnel",seriesType:"funnel",fields:["dataSource","categoryField","valueFields",...Mn,"padding"],requiredOptionKeys:Tn,defaultWidth:60,defaultHeight:60,notes:"\u6F0F\u6597\u56FE\uFF1A\u7C7B\u76EE + \u9996\u4E2A\u6570\u503C\u5B57\u6BB5\uFF0C\u6309\u6570\u503C\u964D\u5E8F\uFF1B\u56DB\u8FB9\u5185\u8FB9\u8DDD\u7531\u9762\u677F\u5199 series.left/right/top/bottom\uFF08%\uFF0C\u53F3\u4FA7\u9700\u7559\u5916\u7F6E\u6807\u7B7E\u7A7A\u95F4\uFF09"},{type:"gaugeChart",label:"\u4EEA\u8868\u76D8",icon:"Gauge",seriesType:"gauge",fields:["dataSource","valueFields",...Mn,"gaugeRange"],requiredOptionKeys:Tn,defaultWidth:60,defaultHeight:60,notes:"\u4EEA\u8868\u76D8\uFF1A\u53D6\u9996\u884C\u6570\u636E\u7684\u9996\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u6307\u9488\u503C\uFF1Bmin/max \u7531\u9762\u677F\u5199\u5165 series[0].min/max"}],Ule=H5.map(t=>t.type);function Jh(t){return H5.find(e=>e.type===t)}function G5(){return g_(V5)}ut([Tg,lg,Bg,X0,Z0,iy,ny,cy,vy,Ey,my,wy,Zy]);var W5=new Set;function $5(){let e=(G5().components??[]).filter(r=>r!=null&&!W5.has(r));if(e.length!==0){ut(e);for(let r of e)W5.add(r)}}function wk(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function Ck(t,e){let r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function Dk(t,e){let r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function ed(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function Y5(t,e){let r=Jh(t);if(!r)return e;let n=structuredClone(e),i=wk(n.series);if(i.length===0)return n;if(r.seriesType==="pie")return n.series=i.map(s=>({...s,type:"pie",...t==="doughnutChart"?{radius:s.radius??["40%","70%"]}:{}})),delete n.xAxis,delete n.yAxis,n;if(r.seriesType==="scatter")return n.series=i.map(s=>({...s,type:"scatter"})),n.xAxis=ed(n.xAxis,s=>({...s,type:"value",data:void 0})),n.yAxis=ed(n.yAxis,s=>({...s,type:"value",data:void 0})),n;if(r.seriesType==="radar")return n.series=i.map(s=>({...s,type:"radar"})),n;if(r.seriesType==="funnel")return n.series=i.map(s=>({...s,type:"funnel",sort:"descending"})),n;if(r.seriesType==="gauge")return n.series=i.map(s=>({...s,type:"gauge"})),n;let a=r.orientation==="horizontal",o=r.seriesType==="line"?"line":"bar";return n.xAxis=ed(n.xAxis,s=>Ck(s,a)),n.yAxis=ed(n.yAxis,s=>Dk(s,a)),n.series=i.map(s=>{let u={...s,type:o};return t==="areaChart"?u.areaStyle=s.areaStyle??{}:delete u.areaStyle,u}),n}var Ak=3.7795275590551185;function td(t){let e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*Ak))}function Tk(t,e,r){let n=/<svg\b[^>]*>/i.exec(t);if(!n)return t;let i=n[0],a=i.slice(4,-1),s=(/\sstyle\s*=\s*"([^"]*)"/i.exec(a)?.[1]??"").split(";").map(c=>c.trim()).filter(c=>c&&!/^(width|height|display)\s*:/i.test(c)).join(";"),u=a.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),l=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),f=`<svg${u} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${l}">`;return t.slice(0,n.index)+f+t.slice(n.index+i.length)}function X5(t){$5();let e=Y5(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("\u56FE\u8868 option \u975E\u6CD5\uFF1A\u9700\u8981\u5BF9\u8C61");let r=td(t.widthMm),n=td(t.heightMm),i=Hh.init(null,null,{renderer:"svg",ssr:!0,width:r,height:n});try{let a=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...a??{}};return i.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),Tk(i.renderToSVGString(),r,n)}finally{i.dispose()}}var y_="2";function q5(t){let e={};for(let r of Array.isArray(t)?t:[]){let n=typeof r?.key=="string"?r.key:"";if(!n)continue;let i=r._chartOption??r.chartOption??{};try{e[n]=X5({key:n,type:String(r.type??""),option:i,widthMm:Number(r.widthMm??0),heightMm:Number(r.heightMm??0),fontFamily:typeof r.fontFamily=="string"?r.fontFamily:void 0})}catch{}}return e}function j5(t=globalThis){let e=t.__wormDom,r=e&&typeof e=="object"?e:t.__wormDom={};return r.renderAssets=q5,r.chartExecutorVersion="2",r}j5();return eM(Mk);})();
|
|
28
28
|
/*!
|
|
29
|
-
* @worm-print-platform/core v1.5.
|
|
29
|
+
* @worm-print-platform/core v1.5.2
|
|
30
30
|
* Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
|
|
31
31
|
* SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
|
|
32
32
|
* SPDX-License-Identifier: MIT
|