@gramlot/gramlot 0.3.33 → 0.3.35

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.
Files changed (85) hide show
  1. package/dist/collections/typst.js +3 -0
  2. package/dist/components/audio/__init__.py +1 -1
  3. package/dist/components/audio/assets/collection.js +2 -2
  4. package/dist/components/audio/assets/index.js +1 -1
  5. package/dist/components/charts/__init__.py +2 -2
  6. package/dist/components/charts/assets/collection.js +10 -44
  7. package/dist/components/charts/assets/index.js +1 -1
  8. package/dist/components/charts/assets/modules/chunk-USZCUBTC.js +1 -0
  9. package/dist/components/charts/assets/modules/echarts-gl.min-N6L67H2M.js +4282 -0
  10. package/dist/components/charts/assets/modules/echarts.esm.min-VHLRZDVQ.js +61 -0
  11. package/dist/components/charts/assets/modules/{plotly.min-4LB7HE7P.js → plotly.min-SSDU2DOH.js} +1 -1
  12. package/dist/components/charts/assets/modules/{uPlot.esm-5JJNHHRF.js → uPlot.esm-Q2UYUQHJ.js} +1 -1
  13. package/dist/components/charts/assets/modules/{uPlot.min-N3E3FA74.js → uPlot.min-XXHNQFXH.js} +1 -1
  14. package/dist/components/charts/assets/modules/{vega.module-2QCOVQ3A.js → vega.module-Y5CWNSZO.js} +1 -1
  15. package/dist/components/chat/__init__.py +1 -1
  16. package/dist/components/chat/assets/collection.js +3 -3
  17. package/dist/components/chat/assets/index.js +1 -1
  18. package/dist/components/drawing/__init__.py +1 -1
  19. package/dist/components/drawing/assets/collection.js +3 -24
  20. package/dist/components/drawing/assets/index.js +1 -1
  21. package/dist/components/editors/__init__.py +2 -2
  22. package/dist/components/editors/assets/collection.js +2 -47
  23. package/dist/components/editors/assets/index.js +1 -1
  24. package/dist/components/editors/assets/modules/{jodit-engine-MTSA4GZ3.js → jodit-engine-CXRSFV47.js} +6 -6
  25. package/dist/components/grid/__init__.py +2 -2
  26. package/dist/components/grid/assets/collection.js +6 -28
  27. package/dist/components/grid/assets/index.js +1 -1
  28. package/dist/components/grid/assets/modules/{browser-LVJHKBBV.js → browser-Y2BRNI3P.js} +1 -1
  29. package/dist/components/grid/assets/modules/chunk-BLMUM44K.js +1 -0
  30. package/dist/components/grouplets/__init__.py +1 -1
  31. package/dist/components/grouplets/assets/collection.js +3 -3
  32. package/dist/components/grouplets/assets/index.js +1 -1
  33. package/dist/components/inputs/__init__.py +1 -1
  34. package/dist/components/inputs/assets/collection.js +8 -65
  35. package/dist/components/inputs/assets/index.js +1 -1
  36. package/dist/components/layout/__init__.py +1 -1
  37. package/dist/components/layout/assets/collection.js +9 -30
  38. package/dist/components/layout/assets/index.js +1 -1
  39. package/dist/components/selection_trial/__init__.py +1 -1
  40. package/dist/components/selection_trial/assets/collection.js +3 -3
  41. package/dist/components/selection_trial/assets/index.js +1 -1
  42. package/dist/components/tree/__init__.py +1 -1
  43. package/dist/components/tree/assets/collection.js +6 -27
  44. package/dist/components/tree/assets/index.js +1 -1
  45. package/dist/components/typst/__init__.py +1 -1
  46. package/dist/components/typst/assets/collection.js +3 -3
  47. package/dist/components/typst/assets/index.js +1 -1
  48. package/dist/components/uploads/__init__.py +1 -1
  49. package/dist/components/uploads/assets/collection.js +3 -30
  50. package/dist/components/uploads/assets/index.js +1 -1
  51. package/dist/components/vizabi/__init__.py +1 -1
  52. package/dist/components/vizabi/assets/collection.js +3 -21
  53. package/dist/components/vizabi/assets/index.js +1 -1
  54. package/dist/declared-collections.js +2 -0
  55. package/dist/gramlot.js +1057 -6999
  56. package/dist/gramlot.min.js +48 -52
  57. package/dist/libraries.json +126 -0
  58. package/dist/runtime-notices.json +0 -8
  59. package/dist/standard-collections.js +1 -1
  60. package/package.json +3 -2
  61. package/src/components/chart-engines/echarts.js +10 -4
  62. package/src/components/chart-engines/plotly.js +3 -2
  63. package/src/components/chart-engines/uplot.js +5 -3
  64. package/src/components/chart-engines/vega.js +2 -1
  65. package/src/components/chart-gauge.js +7 -3
  66. package/src/components/chart-renderer.js +1 -1
  67. package/src/components/code-mirror.js +2 -1
  68. package/src/components/grid-tools.js +2 -1
  69. package/src/components/html-editor.js +2 -1
  70. package/src/components/markdown-editor.js +2 -1
  71. package/src/components/typst-preview.js +2 -1
  72. package/src/index.d.ts +16 -0
  73. package/src/index.js +5 -0
  74. package/src/libraries.js +83 -0
  75. package/src/server/assets.d.ts +3 -2
  76. package/src/server/assets.js +6 -3
  77. package/src/server/gramlot-server.d.ts +8 -0
  78. package/src/server/gramlot-server.js +45 -4
  79. package/src/server/index.d.ts +1 -1
  80. package/src/server/index.js +1 -1
  81. package/src/shared-modules.js +76 -0
  82. package/dist/components/charts/assets/modules/chunk-2CCTLZE7.js +0 -76
  83. package/dist/components/charts/assets/modules/chunk-RMRBEYTI.js +0 -1
  84. package/dist/components/charts/assets/modules/echarts-gl-CXVTZA6G.js +0 -4409
  85. package/dist/components/grid/assets/modules/chunk-RMRBEYTI.js +0 -1
@@ -0,0 +1,61 @@
1
+ import"./chunk-USZCUBTC.js";/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */var nm=function(n,t){return nm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},nm(n,t)};function G(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}nm(n,t),n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var gN=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Ee=new function(){this.browser=new gN,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"};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ee.wxa=!0,Ee.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ee.worker=!0:!Ee.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ee.node=!0,Ee.svgSupported=!0):(function(n,t){var e=t.browser,i=n.match(/Firefox\/([\d.]+)/),r=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),o=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(e.firefox=!0,e.version=i[1]),r&&(e.ie=!0,e.version=r[1]),o&&(e.edge=!0,e.version=o[1],e.newEdge=+o[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}})(navigator.userAgent,Ee);var iD="sans-serif",mr="12px "+iD,Pl,B_,vN=(function(n){var t={};if(typeof JSON>"u")return t;for(var e=0;e<n.length;e++){var i=String.fromCharCode(e+32),r=(n.charCodeAt(e)-20)/100;t[i]=r}return t})("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Rt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(n,t){if(!Pl){var e=Rt.createCanvas();Pl=e&&e.getContext("2d")}if(Pl)return B_!==t&&(B_=Pl.font=t||mr),Pl.measureText(n);n=n||"";var i=/((?:\d+)?\.?\d*)px/.exec(t=t||mr),r=i&&+i[1]||12,o=0;if(t.indexOf("mono")>=0)o=r*n.length;else for(var a=0;a<n.length;a++){var s=vN[n[a]];o+=s==null?r:s*r}return{width:o}},loadImage:function(n,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=n,i},getTime:function(){return Date.now?Date.now():+new Date}};function yN(n){for(var t in Rt)Rt.hasOwnProperty(t)&&n[t]&&(Rt[t]=n[t])}var rD=Kn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,t){return n["[object "+t+"]"]=!0,n},{}),oD=Kn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,t){return n["[object "+t+"Array]"]=!0,n},{}),ul=Object.prototype.toString,mf=Array.prototype,mN=mf.forEach,xN=mf.filter,S1=mf.slice,_N=mf.map,V_=function(){}.constructor,$c=V_?V_.prototype:null,M1="__proto__",Jf=2311,bN=Math.pow(2,53)-1;function I1(){return Jf>=bN&&(Jf=0),Jf++}function xf(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];typeof console<"u"&&console.error.apply(console,n)}function se(n){if(n==null||typeof n!="object")return n;var t=n,e=ul.call(n);if(e==="[object Array]"){if(!Ns(n)){t=[];for(var i=0,r=n.length;i<r;i++)t[i]=se(n[i])}}else if(oD[e]){if(!Ns(n)){var o=n.constructor;if(o.from)t=o.from(n);else for(t=new o(n.length),i=0,r=n.length;i<r;i++)t[i]=n[i]}}else if(!rD[e]&&!Ns(n)&&!ma(n))for(var a in t={},n)n.hasOwnProperty(a)&&a!==M1&&(t[a]=se(n[a]));return t}function Se(n,t,e){if(!fe(t)||!fe(n))return e?se(t):n;for(var i in t)if(t.hasOwnProperty(i)&&i!==M1){var r=n[i],o=t[i];!fe(o)||!fe(r)||q(o)||q(r)||ma(o)||ma(r)||im(o)||im(r)||Ns(o)||Ns(r)?!e&&i in n||(n[i]=se(t[i])):Se(r,o,e)}return n}function _f(n,t){for(var e=n[0],i=1,r=n.length;i<r;i++)e=Se(e,n[i],t);return e}function X(n,t){if(Object.assign)Object.assign(n,t);else for(var e in t)t.hasOwnProperty(e)&&e!==M1&&(n[e]=t[e]);return n}function aD(n,t,e){n=n||{};for(var i=0;i<e.length;i++){var r=e[i];n[r]=t[r]}return n}function pe(n,t,e){for(var i=Re(t),r=0,o=i.length;r<o;r++){var a=i[r];(e?t[a]!=null:n[a]==null)&&(n[a]=t[a])}return n}var wN=Rt.createCanvas;function be(n,t){if(n){if(n.indexOf)return n.indexOf(t);for(var e=0,i=n.length;e<i;e++)if(n[e]===t)return e}return-1}function T1(n,t){var e=n.prototype;function i(){}for(var r in i.prototype=t.prototype,n.prototype=new i,e)e.hasOwnProperty(r)&&(n.prototype[r]=e[r]);n.prototype.constructor=n,n.superClass=t}function xt(n,t,e){if(n="prototype"in n?n.prototype:n,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];o!=="constructor"&&(e?t[o]!=null:n[o]==null)&&(n[o]=t[o])}else pe(n,t,e)}function qt(n){return!!n&&typeof n!="string"&&typeof n.length=="number"}function k(n,t,e){if(n&&t)if(n.forEach&&n.forEach===mN)n.forEach(t,e);else if(n.length===+n.length)for(var i=0,r=n.length;i<r;i++)t.call(e,n[i],i,n);else for(var o in n)n.hasOwnProperty(o)&&t.call(e,n[o],o,n)}function K(n,t,e){if(!n)return[];if(!t)return bf(n);if(n.map&&n.map===_N)return n.map(t,e);for(var i=[],r=0,o=n.length;r<o;r++)i.push(t.call(e,n[r],r,n));return i}function Kn(n,t,e,i){if(n&&t){for(var r=0,o=n.length;r<o;r++)e=t.call(i,e,n[r],r,n);return e}}function Ye(n,t,e){if(!n)return[];if(!t)return bf(n);if(n.filter&&n.filter===xN)return n.filter(t,e);for(var i=[],r=0,o=n.length;r<o;r++)t.call(e,n[r],r,n)&&i.push(n[r]);return i}function Tr(n,t,e){if(n&&t){for(var i=0,r=n.length;i<r;i++)if(t.call(e,n[i],i,n))return n[i]}}function Re(n){if(!n)return[];if(Object.keys)return Object.keys(n);var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push(e);return t}var ie=$c&&le($c.bind)?$c.call.bind($c.bind):function(n,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return n.apply(t,e.concat(S1.call(arguments)))}};function Ce(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return n.apply(this,t.concat(S1.call(arguments)))}}function q(n){return Array.isArray?Array.isArray(n):ul.call(n)==="[object Array]"}function le(n){return typeof n=="function"}function te(n){return typeof n=="string"}function qd(n){return ul.call(n)==="[object String]"}function Ve(n){return typeof n=="number"}function fe(n){var t=typeof n;return t==="function"||!!n&&t==="object"}function im(n){return!!rD[ul.call(n)]}function vn(n){return!!oD[ul.call(n)]}function ma(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function Nc(n){return n.colorStops!=null}function sD(n){return n.image!=null}function lD(n){return ul.call(n)==="[object RegExp]"}function jt(n){return n!=n}function an(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var e=0,i=n.length;e<i;e++)if(n[e]!=null)return n[e]}function ae(n,t){return n??t}function wn(n,t,e){return n??t??e}function bf(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return S1.apply(n,t)}function Ec(n){if(typeof n=="number")return[n,n,n,n];var t=n.length;return t===2?[n[0],n[1],n[0],n[1]]:t===3?[n[0],n[1],n[2],n[1]]:n}function Kt(n,t){if(!n)throw new Error(t)}function Cn(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var uD="__ec_primitive__";function $u(n){n[uD]=!0}function Ns(n){return n[uD]}var SN=(function(){function n(){this.data={}}return n.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},n.prototype.has=function(t){return this.data.hasOwnProperty(t)},n.prototype.get=function(t){return this.data[t]},n.prototype.set=function(t,e){return this.data[t]=e,this},n.prototype.keys=function(){return Re(this.data)},n.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},n})(),G_=typeof Map=="function",cD=(function(){function n(t){var e=q(t);this.data=G_?new Map:new SN;var i=this;function r(o,a){e?i.set(o,a):i.set(a,o)}t instanceof n?t.each(r):t&&k(t,r)}return n.prototype.hasKey=function(t){return this.data.has(t)},n.prototype.get=function(t){return this.data.get(t)},n.prototype.set=function(t,e){return this.data.set(t,e),e},n.prototype.each=function(t,e){this.data.forEach(function(i,r){t.call(e,i,r)})},n.prototype.keys=function(){var t=this.data.keys();return G_?Array.from(t):t},n.prototype.removeKey=function(t){this.data.delete(t)},n})();function re(n){return new cD(n)}function Us(n,t){for(var e=new n.constructor(n.length+t.length),i=0;i<n.length;i++)e[i]=n[i];var r=n.length;for(i=0;i<t.length;i++)e[i+r]=t[i];return e}function zc(n,t){var e;if(Object.create)e=Object.create(n);else{var i=function(){};i.prototype=n,e=new i}return t&&X(e,t),e}function C1(n){var t=n.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function oe(n,t){return n.hasOwnProperty(t)}function ct(){}var Ou=180/Math.PI,MN=Number.EPSILON||Math.pow(2,-52),T6=Object.freeze({__proto__:null,guid:I1,logError:xf,clone:se,merge:Se,mergeAll:_f,extend:X,assignProps:aD,defaults:pe,createCanvas:wN,indexOf:be,inherits:T1,mixin:xt,isArrayLike:qt,each:k,map:K,reduce:Kn,filter:Ye,find:Tr,keys:Re,bind:ie,curry:Ce,isArray:q,isFunction:le,isString:te,isStringSafe:qd,isNumber:Ve,isObject:fe,isBuiltInObject:im,isTypedArray:vn,isDom:ma,isGradientObject:Nc,isImagePatternObject:sD,isRegExp:lD,eqNaN:jt,retrieve:an,retrieve2:ae,retrieve3:wn,slice:bf,normalizeCssArray:Ec,assert:Kt,trim:Cn,setAsPrimitive:$u,isPrimitive:Ns,HashMap:cD,createHashMap:re,concatArray:Us,createObject:zc,disableUserSelect:C1,hasOwn:oe,noop:ct,RADIAN_TO_DEGREE:Ou,EPSILON:MN});function mo(n,t){return n==null&&(n=0),t==null&&(t=0),[n,t]}function Yt(n,t){return n[0]=t[0],n[1]=t[1],n}function Bi(n){return[n[0],n[1]]}function cr(n,t,e){return n[0]=t,n[1]=e,n}function rm(n,t,e){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n}function jd(n,t,e,i){return n[0]=t[0]+e[0]*i,n[1]=t[1]+e[1]*i,n}function qr(n,t,e){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}function Ju(n){return Math.sqrt(D1(n))}var IN=Ju;function D1(n){return n[0]*n[0]+n[1]*n[1]}var TN=D1;function Ru(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n}function Ga(n,t){var e=Ju(t);return e===0?(n[0]=0,n[1]=0):(n[0]=t[0]/e,n[1]=t[1]/e),n}function Kd(n,t){return Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1]))}var sr=Kd;function hD(n,t){return(n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])}var eo=hD;function Nu(n,t,e,i){return n[0]=t[0]+i*(e[0]-t[0]),n[1]=t[1]+i*(e[1]-t[1]),n}function dt(n,t,e){var i=t[0],r=t[1];return n[0]=e[0]*i+e[2]*r+e[4],n[1]=e[1]*i+e[3]*r+e[5],n}function lr(n,t,e){return n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n}function ur(n,t,e){return n[0]=Math.max(t[0],e[0]),n[1]=Math.max(t[1],e[1]),n}var C6=Object.freeze({__proto__:null,create:mo,copy:Yt,clone:Bi,set:cr,add:rm,scaleAndAdd:jd,sub:qr,len:Ju,length:IN,lenSquare:D1,lengthSquare:TN,mul:function(n,t,e){return n[0]=t[0]*e[0],n[1]=t[1]*e[1],n},div:function(n,t,e){return n[0]=t[0]/e[0],n[1]=t[1]/e[1],n},dot:function(n,t){return n[0]*t[0]+n[1]*t[1]},scale:Ru,normalize:Ga,distance:Kd,dist:sr,distanceSquare:hD,distSquare:eo,negate:function(n,t){return n[0]=-t[0],n[1]=-t[1],n},lerp:Nu,applyTransform:dt,min:lr,max:ur}),$a=function(n,t){this.target=n,this.topTarget=t&&t.topTarget},CN=(function(){function n(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new $a(e,t),"dragstart",t.event))},n.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,r=t.offsetY,o=i-this._x,a=r-this._y;this._x=i,this._y=r,e.drift(o,a,t),this.handler.dispatchToElement(new $a(e,t),"drag",t.event);var s=this.handler.findHover(i,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new $a(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new $a(s,t),"dragenter",t.event))}},n.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new $a(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $a(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},n})(),Qn=(function(){function n(t){t&&(this._$eventProcessor=t)}return n.prototype.on=function(t,e,i,r){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof e=="function"&&(r=i,i=e,e=null),!i||!t)return this;var a=this._$eventProcessor;e!=null&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===i)return this;var l={h:i,query:e,ctx:r||this,callAtLast:i.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},n.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},n.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var r=[],o=0,a=i[t].length;o<a;o++)i[t][o].h!==e&&r.push(i[t][o]);i[t]=r}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},n.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=e.length,s=r.length,l=0;l<s;l++){var u=r[l];if(!o||!o.filter||u.query==null||o.filter(t,u.query))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e)}}return o&&o.afterTrigger&&o.afterTrigger(t),this},n.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=e.length,s=e[a-1],l=r.length,u=0;u<l;u++){var c=r[u];if(!o||!o.filter||c.query==null||o.filter(t,c.query))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,e[0]);break;case 2:c.h.call(s,e[0],e[1]);break;default:c.h.apply(s,e.slice(1,a-1))}}return o&&o.afterTrigger&&o.afterTrigger(t),this},n})(),DN=Math.log(2);function om(n,t,e,i,r,o){var a=i+"-"+r,s=n.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~r)/DN);return n[e][l]}for(var u=i|1<<e,c=e+1;i&1<<c;)c++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&r||(h+=(p%2?-1:1)*n[e][d]*om(n,t-1,c,u,r|f,o),p++)}return o[a]=h,h}function F_(n,t){var e=[[n[0],n[1],1,0,0,0,-t[0]*n[0],-t[0]*n[1]],[0,0,0,n[0],n[1],1,-t[1]*n[0],-t[1]*n[1]],[n[2],n[3],1,0,0,0,-t[2]*n[2],-t[2]*n[3]],[0,0,0,n[2],n[3],1,-t[3]*n[2],-t[3]*n[3]],[n[4],n[5],1,0,0,0,-t[4]*n[4],-t[4]*n[5]],[0,0,0,n[4],n[5],1,-t[5]*n[4],-t[5]*n[5]],[n[6],n[7],1,0,0,0,-t[6]*n[6],-t[6]*n[7]],[0,0,0,n[6],n[7],1,-t[7]*n[6],-t[7]*n[7]]],i={},r=om(e,8,0,0,0,i);if(r!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*om(e,7,a===0?1:0,1<<a,1<<s,i)/r*t[a];return function(l,u,c){var h=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/h,l[1]=(u*o[3]+c*o[4]+o[5])/h}}}var $d="___zrEVENTSAVED",Qf=[];function am(n,t,e,i,r){if(t.getBoundingClientRect&&Ee.domSupported&&!dD(t)){var o=t[$d]||(t[$d]={}),a=(function(l,u){var c=u.markers;if(c)return c;c=u.markers=[];for(var h=["left","right"],d=["top","bottom"],p=0;p<4;p++){var f=document.createElement("div"),g=p%2,v=(p>>1)%2;f.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",h[g]+":0",d[v]+":0",h[1-g]+":auto",d[1-v]+":auto",""].join("!important;"),l.appendChild(f),c.push(f)}return u.clearMarkers=function(){k(c,function(y){y.parentNode&&y.parentNode.removeChild(y)})},c})(t,o),s=(function(l,u,c){for(var h=c?"invTrans":"trans",d=u[h],p=u.srcCoords,f=[],g=[],v=!0,y=0;y<4;y++){var m=l[y].getBoundingClientRect(),x=2*y,_=m.left,b=m.top;f.push(_,b),v=v&&p&&_===p[x]&&b===p[x+1],g.push(l[y].offsetLeft,l[y].offsetTop)}return v&&d?d:(u.srcCoords=f,u[h]=c?F_(g,f):F_(f,g))})(a,o,r);if(s)return s(n,e,i),!0}return!1}function dD(n){return n.nodeName.toUpperCase()==="CANVAS"}var AN=/([&<>"'])/g,kN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Zt(n){return n==null?"":(n+"").replace(AN,function(t,e){return kN[e]})}var LN=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,eg=[],PN=Ee.browser.firefox&&+Ee.browser.version.split(".")[0]<39;function sm(n,t,e,i){return e=e||{},i?H_(n,t,e):PN&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):H_(n,t,e),e}function H_(n,t,e){if(Ee.domSupported&&n.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(dD(n)){var o=n.getBoundingClientRect();return e.zrX=i-o.left,void(e.zrY=r-o.top)}if(am(eg,n,i,r))return e.zrX=eg[0],void(e.zrY=eg[1])}e.zrX=e.zrY=0}function A1(n){return n||window.event}function Fn(n,t,e){if((t=A1(t)).zrX!=null)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];r&&sm(n,r,t,e)}else{sm(n,t,t,e);var o=(function(s){var l=s.wheelDelta;if(l)return l;var u=s.deltaX,c=s.deltaY;return u==null||c==null?l:3*Math.abs(c!==0?c:u)*(c>0?-1:c<0?1:u>0?-1:1)})(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return t.which==null&&a!==void 0&&LN.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function lm(n,t,e,i){n.addEventListener(t,e,i)}function ON(n,t,e,i){n.removeEventListener(t,e,i)}var xr=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function W_(n){return n.which===2||n.which===3}var RN=(function(){function n(){this._track=[]}return n.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(t,e,i){var r=t.touches;if(r){for(var o={points:[],touches:[],target:e,event:t},a=0,s=r.length;a<s;a++){var l=r[a],u=sm(i,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},n.prototype._recognize=function(t){for(var e in tg)if(tg.hasOwnProperty(e)){var i=tg[e](this._track,t);if(i)return i}},n})();function U_(n){var t=n[1][0]-n[0][0],e=n[1][1]-n[0][1];return Math.sqrt(t*t+e*e)}var tg={pinch:function(n,t){var e=n.length;if(e){var i,r=(n[e-1]||{}).points,o=(n[e-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=U_(r)/U_(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:n[0].target,event:t}}}}};function pD(){return[1,0,0,1,0,0]}function Fa(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function uo(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function kn(n,t,e){var i=t[0]*e[0]+t[2]*e[1],r=t[1]*e[0]+t[3]*e[1],o=t[0]*e[2]+t[2]*e[3],a=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=s,n[5]=l,n}function ci(n,t,e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+e[0],n[5]=t[5]+e[1],n}function Cr(n,t,e,i){i===void 0&&(i=[0,0]);var r=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(e),h=Math.cos(e);return n[0]=r*h+s*c,n[1]=-r*c+s*h,n[2]=o*h+l*c,n[3]=-o*c+h*l,n[4]=h*(a-i[0])+c*(u-i[1])+i[0],n[5]=h*(u-i[1])-c*(a-i[0])+i[1],n}function wf(n,t,e){var i=e[0],r=e[1];return n[0]=t[0]*i,n[1]=t[1]*r,n[2]=t[2]*i,n[3]=t[3]*r,n[4]=t[4]*i,n[5]=t[5]*r,n}function Ln(n,t){var e=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=e*a-o*i;return l?(l=1/l,n[0]=a*l,n[1]=-o*l,n[2]=-i*l,n[3]=e*l,n[4]=(i*s-a*r)*l,n[5]=(o*r-e*s)*l,n):null}function fD(n){var t=[1,0,0,1,0,0];return uo(t,n),t}var D6=Object.freeze({__proto__:null,create:pD,identity:Fa,copy:uo,mul:kn,translate:ci,rotate:Cr,scale:wf,invert:Ln,clone:fD}),ge=(function(){function n(t,e){this.x=t||0,this.y=e||0}return n.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(t,e){return this.x=t,this.y=e,this},n.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},n.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},n.prototype.scale=function(t){this.x*=t,this.y*=t},n.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},n.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},n.prototype.dot=function(t){return this.x*t.x+this.y*t.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},n.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},n.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},n.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},n.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},n.set=function(t,e,i){t.x=e,t.y=i},n.copy=function(t,e){t.x=e.x,t.y=e.y},n.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},n.lenSquare=function(t){return t.x*t.x+t.y*t.y},n.dot=function(t,e){return t.x*e.x+t.y*e.y},n.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},n.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},n.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},n.scaleAndAdd=function(t,e,i,r){t.x=e.x+i.x*r,t.y=e.y+i.y*r},n.lerp=function(t,e,i,r){var o=1-r;t.x=o*e.x+r*i.x,t.y=o*e.y+r*i.y},n})(),na=Math.min,Cs=Math.max,um=Math.abs,Y_=["x","y"],NN=["width","height"],bo=new ge,wo=new ge,So=new ge,Mo=new ge,In=yD(),fu=In.minTv,cm=In.maxTv,Eu=[0,0],de=(function(){function n(t,e,i,r){ng(this,t,e,i,r)}return n.set=function(t,e,i,r,o){return r<0&&(e+=r,r=-r),o<0&&(i+=o,o=-o),t.x=e,t.y=i,t.width=r,t.height=o,t},n.prototype.union=function(t){var e=na(t.x,this.x),i=na(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Cs(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Cs(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},n.prototype.applyTransform=function(t){n.applyTransform(this,this,t)},n.prototype.calculateTransform=function(t){return gD([1,0,0,1,0,0],this,t)},n.prototype.intersect=function(t,e,i){return n.intersect(this,t,e,i)},n.intersect=function(t,e,i,r){i&&ge.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!t||!e)return!1;t instanceof n||(t=ng(zN,t.x,t.y,t.width,t.height)),e instanceof n||(e=ng(BN,e.x,e.y,e.width,e.height));var s=!!i;In.reset(r,s);var l=In.touchThreshold,u=t.x+l,c=t.x+t.width-l,h=t.y+l,d=t.y+t.height-l,p=e.x+l,f=e.x+e.width-l,g=e.y+l,v=e.y+e.height-l;if(u>c||h>d||p>f||g>v)return!1;var y=!(c<p||f<u||d<g||v<h);return(s||o)&&(Eu[0]=1/0,Eu[1]=0,X_(u,c,p,f,0,s,o,a),X_(h,d,g,v,1,s,o,a),s&&ge.copy(i,y?In.useDir?In.dirMinTv:fu:cm)),y},n.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},n.prototype.contain=function(t,e){return n.contain(this,t,e)},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){Ys(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(t){return new n(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},n.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},n.applyTransform=function(t,e,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=e.x*r+a,t.y=e.y*o+s,t.width=e.width*r,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}bo.x=So.x=e.x,bo.y=Mo.y=e.y,wo.x=Mo.x=e.x+e.width,wo.y=So.y=e.y+e.height,bo.transform(i),Mo.transform(i),wo.transform(i),So.transform(i),t.x=na(bo.x,wo.x,So.x,Mo.x),t.y=na(bo.y,wo.y,So.y,Mo.y);var l=Cs(bo.x,wo.x,So.x,Mo.x),u=Cs(bo.y,wo.y,So.y,Mo.y);t.width=l-t.x,t.height=u-t.y}else t!==e&&Ys(t,e)},n.calculateTransform=function(t,e,i){var r=i.width/e.width,o=i.height/e.height;return ci(t=Fa(t||[]),t,cr(ig,-e.x,-e.y)),wf(t,t,cr(ig,r,o)),ci(t,t,cr(ig,i.x,i.y)),t},n})(),Sf=de.create,ng=de.set,Ys=de.copy,gD=de.calculateTransform,vD=de.applyTransform,EN=de.contain,zN=new de(0,0,0,0),BN=new de(0,0,0,0),ig=[];function X_(n,t,e,i,r,o,a,s){var l=um(t-e),u=um(i-n),c=na(l,u),h=Y_[r],d=Y_[1-r],p=NN[r];t<e||i<n?l<u?(o&&(cm[h]=-l),s&&(a[h]=t,a[p]=0)):(o&&(cm[h]=u),s&&(a[h]=n,a[p]=0)):(a&&(a[h]=Cs(n,e),a[p]=na(t,i)-a[h]),o&&(c<Eu[0]||In.useDir)&&(Eu[0]=na(c,Eu[0]),(l<u||!In.bidirectional)&&(fu[h]=l,fu[d]=0,In.useDir&&In.calcDirMTV()),(l>=u||!In.bidirectional)&&(fu[h]=-u,fu[d]=0,In.useDir&&In.calcDirMTV())))}function yD(){var n=0,t=new ge,e=new ge,i={minTv:new ge,maxTv:new ge,useDir:!1,dirMinTv:new ge,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(o,a){i.touchThreshold=0,o&&o.touchThreshold!=null&&(i.touchThreshold=Cs(0,o.touchThreshold)),i.negativeSize=!1,a&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,o&&o.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),n=o.direction,i.bidirectional=o.bidirectional==null||!!o.bidirectional,i.bidirectional||t.set(Math.cos(n),Math.sin(n))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(n),u=Math.cos(n),c=l*o.y+u*o.x;r(c)?r(o.x)&&r(o.y)&&a.set(0,0):(e.x=s*u/c,e.y=s*l/c,r(e.x)&&r(e.y)?a.set(0,0):(i.bidirectional||t.dot(e)>0)&&e.len()<a.len()&&a.copy(e))}};function r(o){return um(o)<1e-10}return i}var mD="silent";function VN(){xr(this.event)}var GN=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.handler=null,e}return G(t,n),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Qn),Ol=function(n,t){this.x=n,this.y=t},FN=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rg=new de(0,0,0,0),xD=(function(n){function t(e,i,r,o,a){var s=n.call(this)||this;return s._hovered=new Ol(0,0),s.storage=e,s.painter=i,s.painterRoot=o,s._pointerSize=a,r=r||new GN,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new CN(s),s}return G(t,n),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(k(FN,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,r=e.zrY,o=_D(this,i,r),a=this._hovered,s=a.target;s&&!s.__zr&&(s=(a=this.findHover(a.x,a.y)).target);var l=this._hovered=o?new Ol(i,r):this.findHover(i,r),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ol(0,0)},t.prototype.dispatch=function(e,i){var r=this[e];r&&r.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,r){var o=(e=e||{}).target;if(!o||!o.silent){for(var a="on"+i,s=(function(l,u,c){return{type:l,event:c,target:u.target,topTarget:u.topTarget,cancelBubble:!1,offsetX:c.zrX,offsetY:c.zrY,gestureEvent:c.gestureEvent,pinchX:c.pinchX,pinchY:c.pinchY,pinchScale:c.pinchScale,wheelDelta:c.zrDelta,zrByTouch:c.zrByTouch,which:c.which,stop:VN}})(i,e,r);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(i,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,r){var o=this.storage.getDisplayList(),a=new Ol(e,i);if(Z_(o,a,e,i,r),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new de(e-u,i-u,l,l),h=o.length-1;h>=0;h--){var d=o[h];d===r||d.ignore||d.ignoreCoarsePointer||d.parent&&d.parent.ignoreCoarsePointer||(rg.copy(d.getBoundingRect()),d.transform&&rg.applyTransform(d.transform),rg.intersect(c)&&s.push(d))}if(s.length){for(var p=Math.PI/12,f=2*Math.PI,g=0;g<u;g+=4)for(var v=0;v<f;v+=p)if(Z_(s,a,e+g*Math.cos(v),i+g*Math.sin(v),r),a.target)return a}}return a},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new RN);var r=this._gestureMgr;i==="start"&&r.clear();var o=r.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&r.clear(),o){var a=o.type;e.gestureEvent=a;var s=new Ol;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t})(Qn);function HN(n,t,e){if(n[n.rectHover?"rectContain":"contain"](t,e)){for(var i=n,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,e))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||mD}return!1}function Z_(n,t,e,i,r){for(var o=n.length-1;o>=0;o--){var a=n[o],s=void 0;if(a!==r&&!a.ignore&&(s=HN(a,e,i))&&(!t.topTarget&&(t.topTarget=a),s!==mD)){t.target=a;break}}}function _D(n,t,e){var i=n.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){xD.prototype[n]=function(t){var e,i,r=t.zrX,o=t.zrY,a=_D(this,r,o);if(n==="mouseup"&&a||(i=(e=this.findHover(r,o)).target),n==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(n==="mouseup")this._upEl=i;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||sr(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(e,n,t)}});function q_(n,t,e,i){var r=t+1;if(r===e)return 1;if(i(n[r++],n[t])<0){for(;r<e&&i(n[r],n[r-1])<0;)r++;(function(o,a,s){for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}})(n,t,r)}else for(;r<e&&i(n[r],n[r-1])>=0;)r++;return r-t}function j_(n,t,e,i,r){for(i===t&&i++;i<e;i++){for(var o,a=n[i],s=t,l=i;s<l;)r(a,n[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:n[s+3]=n[s+2];case 2:n[s+2]=n[s+1];case 1:n[s+1]=n[s];break;default:for(;u>0;)n[s+u]=n[s+u-1],u--}n[s]=a}}function og(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])>0){for(s=i-r;l<s&&o(n,t[e+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(n,t[e+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(n,t[e+c])>0?a=c+1:l=c}return l}function ag(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])<0){for(s=r+1;l<s&&o(n,t[e+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(n,t[e+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(n,t[e+c])<0?l=c:a=c+1}return l}function WN(n,t){var e,i,r=7,o=0,a=[];function s(l){var u=e[l],c=i[l],h=e[l+1],d=i[l+1];i[l]=c+d,l===o-3&&(e[l+1]=e[l+2],i[l+1]=i[l+2]),o--;var p=ag(n[h],n,u,c,0,t);u+=p,(c-=p)!==0&&(d=og(n[u+c-1],n,h,d,d-1,t))!==0&&(c<=d?(function(f,g,v,y){var m=0;for(m=0;m<g;m++)a[m]=n[f+m];var x=0,_=v,b=f;if(n[b++]=n[_++],--y===0){for(m=0;m<g;m++)n[b+m]=a[x+m];return}if(g===1){for(m=0;m<y;m++)n[b+m]=n[_+m];return void(n[b+y]=a[x])}for(var w,S,M,I=r;;){w=0,S=0,M=!1;do if(t(n[_],a[x])<0){if(n[b++]=n[_++],S++,w=0,--y===0){M=!0;break}}else if(n[b++]=a[x++],w++,S=0,--g===1){M=!0;break}while((w|S)<I);if(M)break;do{if((w=ag(n[_],a,x,g,0,t))!==0){for(m=0;m<w;m++)n[b+m]=a[x+m];if(b+=w,x+=w,(g-=w)<=1){M=!0;break}}if(n[b++]=n[_++],--y===0){M=!0;break}if((S=og(a[x],n,_,y,0,t))!==0){for(m=0;m<S;m++)n[b+m]=n[_+m];if(b+=S,_+=S,(y-=S)===0){M=!0;break}}if(n[b++]=a[x++],--g===1){M=!0;break}I--}while(w>=7||S>=7);if(M)break;I<0&&(I=0),I+=2}if((r=I)<1&&(r=1),g===1){for(m=0;m<y;m++)n[b+m]=n[_+m];n[b+y]=a[x]}else{if(g===0)throw new Error;for(m=0;m<g;m++)n[b+m]=a[x+m]}})(u,c,h,d):(function(f,g,v,y){var m=0;for(m=0;m<y;m++)a[m]=n[v+m];var x=f+g-1,_=y-1,b=v+y-1,w=0,S=0;if(n[b--]=n[x--],--g===0){for(w=b-(y-1),m=0;m<y;m++)n[w+m]=a[m];return}if(y===1){for(S=(b-=g)+1,w=(x-=g)+1,m=g-1;m>=0;m--)n[S+m]=n[w+m];return void(n[b]=a[_])}for(var M=r;;){var I=0,T=0,C=!1;do if(t(a[_],n[x])<0){if(n[b--]=n[x--],I++,T=0,--g===0){C=!0;break}}else if(n[b--]=a[_--],T++,I=0,--y===1){C=!0;break}while((I|T)<M);if(C)break;do{if((I=g-ag(a[_],n,f,g,g-1,t))!==0){for(g-=I,S=(b-=I)+1,w=(x-=I)+1,m=I-1;m>=0;m--)n[S+m]=n[w+m];if(g===0){C=!0;break}}if(n[b--]=a[_--],--y===1){C=!0;break}if((T=y-og(n[x],a,0,y,y-1,t))!==0){for(y-=T,S=(b-=T)+1,w=(_-=T)+1,m=0;m<T;m++)n[S+m]=a[w+m];if(y<=1){C=!0;break}}if(n[b--]=n[x--],--g===0){C=!0;break}M--}while(I>=7||T>=7);if(C)break;M<0&&(M=0),M+=2}if((r=M)<1&&(r=1),y===1){for(S=(b-=g)+1,w=(x-=g)+1,m=g-1;m>=0;m--)n[S+m]=n[w+m];n[b]=a[_]}else{if(y===0)throw new Error;for(w=b-(y-1),m=0;m<y;m++)n[w+m]=a[m]}})(u,c,h,d))}return e=[],i=[],{mergeRuns:function(){for(;o>1;){var l=o-2;if(l>=1&&i[l-1]<=i[l]+i[l+1]||l>=2&&i[l-2]<=i[l]+i[l-1])i[l-1]<i[l+1]&&l--;else if(i[l]>i[l+1])break;s(l)}},forceMergeRuns:function(){for(;o>1;){var l=o-2;l>0&&i[l-1]<i[l+1]&&l--,s(l)}},pushRun:function(l,u){e[o]=l,i[o]=u,o+=1}}}function bd(n,t,e,i){e||(e=0),i||(i=n.length);var r=i-e;if(!(r<2)){var o=0;if(r<32)j_(n,e,i,e+(o=q_(n,e,i,t)),t);else{var a=WN(n,t),s=(function(u){for(var c=0;u>=32;)c|=1&u,u>>=1;return u+c})(r);do{if((o=q_(n,e,i,t))<s){var l=r;l>s&&(l=s),j_(n,e,e+l,e+o,t),o=l}a.pushRun(e,o),a.mergeRuns(),r-=o,e+=o}while(r!==0);a.forceMergeRuns()}}}var K_=!1;function sg(){K_||(K_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $_(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var UN=(function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$_}return n.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},n.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},n.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,r=0,o=e.length;r<o;r++)this._updateAndAddDisplayable(e[r],null,t);i.length=this._displayListLen,bd(i,$_)},n.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath(),o=e&&e.length,a=0,s=t.__clipPaths;if(!t.ignoreClip&&(o||r)){if(s||(s=t.__clipPaths=[]),o)for(var l=0;l<e.length;l++)s[a++]=e[l];for(var u=r,c=t;u;)u.parent=c,u.updateTransform(),s[a++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=a),t.childrenRef){for(var h=t.childrenRef(),d=0;d<h.length;d++){var p=h[d];t.__dirty&&(p.__dirty|=1),this._updateAndAddDisplayable(p,s,i)}t.__dirty=0}else{var f=t;isNaN(f.z)&&(sg(),f.z=0),isNaN(f.z2)&&(sg(),f.z2=0),isNaN(f.zlevel)&&(sg(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,s,i);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,i)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var r=be(this._roots,t);r>=0&&this._roots.splice(r,1)}},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n})(),hm=Ee.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)},zu={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(2-Math.pow(2,-10*(n-1)))},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var t,e=.1;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=.4*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/.4))},elasticOut:function(n){var t,e=.1;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=.4*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*n)*Math.sin((n-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(n){var t,e=.1,i=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=i*Math.asin(1/e)/(2*Math.PI),(n*=2)<1?e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var t=1.70158;return n*n*((t+1)*n-t)},backOut:function(n){var t=1.70158;return--n*n*((t+1)*n+t)+1},backInOut:function(n){var t=2.5949095;return(n*=2)<1?n*n*((t+1)*n-t)*.5:.5*((n-=2)*n*((t+1)*n+t)+2)},bounceIn:function(n){return 1-zu.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?.5*zu.bounceIn(2*n):.5*zu.bounceOut(2*n-1)+.5}},Jc=Math.pow,to=Math.sqrt,bD=1e-8,wD=1e-4,J_=to(3),Qc=1/3,Ii=mo(),Un=mo(),Es=mo();function jr(n){return n>-1e-8&&n<bD}function SD(n){return n>bD||n<-1e-8}function Pt(n,t,e,i,r){var o=1-r;return o*o*(o*n+3*r*t)+r*r*(r*i+3*o*e)}function Q_(n,t,e,i,r){var o=1-r;return 3*(((t-n)*o+2*(e-t)*r)*o+(i-e)*r*r)}function Jd(n,t,e,i,r,o){var a=i+3*(t-e)-n,s=3*(e-2*t+n),l=3*(t-n),u=n-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(jr(c)&&jr(h))jr(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[p++]=M);else{var f=h*h-4*c*d;if(jr(f)){var g=h/c,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v)}else if(f>0){var y=to(f),m=c*s+1.5*a*(-h+y),x=c*s+1.5*a*(-h-y);(M=(-s-((m=m<0?-Jc(-m,Qc):Jc(m,Qc))+(x=x<0?-Jc(-x,Qc):Jc(x,Qc))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var _=(2*c*s-3*a*h)/(2*to(c*c*c)),b=Math.acos(_)/3,w=to(c),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(v=(-s+w*(S+J_*Math.sin(b)))/(3*a),(-s+w*(S-J_*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),v>=0&&v<=1&&(o[p++]=v),I>=0&&I<=1&&(o[p++]=I)}}return p}function MD(n,t,e,i,r){var o=6*e-12*t+6*n,a=9*t+3*i-3*n-9*e,s=3*t-3*n,l=0;if(jr(a))SD(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if(jr(u))r[0]=-o/(2*a);else if(u>0){var c,h=to(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function co(n,t,e,i,r,o){var a=(t-n)*r+n,s=(e-t)*r+t,l=(i-e)*r+e,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=n,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function ID(n,t,e,i,r,o,a,s,l,u,c){var h,d,p,f,g,v=.005,y=1/0;Ii[0]=l,Ii[1]=u;for(var m=0;m<1;m+=.05)Un[0]=Pt(n,e,r,a,m),Un[1]=Pt(t,i,o,s,m),(f=eo(Ii,Un))<y&&(h=m,y=f);y=1/0;for(var x=0;x<32&&!(v<wD);x++)d=h-v,p=h+v,Un[0]=Pt(n,e,r,a,d),Un[1]=Pt(t,i,o,s,d),f=eo(Un,Ii),d>=0&&f<y?(h=d,y=f):(Es[0]=Pt(n,e,r,a,p),Es[1]=Pt(t,i,o,s,p),g=eo(Es,Ii),p<=1&&g<y?(h=p,y=g):v*=.5);return c&&(c[0]=Pt(n,e,r,a,h),c[1]=Pt(t,i,o,s,h)),to(y)}function YN(n,t,e,i,r,o,a,s,l){for(var u=n,c=t,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=Pt(n,e,r,a,f),v=Pt(t,i,o,s,f),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Gt(n,t,e,i){var r=1-i;return r*(r*n+2*i*t)+i*i*e}function dm(n,t,e,i){return 2*((1-i)*(t-n)+i*(e-t))}function TD(n,t,e){var i=n+e-2*t;return i===0?.5:(n-t)/i}function Qu(n,t,e,i,r){var o=(t-n)*i+n,a=(e-t)*i+t,s=(a-o)*i+o;r[0]=n,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=e}function CD(n,t,e,i,r,o,a,s,l){var u,c=.005,h=1/0;Ii[0]=a,Ii[1]=s;for(var d=0;d<1;d+=.05)Un[0]=Gt(n,e,r,d),Un[1]=Gt(t,i,o,d),(v=eo(Ii,Un))<h&&(u=d,h=v);h=1/0;for(var p=0;p<32&&!(c<wD);p++){var f=u-c,g=u+c;Un[0]=Gt(n,e,r,f),Un[1]=Gt(t,i,o,f);var v=eo(Un,Ii);if(f>=0&&v<h)u=f,h=v;else{Es[0]=Gt(n,e,r,g),Es[1]=Gt(t,i,o,g);var y=eo(Es,Ii);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=Gt(n,e,r,u),l[1]=Gt(t,i,o,u)),to(h)}function XN(n,t,e,i,r,o,a){for(var s=n,l=t,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=Gt(n,e,r,d),f=Gt(t,i,o,d),g=p-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=p,l=f}return u}var ZN=/cubic-bezier\(([0-9,\.e ]+)\)/;function k1(n){var t=n&&ZN.exec(n);if(t){var e=t[1].split(","),i=+Cn(e[0]),r=+Cn(e[1]),o=+Cn(e[2]),a=+Cn(e[3]);if(isNaN(i+r+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Jd(0,i,o,1,l,s)&&Pt(0,r,a,1,s[0])}}}var qN=(function(){function n(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ct,this.ondestroy=t.ondestroy||ct,this.onrestart=t.onrestart||ct,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,r=t-this._startTime-this._pausedTime,o=r/i;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1){if(!this.loop)return!0;var l=r%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=le(t)?t:zu[t]||k1(t)},n})(),DD=function(n){this.value=n},jN=(function(){function n(){this._len=0}return n.prototype.insert=function(t){var e=new DD(t);return this.insertEntry(e),e},n.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n})(),Xs=(function(){function n(t){this._list=new jN,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,e){var i=this._list,r=this._map,o=null;if(r[t]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new DD(e),s.key=t,i.insertEntry(s),r[t]=s}return o},n.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n})(),eb={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 si(n){return(n=Math.round(n))<0?0:n>255?255:n}function ec(n){return n<0?0:n>1?1:n}function wd(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?si(parseFloat(t)/100*255):si(parseInt(t,10))}function hr(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?ec(parseFloat(t)/100):ec(parseFloat(t))}function lg(n,t,e){return e<0?e+=1:e>1&&(e-=1),6*e<1?n+(t-n)*e*6:2*e<1?t:3*e<2?n+(t-n)*(2/3-e)*6:n}function Kr(n,t,e){return n+(t-n)*e}function Bn(n,t,e,i,r){return n[0]=t,n[1]=e,n[2]=i,n[3]=r,n}function pm(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var AD=new Xs(20),eh=null;function Ja(n,t){eh&&pm(eh,t),eh=AD.put(n,eh||t.slice())}function sn(n,t){if(n){t=t||[];var e=AD.get(n);if(e)return pm(t,e);var i=(n+="").replace(/ /g,"").toLowerCase();if(i in eb)return pm(t,eb[i]),Ja(n,t),t;var r,o=i.length;if(i.charAt(0)==="#")return o===4||o===5?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Bn(t,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,o===5?parseInt(i.slice(4),16)/15:1),Ja(n,t),t):void Bn(t,0,0,0,1):o===7||o===9?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Bn(t,(16711680&r)>>16,(65280&r)>>8,255&r,o===9?parseInt(i.slice(7),16)/255:1),Ja(n,t),t):void Bn(t,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Bn(t,+u[0],+u[1],+u[2],1):Bn(t,0,0,0,1);c=hr(u.pop());case"rgb":return u.length>=3?(Bn(t,wd(u[0]),wd(u[1]),wd(u[2]),u.length===3?c:hr(u[3])),Ja(n,t),t):void Bn(t,0,0,0,1);case"hsla":return u.length!==4?void Bn(t,0,0,0,1):(u[3]=hr(u[3]),fm(u,t),Ja(n,t),t);case"hsl":return u.length!==3?void Bn(t,0,0,0,1):(fm(u,t),Ja(n,t),t);default:return}}Bn(t,0,0,0,1)}}function fm(n,t){var e=(parseFloat(n[0])%360+360)%360/360,i=hr(n[1]),r=hr(n[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Bn(t=t||[],si(255*lg(a,o,e+1/3)),si(255*lg(a,o,e)),si(255*lg(a,o,e-1/3)),1),n.length===4&&(t[3]=n[3]),t}function Qd(n,t){var e=sn(n);if(e){for(var i=0;i<3;i++)e[i]=t<0?e[i]*(1-t)|0:(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Xn(e,e.length===4?"rgba":"rgb")}}function Bu(n,t,e){if(t&&t.length&&n>=0&&n<=1){e=e||[];var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return e[0]=si(Kr(a[0],s[0],l)),e[1]=si(Kr(a[1],s[1],l)),e[2]=si(Kr(a[2],s[2],l)),e[3]=ec(Kr(a[3],s[3],l)),e}}var KN=Bu;function L1(n,t,e){if(t&&t.length&&n>=0&&n<=1){var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=sn(t[r]),s=sn(t[o]),l=i-r,u=Xn([si(Kr(a[0],s[0],l)),si(Kr(a[1],s[1],l)),si(Kr(a[2],s[2],l)),ec(Kr(a[3],s[3],l))],"rgba");return e?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var $N=L1;function dr(n,t,e,i){var r=sn(n);if(n)return r=(function(o){if(o){var a,s,l=o[0]/255,u=o[1]/255,c=o[2]/255,h=Math.min(l,u,c),d=Math.max(l,u,c),p=d-h,f=(d+h)/2;if(p===0)a=0,s=0;else{s=f<.5?p/(d+h):p/(2-d-h);var g=((d-l)/6+p/2)/p,v=((d-u)/6+p/2)/p,y=((d-c)/6+p/2)/p;l===d?a=y-v:u===d?a=1/3+g-y:c===d&&(a=2/3+v-g),a<0&&(a+=1),a>1&&(a-=1)}var m=[360*a,s,f];return o[3]!=null&&m.push(o[3]),m}})(r),t!=null&&(r[0]=(function(o){return(o=Math.round(o))<0?0:o>360?360:o})(le(t)?t(r[0]):t)),e!=null&&(r[1]=hr(le(e)?e(r[1]):e)),i!=null&&(r[2]=hr(le(i)?i(r[2]):i)),Xn(fm(r),"rgba")}function tc(n,t){var e=sn(n);if(e&&t!=null)return e[3]=ec(t),Xn(e,"rgba")}function Xn(n,t){if(n&&n.length){var e=n[0]+","+n[1]+","+n[2];return t!=="rgba"&&t!=="hsva"&&t!=="hsla"||(e+=","+n[3]),t+"("+e+")"}}function nc(n,t){var e=sn(n);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var tb=new Xs(100);function ep(n){if(te(n)){var t=tb.get(n);return t||(t=Qd(n,-.1),tb.put(n,t)),t}if(Nc(n)){var e=X({},n);return e.colorStops=K(n.colorStops,function(i){return{offset:i.offset,color:Qd(i.color,-.1)}}),e}return n}var A6=Object.freeze({__proto__:null,parseCssInt:wd,parseCssFloat:hr,parse:sn,lift:Qd,toHex:function(n){var t=sn(n);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},fastLerp:Bu,fastMapToColor:KN,lerp:L1,mapToColor:$N,modifyHSL:dr,modifyAlpha:tc,stringify:Xn,lum:nc,random:function(){return Xn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},liftColor:ep}),tp=Math.round;function ic(n){var t;if(n&&n!=="transparent"){if(typeof n=="string"&&n.indexOf("rgba")>-1){var e=sn(n);e&&(n="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}}else n="none";return{color:n,opacity:t??1}}var JN=1e-4;function $r(n){return n<JN&&n>-1e-4}function th(n){return tp(1e3*n)/1e3}function gm(n){return tp(1e4*n)/1e4}var QN={left:"start",right:"end",center:"middle",middle:"middle"};function kD(n){return n&&!!n.image}function vm(n){return kD(n)||(function(t){return t&&!!t.svgElement})(n)}function LD(n){return n.type==="linear"}function PD(n){return n.type==="radial"}function OD(n){return n&&(n.type==="linear"||n.type==="radial")}function Mf(n){return"url(#"+n+")"}function RD(n){var t=n.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function ND(n){var t=n.x||0,e=n.y||0,i=(n.rotation||0)*Ou,r=ae(n.scaleX,1),o=ae(n.scaleY,1),a=n.skewX||0,s=n.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),i&&l.push("rotate("+i+")"),r===1&&o===1||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+tp(a*Ou)+"deg, "+tp(s*Ou)+"deg)"),l.join(" ")}var eE=typeof Buffer<"u"&&typeof Buffer.from=="function"?function(n){return Buffer.from(n).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(n){return btoa(unescape(encodeURIComponent(n)))}:function(n){return null},ym=Array.prototype.slice;function rr(n,t,e){return(t-n)*e+n}function ug(n,t,e,i){for(var r=t.length,o=0;o<r;o++)n[o]=rr(t[o],e[o],i);return n}function nh(n,t,e,i){for(var r=t.length,o=0;o<r;o++)n[o]=t[o]+e[o]*i;return n}function nb(n,t,e,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){n[a]||(n[a]=[]);for(var s=0;s<o;s++)n[a][s]=t[a][s]+e[a][s]*i}return n}function tE(n,t){for(var e=n.length,i=t.length,r=e>i?t:n,o=Math.min(e,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(e,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function nE(n,t,e){var i=n,r=t;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(e===1?r[s]:ym.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(e===1)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Vu(n){if(qt(n)){var t=n.length;if(qt(n[0])){for(var e=[],i=0;i<t;i++)e.push(ym.call(n[i]));return e}return ym.call(n)}return n}function Sd(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function ib(n){return n===4||n===5}function ih(n){return n===1||n===2}var Rl=[0,0,0,0],iE=(function(){function n(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var r=this.keyframes,o=r.length,a=!1,s=6,l=e;if(qt(e)){var u=(function(p){return qt(p&&p[0])?2:1})(e);s=u,(u===1&&!Ve(e[0])||u===2&&!Ve(e[0][0]))&&(a=!0)}else if(Ve(e)&&!jt(e))s=0;else if(te(e))if(isNaN(+e)){var c=sn(e);c&&(l=c,s=3)}else s=0;else if(Nc(e)){var h=X({},l);h.colorStops=K(e.colorStops,function(p){return{offset:p.offset,color:sn(p.color)}}),LD(e)?s=4:PD(e)&&(s=5),l=h}o===0?this.valType=s:s===this.valType&&s!==6||(a=!0),this.discrete=this.discrete||a;var d={time:t,value:l,rawValue:e,percent:0};return i&&(d.easing=i,d.easingFunc=le(i)?i:zu[i]||k1(i)),r.push(d),d},n.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var r=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=ih(r),u=ib(r),c=0;c<o;c++){var h=i[c],d=h.value,p=a.value;h.percent=h.time/t,s||(l&&c!==o-1?nE(d,p,r):u&&tE(d.colorStops,p.colorStops))}if(!s&&r!==5&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var f=i[0].value;for(c=0;c<o;c++)r===0?i[c].additiveValue=i[c].value-f:r===3?i[c].additiveValue=nh([],i[c].value,f,-1):ih(r)&&(i[c].additiveValue=r===1?nh([],i[c].value,f,-1):nb([],i[c].value,f,-1))}},n.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,r,o,a=this._additiveTrack!=null,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,h=this.propName,d=l===3,p=this._lastFr,f=Math.min;if(c===1)r=o=u[0];else{if(e<0)i=0;else if(e<this._lastFrP){for(i=f(p+1,c-1);i>=0&&!(u[i].percent<=e);i--);i=f(i,c-2)}else{for(i=p;i<c&&!(u[i].percent>e);i++);i=f(i-1,c-2)}o=u[i+1],r=u[i]}if(r&&o){this._lastFr=i,this._lastFrP=e;var g=o.percent-r.percent,v=g===0?1:f((e-r.percent)/g,1);o.easingFunc&&(v=o.easingFunc(v));var y=a?this._additiveValue:d?Rl:t[h];if(!ih(l)&&!d||y||(y=this._additiveValue=[]),this.discrete)t[h]=v<1?r.rawValue:o.rawValue;else if(ih(l))l===1?ug(y,r[s],o[s],v):(function(w,S,M,I){for(var T=S.length,C=T&&S[0].length,D=0;D<T;D++){w[D]||(w[D]=[]);for(var A=0;A<C;A++)w[D][A]=rr(S[D][A],M[D][A],I)}})(y,r[s],o[s],v);else if(ib(l)){var m=r[s],x=o[s],_=l===4;t[h]={type:_?"linear":"radial",x:rr(m.x,x.x,v),y:rr(m.y,x.y,v),colorStops:K(m.colorStops,function(w,S){var M=x.colorStops[S];return{offset:rr(w.offset,M.offset,v),color:Sd(ug([],w.color,M.color,v))}}),global:x.global},_?(t[h].x2=rr(m.x2,x.x2,v),t[h].y2=rr(m.y2,x.y2,v)):t[h].r=rr(m.r,x.r,v)}else if(d)ug(y,r[s],o[s],v),a||(t[h]=Sd(y));else{var b=rr(r[s],o[s],v);a?this._additiveValue=b:t[h]=b}a&&this._addToTarget(t)}}},n.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,r=this._additiveValue;e===0?t[i]=t[i]+r:e===3?(sn(t[i],Rl),nh(Rl,Rl,r,1),t[i]=Sd(Rl)):e===1?nh(t[i],t[i],r,1):e===2&&nb(t[i],t[i],r,1)},n})(),P1=(function(){function n(t,e,i,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?xf("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=i)}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(t){this._target=t},n.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Re(e),i)},n.prototype.whenWithKeys=function(t,e,i,r){for(var o=this._tracks,a=0;a<i.length;a++){var s=i[a],l=o[s];if(!l){l=o[s]=new iE(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var h=c.keyframes,d=h[h.length-1];u=d&&d.value,c.valType===3&&u&&(u=Sd(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Vu(u),r),this._trackKeys.push(s)}l.addKeyframe(t,Vu(e[s]),r)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},n.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},n.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var r=0;r<i.length;r++){var o=i[r].getTrack(t);o&&(e=o)}return e},n.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(r,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var d=new qN({life:r,loop:this._loop,delay:this._delay||0,onframe:function(p){e._started=2;var f=e._additiveAnimators;if(f){for(var g=!1,v=0;v<f.length;v++)if(f[v]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(v=0;v<i.length;v++)i[v].step(e._target,p);var y=e._onframeCbs;if(y)for(v=0;v<y.length;v++)y[v](e._target,p)},ondestroy:function(){e._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},n.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},n.prototype.delay=function(t){return this._delay=t,this},n.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},n.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},n.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(t){return this._tracks[t]},n.prototype.getTracks=function(){var t=this;return K(this._trackKeys,function(e){return t._tracks[e]})},n.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,r=this._trackKeys,o=0;o<t.length;o++){var a=i[t[o]];a&&!a.isFinished()&&(e?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}var s=!0;for(o=0;o<r.length;o++)if(!i[r[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var o=e[r],a=this._tracks[o];if(a&&!a.isFinished()){var s=a.keyframes,l=s[i?0:s.length-1];l&&(t[o]=Vu(l.rawValue))}}}},n.prototype.__changeFinalValue=function(t,e){e=e||Re(t);for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},n})();function Ds(){return new Date().getTime()}var rb,ob,rE=(function(n){function t(e){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return G(t,n),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,r=e.next;i?i.next=r:this._head=r,r?r.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Ds()-this._pausedTime,r=i-this._time,o=this._head;o;){var a=o.next;o.step(i,r)&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=i,e||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,hm(function i(){e._running&&(hm(i),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=Ds(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ds(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ds()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var r=new P1(e,i.loop);return this.addAnimator(r),r},t})(Qn),cg=Ee.domSupported,hg=(ob={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:rb=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:K(rb,function(n){var t=n.replace("mouse","pointer");return ob.hasOwnProperty(t)?t:n})}),oE=["mousemove","mouseup"],aE=["pointermove","pointerup"],ab=!1;function mm(n){var t=n.pointerType;return t==="pen"||t==="touch"}function dg(n){n&&(n.zrByTouch=!0)}function ED(n,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===n.painterRoot);)e=e.parentNode;return i}var sE=function(n,t){this.stopPropagation=ct,this.stopImmediatePropagation=ct,this.preventDefault=ct,this.type=t.type,this.target=this.currentTarget=n.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},ni={mousedown:function(n){n=Fn(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Fn(this.dom,n);var t=this.__mayPointerCapture;!t||n.zrX===t[0]&&n.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=Fn(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){ED(this,(n=Fn(this.dom,n)).toElement||n.relatedTarget)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){ab=!0,n=Fn(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){ab||(n=Fn(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){dg(n=Fn(this.dom,n)),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),ni.mousemove.call(this,n),ni.mousedown.call(this,n)},touchmove:function(n){dg(n=Fn(this.dom,n)),this.handler.processGesture(n,"change"),ni.mousemove.call(this,n)},touchend:function(n){dg(n=Fn(this.dom,n)),this.handler.processGesture(n,"end"),ni.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<300&&ni.click.call(this,n)},pointerdown:function(n){ni.mousedown.call(this,n)},pointermove:function(n){mm(n)||ni.mousemove.call(this,n)},pointerup:function(n){ni.mouseup.call(this,n)},pointerout:function(n){mm(n)||ni.mouseout.call(this,n)}};k(["click","dblclick","contextmenu"],function(n){ni[n]=function(t){t=Fn(this.dom,t),this.trigger(n,t)}});var xm={pointermove:function(n){mm(n)||xm.mousemove.call(this,n)},pointerup:function(n){xm.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function lE(n,t){var e=t.domHandlers;Ee.pointerEventsSupported?k(hg.pointer,function(i){Md(t,i,function(r){e[i].call(n,r)})}):(Ee.touchEventsSupported&&k(hg.touch,function(i){Md(t,i,function(r){e[i].call(n,r),(function(o){o.touching=!0,o.touchTimer!=null&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)})(t)})}),k(hg.mouse,function(i){Md(t,i,function(r){r=A1(r),t.touching||e[i].call(n,r)})}))}function uE(n,t){function e(i){Md(t,i,function(r){r=A1(r),ED(n,r.target)||(r=(function(o,a){return Fn(o.dom,new sE(o,a),!0)})(n,r),t.domHandlers[i].call(n,r))},{capture:!0})}Ee.pointerEventsSupported?k(aE,e):Ee.touchEventsSupported||k(oE,e)}function Md(n,t,e,i){n.mounted[t]=e,n.listenerOpts[t]=i,lm(n.domTarget,t,e,i)}function pg(n){var t=n.mounted;for(var e in t)t.hasOwnProperty(e)&&ON(n.domTarget,e,t[e],n.listenerOpts[e]);n.mounted={}}var sb=function(n,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=n,this.domHandlers=t},cE=(function(n){function t(e,i){var r=n.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=i,r._localHandlerScope=new sb(e,ni),cg&&(r._globalHandlerScope=new sb(document,xm)),lE(r,r._localHandlerScope),r}return G(t,n),t.prototype.dispose=function(){pg(this._localHandlerScope),cg&&pg(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,cg&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?uE(this,i):pg(i)}},t})(Qn),zD=1;Ee.hasGlobalWindow&&(zD=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var np=zD,_m="#333",bm="#ccc",lb=Fa,hE=5e-5;function Io(n){return n>hE||n<-5e-5}var To=[],Qa=[],fg=[1,0,0,1,0,0],gg=Math.abs,ji=(function(){function n(){}var t;return n.prototype.getLocalTransform=function(e){return ho(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return Io(this.rotation)||Io(this.x)||Io(this.y)||Io(this.scaleX-1)||Io(this.scaleY-1)||Io(this.skewX)||Io(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,i=this.needLocalTransform(),r=this.transform;i||e?(r=r||[1,0,0,1,0,0],i?this.getLocalTransform(r):lb(r),e&&(i?kn(r,e,r):uo(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r),this.invTransform=this.invTransform||[1,0,0,1,0,0],Ln(this.invTransform,r)):r&&(lb(r),this.invTransform=null)},n.prototype._resolveGlobalScaleRatio=function(e){var i=this.globalScaleRatio;if(i!=null&&i!==1){this.getGlobalScale(To);var r=To[0]<0?-1:1,o=To[1]<0?-1:1,a=((To[0]-r)*i+r)/To[0]||0,s=((To[1]-o)*i+o)/To[1]||0;e[0]*=a,e[1]*=a,e[2]*=s,e[3]*=s}},n.prototype.getComputedTransform=function(){for(var e=this,i=[];e;)i.push(e),e=e.parent;for(;e=i.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var i=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],o=Math.atan2(e[1],e[0]),a=Math.PI/2+o-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(a),i=Math.sqrt(i),this.skewX=a,this.skewY=0,this.rotation=-o,this.x=+e[4],this.y=+e[5],this.scaleX=i,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,i=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],kn(Qa,e.invTransform,i),i=Qa);var r=this.originX,o=this.originY;(r||o)&&(fg[4]=r,fg[5]=o,kn(Qa,i,fg),Qa[4]-=r,Qa[5]-=o,i=Qa),this.setLocalTransform(i)}},n.prototype.getGlobalScale=function(e){var i=this.transform;return e=e||[],i?(e[0]=Math.sqrt(i[0]*i[0]+i[1]*i[1]),e[1]=Math.sqrt(i[2]*i[2]+i[3]*i[3]),i[0]<0&&(e[0]=-e[0]),i[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,i){var r=[e,i],o=this.invTransform;return o&&dt(r,r,o),r},n.prototype.transformCoordToGlobal=function(e,i){var r=[e,i],o=this.transform;return o&&dt(r,r,o),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&gg(e[0]-1)>1e-10&&gg(e[3]-1)>1e-10?Math.sqrt(gg(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){Vi(this,e)},n.getLocalTransform=function(e,i){i=i||[];var r=e.originX||0,o=e.originY||0,a=e.scaleX,s=e.scaleY,l=e.anchorX,u=e.anchorY,c=e.rotation||0,h=e.x,d=e.y,p=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(r||o||l||u){var g=r+l,v=o+u;i[4]=-g*a-p*v*s,i[5]=-v*s-f*g*a}else i[4]=i[5]=0;return i[0]=a,i[3]=s,i[1]=f*a,i[2]=p*s,c&&Cr(i,i,c),i[4]+=r+h,i[5]+=o+d,i},n.initDefaultProps=((t=n.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),n})(),ho=ji.getLocalTransform;function zs(){return new ji}var rh,pr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Vi(n,t){return aD(n,t,pr)}function Li(n){rh||(rh=new Xs(100)),n=n||mr;var t=rh.get(n);return t||(t={font:n,strWidthCache:new Xs(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Rt.measureText("\u56FD",n).width,asciiCharWidth:Rt.measureText("a",n).width},rh.put(n,t)),t}var vg=0,ub=5;function BD(n,t){return n.asciiWidthMapTried||(n.asciiWidthMap=(function(e){if(!(vg>=ub)){e=e||mr;for(var i=[],r=+new Date,o=0;o<=127;o++)i[o]=Rt.measureText(String.fromCharCode(o),e).width;var a=+new Date-r;return a>16?vg=ub:a>2&&vg++,i}})(n.font),n.asciiWidthMapTried=!0),0<=t&&t<=127?n.asciiWidthMap!=null?n.asciiWidthMap[t]:n.asciiCharWidth:n.stWideCharWidth}function Pi(n,t){var e=n.strWidthCache,i=e.get(t);return i==null&&(i=Rt.measureText(t,n.font).width,e.put(t,i)),i}function cb(n,t,e,i){var r=Pi(Li(t),n),o=rc(t),a=Zs(0,r,e),s=ua(0,o,i);return new de(a,s,r,o)}function If(n,t,e,i){var r=((n||"")+"").split(`
15
+ `);if(r.length===1)return cb(r[0],t,e,i);for(var o=new de(0,0,0,0),a=0;a<r.length;a++){var s=cb(r[a],t,e,i);a===0?o.copy(s):o.union(s)}return o}function Zs(n,t,e,i){return e==="right"?i?n+=t:n-=t:e==="center"&&(i?n+=t/2:n-=t/2),n}function ua(n,t,e,i){return e==="middle"?i?n+=t/2:n-=t/2:e==="bottom"&&(i?n+=t:n-=t),n}function rc(n){return Li(n).stWideCharWidth}function Ui(n,t){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*t:parseFloat(n):n}function ip(n,t,e){var i=t.position||"inside",r=t.distance!=null?t.distance:5,o=e.height,a=e.width,s=o/2,l=e.x,u=e.y,c="left",h="top";if(i instanceof Array)l+=Ui(i[0],e.width),u+=Ui(i[1],e.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(n=n||{}).x=l,n.y=u,n.align=c,n.verticalAlign=h,n}var yg="__zr_normal__",mg=pr.concat(["ignore"]),dE=Kn(pr,function(n,t){return n[t]=!0,n},{ignore:!1}),es={},pE=new de(0,0,0,0),oh=[],rp=(function(){function n(t){this.id=I1(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,r=i.local,o=e.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=r?this:null;var u=!1;o.copyTransform(e);var c=i.position!=null,h=i.autoOverflowArea,d=void 0;if((h||c)&&(d=pE,i.layoutRect?d.copy(i.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(es,i,d):ip(es,i,d),o.x=es.x,o.y=es.y,a=es.align,s=es.verticalAlign;var p=i.origin;if(p&&i.rotation!=null){var f=void 0,g=void 0;p==="center"?(f=.5*d.width,g=.5*d.height):(f=Ui(p[0],d.width),g=Ui(p[1],d.height)),u=!0,o.originX=-o.x+f+(r?0:d.x),o.originY=-o.y+g+(r?0:d.y)}}i.rotation!=null&&(o.rotation=i.rotation);var v=i.offset;v&&(o.x+=v[0],o.y+=v[1],u||(o.originX=-v[0],o.originY=-v[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=y.overflowRect=y.overflowRect||new de(0,0,0,0);o.getLocalTransform(oh),Ln(oh,oh),de.copy(m,d),m.applyTransform(oh)}else y.overflowRect=null;var x=void 0,_=void 0,b=void 0;(i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside)&&this.canBeInsideText()?(x=i.insideFill,_=i.insideStroke,x!=null&&x!=="auto"||(x=this.getInsideTextFill()),_!=null&&_!=="auto"||(_=this.getInsideTextStroke(x),b=!0)):(x=i.outsideFill,_=i.outsideStroke,x!=null&&x!=="auto"||(x=this.getOutsideFill()),_!=null&&_!=="auto"||(_=this.getOutsideStroke(x),b=!0)),(x=x||"#000")===y.fill&&_===y.stroke&&b===y.autoStroke&&a===y.align&&s===y.verticalAlign||(l=!0,y.fill=x,y.stroke=_,y.autoStroke=b,y.align=a,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=1,l&&e.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?bm:_m},n.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&sn(e);i||(i=[255,255,255,1]);for(var r=i[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*r+(o?0:255)*(1-r);return i[3]=1,Xn(i,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},X(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(fe(t))for(var i=Re(t),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var r=this.animators[i],o=r.__fromStateTransition;if(!(r.getLoop()||o&&o!==yg)){var a=r.targetName,s=a?e[a]:e;r.saveTo(s)}}},n.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,mg)},n.prototype._savePrimaryToNormal=function(t,e,i){for(var r=0;r<i.length;r++){var o=i[r];t[o]==null||o in e||(e[o]=this[o])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(yg,!1,t)},n.prototype.useState=function(t,e,i,r){var o=t===yg;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(be(a,t)>=0)||!e&&a.length!==1){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||o){o||this.saveCurrentToNormalState(l);var u=this._textContent,c=hb(this,u,l,r);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(t,l,this._normalState,e,pb(this,i,s),s);var h=this._textGuide;return u&&u.useState(t,e,i,!!c),h&&h.useState(t,e,i,!!c),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),l}xf("State "+t+" not exists.")}}},n.prototype.useStates=function(t,e,i){if(t.length){var r=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(l=0;l<a;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&r.push(c)}var h=r[a-1],d=this._textContent,p=hb(this,d,h,i);p&&!this.__inHover&&(this.__inHover=p);var f=this._mergeStates(r),g=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,pb(this,e,g),g);var v=this._textGuide;d&&d.useStates(t,e,!!p),v&&v.useStates(t,e,!!p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}else this.clearStates()},n.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e=be(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},n.prototype.replaceState=function(t,e,i){var r=this.currentStates.slice(),o=be(r,t),a=be(r,e)>=0;o>=0?a?r.splice(o,1):r[o]=e:i&&!a&&r.push(e),this.useStates(r)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e,i={},r=0;r<t.length;r++){var o=t[r];X(i,o),o.textConfig&&X(e=e||{},o.textConfig)}return e&&(i.textConfig=e),i},n.prototype._applyStateObj=function(t,e,i,r,o,a){if(this.__inHover!==1){var s=!(e&&r);e&&e.textConfig?(this.textConfig=X({},r?this.textConfig:i.textConfig),X(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,c=0;c<mg.length;c++){var h=mg[c],d=o&&dE[h];e&&e[h]!=null?d?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(d?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!o)for(c=0;c<this.animators.length;c++){var p=this.animators[c],f=p.targetName;p.getLoop()||p.__changeFinalValue(f?(e||i)[f]:e||i)}u&&this._transitionState(t,l,a)}},n.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ji,this._attachComponent(t),this._textContent=t,this.markRedraw())},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),X(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},n.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},n.prototype.animate=function(t,e,i){var r=t?this[t]:this,o=new P1(r,e,i);return t&&(o.targetName=t),this.addAnimator(o,t),o},n.prototype.addAnimator=function(t,e){var i=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var o=r.animators,a=be(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var i=this.animators,r=i.length,o=[],a=0;a<r;a++){var s=i[a];t&&t!==s.scope?o.push(s):s.stop(e)}return this.animators=o,this},n.prototype.animateTo=function(t,e,i){xg(this,t,e,i)},n.prototype.animateFrom=function(t,e,i){xg(this,t,e,i,!0)},n.prototype._transitionState=function(t,e,i,r){for(var o=xg(this,e,i,r),a=0;a<o.length;a++)o[a].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=(function(){var t=n.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function e(i,r,o,a){function s(l,u){Object.defineProperty(u,0,{get:function(){return l[o]},set:function(c){l[o]=c}}),Object.defineProperty(u,1,{get:function(){return l[a]},set:function(c){l[a]=c}})}Object.defineProperty(t,i,{get:function(){return this[r]||s(this,this[r]=[]),this[r]},set:function(l){this[o]=l[0],this[a]=l[1],this[r]=l,s(this,l)}})}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),n})();function xg(n,t,e,i,r){var o=[];VD(n,"",n,t,e=e||{},i,o,r);var a=o.length,s=!1,l=e.done,u=e.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&e.during&&o[0].during(function(f,g){e.during(g)});for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),h&&p.aborted(h),e.force&&p.duration(e.duration),p.start(e.easing)}return o}function _g(n,t,e){for(var i=0;i<e;i++)n[i]=t[i]}function fE(n,t,e){if(qt(t[e]))if(qt(n[e])||(n[e]=[]),vn(t[e])){var i=t[e].length;n[e].length!==i&&(n[e]=new t[e].constructor(i),_g(n[e],t[e],i))}else{var r=t[e],o=n[e],a=r.length;if(qt(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?_g(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else _g(o,r,a);o.length=r.length}else n[e]=t[e]}function VD(n,t,e,i,r,o,a,s){for(var l=Re(i),u=r.duration,c=r.delay,h=r.additive,d=r.setToFinal,p=!fe(o),f=n.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(m!=null&&e[y]!=null&&(p||o[y]))if(!fe(m)||qt(m)||Nc(m))g.push(y);else{if(t){s||(e[y]=m,n.updateDuringAnimation(t));continue}VD(n,y,e[y],m,r,o&&o[y],a,s)}else s||(e[y]=m,n.updateDuringAnimation(t),g.push(y))}var x=g.length;if(!h&&x){for(var _=0;_<f.length;_++)if((w=f[_]).targetName===t&&w.stopTracks(g)){var b=be(f,w);f.splice(b,1)}}if(r.force||(g=Ye(g,function(T){return C=i[T],D=e[T],!(C===D||qt(C)&&qt(D)&&(function(A,L){var P=A.length;if(P!==L.length)return!1;for(var E=0;E<P;E++)if(A[E]!==L[E])return!1;return!0})(C,D));var C,D}),x=g.length),x>0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s)for(M={},d&&(S={}),_=0;_<x;_++)M[y=g[_]]=e[y],d?S[y]=i[y]:e[y]=i[y];else if(d)for(I={},_=0;_<x;_++)I[y=g[_]]=Vu(e[y]),fE(e,i,y);(w=new P1(e,!1,!1,h?Ye(f,function(T){return T.targetName===t}):null)).targetName=t,r.scope&&(w.scope=r.scope),d&&S&&w.whenWithKeys(0,S,g),I&&w.whenWithKeys(0,I,g),w.whenWithKeys(u??500,s?M:i,g).delay(c||0),n.addAnimator(w,t),a.push(w)}}function hb(n,t,e,i){return!(e&&e.hoverLayer||i)||db(n)||t&&db(t)?0:1}function db(n){return n.type==="text"||n.type==="tspan"}function pb(n,t,e){return!t&&!n.__inHover&&e&&e.duration>0}xt(rp,Qn),xt(rp,ji);var he=(function(n){function t(e){var i=n.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return G(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,r=0;r<i.length;r++)if(i[r].name===e)return i[r]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var r=this._children,o=r.indexOf(i);o>=0&&(r.splice(o,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var r=be(this._children,e);return r>=0&&this.replaceAt(i,r),this},t.prototype.replaceAt=function(e,i){var r=this._children,o=r[i];if(e&&e!==this&&e.parent!==this&&e!==o){r[i]=e,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,r=this._children,o=be(r,e);return o<0||(r.splice(o,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,r=0;r<e.length;r++){var o=e[r];i&&o.removeSelfFromZr(i),o.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var r=this._children,o=0;o<r.length;o++){var a=r[o];e.call(i,a,o)}return this},t.prototype.traverse=function(e,i){for(var r=0;r<this._children.length;r++){var o=this._children[r],a=e.call(i,o);o.isGroup&&!a&&o.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].addSelfToZr(e)},t.prototype.removeSelfFromZr=function(e){n.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].removeSelfFromZr(e)},t.prototype.getBoundingRect=function(e){for(var i=new de(0,0,0,0),r=e||this._children,o=[],a=null,s=0;s<r.length;s++){var l=r[s];if(!l.ignore&&!l.invisible){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(de.applyTransform(i,u,c),(a=a||i.clone()).union(i)):(a=a||u.clone()).union(u)}}return a||i},t})(rp);he.prototype.type="group";/*!
16
+ * ZRender, a high performance 2d drawing library.
17
+ *
18
+ * Copyright (c) 2013, Baidu Inc.
19
+ * All rights reserved.
20
+ *
21
+ * LICENSE
22
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
23
+ */var Id={},$o={},wm,gE=(function(){function n(t,e,i){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var o=new UN,a=i.renderer||"canvas";Id[a]||(a=Re(Id)[0]),i.useDirtyRect=i.useDirtyRect!=null&&i.useDirtyRect;var s=new Id[a](e,o,i,t),l=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u,c=Ee.node||Ee.worker||l?null:new cE(s.getViewportRoot(),s.root),h=i.useCoarsePointer;(h==null||h==="auto"?Ee.touchEventsSupported:h)&&(u=ae(i.pointerSize,44)),this.handler=new xD(o,s,c,s.root,u),this.animation=new rE({stage:{update:l?null:function(){return r._flush(!1)}}}),l||this.animation.start()}return n.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},n.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},n.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=(function(e){if(!e)return!1;if(typeof e=="string")return nc(e,1)<.4;if(e.colorStops){for(var i=e.colorStops,r=0,o=i.length,a=0;a<o;a++)r+=nc(i[a].color,1);return(r/=o)<.4}return!1})(t))},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(t){this._darkMode=t},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},n.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},n.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},n.prototype.flush=function(){this._disposed||this._flush(!0)},n.prototype._flush=function(t){var e,i=Ds(),r=this._needsRefresh,o=this._needsRefreshHover;(r||o)&&(e=!0,this._refresh({animUpdate:t,refresh:r,refreshHover:o}));var a=Ds();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},n.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},n.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},n.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},n.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},n.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof he&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},n.prototype.dispose=function(){var t;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,t=this.id,delete $o[t])},n})();function Sm(n,t){var e=new gE(I1(),n,t);return $o[e.id]=e,e}function GD(n,t){Id[n]=t}function FD(n){if(typeof wm=="function")return wm(n)}function HD(n){wm=n}var k6=Object.freeze({__proto__:null,init:Sm,dispose:function(n){n.dispose()},disposeAll:function(){for(var n in $o)$o.hasOwnProperty(n)&&$o[n].dispose();$o={}},getInstance:function(n){return $o[n]},registerPainter:GD,getElementSSRData:FD,registerSSRDataGetter:HD,version:"6.1.0"}),vE=1e-4,Xe=Math.min,De=Math.max,ht=Math.abs,Yi=Math.round,Zn=Math.floor,ca=Math.ceil,Ha=Math.pow,xa=Math.log,oc=Math.LN10,op=Math.PI,yE=Math.random;function He(n,t,e,i){var r=t[0],o=t[1],a=e[0],s=e[1],l=o-r,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(i)if(l>0){if(n<=r)return a;if(n>=o)return s}else{if(n>=r)return a;if(n<=o)return s}else{if(n===r)return a;if(n===o)return s}return(n-r)/l*u+a}var ne=function(n,t,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%"}return ap(n,t,e)};function ap(n,t,e){return te(n)?WD(n)?parseFloat(n)/100*t+(e||0):parseFloat(n):n==null?NaN:+n}function WD(n){return!!(t=n,t.replace(/^\s+|\s+$/g,"")).match(/%$/);var t}function Ge(n,t,e){return isNaN(t)?e?""+n:+n:(t=Xe(De(0,t),20),n=(+n).toFixed(t),e?n:+n)}function Ft(n){return n.sort(function(t,e){return t-e}),n}function Oi(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Yi(n*t)/t===n)return e}return UD(n)}function UD(n){var t=n.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,r=e>0?e:t.length,o=t.indexOf(".");return De(0,(o<0?0:r-1-o)-i)}function O1(n,t,e){var i=ht(n[1]-n[0]);if(!isFinite(i)||i===0)return NaN;var r=xa(2*ht(e||1)*ht(i))/oc,o=xa(ht(t))/oc,a=De(0,ca(-r+o));return isFinite(a)||(a=NaN),a}function YD(n,t){var e=Kn(n,function(p,f){return p+(isNaN(f)?0:f)},0);if(e===0)return[];for(var i=Ha(10,t),r=K(n,function(p){return(isNaN(p)?0:p)/e*i*100}),o=100*i,a=K(r,function(p){return Zn(p)}),s=Kn(a,function(p,f){return p+f},0),l=K(r,function(p,f){return p-a[f]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return K(a,function(p){return p/i})}function Uo(n,t){var e=De(Oi(n),Oi(t)),i=n+t;return e>20?i:Ge(i,e)}var ac=Ha(2,53)-1;function R1(n){var t=2*op;return(n%t+t)%t}function _a(n){return n>-1e-4&&n<vE}var mE=/^(?:(\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 Ki(n){if(n instanceof Date)return n;if(te(n)){var t=mE.exec(n);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return n==null?new Date(NaN):new Date(Yi(n))}function N1(n){return Ha(10,Tf(n))}function Tf(n){if(n===0)return 0;var t=Zn(xa(n)/oc);return n/Ha(10,t)>=10&&t++,t}function Cf(n,t){var e=Tf(n),i=Ha(10,e),r=n/i;return Ge(n=(t===2?1:t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,-e)}function Td(n,t){var e=(n.length-1)*t+1,i=Zn(e),r=+n[i-1],o=e-i;return o?r+o*(n[i]-r):r}function Mm(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i<n.length;){for(var r=n[i].interval,o=n[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-e),t=r[a],e=o[a];r[0]===r[1]&&o[0]*o[1]!==1?n.splice(i,1):i++}return n;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Xi(n){var t=parseFloat(n);return t==n&&(t!==0||!te(n)||n.indexOf("x")<=0)?t:NaN}function E1(n){return!isNaN(Xi(n))}function z1(){return Yi(9*yE())}function XD(n,t){return t===0?n:XD(t,n%t)}function fb(n,t){return n==null?t:t==null?n:n*t/XD(n,t)}function Yn(n){return n!=null&&isFinite(n)}var gb={},xE=typeof console<"u"&&console.warn&&console.log;function _E(n,t,e){if(xE){if(e){if(gb[t])return;gb[t]=!0}console[n]("[ECharts] "+t)}}function ZD(n,t){_E("error",n,t)}function Ue(n){throw new Error(n)}function vb(n,t,e){return(t-n)*e+n}var qD="series\0",jD="\0_ec_\0";function $e(n){return n instanceof Array?n:n==null?[]:[n]}function ba(n,t,e){if(n){n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{};for(var i=0,r=e.length;i<r;i++){var o=e[i];!n.emphasis[t].hasOwnProperty(o)&&n[t].hasOwnProperty(o)&&(n.emphasis[t][o]=n[t][o])}}}var yb=["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 cl(n){return!fe(n)||q(n)||n instanceof Date?n:n.value}function bE(n){return fe(n)&&!(n instanceof Array)}function KD(n,t,e){var i=e==="normalMerge",r=e==="replaceMerge",o=e==="replaceAll";n=n||[],t=(t||[]).slice();var a=re();k(t,function(c,h){fe(c)||(t[h]=null)});var s,l,u=(function(c,h,d){var p=[];if(d==="replaceAll")return p;for(var f=0;f<c.length;f++){var g=c[f];g&&g.id!=null&&h.set(g.id,f),p.push({existing:d==="replaceMerge"||vu(g)?null:g,newOption:null,keyInfo:null,brandNew:null})}return p})(n,a,e);return(i||r)&&(function(c,h,d,p){k(p,function(f,g){if(f&&f.id!=null){var v=gu(f.id),y=d.get(v);if(y!=null){var m=c[y];Kt(!m.newOption,'Duplicated option on id "'+v+'".'),m.newOption=f,m.existing=h[y],p[g]=null}}})})(u,n,a,t),i&&(function(c,h){k(h,function(d,p){if(d&&d.name!=null)for(var f=0;f<c.length;f++){var g=c[f].existing;if(!c[f].newOption&&g&&(g.id==null||d.id==null)&&!vu(d)&&!vu(g)&&mb("name",g,d))return c[f].newOption=d,void(h[p]=null)}})})(u,t),i||r?(function(c,h,d){k(h,function(p){if(p){for(var f,g=0;(f=c[g])&&(f.newOption||vu(f.existing)||f.existing&&p.id!=null&&!mb("id",p,f.existing));)g++;f?(f.newOption=p,f.brandNew=d):c.push({newOption:p,brandNew:d,existing:null,keyInfo:null}),g++}})})(u,t,r):o&&(function(c,h){k(h,function(d){c.push({newOption:d,brandNew:!0,existing:null,keyInfo:null})})})(u,t),s=u,l=re(),k(s,function(c){var h=c.existing;h&&l.set(h.id,c)}),k(s,function(c){var h=c.newOption;Kt(!h||h.id==null||!l.get(h.id)||l.get(h.id)===c,"id duplicates: "+(h&&h.id)),h&&h.id!=null&&l.set(h.id,c),!c.keyInfo&&(c.keyInfo={})}),k(s,function(c,h){var d=c.existing,p=c.newOption,f=c.keyInfo;if(fe(p)){if(f.name=p.name!=null?gu(p.name):d?d.name:qD+h,d)f.id=gu(d.id);else if(p.id!=null)f.id=gu(p.id);else{var g=0;do f.id="\0"+f.name+"\0"+g++;while(l.get(f.id))}l.set(f.id,c)}}),u}function mb(n,t,e){var i=Tt(t[n],null),r=Tt(e[n],null);return i!=null&&r!=null&&i===r}function gu(n){return Tt(n,"")}function Tt(n,t){return n==null?t:te(n)?n:Ve(n)||qd(n)?n+"":t}function B1(n){var t=n.name;return!(!t||!t.indexOf(qD))}function vu(n){return n&&n.id!=null&&gu(n.id).indexOf(jD)===0}function wa(n,t){return t.dataIndexInside!=null?t.dataIndexInside:t.dataIndex!=null?q(t.dataIndex)?K(t.dataIndex,function(e){return n.indexOfRawIndex(e)}):n.indexOfRawIndex(t.dataIndex):t.name!=null?q(t.name)?K(t.name,function(e){return n.indexOfName(e)}):n.indexOfName(t.name):void 0}function Me(){var n="__ec_inner_"+wE++;return function(t){return t[n]||(t[n]={})}}var wE=z1();function Bs(n,t,e){var i=V1(t,e),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=e?e.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(l,u){var c=hl(n,u,l,{useDefault:s===u,enableAll:!e||e.enableAll==null||e.enableAll,enableNone:!e||e.enableNone==null||e.enableNone});a[u+"Models"]=c.models,a[u+"Model"]=c.models[0]}),a}function V1(n,t){var e;if(te(n)){var i={};i[n+"Index"]=0,e=i}else e=n;var r=re(),o={},a=!1;return k(e,function(s,l){if(l!=="dataIndex"&&l!=="dataIndexInside"){var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();c&&h&&!(t&&t.includeMainTypes&&be(t.includeMainTypes,c)<0)&&(a=a||!!c,(r.get(c)||r.set(c,{}))[h]=s)}else o[l]=s}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var pt={useDefault:!0,enableAll:!1,enableNone:!1},SE={useDefault:!1,enableAll:!0,enableNone:!0};function hl(n,t,e,i){i=i||pt;var r=e.index,o=e.id,a=e.name,s={models:null,specified:r!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=n.getComponent(t))?[l]:[],s}if(r==="none"||r===!1){if(i.enableNone)return s.models=[],s;r=-1}return r==="all"&&(r=i.enableAll?o=a=null:-1),s.models=n.queryComponents({mainType:t,index:r,id:o,name:a}),s}function G1(n,t,e){var i={};i[t+"Id"]=n[t+"Id"],i[t+"Index"]=n[t+"Index"],i[t+"Name"]=n[t+"Name"];var r={mainType:t,query:i};return e&&(r.subType=e),r}function $D(n,t,e){n.setAttribute?n.setAttribute(t,e):n[t]=e}function Im(n,t){var e=re(),i=[];return k(n,function(r){var o=t(r);(e.get(o)||(i.push(o),e.set(o,[]))).push(r)}),{keys:i,buckets:e}}function JD(n,t,e,i,r){var o=t==null||t==="auto";if(i==null)return i;if(Ve(i))return Ge(f=vb(e||0,i,r),o?Math.max(Oi(e||0),Oi(i)):t);if(te(i))return r<1?e:i;for(var a=[],s=e,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=n.getDimensionInfo(c);if(h&&h.type==="ordinal")a[c]=(r<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,p=l[c],f=vb(d,p,r);a[c]=Ge(f,o?Math.max(Oi(d),Oi(p)):t)}}return a}var no=(function(){function n(){}return n.prototype.reset=function(t,e,i,r){return this._list=t,this._step=r=r||1,this._idx=e,this._end=i??(r>0?t.length:0),this.item=null,this.key=NaN,this},n.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)},n})();function bg(n){n.option=n.parentModel=n.ecModel=null}function sp(){return[1/0,-1/0]}function Tm(n,t){_r(t)&&(t<n[0]&&(n[0]=t),t>n[1]&&(n[1]=t))}function QD(n,t){_r(t)&&t<n[0]&&(n[0]=t)}function eA(n,t){_r(t)&&t>n[1]&&(n[1]=t)}function _r(n){return n!=null&&isFinite(n)}function Sa(n,t){return _r(n)&&_r(t)&&n<=t}function Cd(n){Sa(n[0],n[1])&&n[0]>n[1]&&(n[0]=n[1])}function dl(){var n="__ec_once_"+ME++;return function(t,e){oe(t,n)||(t[n]=1,e())}}var ME=z1();function Df(n,t,e){var i=re(),r=0;k(n,function(o){var a=t(o),s=i.get(a)||0;e&&e(o,s),s||e||(n[r++]=o),i.set(a,s+1)}),e||(n.length=r)}function IE(n){return n.value+""}function TE(n){return n+""}function Gi(n,t){return ae(t,!0)?n.seriesIndex+2:0}function tA(n,t,e){var i=n.getData().count();return{progressiveRender:e.progressiveEnabled&&t.incrementalPrepareRender&&i>=e.threshold,large:n.get("large")&&i>=n.get("largeThreshold"),modDataCount:n.get("progressiveChunkMode")==="mod"?n.getData().count():null}}function At(n,t){return{seriesType:n,overallReset:t}}function Bc(n){return{overallReset:n}}var Co="___EC__COMPONENT__CONTAINER___",nA="___EC__EXTENDED_CLASS___";function Ri(n){var t={main:"",sub:""};if(n){var e=n.split(".");t.main=e[0]||"",t.sub=e[1]||""}return t}function F1(n,t){n.$constructor=n,n.extend=function(e){var i,r,o=this;return le(r=o)&&/^class\s/.test(Function.prototype.toString.call(r))?i=(function(a){function s(){return a.apply(this,arguments)||this}return G(s,a),s})(o):(i=function(){(e.$constructor||o).apply(this,arguments)},T1(i,this)),X(i.prototype,e),i[nA]=!0,i.extend=this.extend,i.superCall=DE,i.superApply=AE,i.superClass=o,i}}function iA(n,t){n.extend=t.extend}var CE=Math.round(10*Math.random());function DE(n,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(n,e)}function AE(n,t,e){return this.superClass.prototype[t].apply(n,e)}function Af(n){var t={};n.registerClass=function(e){var i,r=e.type||e.prototype.type;if(r){Kt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i=r),'componentType "'+i+'" illegal'),e.prototype.type=r;var o=Ri(r);if(o.sub){if(o.sub!==Co){var a=(function(s){var l=t[s.main];return l&&l[Co]||((l=t[s.main]={})[Co]=!0),l})(o);a[o.sub]=e}}else t[o.main]=e}return e},n.getClass=function(e,i,r){var o=t[e];if(o&&o[Co]&&(o=i?o[i]:null),r&&!o)throw new Error(i?"Component "+e+"."+(i||"")+" is used but not imported.":e+".type should be specified.");return o},n.getClassesByMainType=function(e){var i=Ri(e),r=[],o=t[i.main];return o&&o[Co]?k(o,function(a,s){s!==Co&&r.push(a)}):r.push(o),r},n.hasClass=function(e){var i=Ri(e);return!!t[i.main]},n.getAllClassMainTypes=function(){var e=[];return k(t,function(i,r){e.push(r)}),e},n.hasSubTypes=function(e){var i=Ri(e),r=t[i.main];return r&&r[Co]}}function Ma(n,t){for(var e=0;e<n.length;e++)n[e][1]||(n[e][1]=n[e][0]);return t=t||!1,function(i,r,o){for(var a={},s=0;s<n.length;s++){var l=n[s][1];if(!(r&&be(r,l)>=0||o&&be(o,l)<0)){var u=i.getShallow(l,t);u!=null&&(a[n[s][0]]=u)}}return a}}var kE=Ma([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),LE=(function(){function n(){}return n.prototype.getAreaStyle=function(t,e){return kE(this,t,e)},n})(),Cm=new Xs(50);function PE(n){if(typeof n=="string"){var t=Cm.get(n);return t&&t.image}return n}function H1(n,t,e,i,r){if(n){if(typeof n=="string"){if(t&&t.__zrImageSrc===n||!e)return t;var o=Cm.get(n),a={hostEl:e,cb:i,cbPayload:r};return o?!kf(t=o.image)&&o.pending.push(a):((t=Rt.loadImage(n,xb,xb)).__zrImageSrc=n,Cm.put(n,t.__cachedImgObj={image:t,pending:[a]})),t}return n}return t}function xb(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<n.pending.length;t++){var e=n.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}n.pending.length=0}function kf(n){return n&&n.width&&n.height}var wg=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function rA(n,t,e,i,r,o){if(!e)return n.text="",void(n.isTruncated=!1);var a=(t+"").split(`
24
+ `);o=oA(e,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)aA(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;n.text=a.join(`
25
+ `),n.isTruncated=s}function oA(n,t,e,i){var r=X({},i=i||{});e=ae(e,"..."),r.maxIterations=ae(i.maxIterations,2);var o=r.minChar=ae(i.minChar,0),a=r.fontMeasureInfo=Li(t),s=a.asciiCharWidth;r.placeholder=ae(i.placeholder,"");for(var l=n=Math.max(0,n-1),u=0;u<o&&l>=s;u++)l-=s;var c=Pi(a,e);return c>l&&(e="",c=0),l=n-c,r.ellipsis=e,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=n,r}function aA(n,t,e){var i=e.containerWidth,r=e.contentWidth,o=e.fontMeasureInfo;if(!i)return n.textLine="",void(n.isTruncated=!1);var a=Pi(o,t);if(a<=i)return n.textLine=t,void(n.isTruncated=!1);for(var s=0;;s++){if(a<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?OE(t,r,o):a>0?Math.floor(t.length*r/a):0;a=Pi(o,t=t.substr(0,l))}t===""&&(t=e.placeholder),n.textLine=t,n.isTruncated=!0}function OE(n,t,e){for(var i=0,r=0,o=n.length;r<o&&i<t;r++)i+=BD(e,n.charCodeAt(r));return r}var RE=function(){},_b=function(n){this.tokens=[],n&&(this.tokens=n)},NE=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Sg(n,t,e,i,r){var o,a,s=t==="",l=r&&e.rich[r]||{},u=n.lines,c=l.font||e.font,h=!1;if(i){var d=l.padding,p=d?d[1]+d[3]:0;if(l.width!=null&&l.width!=="auto"){var f=Ui(l.width,i.width)+p;u.length>0&&f+i.accumWidth>i.width&&(o=t.split(`
26
+ `),h=!0),i.accumWidth=f}else{var g=sA(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}o||(o=t.split(`
27
+ `));for(var v=Li(c),y=0;y<o.length;y++){var m=o[y],x=new RE;if(x.styleName=r,x.text=m,x.isLineHolder=!m&&!s,typeof l.width=="number"?x.width=l.width:x.width=a?a[y]:Pi(v,m),y||h)u.push(new _b([x]));else{var _=(u[u.length-1]||(u[0]=new _b)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=x:(m||!b||s)&&_.push(x)}}}var EE=Kn(",&?/;] ".split(""),function(n,t){return n[t]=!0,n},{});function zE(n){return!(function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303})(n)||!!EE[n]}function sA(n,t,e,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=Li(t),d=0;d<n.length;d++){var p=n.charAt(d);if(p!==`
28
+ `){var f=BD(h,p.charCodeAt(0)),g=!i&&!zE(p);(o.length?c+f>e:r+c+f>e)?c?(s||l)&&(g?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=f):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=f)):g?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(c+=f,g?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function bb(n,t,e,i,r,o){if(n.baseX=e,n.baseY=i,n.outerWidth=n.outerHeight=null,t){var a=2*t.width,s=2*t.height;de.set(wb,Zs(e,a,r),ua(i,s,o),a,s),de.intersect(t,wb,null,Sb);var l=Sb.outIntersectRect;n.outerWidth=l.width,n.outerHeight=l.height,n.baseX=Zs(l.x,l.width,r,!0),n.baseY=ua(l.y,l.height,o,!0)}}var wb=new de(0,0,0,0),Sb={outIntersectRect:{},clamp:!0};function Dm(n){return n!=null?n+="":n=""}function Am(n,t,e,i){var r=new de(Zs(n.x||0,t,n.textAlign),ua(n.y||0,e,n.textBaseline),t,e),o=i??(lA(n)?n.lineWidth:0);return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function lA(n){var t=n.stroke;return t!=null&&t!=="none"&&n.lineWidth>0}var km="__zr_style_"+Math.round(10*Math.random()),ha={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Lf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ha[km]=!0;var Mb=["z","z2","invisible"],BE=["invisible"],$n=(function(n){function t(i){return n.call(this,i)||this}var e;return G(t,n),t.prototype._init=function(i){for(var r=Re(i),o=0;o<r.length;o++){var a=r[o];a==="style"?this.useStyle(i[a]):n.prototype.attrKV.call(this,a,i[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(i){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(i,r,o,a){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&(function(c,h,d){return Mg.copy(c.getBoundingRect()),c.transform&&Mg.applyTransform(c.transform),Ig.width=h,Ig.height=d,!Mg.intersect(Ig)})(this,i,r)||s&&!s[0]&&!s[3])return!1;if(o&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(i,r){return this.rectContain(i,r)},t.prototype.traverse=function(i,r){i.call(r,this)},t.prototype.rectContain=function(i,r){var o=this.transformCoordToLocal(i,r);return this.getBoundingRect().contain(o[0],o[1])},t.prototype.getPaintRect=function(){var i=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,o=this.getBoundingRect(),a=this.style,s=a.shadowBlur||0,l=a.shadowOffsetX||0,u=a.shadowOffsetY||0;i=this._paintRect||(this._paintRect=new de(0,0,0,0)),r?de.applyTransform(i,o,r):i.copy(o),(s||l||u)&&(i.width+=2*s+Math.abs(l),i.height+=2*s+Math.abs(u),i.x=Math.min(i.x,i.x+l-s),i.y=Math.min(i.y,i.y+u-s));var c=this.dirtyRectTolerance;i.isZero()||(i.x=Math.floor(i.x-c),i.y=Math.floor(i.y-c),i.width=Math.ceil(i.width+1+2*c),i.height=Math.ceil(i.height+1+2*c))}return i},t.prototype.setPrevPaintRect=function(i){i?(this._prevPaintRect=this._prevPaintRect||new de(0,0,0,0),this._prevPaintRect.copy(i)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(i){return this.animate("style",i)},t.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(i,r){i!=="style"?n.prototype.attrKV.call(this,i,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(i,r){return typeof i=="string"?this.style[i]=r:X(this.style,i),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(i){i||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(i){return zc(ha,i)},t.prototype.useStyle=function(i){i[km]||(i=this.createStyle(i)),this.style=i,this.dirtyStyle()},t.prototype._useHoverStyle=function(i){this.__hoverStyle=i},t.prototype.isStyleObject=function(i){return i[km]},t.prototype._innerSaveToNormal=function(i){n.prototype._innerSaveToNormal.call(this,i);var r=this._normalState;i.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(i,r,Mb)},t.prototype._applyStateObj=function(i,r,o,a,s,l){n.prototype._applyStateObj.call(this,i,r,o,a,s,l);var u,c=!(r&&a),h=this.__inHover===1;if(r&&r.style?s?a?u=r.style:(u=this._mergeStyle(this.createStyle(),o.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:o.style),this._mergeStyle(u,r.style)):c&&(u=o.style),u)if(s){var d=this.style;if(this.style=this.createStyle(c?{}:d),c)for(var p=Re(d),f=0;f<p.length;f++)(v=p[f])in u&&(u[v]=u[v],this.style[v]=d[v]);var g=Re(u);for(f=0;f<g.length;f++){var v=g[f];this.style[v]=this.style[v]}this._transitionState(i,{style:u},l,this.getAnimationStyleProps())}else h?this._useHoverStyle(u):this.useStyle(u);if(!h){var y=this.__inHover?BE:Mb;for(f=0;f<y.length;f++)v=y[f],r&&r[v]!=null?this[v]=r[v]:c&&o[v]!=null&&(this[v]=o[v])}},t.prototype._mergeStates=function(i){for(var r,o=n.prototype._mergeStates.call(this,i),a=0;a<i.length;a++){var s=i[a];s.style&&(r=r||{},this._mergeStyle(r,s.style))}return r&&(o.style=r),o},t.prototype._mergeStyle=function(i,r){return X(i,r),i},t.prototype.getAnimationStyleProps=function(){return Lf},t.initDefaultProps=((e=t.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,void(e.__dirty=3)),t})(rp),Mg=new de(0,0,0,0),Ig=new de(0,0,0,0),_n=Math.min,bn=Math.max,Tg=Math.sin,Cg=Math.cos,Do=2*Math.PI,ah=mo(),sh=mo(),lh=mo();function Pf(n,t,e){if(n.length!==0){for(var i=n[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<n.length;l++)i=n[l],r=_n(r,i[0]),o=bn(o,i[0]),a=_n(a,i[1]),s=bn(s,i[1]);t[0]=r,t[1]=a,e[0]=o,e[1]=s}}function Ib(n,t,e,i,r,o){r[0]=_n(n,e),r[1]=_n(t,i),o[0]=bn(n,e),o[1]=bn(t,i)}var Tb=[],Cb=[];function VE(n,t,e,i,r,o,a,s,l,u){var c=MD,h=Pt,d=c(n,e,r,a,Tb);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(n,e,r,a,Tb[p]);l[0]=_n(f,l[0]),u[0]=bn(f,u[0])}for(d=c(t,i,o,s,Cb),p=0;p<d;p++){var g=h(t,i,o,s,Cb[p]);l[1]=_n(g,l[1]),u[1]=bn(g,u[1])}l[0]=_n(n,l[0]),u[0]=bn(n,u[0]),l[0]=_n(a,l[0]),u[0]=bn(a,u[0]),l[1]=_n(t,l[1]),u[1]=bn(t,u[1]),l[1]=_n(s,l[1]),u[1]=bn(s,u[1])}function GE(n,t,e,i,r,o,a,s){var l=TD,u=Gt,c=bn(_n(l(n,e,r),1),0),h=bn(_n(l(t,i,o),1),0),d=u(n,e,r,c),p=u(t,i,o,h);a[0]=_n(n,r,d),a[1]=_n(t,o,p),s[0]=bn(n,r,d),s[1]=bn(t,o,p)}function FE(n,t,e,i,r,o,a,s,l){var u=lr,c=ur,h=Math.abs(r-o);if(h%Do<1e-4&&h>1e-4)return s[0]=n-e,s[1]=t-i,l[0]=n+e,void(l[1]=t+i);if(ah[0]=Cg(r)*e+n,ah[1]=Tg(r)*i+t,sh[0]=Cg(o)*e+n,sh[1]=Tg(o)*i+t,u(s,ah,sh),c(l,ah,sh),(r%=Do)<0&&(r+=Do),(o%=Do)<0&&(o+=Do),r>o&&!a?o+=Do:r<o&&a&&(r+=Do),a){var d=o;o=r,r=d}for(var p=0;p<o;p+=Math.PI/2)p>r&&(lh[0]=Cg(p)*e+n,lh[1]=Tg(p)*i+t,u(s,lh,s),c(l,lh,l))}var Qe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ao=[],ko=[],fi=[],Lr=[],gi=[],vi=[],Dg=Math.min,Ag=Math.max,Lo=Math.cos,Po=Math.sin,Qi=Math.abs,Lm=Math.PI,Hr=2*Lm,kg=typeof Float32Array<"u",Nl=[];function Lg(n){return Math.round(n/Lm*1e8)/1e8%2*Lm}function Of(n,t){var e=Lg(n[0]);e<0&&(e+=Hr);var i=e-n[0],r=n[1];r+=i,!t&&r-e>=Hr?r=e+Hr:t&&e-r>=Hr?r=e-Hr:!t&&e>r?r=e+(Hr-Lg(e-r)):t&&e<r&&(r=e-(Hr-Lg(r-e))),n[0]=e,n[1]=r}var Zi=(function(){function n(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=[])}var t;return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(e,i,r){(r=r||0)>0&&(this._ux=Qi(r/np/e)||0,this._uy=Qi(r/np/i)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,i){return this._drawPendingPt(),this.addData(Qe.M,e,i),this._ctx&&this._ctx.moveTo(e,i),this._x0=e,this._y0=i,this._xi=e,this._yi=i,this},n.prototype.lineTo=function(e,i){var r=Qi(e-this._xi),o=Qi(i-this._yi),a=r>this._ux||o>this._uy;if(this.addData(Qe.L,e,i),this._ctx&&a&&this._ctx.lineTo(e,i),a)this._xi=e,this._yi=i,this._pendingPtDist=0;else{var s=r*r+o*o;s>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=i,this._pendingPtDist=s)}return this},n.prototype.bezierCurveTo=function(e,i,r,o,a,s){return this._drawPendingPt(),this.addData(Qe.C,e,i,r,o,a,s),this._ctx&&this._ctx.bezierCurveTo(e,i,r,o,a,s),this._xi=a,this._yi=s,this},n.prototype.quadraticCurveTo=function(e,i,r,o){return this._drawPendingPt(),this.addData(Qe.Q,e,i,r,o),this._ctx&&this._ctx.quadraticCurveTo(e,i,r,o),this._xi=r,this._yi=o,this},n.prototype.arc=function(e,i,r,o,a,s){this._drawPendingPt(),Nl[0]=o,Nl[1]=a,Of(Nl,s),o=Nl[0];var l=(a=Nl[1])-o;return this.addData(Qe.A,e,i,r,r,o,l,0,s?0:1),this._ctx&&this._ctx.arc(e,i,r,o,a,s),this._xi=Lo(a)*r+e,this._yi=Po(a)*r+i,this},n.prototype.arcTo=function(e,i,r,o,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,i,r,o,a),this},n.prototype.rect=function(e,i,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,i,r,o),this.addData(Qe.R,e,i,r,o),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Qe.Z);var e=this._ctx,i=this._x0,r=this._y0;return e&&e.closePath(),this._xi=i,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){if(this._saveData){var i=e.length;this.data&&this.data.length===i||!kg||(this.data=new Float32Array(i));for(var r=0;r<i;r++)this.data[r]=e[r];this._len=i}},n.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var i=e.length,r=0,o=this._len,a=0;a<i;a++)r+=e[a].len();var s=this.data;if(kg&&(s instanceof Float32Array||!s)&&(this.data=new Float32Array(o+r),o>0&&s))for(var l=0;l<o;l++)this.data[l]=s[l];for(a=0;a<i;a++){var u=e[a].data;for(l=0;l<u.length;l++)this.data[o++]=u[l]}this._len=o}},n.prototype.addData=function(e,i,r,o,a,s,l,u,c){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var d=0;d<arguments.length;d++)h[this._len++]=arguments[d]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],i=0;i<this._len;i++)e[i]=this.data[i];this.data=e}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,kg&&this._len>11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){fi[0]=fi[1]=gi[0]=gi[1]=Number.MAX_VALUE,Lr[0]=Lr[1]=vi[0]=vi[1]=-Number.MAX_VALUE;var e,i=this.data,r=0,o=0,a=0,s=0;for(e=0;e<this._len;){var l=i[e++],u=e===1;switch(u&&(a=r=i[e],s=o=i[e+1]),l){case Qe.M:r=a=i[e++],o=s=i[e++],gi[0]=a,gi[1]=s,vi[0]=a,vi[1]=s;break;case Qe.L:Ib(r,o,i[e],i[e+1],gi,vi),r=i[e++],o=i[e++];break;case Qe.C:VE(r,o,i[e++],i[e++],i[e++],i[e++],i[e],i[e+1],gi,vi),r=i[e++],o=i[e++];break;case Qe.Q:GE(r,o,i[e++],i[e++],i[e],i[e+1],gi,vi),r=i[e++],o=i[e++];break;case Qe.A:var c=i[e++],h=i[e++],d=i[e++],p=i[e++],f=i[e++],g=i[e++]+f;e+=1;var v=!i[e++];u&&(a=Lo(f)*d+c,s=Po(f)*p+h),FE(c,h,d,p,f,g,v,gi,vi),r=Lo(g)*d+c,o=Po(g)*p+h;break;case Qe.R:Ib(a=r=i[e++],s=o=i[e++],a+i[e++],s+i[e++],gi,vi);break;case Qe.Z:r=a,o=s}lr(fi,fi,gi),ur(Lr,Lr,vi)}return e===0&&(fi[0]=fi[1]=Lr[0]=Lr[1]=0),new de(fi[0],fi[1],Lr[0]-fi[0],Lr[1]-fi[1])},n.prototype._calculateLength=function(){var e=this.data,i=this._len,r=this._ux,o=this._uy,a=0,s=0,l=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,h=0,d=0,p=0;p<i;){var f=e[p++],g=p===1;g&&(l=a=e[p],u=s=e[p+1]);var v=-1;switch(f){case Qe.M:a=l=e[p++],s=u=e[p++];break;case Qe.L:var y=e[p++],m=(b=e[p++])-s;(Qi(P=y-a)>r||Qi(m)>o||p===i-1)&&(v=Math.sqrt(P*P+m*m),a=y,s=b);break;case Qe.C:var x=e[p++],_=e[p++],b=(y=e[p++],e[p++]),w=e[p++],S=e[p++];v=YN(a,s,x,_,y,b,w,S,10),a=w,s=S;break;case Qe.Q:v=XN(a,s,x=e[p++],_=e[p++],y=e[p++],b=e[p++],10),a=y,s=b;break;case Qe.A:var M=e[p++],I=e[p++],T=e[p++],C=e[p++],D=e[p++],A=e[p++],L=A+D;p+=1,g&&(l=Lo(D)*T+M,u=Po(D)*C+I),v=Ag(T,C)*Dg(Hr,Math.abs(A)),a=Lo(L)*T+M,s=Po(L)*C+I;break;case Qe.R:l=a=e[p++],u=s=e[p++],v=2*e[p++]+2*e[p++];break;case Qe.Z:var P=l-a;m=u-s,v=Math.sqrt(P*P+m*m),a=l,s=u}v>=0&&(c[d++]=v,h+=v)}return this._pathLen=h,h},n.prototype.rebuildPath=function(e,i){var r,o,a,s,l,u,c,h,d,p,f=this.data,g=this._ux,v=this._uy,y=this._len,m=i<1,x=0,_=0,b=0;if(!m||(this._pathSegLen||this._calculateLength(),c=this._pathSegLen,h=i*this._pathLen))e:for(var w=0;w<y;){var S=f[w++],M=w===1;switch(M&&(r=a=f[w],o=s=f[w+1]),S!==Qe.L&&b>0&&(e.lineTo(d,p),b=0),S){case Qe.M:r=a=f[w++],o=s=f[w++],e.moveTo(a,s);break;case Qe.L:l=f[w++],u=f[w++];var I=Qi(l-a),T=Qi(u-s);if(I>g||T>v){if(m){if(x+(ye=c[_++])>h){var C=(h-x)/ye;e.lineTo(a*(1-C)+l*C,s*(1-C)+u*C);break e}x+=ye}e.lineTo(l,u),a=l,s=u,b=0}else{var D=I*I+T*T;D>b&&(d=l,p=u,b=D)}break;case Qe.C:var A=f[w++],L=f[w++],P=f[w++],E=f[w++],O=f[w++],N=f[w++];if(m){if(x+(ye=c[_++])>h){co(a,A,P,O,C=(h-x)/ye,Ao),co(s,L,E,N,C,ko),e.bezierCurveTo(Ao[1],ko[1],Ao[2],ko[2],Ao[3],ko[3]);break e}x+=ye}e.bezierCurveTo(A,L,P,E,O,N),a=O,s=N;break;case Qe.Q:if(A=f[w++],L=f[w++],P=f[w++],E=f[w++],m){if(x+(ye=c[_++])>h){Qu(a,A,P,C=(h-x)/ye,Ao),Qu(s,L,E,C,ko),e.quadraticCurveTo(Ao[1],ko[1],Ao[2],ko[2]);break e}x+=ye}e.quadraticCurveTo(A,L,P,E),a=P,s=E;break;case Qe.A:var R=f[w++],z=f[w++],B=f[w++],V=f[w++],W=f[w++],U=f[w++],F=f[w++],Q=!f[w++],Z=B>V?B:V,Y=Qi(B-V)>.001,J=W+U,$=!1;if(m&&(x+(ye=c[_++])>h&&(J=W+U*(h-x)/ye,$=!0),x+=ye),Y&&e.ellipse?e.ellipse(R,z,B,V,F,W,J,Q):e.arc(R,z,Z,W,J,Q),$)break e;M&&(r=Lo(W)*B+R,o=Po(W)*V+z),a=Lo(J)*B+R,s=Po(J)*V+z;break;case Qe.R:r=a=f[w],o=s=f[w+1],l=f[w++],u=f[w++];var j=f[w++],ee=f[w++];if(m){if(x+(ye=c[_++])>h){var ue=h-x;e.moveTo(l,u),e.lineTo(l+Dg(ue,j),u),(ue-=j)>0&&e.lineTo(l+j,u+Dg(ue,ee)),(ue-=ee)>0&&e.lineTo(l+Ag(j-ue,0),u+ee),(ue-=j)>0&&e.lineTo(l,u+Ag(ee-ue,0));break e}x+=ye}e.rect(l,u,j,ee);break;case Qe.Z:if(m){var ye;if(x+(ye=c[_++])>h){C=(h-x)/ye,e.lineTo(a*(1-C)+r*C,s*(1-C)+o*C);break e}x+=ye}e.closePath(),a=r,s=o}}},n.prototype.clone=function(){var e=new n,i=this.data;return e.data=i.slice?i.slice():Array.prototype.slice.call(i),e._len=this._len,e},n.prototype.canSave=function(){return!!this._saveData},n.CMD=Qe,n.initDefaultProps=((t=n.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),n})();function Yr(n,t,e,i,r,o,a){if(r===0)return!1;var s=r,l=0;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>n+s&&o>e+s||o<n-s&&o<e-s)return!1;if(n===e)return Math.abs(o-n)<=s/2;var u=(l=(t-i)/(n-e))*o-a+(n*i-e*t)/(n-e);return u*u/(l*l+1)<=s/2*s/2}function HE(n,t,e,i,r,o,a,s,l,u,c){if(l===0)return!1;var h=l;return!(c>t+h&&c>i+h&&c>o+h&&c>s+h||c<t-h&&c<i-h&&c<o-h&&c<s-h||u>n+h&&u>e+h&&u>r+h&&u>a+h||u<n-h&&u<e-h&&u<r-h&&u<a-h)&&ID(n,t,e,i,r,o,a,s,u,c,null)<=h/2}function uA(n,t,e,i,r,o,a,s,l){if(a===0)return!1;var u=a;return!(l>t+u&&l>i+u&&l>o+u||l<t-u&&l<i-u&&l<o-u||s>n+u&&s>e+u&&s>r+u||s<n-u&&s<e-u&&s<r-u)&&CD(n,t,e,i,r,o,s,l,null)<=u/2}var Db=2*Math.PI;function Dn(n){return(n%=Db)<0&&(n+=Db),n}var El=2*Math.PI;function WE(n,t,e,i,r,o,a,s,l){if(a===0)return!1;var u=a;s-=n,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>e||c+u<e)return!1;if(Math.abs(i-r)%El<1e-4)return!0;if(o){var h=i;i=Dn(r),r=Dn(h)}else i=Dn(i),r=Dn(r);i>r&&(r+=El);var d=Math.atan2(l,s);return d<0&&(d+=El),d>=i&&d<=r||d+El>=i&&d+El<=r}function or(n,t,e,i,r,o){if(o>t&&o>i||o<t&&o<i||i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;a!==1&&a!==0||(s=i<t?.5:-.5);var l=a*(e-n)+n;return l===r?1/0:l>r?s:0}var Pr=Zi.CMD,Oo=2*Math.PI,cn=[-1,-1,-1],Hn=[-1,-1];function UE(){var n=Hn[0];Hn[0]=Hn[1],Hn[1]=n}function YE(n,t,e,i,r,o,a,s,l,u){if(u>t&&u>i&&u>o&&u>s||u<t&&u<i&&u<o&&u<s)return 0;var c=Jd(t,i,o,s,u,cn);if(c===0)return 0;for(var h=0,d=-1,p=void 0,f=void 0,g=0;g<c;g++){var v=cn[g],y=v===0||v===1?.5:1;Pt(n,e,r,a,v)<l||(d<0&&(d=MD(t,i,o,s,Hn),Hn[1]<Hn[0]&&d>1&&UE(),p=Pt(t,i,o,s,Hn[0]),d>1&&(f=Pt(t,i,o,s,Hn[1]))),d===2?v<Hn[0]?h+=p<t?y:-y:v<Hn[1]?h+=f<p?y:-y:h+=s<f?y:-y:v<Hn[0]?h+=p<t?y:-y:h+=s<p?y:-y)}return h}function XE(n,t,e,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=(function(f,g,v,y,m){var x=f-2*g+v,_=2*(g-f),b=f-y,w=0;if(jr(x))SD(_)&&(M=-b/_)>=0&&M<=1&&(m[w++]=M);else{var S=_*_-4*x*b;if(jr(S))(M=-_/(2*x))>=0&&M<=1&&(m[w++]=M);else if(S>0){var M,I=to(S),T=(-_-I)/(2*x);(M=(-_+I)/(2*x))>=0&&M<=1&&(m[w++]=M),T>=0&&T<=1&&(m[w++]=T)}}return w})(t,i,o,s,cn);if(l===0)return 0;var u=TD(t,i,o);if(u>=0&&u<=1){for(var c=0,h=Gt(t,i,o,u),d=0;d<l;d++){var p=cn[d]===0||cn[d]===1?.5:1;Gt(n,e,r,cn[d])<a||(cn[d]<u?c+=h<t?p:-p:c+=o<h?p:-p)}return c}return p=cn[0]===0||cn[0]===1?.5:1,Gt(n,e,r,cn[0])<a?0:o<t?p:-p}function ZE(n,t,e,i,r,o,a,s){if((s-=t)>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);cn[0]=-l,cn[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Oo-1e-4){i=0,r=Oo;var c=o?1:-1;return a>=cn[0]+n&&a<=cn[1]+n?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Oo,r+=Oo);for(var d=0,p=0;p<2;p++){var f=cn[p];if(f+n>a){var g=Math.atan2(s,f);c=o?1:-1,g<0&&(g=Oo+g),(g>=i&&g<=r||g+Oo>=i&&g+Oo<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Ab(n,t,e,i,r){for(var o,a,s,l,u=n.data,c=n.len(),h=0,d=0,p=0,f=0,g=0,v=0;v<c;){var y=u[v++],m=v===1;switch(y===Pr.M&&v>1&&(e||(h+=or(d,p,f,g,i,r))),m&&(f=d=u[v],g=p=u[v+1]),y){case Pr.M:d=f=u[v++],p=g=u[v++];break;case Pr.L:if(e){if(Yr(d,p,u[v],u[v+1],t,i,r))return!0}else h+=or(d,p,u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case Pr.C:if(e){if(HE(d,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],t,i,r))return!0}else h+=YE(d,p,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case Pr.Q:if(e){if(uA(d,p,u[v++],u[v++],u[v],u[v+1],t,i,r))return!0}else h+=XE(d,p,u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],p=u[v++];break;case Pr.A:var x=u[v++],_=u[v++],b=u[v++],w=u[v++],S=u[v++],M=u[v++];v+=1;var I=!!(1-u[v++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):h+=or(d,p,o,a,i,r);var T=(i-x)*w/b+x;if(e){if(WE(x,_,w,S,S+M,I,t,T,r))return!0}else h+=ZE(x,_,w,S,S+M,I,T,r);d=Math.cos(S+M)*b+x,p=Math.sin(S+M)*w+_;break;case Pr.R:if(f=d=u[v++],g=p=u[v++],o=f+u[v++],a=g+u[v++],e){if(Yr(f,g,o,g,t,i,r)||Yr(o,g,o,a,t,i,r)||Yr(o,a,f,a,t,i,r)||Yr(f,a,f,g,t,i,r))return!0}else h+=or(o,g,o,a,i,r),h+=or(f,a,f,g,i,r);break;case Pr.Z:if(e){if(Yr(d,p,f,g,t,i,r))return!0}else h+=or(d,p,f,g,i,r);d=f,p=g}}return e||(s=p,l=g,Math.abs(s-l)<1e-4)||(h+=or(d,p,f,g,i,r)||0),h!==0}var lp=pe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ha),qE={style:pe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Lf.style)},Pg=pr.concat(["invisible","culling","z","z2","zlevel","parent"]),Le=(function(n){function t(i){return n.call(this,i)||this}var e;return G(t,n),t.prototype.update=function(){var i=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(u){i.buildPath(u,i.shape)}),o.silent=!0;var a=o.style;for(var s in r)a[s]!==r[s]&&(a[s]=r[s]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var l=0;l<Pg.length;++l)o[Pg[l]]=this[Pg[l]];o.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(i){var r=Re(i);this.shape=this.getDefaultShape();var o=this.getDefaultStyle();o&&this.useStyle(o);for(var a=0;a<r.length;a++){var s=r[a],l=i[s];s==="style"?this.style?X(this.style,l):this.useStyle(l):s==="shape"?X(this.shape,l):n.prototype.attrKV.call(this,s,l)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var i=this.style.fill;if(i!=="none"){if(te(i)){var r=nc(i,0);return r>.5?_m:r>.2?"#eee":bm}if(i)return bm}return _m},t.prototype.getInsideTextStroke=function(i){var r=this.style.fill;if(te(r)){var o=this.__zr;if(!(!o||!o.isDarkMode())==nc(i,0)<.4)return r}},t.prototype.buildPath=function(i,r,o){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(i){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,i),this.path},t.prototype.createPathProxy=function(){this.path=new Zi(!1)},t.prototype.hasStroke=function(){var i=this.style,r=i.stroke;return!(r==null||r==="none"||!(i.lineWidth>0))},t.prototype.hasFill=function(){var i=this.style.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var i=this._rect,r=this.style,o=!i;if(o){var a=!1;this.path||(a=!0,this.createPathProxy());var s=this.path;(a||4&this.__dirty)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),i=s.getBoundingRect()}if(this._rect=i,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=i.clone());if(this.__dirty||o){l.copy(i);var u=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;c=Math.max(c,h??4)}u>1e-10&&(l.width+=c/u,l.height+=c/u,l.x-=c/u/2,l.y-=c/u/2)}return l}return i},t.prototype.contain=function(i,r){var o=this.transformCoordToLocal(i,r),a=this.getBoundingRect(),s=this.style;if(i=o[0],r=o[1],a.contain(i,r)){var l=this.path;if(this.hasStroke()){var u=s.lineWidth,c=s.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),(function(h,d,p,f){return Ab(h,d,!0,p,f)})(l,u/c,i,r)))return!0}if(this.hasFill())return(function(h,d,p){return Ab(h,0,!1,d,p)})(l,i,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(i){return this.animate("shape",i)},t.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():i==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(i,r){i==="shape"?this.setShape(r):n.prototype.attrKV.call(this,i,r)},t.prototype.setShape=function(i,r){var o=this.shape;return o||(o=this.shape={}),typeof i=="string"?o[i]=r:X(o,i),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(i){return zc(lp,i)},t.prototype._innerSaveToNormal=function(i){n.prototype._innerSaveToNormal.call(this,i);var r=this._normalState;i.shape&&!r.shape&&(r.shape=X({},this.shape))},t.prototype._applyStateObj=function(i,r,o,a,s,l){if(n.prototype._applyStateObj.call(this,i,r,o,a,s,l),this.__inHover!==1){var u,c=!(r&&a);if(r&&r.shape?s?a?u=r.shape:(u=X({},o.shape),X(u,r.shape)):(u=X({},a?this.shape:o.shape),X(u,r.shape)):c&&(u=o.shape),u)if(s){this.shape=X({},this.shape);for(var h={},d=Re(u),p=0;p<d.length;p++){var f=d[p];typeof u[f]=="object"?this.shape[f]=u[f]:h[f]=u[f]}this._transitionState(i,{shape:h},l)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(i){for(var r,o=n.prototype._mergeStates.call(this,i),a=0;a<i.length;a++){var s=i[a];s.shape&&(r=r||{},this._mergeStyle(r,s.shape))}return r&&(o.shape=r),o},t.prototype.getAnimationStyleProps=function(){return qE},t.prototype.isZeroArea=function(){return!1},t.extend=function(i){var r=(function(a){function s(l){var u=a.call(this,l)||this;return i.init&&i.init.call(u,l),u}return G(s,a),s.prototype.getDefaultStyle=function(){return se(i.style)},s.prototype.getDefaultShape=function(){return se(i.shape)},s})(t);for(var o in i)typeof i[o]=="function"&&(r.prototype[o]=i[o]);return r},t.initDefaultProps=((e=t.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,void(e.__dirty=7)),t})($n),jE=pe({strokeFirst:!0,font:mr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},lp),qs=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.hasStroke=function(){return lA(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!=="none"},t.prototype.createStyle=function(e){return zc(jE,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e,i,r;return this._rect||(this._rect=(e=this.style,i=Dm(e.text),r=e.font,Am(e,Pi(Li(r),i),rc(r),null))),this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t})($n);qs.prototype.type="tspan";var KE=pe({x:0,y:0},ha),$E={style:pe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Lf.style)},zt=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.createStyle=function(e){return zc(KE,e)},t.prototype._getSize=function(e){var i=this.style,r=i[e];if(r!=null)return r;var o,a=(o=i.image)&&typeof o!="string"&&o.width&&o.height?i.image:this.__image;if(!a)return 0;var s=e==="width"?"height":"width",l=i[s];return l==null?a[e]:a[e]/a[s]*l},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return $E},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new de(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})($n);zt.prototype.type="image";var As=Math.round;function Rf(n,t,e){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;n.x1=i,n.x2=r,n.y1=o,n.y2=a;var s=e&&e.lineWidth;return s&&(As(2*i)===As(2*r)&&(n.x1=n.x2=An(i,s,!0)),As(2*o)===As(2*a)&&(n.y1=n.y2=An(o,s,!0))),n}}function cA(n,t,e){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;n.x=i,n.y=r,n.width=o,n.height=a;var s=e&&e.lineWidth;return s&&(n.x=An(i,s,!0),n.y=An(r,s,!0),n.width=Math.max(An(i+o,s,!1)-n.x,o===0?0:1),n.height=Math.max(An(r+a,s,!1)-n.y,a===0?0:1)),n}}function An(n,t,e){if(!t)return n;var i=As(2*n);return(i+As(t))%2==0?i/2:(i+(e?1:-1))/2}var JE=function(){this.x=0,this.y=0,this.width=0,this.height=0},QE={},Ae=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultShape=function(){return new JE},t.prototype.buildPath=function(e,i){var r,o,a,s;if(this.subPixelOptimize){var l=cA(QE,i,this.style);r=l.x,o=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else r=i.x,o=i.y,a=i.width,s=i.height;i.r?(function(u,c){var h,d,p,f,g,v=c.x,y=c.y,m=c.width,x=c.height,_=c.r;m<0&&(v+=m,m=-m),x<0&&(y+=x,x=-x),typeof _=="number"?h=d=p=f=_:_ instanceof Array?_.length===1?h=d=p=f=_[0]:_.length===2?(h=p=_[0],d=f=_[1]):_.length===3?(h=_[0],d=f=_[1],p=_[2]):(h=_[0],d=_[1],p=_[2],f=_[3]):h=d=p=f=0,h+d>m&&(h*=m/(g=h+d),d*=m/g),p+f>m&&(p*=m/(g=p+f),f*=m/g),d+p>x&&(d*=x/(g=d+p),p*=x/g),h+f>x&&(h*=x/(g=h+f),f*=x/g),u.moveTo(v+h,y),u.lineTo(v+m-d,y),d!==0&&u.arc(v+m-d,y+d,d,-Math.PI/2,0),u.lineTo(v+m,y+x-p),p!==0&&u.arc(v+m-p,y+x-p,p,0,Math.PI/2),u.lineTo(v+f,y+x),f!==0&&u.arc(v+f,y+x-f,f,Math.PI/2,Math.PI),u.lineTo(v,y+h),h!==0&&u.arc(v+h,y+h,h,Math.PI,1.5*Math.PI),u.closePath()})(e,i):e.rect(r,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Le);Ae.prototype.type="rect";var kb={fill:"#000"},yi={},ez={style:pe({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},Lf.style)},Be=(function(n){function t(e){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=kb,i.attr(e),i}return G(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):n.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):n.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,Ob(e=this.style),k(e.rich,Ob),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){n.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new de(0,0,0,0),i=this._children,r=[],o=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(e.copy(l),e.applyTransform(u),(o=o||e.clone()).union(e)):(o=o||l.clone()).union(l)}this._rect=o||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||kb},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var r=i.rich,o=e.rich||r&&{};return X(e,i),r&&o?(this._mergeRich(o,r),e.rich=o):o&&(e.rich=o),e},t.prototype._mergeRich=function(e,i){for(var r=Re(i),o=0;o<r.length;o++){var a=r[o];e[a]=e[a]||{},X(e[a],i[a])}},t.prototype.getAnimationStyleProps=function(){return ez},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return i&&i instanceof e||(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||mr,r=e.padding,o=this._defaultStyle,a=e.x||0,s=e.y||0,l=e.align||o.align||"left",u=e.verticalAlign||o.verticalAlign||"top";bb(yi,o.overflowRect,a,s,l,u),a=yi.baseX,s=yi.baseY;var c=(function(L,P,E,O){var N=Dm(L),R=P.overflow,z=P.padding,B=z?z[1]+z[3]:0,V=z?z[0]+z[2]:0,W=P.font,U=R==="truncate",F=rc(W),Q=ae(P.lineHeight,F),Z=P.lineOverflow==="truncate",Y=!1,J=P.width;J==null&&E!=null&&(J=E-B);var $,j=P.height;j==null&&O!=null&&(j=O-V);var ee=($=J==null||R!=="break"&&R!=="breakAll"?N?N.split(`
29
+ `):[]:N?sA(N,P.font,J,R==="breakAll",0).lines:[]).length*Q;if(j==null&&(j=ee),ee>j&&Z){var ue=Math.floor(j/Q);Y=Y||$.length>ue,ee=($=$.slice(0,ue)).length*Q}if(N&&U&&J!=null)for(var ye=oA(J,W,P.ellipsis,{minChar:P.truncateMinChar,placeholder:P.placeholder}),we={},ve=0;ve<$.length;ve++)aA(we,$[ve],ye),$[ve]=we.textLine,Y=Y||we.isTruncated;var xe=j,Ie=0,Ne=Li(W);for(ve=0;ve<$.length;ve++)Ie=Math.max(Pi(Ne,$[ve]),Ie);J==null&&(J=Ie);var tt=J;return{lines:$,height:j,outerWidth:tt+=B,outerHeight:xe+=V,lineHeight:Q,calculatedLineHeight:F,contentWidth:Ie,contentHeight:ee,width:J,isTruncated:Y}})(zb(e),e,yi.outerWidth,yi.outerHeight),h=Og(e),d=!!e.backgroundColor,p=c.outerHeight,f=c.outerWidth,g=c.lines,v=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=a,m=ua(s,c.contentHeight,u);if(h||r){var x=Zs(a,f,l),_=ua(s,p,u);h&&this._renderBackground(e,e,x,_,f,p)}m+=v/2,r&&(y=Eb(a,l,r),u==="top"?m+=r[0]:u==="bottom"&&(m-=r[2]));for(var b=0,w=!1,S=!1,M=Nb("fill"in e?e.fill:(S=!0,o.fill)),I=Rb("stroke"in e?e.stroke:d||o.autoStroke&&!S?null:(b=2,w=!0,o.stroke)),T=e.textShadowBlur>0,C=0;C<g.length;C++){var D=this._getOrCreateChild(qs),A=D.createStyle();D.useStyle(A),A.text=g[C],A.x=y,A.y=m,l&&(A.textAlign=l),A.textBaseline="middle",A.opacity=e.opacity,A.strokeFirst=!0,T&&(A.shadowBlur=e.textShadowBlur||0,A.shadowColor=e.textShadowColor||"transparent",A.shadowOffsetX=e.textShadowOffsetX||0,A.shadowOffsetY=e.textShadowOffsetY||0),A.stroke=I,A.fill=M,I&&(A.lineWidth=e.lineWidth||b,A.lineDash=e.lineDash,A.lineDashOffset=e.lineDashOffset||0),A.font=i,Pb(A,e),m+=v,D.setBoundingRect(Am(A,c.contentWidth,c.calculatedLineHeight,w?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,r=e.align||i.align,o=e.verticalAlign||i.verticalAlign,a=e.x||0,s=e.y||0;bb(yi,i.overflowRect,a,s,r,o),a=yi.baseX,s=yi.baseY;var l=(function(L,P,E,O,N){var R=new NE,z=Dm(L);if(!z)return R;var B=P.padding,V=B?B[1]+B[3]:0,W=B?B[0]+B[2]:0,U=P.width;U==null&&E!=null&&(U=E-V);var F=P.height;F==null&&O!=null&&(F=O-W);for(var Q,Z=P.overflow,Y=Z!=="break"&&Z!=="breakAll"||U==null?null:{width:U,accumWidth:0,breakAll:Z==="breakAll"},J=wg.lastIndex=0;(Q=wg.exec(z))!=null;){var $=Q.index;$>J&&Sg(R,z.substring(J,$),P,Y),Sg(R,Q[2],P,Y,Q[1]),J=wg.lastIndex}J<z.length&&Sg(R,z.substring(J,z.length),P,Y);var j=[],ee=0,ue=0,ye=Z==="truncate",we=P.lineOverflow==="truncate",ve={};function xe(kl,Ll,z_){kl.width=Ll,kl.lineHeight=z_,ee+=z_,ue=Math.max(ue,Ll)}e:for(var Ie=0;Ie<R.lines.length;Ie++){for(var Ne=R.lines[Ie],tt=0,ft=0,Ut=0;Ut<Ne.tokens.length;Ut++){var wt=(ze=Ne.tokens[Ut]).styleName&&P.rich[ze.styleName]||{},ut=ze.textPadding=wt.padding,We=ut?ut[1]+ut[3]:0,Pe=ze.font=wt.font||P.font;ze.contentHeight=rc(Pe);var nt=ae(wt.height,ze.contentHeight);if(ze.innerHeight=nt,ut&&(nt+=ut[0]+ut[2]),ze.height=nt,ze.lineHeight=wn(wt.lineHeight,P.lineHeight,nt),ze.align=wt&&wt.align||N,ze.verticalAlign=wt&&wt.verticalAlign||"middle",we&&F!=null&&ee+ze.lineHeight>F){var Ke=R.lines.length;Ut>0?(Ne.tokens=Ne.tokens.slice(0,Ut),xe(Ne,ft,tt),R.lines=R.lines.slice(0,Ie+1)):R.lines=R.lines.slice(0,Ie),R.isTruncated=R.isTruncated||R.lines.length<Ke;break e}var qe=wt.width,Lt=qe==null||qe==="auto";if(typeof qe=="string"&&qe.charAt(qe.length-1)==="%")ze.percentWidth=qe,j.push(ze),ze.contentWidth=Pi(Li(Pe),ze.text);else{if(Lt){var en=wt.backgroundColor,st=en&&en.image;st&&kf(st=PE(st))&&(ze.width=Math.max(ze.width,st.width*nt/st.height))}var tn=ye&&U!=null?U-ft:null;tn!=null&&tn<ze.width?!Lt||tn<We?(ze.text="",ze.width=ze.contentWidth=0):(rA(ve,ze.text,tn-We,Pe,P.ellipsis,{minChar:P.truncateMinChar}),ze.text=ve.text,R.isTruncated=R.isTruncated||ve.isTruncated,ze.width=ze.contentWidth=Pi(Li(Pe),ze.text)):ze.contentWidth=Pi(Li(Pe),ze.text)}ze.width+=We,ft+=ze.width,wt&&(tt=Math.max(tt,ze.lineHeight))}xe(Ne,ft,tt)}for(R.outerWidth=R.width=ae(U,ue),R.outerHeight=R.height=ae(F,ee),R.contentHeight=ee,R.contentWidth=ue,R.outerWidth+=V,R.outerHeight+=W,Ie=0;Ie<j.length;Ie++){var ze,kr=(ze=j[Ie]).percentWidth;ze.width=parseInt(kr,10)/100*R.width}return R})(zb(e),e,yi.outerWidth,yi.outerHeight,r),u=l.width,c=l.outerWidth,h=l.outerHeight,d=e.padding;this.isTruncated=!!l.isTruncated;var p=Zs(a,c,r),f=ua(s,h,o),g=p,v=f;d&&(g+=d[3],v+=d[0]);var y=g+u;Og(e)&&this._renderBackground(e,e,p,f,c,h);for(var m=!!e.backgroundColor,x=0;x<l.lines.length;x++){for(var _=l.lines[x],b=_.tokens,w=b.length,S=_.lineHeight,M=_.width,I=0,T=g,C=y,D=w-1,A=void 0;I<w&&(!(A=b[I]).align||A.align==="left");)this._placeToken(A,e,S,v,T,"left",m),M-=A.width,T+=A.width,I++;for(;D>=0&&(A=b[D]).align==="right";)this._placeToken(A,e,S,v,C,"right",m),M-=A.width,C-=A.width,D--;for(T+=(u-(T-g)-(y-C)-M)/2;I<=D;)A=b[I],this._placeToken(A,e,S,v,T+A.width/2,"center",m),T+=A.width,I++;v+=S}},t.prototype._placeToken=function(e,i,r,o,a,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var c=e.verticalAlign,h=o+r/2;c==="top"?h=o+e.height/2:c==="bottom"&&(h=o+r-e.height/2),!e.isLineHolder&&Og(u)&&this._renderBackground(u,i,s==="right"?a-e.width:s==="center"?a-e.width/2:a,h-e.height/2,e.width,e.height);var d=!!u.backgroundColor,p=e.textPadding;p&&(a=Eb(a,s,p),h-=e.height/2-p[0]-e.innerHeight/2);var f=this._getOrCreateChild(qs),g=f.createStyle();f.useStyle(g);var v=this._defaultStyle,y=!1,m=0,x=!1,_=Nb("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,v.fill)),b=Rb("stroke"in u?u.stroke:"stroke"in i?i.stroke:d||l||v.autoStroke&&!y?null:(m=2,x=!0,v.stroke)),w=u.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=a,g.y=h,w&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||mr,g.opacity=wn(u.opacity,i.opacity,1),Pb(g,u),b&&(g.lineWidth=wn(u.lineWidth,i.lineWidth,m),g.lineDash=ae(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=b),_&&(g.fill=_),f.setBoundingRect(Am(g,e.contentWidth,e.contentHeight,x?0:null))},t.prototype._renderBackground=function(e,i,r,o,a,s){var l,u,c,h=e.backgroundColor,d=e.borderWidth,p=e.borderColor,f=h&&h.image,g=h&&!f,v=e.borderRadius,y=this;if(g||e.lineHeight||d&&p){(l=this._getOrCreateChild(Ae)).useStyle(l.createStyle()),l.style.fill=null;var m=l.shape;m.x=r,m.y=o,m.width=a,m.height=s,m.r=v,l.dirtyShape()}if(g)(c=l.style).fill=h||null,c.fillOpacity=ae(e.fillOpacity,1);else if(f){(u=this._getOrCreateChild(zt)).onload=function(){y.dirtyStyle()};var x=u.style;x.image=h.image,x.x=r,x.y=o,x.width=a,x.height=s}d&&p&&((c=l.style).lineWidth=d,c.stroke=p,c.strokeOpacity=ae(e.strokeOpacity,1),c.lineDash=e.borderDash,c.lineDashOffset=e.borderDashOffset||0,l.strokeContainThreshold=0,l.hasFill()&&l.hasStroke()&&(c.strokeFirst=!0,c.lineWidth*=2));var _=(l||u).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=wn(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return dA(e)&&(i=[e.fontStyle,e.fontWeight,hA(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Cn(i)||e.textFont||e.font},t})($n),tz={left:!0,right:1,center:1},nz={top:1,bottom:1,middle:1},Lb=["fontStyle","fontWeight","fontSize","fontFamily"];function hA(n){return typeof n!="string"||n.indexOf("px")===-1&&n.indexOf("rem")===-1&&n.indexOf("em")===-1?isNaN(+n)?"12px":n+"px":n}function Pb(n,t){for(var e=0;e<Lb.length;e++){var i=Lb[e],r=t[i];r!=null&&(n[i]=r)}}function dA(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function Ob(n){if(n){n.font=Be.makeFont(n);var t=n.align;t==="middle"&&(t="center"),n.align=t==null||tz[t]?t:"left";var e=n.verticalAlign;e==="center"&&(e="middle"),n.verticalAlign=e==null||nz[e]?e:"top",n.padding&&(n.padding=Ec(n.padding))}}function Rb(n,t){return n==null||t<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function Nb(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function Eb(n,t,e){return t==="right"?n-e[1]:t==="center"?n+e[3]/2-e[1]/2:n+e[3]}function zb(n){var t=n.text;return t!=null&&(t+=""),t}function Og(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}var me=Me(),Pm=function(n,t,e,i){if(i){var r=me(i);r.dataIndex=e,r.dataType=t,r.seriesIndex=n,r.ssrType="chart",i.type==="group"&&i.traverse(function(o){var a=me(o);a.seriesIndex=n,a.dataIndex=e,a.dataType=t,a.ssrType="chart"})}},pl="undefined",Ti="series",pA=re(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Pn="original",Ht="arrayRows",On="objectRows",di="keyedColumns",io="typedArray",fA="unknown",oi="column",Wa="row",gA="Roam",iz=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],vA=function(n){k(iz,function(t){this[t]=ie(n[t],n)},this)};function yA(n,t){return t.mainType===Ti?n.getViewOfSeriesModel(t):n.getViewOfComponentModel(t)}var Bb=1,Vb={},mA=Me(),W1=Me(),yn=["emphasis","blur","select"],sc=["normal","emphasis","blur","select"],rz=10,da="highlight",Dd="downplay",up="select",Om="unselect",cp="toggleSelect",Rg="selectchanged";function ts(n){return n!=null&&n!=="none"}function Nf(n,t,e){n.onHoverStateChange&&(n.hoverState||0)!==e&&n.onHoverStateChange(t),n.hoverState=e}function xA(n){Nf(n,"emphasis",2)}function _A(n){n.hoverState===2&&Nf(n,"normal",0)}function U1(n){Nf(n,"blur",1)}function bA(n){n.hoverState===1&&Nf(n,"normal",0)}function oz(n){n.selected=!0}function az(n){n.selected=!1}function Gb(n,t,e){t(n,e)}function Dr(n,t,e){Gb(n,t,e),n.isGroup&&n.traverse(function(i){Gb(i,t,e)})}function hp(n,t){switch(t){case"emphasis":n.hoverState=2;break;case"normal":n.hoverState=0;break;case"blur":n.hoverState=1;break;case"select":n.selected=!0}}function Ng(n,t){var e=this.states[n];if(this.style){if(n==="emphasis")return(function(i,r,o,a){var s=o&&be(o,"select")>=0,l=!1;if(i instanceof Le){var u=mA(i),c=s&&u.selectFill||u.normalFill,h=s&&u.selectStroke||u.normalStroke;if(ts(c)||ts(h)){var d=(a=a||{}).style||{};d.fill==="inherit"?(l=!0,a=X({},a),(d=X({},d)).fill=c):!ts(d.fill)&&ts(c)?(l=!0,a=X({},a),(d=X({},d)).fill=ep(c)):!ts(d.stroke)&&ts(h)&&(l||(a=X({},a),d=X({},d)),d.stroke=ep(h)),a.style=d}}if(a&&a.z2==null){l||(a=X({},a));var p=i.z2EmphasisLift;a.z2=i.z2+(p??rz)}return a})(this,0,t,e);if(n==="blur")return(function(i,r,o){var a=be(i.currentStates,r)>=0,s=i.style.opacity,l=a?null:(function(c,h,d,p){for(var f=c.style,g={},v=0;v<h.length;v++){var y=h[v],m=f[y];g[y]=m??(p&&p[y])}for(v=0;v<c.animators.length;v++){var x=c.animators[v];x.__fromStateTransition&&x.__fromStateTransition.indexOf(d)<0&&x.targetName==="style"&&x.saveTo(g,h)}return g})(i,["opacity"],r,{opacity:1}),u=(o=o||{}).style||{};return u.opacity==null&&(o=X({},o),u=X({opacity:a?s:.1*l.opacity},u),o.style=u),o})(this,n,e);if(n==="select")return(function(i,r,o){if(o&&o.z2==null){o=X({},o);var a=i.z2SelectLift;o.z2=i.z2+(a??9)}return o})(this,0,e)}return e}function Ia(n){n.stateProxy=Ng;var t=n.getTextContent(),e=n.getTextGuideLine();t&&(t.stateProxy=Ng),e&&(e.stateProxy=Ng)}function Fb(n,t){!IA(n,t)&&!n.__highByOuter&&Dr(n,xA)}function Hb(n,t){!IA(n,t)&&!n.__highByOuter&&Dr(n,_A)}function br(n,t){n.__highByOuter|=1<<(t||0),Dr(n,xA)}function wr(n,t){!(n.__highByOuter&=~(1<<(t||0)))&&Dr(n,_A)}function wA(n){Dr(n,U1)}function Y1(n){Dr(n,bA)}function SA(n){Dr(n,oz)}function MA(n){Dr(n,az)}function IA(n,t){return n.__highDownSilentOnTouch&&t.zrByTouch}function Wb(n){var t=n.getModel(),e=[],i=[];t.eachComponent(function(r,o){var a=W1(o),s=yA(n,o),l=r==="series";!l&&i.push(s),a.isBlured&&(s.group.traverse(function(u){bA(u)}),l&&e.push(o)),a.isBlured=!1}),k(i,function(r){r&&r.toggleBlurSeries&&r.toggleBlurSeries(e,!1,t)})}function Eg(n,t,e,i){var r=i.getModel();function o(u,c){for(var h=0;h<c.length;h++){var d=u.getItemGraphicEl(c[h]);d&&Y1(d)}}if(e=e||"coordinateSystem",n!=null&&t&&t!=="none"){var a=r.getSeriesByIndex(n),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(u){var c=a===u,h=u.coordinateSystem;if(h&&h.master&&(h=h.master),!(e==="series"&&!c||e==="coordinateSystem"&&!(h&&s?h===s:c)||t==="series"&&c)){if(i.getViewOfSeriesModel(u).group.traverse(function(f){f.__highByOuter&&c&&t==="self"||U1(f)}),qt(t))o(u.getData(),t);else if(fe(t))for(var d=Re(t),p=0;p<d.length;p++)o(u.getData(d[p]),t[d[p]]);l.push(u),W1(u).isBlured=!0}}),r.eachComponent(function(u,c){if(u!=="series"){var h=i.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,r)}})}}function zg(n,t,e){if(n!=null&&t!=null){var i=e.getModel().getComponent(n,t);if(i){W1(i).isBlured=!0;var r=e.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(o){U1(o)})}}}function Bg(n,t,e,i){var r={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||t==null||e==null)return r;var o=i.getModel().getComponent(n,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(e),u=0;u<l.length;u++)if(me(l[u]).focus==="self"){s=!0;break}return{focusSelf:s,dispatchers:l}}function Ub(n){k(n.getAllData(),function(t){var e=t.data,i=t.type;e.eachItemGraphicEl(function(r,o){n.isSelected(o,i)?SA(r):MA(r)})})}function sz(n){var t=[];return n.eachSeries(function(e){k(e.getAllData(),function(i){i.data;var r=i.type,o=e.getSelectedDataIndices();if(o.length>0){var a={dataIndex:o,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function ro(n,t,e){ia(n,!0),Dr(n,Ia),Rm(n,t,e)}function at(n,t,e,i){i?(function(r){ia(r,!1)})(n):ro(n,t,e)}function Rm(n,t,e){var i=me(n);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var Yb=["emphasis","blur","select"],lz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ct(n,t,e,i){e=e||"itemStyle";for(var r=0;r<Yb.length;r++){var o=Yb[r],a=t.getModel([o,e]);n.ensureState(o).style=i?i(a):a[lz[e]]()}}function ia(n,t){var e=t===!1,i=n;n.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=n.highDownSilentOnTouch),e&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function lc(n){return!(!n||!n.__highDownDispatcher)}function Vg(n){var t=n.type;return t===up||t===Om||t===cp}function Xb(n){var t=n.type;return t===da||t===Dd}var ns=Zi.CMD,uz=[[],[],[]],Zb=Math.sqrt,cz=Math.atan2;function TA(n,t){if(t){var e,i,r,o,a,s,l=n.data,u=n.len(),c=ns.M,h=ns.C,d=ns.L,p=ns.R,f=ns.A,g=ns.Q;for(r=0,o=0;r<u;){switch(e=l[r++],o=r,i=0,e){case c:case d:i=1;break;case h:i=3;break;case g:i=2;break;case f:var v=t[4],y=t[5],m=Zb(t[0]*t[0]+t[1]*t[1]),x=Zb(t[2]*t[2]+t[3]*t[3]),_=cz(-t[1]/x,t[0]/m);l[r]*=m,l[r++]+=v,l[r]*=x,l[r++]+=y,l[r++]*=m,l[r++]*=x,l[r++]+=_,l[r++]+=_,o=r+=2;break;case p:s[0]=l[r++],s[1]=l[r++],dt(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],dt(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=uz[a];b[0]=l[r++],b[1]=l[r++],dt(b,b,t),l[o++]=b[0],l[o++]=b[1]}}n.increaseVersion()}}var Gg=Math.sqrt,uh=Math.sin,ch=Math.cos,zl=Math.PI;function qb(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Nm(n,t){return(n[0]*t[0]+n[1]*t[1])/(qb(n)*qb(t))}function jb(n,t){return(n[0]*t[1]<n[1]*t[0]?-1:1)*Math.acos(Nm(n,t))}function Kb(n,t,e,i,r,o,a,s,l,u,c){var h=l*(zl/180),d=ch(h)*(n-e)/2+uh(h)*(t-i)/2,p=-1*uh(h)*(n-e)/2+ch(h)*(t-i)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=Gg(f),s*=Gg(f));var g=(r===o?-1:1)*Gg((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,y=g*-s*d/a,m=(n+e)/2+ch(h)*v-uh(h)*y,x=(t+i)/2+uh(h)*v+ch(h)*y,_=jb([1,0],[(d-v)/a,(p-y)/s]),b=[(d-v)/a,(p-y)/s],w=[(-1*d-v)/a,(-1*p-y)/s],S=jb(b,w);if(Nm(b,w)<=-1&&(S=zl),Nm(b,w)>=1&&(S=0),S<0){var M=Math.round(S/zl*1e6)/1e6;S=2*zl+M%2*zl}c.addData(u,m,x,a,s,_,S,h,o)}var hz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,dz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,CA=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.applyTransform=function(e){},t})(Le);function DA(n){return n.setData!=null}function AA(n,t){var e=(function(r){var o=new Zi;if(!r)return o;var a,s=0,l=0,u=s,c=l,h=Zi.CMD,d=r.match(hz);if(!d)return o;for(var p=0;p<d.length;p++){for(var f=d[p],g=f.charAt(0),v=void 0,y=f.match(dz)||[],m=y.length,x=0;x<m;x++)y[x]=parseFloat(y[x]);for(var _=0;_<m;){var b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,D=s,A=l,L=void 0,P=void 0;switch(g){case"l":s+=y[_++],l+=y[_++],v=h.L,o.addData(v,s,l);break;case"L":s=y[_++],l=y[_++],v=h.L,o.addData(v,s,l);break;case"m":s+=y[_++],l+=y[_++],v=h.M,o.addData(v,s,l),u=s,c=l,g="l";break;case"M":s=y[_++],l=y[_++],v=h.M,o.addData(v,s,l),u=s,c=l,g="L";break;case"h":s+=y[_++],v=h.L,o.addData(v,s,l);break;case"H":s=y[_++],v=h.L,o.addData(v,s,l);break;case"v":l+=y[_++],v=h.L,o.addData(v,s,l);break;case"V":l=y[_++],v=h.L,o.addData(v,s,l);break;case"C":v=h.C,o.addData(v,y[_++],y[_++],y[_++],y[_++],y[_++],y[_++]),s=y[_-2],l=y[_-1];break;case"c":v=h.C,o.addData(v,y[_++]+s,y[_++]+l,y[_++]+s,y[_++]+l,y[_++]+s,y[_++]+l),s+=y[_-2],l+=y[_-1];break;case"S":b=s,w=l,L=o.len(),P=o.data,a===h.C&&(b+=s-P[L-4],w+=l-P[L-3]),v=h.C,D=y[_++],A=y[_++],s=y[_++],l=y[_++],o.addData(v,b,w,D,A,s,l);break;case"s":b=s,w=l,L=o.len(),P=o.data,a===h.C&&(b+=s-P[L-4],w+=l-P[L-3]),v=h.C,D=s+y[_++],A=l+y[_++],s+=y[_++],l+=y[_++],o.addData(v,b,w,D,A,s,l);break;case"Q":D=y[_++],A=y[_++],s=y[_++],l=y[_++],v=h.Q,o.addData(v,D,A,s,l);break;case"q":D=y[_++]+s,A=y[_++]+l,s+=y[_++],l+=y[_++],v=h.Q,o.addData(v,D,A,s,l);break;case"T":b=s,w=l,L=o.len(),P=o.data,a===h.Q&&(b+=s-P[L-4],w+=l-P[L-3]),s=y[_++],l=y[_++],v=h.Q,o.addData(v,b,w,s,l);break;case"t":b=s,w=l,L=o.len(),P=o.data,a===h.Q&&(b+=s-P[L-4],w+=l-P[L-3]),s+=y[_++],l+=y[_++],v=h.Q,o.addData(v,b,w,s,l);break;case"A":S=y[_++],M=y[_++],I=y[_++],T=y[_++],C=y[_++],Kb(D=s,A=l,s=y[_++],l=y[_++],T,C,S,M,I,v=h.A,o);break;case"a":S=y[_++],M=y[_++],I=y[_++],T=y[_++],C=y[_++],Kb(D=s,A=l,s+=y[_++],l+=y[_++],T,C,S,M,I,v=h.A,o)}}g!=="z"&&g!=="Z"||(v=h.Z,o.addData(v),s=u,l=c),a=v}return o.toStatic(),o})(n),i=X({},t);return i.buildPath=function(r){var o,a=DA(r);a&&r.canSave()?(r.appendPath(e),(o=r.getContext())&&r.rebuildPath(o,1)):(o=a?r.getContext():r)&&e.rebuildPath(o,1)},i.applyTransform=function(r){TA(e,r),this.dirtyShape()},i}function kA(n,t){return new CA(AA(n,t))}function X1(n,t){t=t||{};var e=new Le;return n.shape&&e.setShape(n.shape),e.setStyle(n.style),t.bakeTransform?TA(e.path,n.getComputedTransform()):t.toLocal?e.setLocalTransform(n.getComputedTransform()):e.copyTransform(n),e.buildPath=n.buildPath,e.applyTransform=e.applyTransform,e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel,e}var pz=function(){this.cx=0,this.cy=0,this.r=0},$i=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultShape=function(){return new pz},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,2*Math.PI)},t})(Le);$i.prototype.type="circle";var fz=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Vc=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultShape=function(){return new fz},t.prototype.buildPath=function(e,i){var r=.5522848,o=i.cx,a=i.cy,s=i.rx,l=i.ry,u=s*r,c=l*r;e.moveTo(o-s,a),e.bezierCurveTo(o-s,a-c,o-u,a-l,o,a-l),e.bezierCurveTo(o+u,a-l,o+s,a-c,o+s,a),e.bezierCurveTo(o+s,a+c,o+u,a+l,o,a+l),e.bezierCurveTo(o-u,a+l,o-s,a+c,o-s,a),e.closePath()},t})(Le);Vc.prototype.type="ellipse";var LA=Math.PI,Fg=2*LA,Ro=Math.sin,is=Math.cos,gz=Math.acos,nn=Math.atan2,$b=Math.abs,Gu=Math.sqrt,yu=Math.max,mi=Math.min,ei=1e-4;function hh(n,t,e,i,r,o,a){var s=n-e,l=t-i,u=(a?o:-o)/Gu(s*s+l*l),c=u*l,h=-u*s,d=n+c,p=t+h,f=e+c,g=i+h,v=(d+f)/2,y=(p+g)/2,m=f-d,x=g-p,_=m*m+x*x,b=r-o,w=d*g-f*p,S=(x<0?-1:1)*Gu(yu(0,b*b*_-w*w)),M=(w*x-m*S)/_,I=(-w*m-x*S)/_,T=(w*x+m*S)/_,C=(-w*m+x*S)/_,D=M-v,A=I-y,L=T-v,P=C-y;return D*D+A*A>L*L+P*P&&(M=T,I=C),{cx:M,cy:I,x0:-c,y0:-h,x1:M*(r/b-1),y1:I*(r/b-1)}}function vz(n,t){var e,i=yu(t.r,0),r=yu(t.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,h=!!t.clockwise,d=$b(l-s),p=d>Fg&&d%Fg;if(p>ei&&(d=p),i>ei)if(d>Fg-ei)n.moveTo(u+i*is(s),c+i*Ro(s)),n.arc(u,c,i,s,l,!h),r>ei&&(n.moveTo(u+r*is(l),c+r*Ro(l)),n.arc(u,c,r,l,s,h));else{var f=void 0,g=void 0,v=void 0,y=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,D=void 0,A=void 0,L=i*is(s),P=i*Ro(s),E=r*is(l),O=r*Ro(l),N=d>ei;if(N){var R=t.cornerRadius;R&&(e=(function(ee){var ue;if(q(ee)){var ye=ee.length;if(!ye)return ee;ue=ye===1?[ee[0],ee[0],0,0]:ye===2?[ee[0],ee[0],ee[1],ee[1]]:ye===3?ee.concat(ee[2]):ee}else ue=[ee,ee,ee,ee];return ue})(R),f=e[0],g=e[1],v=e[2],y=e[3]);var z=$b(i-r)/2;if(m=mi(z,v),x=mi(z,y),_=mi(z,f),b=mi(z,g),M=w=yu(m,x),I=S=yu(_,b),(w>ei||S>ei)&&(T=i*is(l),C=i*Ro(l),D=r*is(s),A=r*Ro(s),d<LA)){var B=(function(ee,ue,ye,we,ve,xe,Ie,Ne){var tt=ye-ee,ft=we-ue,Ut=Ie-ve,wt=Ne-xe,ut=wt*tt-Ut*ft;if(!(ut*ut<ei))return[ee+(ut=(Ut*(ue-xe)-wt*(ee-ve))/ut)*tt,ue+ut*ft]})(L,P,D,A,T,C,E,O);if(B){var V=L-B[0],W=P-B[1],U=T-B[0],F=C-B[1],Q=1/Ro(gz((V*U+W*F)/(Gu(V*V+W*W)*Gu(U*U+F*F)))/2),Z=Gu(B[0]*B[0]+B[1]*B[1]);M=mi(w,(i-Z)/(Q+1)),I=mi(S,(r-Z)/(Q-1))}}}if(N)if(M>ei){var Y=mi(v,M),J=mi(y,M),$=hh(D,A,L,P,i,Y,h),j=hh(T,C,E,O,i,J,h);n.moveTo(u+$.cx+$.x0,c+$.cy+$.y0),M<w&&Y===J?n.arc(u+$.cx,c+$.cy,M,nn($.y0,$.x0),nn(j.y0,j.x0),!h):(Y>0&&n.arc(u+$.cx,c+$.cy,Y,nn($.y0,$.x0),nn($.y1,$.x1),!h),n.arc(u,c,i,nn($.cy+$.y1,$.cx+$.x1),nn(j.cy+j.y1,j.cx+j.x1),!h),J>0&&n.arc(u+j.cx,c+j.cy,J,nn(j.y1,j.x1),nn(j.y0,j.x0),!h))}else n.moveTo(u+L,c+P),n.arc(u,c,i,s,l,!h);else n.moveTo(u+L,c+P);r>ei&&N?I>ei?(Y=mi(f,I),$=hh(E,O,T,C,r,-(J=mi(g,I)),h),j=hh(L,P,D,A,r,-Y,h),n.lineTo(u+$.cx+$.x0,c+$.cy+$.y0),I<S&&Y===J?n.arc(u+$.cx,c+$.cy,I,nn($.y0,$.x0),nn(j.y0,j.x0),!h):(J>0&&n.arc(u+$.cx,c+$.cy,J,nn($.y0,$.x0),nn($.y1,$.x1),!h),n.arc(u,c,r,nn($.cy+$.y1,$.cx+$.x1),nn(j.cy+j.y1,j.cx+j.x1),h),Y>0&&n.arc(u+j.cx,c+j.cy,Y,nn(j.y1,j.x1),nn(j.y0,j.x0),!h))):(n.lineTo(u+E,c+O),n.arc(u,c,r,l,s,h)):n.lineTo(u+E,c+O)}else n.moveTo(u,c);n.closePath()}}}var yz=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},$t=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultShape=function(){return new yz},t.prototype.buildPath=function(e,i){vz(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Le);$t.prototype.type="sector";var mz=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},fl=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultShape=function(){return new mz},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=2*Math.PI;e.moveTo(r+i.r,o),e.arc(r,o,i.r,0,a,!1),e.moveTo(r+i.r0,o),e.arc(r,o,i.r0,0,a,!0)},t})(Le);function PA(n,t,e){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=(function(d,p,f,g){var v,y,m,x,_=[],b=[],w=[],S=[];if(g){m=[1/0,1/0],x=[-1/0,-1/0];for(var M=0,I=d.length;M<I;M++)lr(m,m,d[M]),ur(x,x,d[M]);lr(m,m,g[0]),ur(x,x,g[1])}for(M=0,I=d.length;M<I;M++){var T=d[M];if(f)v=d[M?M-1:I-1],y=d[(M+1)%I];else{if(M===0||M===I-1){_.push(Bi(d[M]));continue}v=d[M-1],y=d[M+1]}qr(b,y,v),Ru(b,b,p);var C=Kd(T,v),D=Kd(T,y),A=C+D;A!==0&&(C/=A,D/=A),Ru(w,b,-C),Ru(S,b,D);var L=rm([],T,w),P=rm([],T,S);g&&(ur(L,L,m),lr(L,L,x),ur(P,P,m),lr(P,P,x)),_.push(L),_.push(P)}return f&&_.push(_.shift()),_})(r,i,e,t.smoothConstraint);n.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(e?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(r[0][0],r[0][1]),s=1;for(var h=r.length;s<h;s++)n.lineTo(r[s][0],r[s][1])}e&&n.closePath()}}fl.prototype.type="ring";var xz=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Jt=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultShape=function(){return new xz},t.prototype.buildPath=function(e,i){PA(e,i,!0)},t})(Le);Jt.prototype.type="polygon";var _z=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Wt=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _z},t.prototype.buildPath=function(e,i){PA(e,i,!1)},t})(Le);Wt.prototype.type="polyline";var bz={},wz=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},_t=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new wz},t.prototype.buildPath=function(e,i){var r,o,a,s;if(this.subPixelOptimize){var l=Rf(bz,i,this.style);r=l.x1,o=l.y1,a=l.x2,s=l.y2}else r=i.x1,o=i.y1,a=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(r,o),u<1&&(a=r*(1-u)+a*u,s=o*(1-u)+s*u),e.lineTo(a,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(Le);_t.prototype.type="line";var xn=[],Sz=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Jb(n,t,e){var i=n.cpx2,r=n.cpy2;return i!=null||r!=null?[(e?Q_:Pt)(n.x1,n.cpx1,n.cpx2,n.x2,t),(e?Q_:Pt)(n.y1,n.cpy1,n.cpy2,n.y2,t)]:[(e?dm:Gt)(n.x1,n.cpx1,n.x2,t),(e?dm:Gt)(n.y1,n.cpy1,n.y2,t)]}var gl=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Sz},t.prototype.buildPath=function(e,i){var r=i.x1,o=i.y1,a=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,c=i.cpx2,h=i.cpy2,d=i.percent;d!==0&&(e.moveTo(r,o),c==null||h==null?(d<1&&(Qu(r,l,a,d,xn),l=xn[1],a=xn[2],Qu(o,u,s,d,xn),u=xn[1],s=xn[2]),e.quadraticCurveTo(l,u,a,s)):(d<1&&(co(r,l,c,a,d,xn),l=xn[1],c=xn[2],a=xn[3],co(o,u,h,s,d,xn),u=xn[1],h=xn[2],s=xn[3]),e.bezierCurveTo(l,u,c,h,a,s)))},t.prototype.pointAt=function(e){return Jb(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=Jb(this.shape,e,!0);return Ga(i,i)},t})(Le);gl.prototype.type="bezier-curve";var Mz=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Gc=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Mz},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,c=Math.cos(s),h=Math.sin(s);e.moveTo(c*a+r,h*a+o),e.arc(r,o,a,s,l,!u)},t})(Le);Gc.prototype.type="arc";var Fc=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="compound",e}return G(t,n),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),r=0;r<e.length;r++)i=i||e[r].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),r=0;r<e.length;r++)e[r].path||e[r].createPathProxy(),e[r].path.setScale(i[0],i[1],e[r].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var r=i.paths||[],o=0;o<r.length;o++)r[o].buildPath(e,r[o].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Le.prototype.getBoundingRect.call(this)},t})(Le),OA=(function(){function n(t){this.colorStops=t||[]}return n.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},n})(),Ua=(function(n){function t(e,i,r,o,a,s){var l=n.call(this,a)||this;return l.x=e??0,l.y=i??0,l.x2=r??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return G(t,n),t})(OA),Z1=(function(n){function t(e,i,r,o,a){var s=n.call(this,o)||this;return s.x=e??.5,s.y=i??.5,s.r=r??.5,s.type="radial",s.global=a||!1,s}return G(t,n),t})(OA),Hg=Math.min,Iz=Math.max,dh=Math.abs,No=[0,0],Eo=[0,0],Vt=yD(),ph=Vt.minTv,fh=Vt.maxTv,RA=(function(){function n(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ge;for(i=0;i<2;i++)this._axes[i]=new ge;t&&this.fromBoundingRect(t,e)}return n.prototype.fromBoundingRect=function(t,e){var i=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(i[0].set(o,a),i[1].set(s,a),i[2].set(s,l),i[3].set(o,l),e)for(var u=0;u<4;u++)i[u].transform(e);for(ge.sub(r[0],i[1],i[0]),ge.sub(r[1],i[3],i[0]),r[0].normalize(),r[1].normalize(),u=0;u<2;u++)this._origin[u]=r[u].dot(i[0])},n.prototype.intersect=function(t,e,i){var r=!0,o=!e;return e&&ge.set(e,0,0),Vt.reset(i,!o),!this._intersectCheckOneSide(this,t,o,1)&&(r=!1,o)||!this._intersectCheckOneSide(t,this,o,-1)&&(r=!1,o)||o||Vt.negativeSize||ge.copy(e,r?Vt.useDir?Vt.dirMinTv:ph:fh),r},n.prototype._intersectCheckOneSide=function(t,e,i,r){for(var o=!0,a=0;a<2;a++){var s=t._axes[a];if(t._getProjMinMaxOnAxis(a,t._corners,No),t._getProjMinMaxOnAxis(a,e._corners,Eo),Vt.negativeSize||No[1]<Eo[0]||No[0]>Eo[1]){if(o=!1,Vt.negativeSize||i)return o;var l=dh(Eo[0]-No[1]),u=dh(No[0]-Eo[1]);Hg(l,u)>fh.len()&&(l<u?ge.scale(fh,s,-l*r):ge.scale(fh,s,u*r))}else i||(l=dh(Eo[0]-No[1]),u=dh(No[0]-Eo[1]),(Vt.useDir||Hg(l,u)<ph.len())&&((l<u||!Vt.bidirectional)&&(ge.scale(ph,s,l*r),Vt.useDir&&Vt.calcDirMTV()),(l>=u||!Vt.bidirectional)&&(ge.scale(ph,s,-u*r),Vt.useDir&&Vt.calcDirMTV())))}return o},n.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var r=this._axes[t],o=this._origin,a=e[0].dot(r)+o[t],s=a,l=a,u=1;u<e.length;u++){var c=e[u].dot(r)+o[t];s=Hg(c,s),l=Iz(c,l)}i[0]=s+Vt.touchThreshold,i[1]=l-Vt.touchThreshold,Vt.negativeSize=i[1]<i[0]},n})(),Tz=[],NA=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.notClear=!0,e.incremental=1,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return G(t,n),t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var r=0;r<e.length;r++)this.addDisplayable(e[r],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++)(i=this._displayables[e]).parent=this,i.update(),i.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++){var i;(i=this._temporaryDisplayables[e]).parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new de(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var r=this._displayables[i],o=r.getBoundingRect().clone();r.needLocalTransform()&&o.applyTransform(r.getLocalTransform(Tz)),e.union(o)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var r=this.transformCoordToLocal(e,i);if(this.getBoundingRect().contain(r[0],r[1])){for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(e,i))return!0}return!1},t})($n),EA=Me();function vl(n,t,e,i,r){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=n==="update";if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return i?(l=ae(i.duration,200),u=ae(i.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(l=o.duration),o.easing!=null&&(u=o.easing),o.delay!=null&&(c=o.delay)),le(c)&&(c=c(e,r)),le(l)&&(l=l(e)),{duration:l||0,delay:c,easing:u}}return null}function q1(n,t,e,i,r,o,a){var s,l=!1;le(r)?(a=o,o=r,r=null):fe(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u=n==="leave";u||t.stopAnimation("leave");var c=vl(n,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:n,during:a};l?t.animateFrom(e,h):t.animateTo(e,h)}else t.stopAnimation(),!l&&t.attr(e),a&&a(1),o&&o()}function Fe(n,t,e,i,r,o){q1("update",n,t,e,i,r,o)}function rt(n,t,e,i,r,o){q1("enter",n,t,e,i,r,o)}function Vs(n){if(!n.__zr)return!0;for(var t=0;t<n.animators.length;t++)if(n.animators[t].scope==="leave")return!0;return!1}function po(n,t,e,i,r,o){Vs(n)||q1("leave",n,t,e,i,r,o)}function Qb(n,t,e,i){n.removeTextContent(),n.removeTextGuideLine(),po(n,{style:{opacity:0}},t,e,i)}function fr(n,t,e){function i(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(r){r.isGroup||Qb(r,t,e,i)}):Qb(n,t,e,i)}function Jn(n){EA(n).oldStyle=n.style}var Em={},_e=["x","y"],gt=["width","height"];function zA(n){return Le.extend(n)}var Cz=function(n,t){var e=AA(n,t);return(function(i){function r(o){var a=i.call(this,o)||this;return a.applyTransform=e.applyTransform,a.buildPath=e.buildPath,a}return G(r,i),r})(CA)};function BA(n,t){return Cz(n,t)}function Vn(n,t){Em[n]=t}function uc(n){if(Em.hasOwnProperty(n))return Em[n]}function js(n,t,e,i){var r=kA(n,t);return e&&(i==="center"&&(e=VA(e,r.getBoundingRect())),K1(r,e)),r}function j1(n,t,e){var i=new zt({style:{image:n,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(r){if(e==="center"){var o={width:r.width,height:r.height};i.setStyle(VA(t,o))}}});return i}function VA(n,t){var e,i=t.width/t.height,r=n.height*i;return e=r<=n.width?n.height:(r=n.width)/i,{x:n.x+n.width/2-r/2,y:n.y+n.height/2-e/2,width:r,height:e}}var Tn=function(n,t){for(var e=[],i=n.length,r=0;r<i;r++){var o=n[r];e.push(o.getUpdatedPathProxy(!0))}var a=new Le(t);return a.createPathProxy(),a.buildPath=function(s){if(DA(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},a};function K1(n,t){if(n.applyTransform){var e=n.getBoundingRect().calculateTransform(t);n.applyTransform(e)}}function Ks(n,t){return Rf(n,n,{lineWidth:t}),n}var Ad=An;function pa(n,t){for(var e=Fa([]);n&&n!==t;)kn(e,n.getLocalTransform(),e),n=n.parent;return e}function li(n,t,e){return t&&!qt(t)&&(t=ji.getLocalTransform(t)),e&&(t=Ln([],t)),dt([],n,t)}function Ef(n,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:ht(2*t[4]/t[0]),r=t[4]===0||t[5]===0||t[2]===0?1:ht(2*t[4]/t[2]),o=[n==="left"?-i:n==="right"?i:0,n==="top"?-r:n==="bottom"?r:0];return o=li(o,t,e),ht(o[0])>ht(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function ew(n){return!n.isGroup}function Hc(n,t,e){if(n&&t){var i,r=(i={},n.traverse(function(a){ew(a)&&a.anid&&(i[a.anid]=a)}),i);t.traverse(function(a){if(ew(a)&&a.anid){var s=r[a.anid];if(s){var l=o(a);a.attr(o(s)),Fe(a,l,e,me(a).dataIndex)}}})}function o(a){var s={x:a.x,y:a.y,rotation:a.rotation};return(function(l){return l.shape!=null})(a)&&(s.shape=se(a.shape)),s}}function $1(n,t){return K(n,function(e){var i=e[0];i=De(i,t.x),i=Xe(i,t.x+t.width);var r=e[1];return r=De(r,t.y),[i,r=Xe(r,t.y+t.height)]})}function GA(n,t){var e=De(n.x,t.x),i=Xe(n.x+n.width,t.x+t.width),r=De(n.y,t.y),o=Xe(n.y+n.height,t.y+t.height);if(i>=e&&o>=r)return{x:e,y:r,width:i-e,height:o-r}}function yl(n,t,e){var i=X({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(r.image=n.slice(8),pe(r,e),new zt(i)):js(n.replace("path://",""),i,e,"center")}function mu(n,t,e,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(FA(n,t,e,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function FA(n,t,e,i,r,o,a,s){var l,u=e-n,c=i-t,h=a-r,d=s-o,p=Wg(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=n-r,g=t-o,v=Wg(f,g,u,c)/p;if(v<0||v>1)return!1;var y=Wg(f,g,h,d)/p;return!(y<0||y>1)}function Wg(n,t,e,i){return n*i-e*t}function Ta(n,t,e,i,r){return t==null||(Ve(t)?lt[0]=lt[1]=lt[2]=lt[3]=t:(lt[0]=t[0],lt[1]=t[1],lt[2]=t[2],lt[3]=t[3]),i&&(lt[0]=De(0,lt[0]),lt[1]=De(0,lt[1]),lt[2]=De(0,lt[2]),lt[3]=De(0,lt[3])),e&&(lt[0]=-lt[0],lt[1]=-lt[1],lt[2]=-lt[2],lt[3]=-lt[3]),tw(n,lt,"x","width",3,1,r&&r[0]||0),tw(n,lt,"y","height",0,2,r&&r[1]||0)),n}var lt=[0,0,0,0];function tw(n,t,e,i,r,o,a){var s=t[o]+t[r],l=n[i];n[i]+=s,a=De(0,Xe(a,l)),n[i]<a?(n[i]=a,n[e]+=t[r]>=0?-t[r]:t[o]>=0?l+t[o]:ht(s)>1e-8?(l-a)*t[r]/s:0):n[e]-=t[r]}function Ar(n){var t=n.itemTooltipOption,e=n.componentModel,i=n.itemName,r=te(t)?{formatter:t}:t,o=e.mainType,a=e.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=n.formatterParamsExtra;l&&k(Re(l),function(c){oe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=me(n.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:pe({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function zm(n,t){var e;n.isGroup&&(e=t(n)),e||n.traverse(t)}function xo(n,t){if(n)if(q(n))for(var e=0;e<n.length;e++)zm(n[e],t);else zm(n,t)}function J1(n){return!n||ht(n[1])<gh&&ht(n[2])<gh||ht(n[0])<gh&&ht(n[3])<gh}var gh=1e-5;function cc(n,t){return n?de.copy(n,t):t.clone()}function Q1(n,t){return t?uo(n||[1,0,0,1,0,0],t):void 0}function Ca(n){return{z:n.get("z")||0,zlevel:n.get("zlevel")||0}}function HA(n){var t=-1/0,e=1/0;function i(o){if(o&&!o.isGroup){var a=o.currentStates;if(a.length)for(var s=0;s<a.length;s++)r(o.states[a[s]]);r(o)}}function r(o){if(o){var a=o.z2;a>t&&(t=a),a<e&&(e=a)}}return zm(n,function(o){i(o),i(o.getTextContent()),i(o.getTextGuideLine())}),e>t&&(e=t=0),{min:e,max:t}}function zf(n,t,e){WA(n,t,e,-1/0)}function WA(n,t,e,i){if(n.ignoreModelZ)return i;var r=n.getTextContent(),o=n.getTextGuideLine();if(n.isGroup)for(var a=n.childrenRef(),s=0;s<a.length;s++)i=De(WA(a[s],t,e,i),i);else n.z=t,n.zlevel=e,i=De(n.z2||0,i);if(r&&(r.z=t,r.zlevel=e,isFinite(i)&&(r.z2=i+2)),o){var l=n.textGuideLineConfig;o.z=t,o.zlevel=e,isFinite(i)&&(o.z2=i+(l&&l.showAbove?1:-1))}return i}function ex(n){return n.animation={duration:0},n}function Bf(n,t){return t?uo(xu.transform,t):Fa(xu.transform),xu.decomposeTransform(),Vi(n,xu),n}var xu=new ji;function Bm(n){var t=n.getZr().painter;return t.getType()==="canvas"?t:null}xu.transform=[1,0,0,1,0,0],Vn("circle",$i),Vn("ellipse",Vc),Vn("sector",$t),Vn("ring",fl),Vn("polygon",Jt),Vn("polyline",Wt),Vn("rect",Ae),Vn("line",_t),Vn("bezierCurve",gl),Vn("arc",Gc);var Ya=Object.freeze({__proto__:null,updateProps:Fe,initProps:rt,removeElement:po,removeElementWithFadeOut:fr,isElementRemoved:Vs,XY:_e,WH:gt,HOVER_LAYER_NO:0,HOVER_LAYER_FROM_THRESHOLD:1,HOVER_LAYER_FOR_INCREMENTAL:2,extendShape:zA,extendPath:BA,registerShape:Vn,getShapeClass:uc,makePath:js,makeImage:j1,mergePath:Tn,resizePath:K1,subPixelOptimizeLine:Ks,subPixelOptimizeRect:function(n,t){return cA(n,n,t),n},subPixelOptimize:Ad,getTransform:pa,applyTransform:li,transformDirection:Ef,groupTransition:Hc,clipPointsByRect:$1,clipRectByRect:GA,createIcon:yl,linePolygonIntersect:mu,lineLineIntersect:FA,expandOrShrinkRect:Ta,setTooltipConfig:Ar,traverseElements:xo,isBoundingRectAxisAligned:J1,ensureCopyRect:cc,ensureCopyTransform:Q1,retrieveZInfo:Ca,calcZ2Range:HA,traverseUpdateZ:zf,payloadDisableAnimation:ex,decomposeTransform:Bf,getCurrentCanvasPainter:Bm,Group:he,Image:zt,Text:Be,Circle:$i,Ellipse:Vc,Sector:$t,Ring:fl,Polygon:Jt,Polyline:Wt,Rect:Ae,Line:_t,BezierCurve:gl,Arc:Gc,IncrementalDisplayable:NA,CompoundPath:Fc,LinearGradient:Ua,RadialGradient:Z1,BoundingRect:de,OrientedBoundingRect:RA,Point:ge,Path:Le}),dp={};function UA(n,t){for(var e=0;e<yn.length;e++){var i=yn[e],r=t[i],o=n.ensureState(i);o.style=o.style||{},o.style.text=r}var a=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:t.normal}),n.useStates(a,!0)}function Vm(n,t,e){var i,r=n.labelFetcher,o=n.labelDataIndex,a=n.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),e!=null?{interpolatedValue:e}:null)),i==null&&(i=le(n.defaultText)?n.defaultText(o,n,e):n.defaultText);for(var l={normal:i},u=0;u<yn.length;u++){var c=yn[u],h=t[c];l[c]=ae(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function Et(n,t,e,i){e=e||dp;for(var r=n instanceof Be,o=!1,a=0;a<sc.length;a++)if((d=t[sc[a]])&&d.getShallow("show")){o=!0;break}var s=r?n:n.getTextContent();if(o){r||(s||(s=new Be,n.setTextContent(s)),n.stateProxy&&(s.stateProxy=n.stateProxy));var l=Vm(e,t),u=t.normal,c=!!u.getShallow("show"),h=Je(u,i&&i.normal,e,!1,!r);for(h.text=l.normal,r||n.setTextConfig(pp(u,e,!1)),a=0;a<yn.length;a++){var d,p=yn[a];if(d=t[p]){var f=s.ensureState(p),g=!!ae(d.getShallow("show"),c);g!==c&&(f.ignore=!g),f.style=Je(d,i&&i[p],e,!0,!r),f.style.text=l[p],!r&&(n.ensureState(p).textConfig=pp(d,e,!0))}}s.silent=!!u.getShallow("silent"),s.style.x!=null&&(h.x=s.style.x),s.style.y!=null&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),e.enableTextSetter&&(ml(s).setLabelText=function(v){var y=Vm(e,t,v);UA(s,y)})}else s&&(s.ignore=!0);n.dirty()}function Dt(n,t){t=t||"label";for(var e={normal:n.getModel(t)},i=0;i<yn.length;i++){var r=yn[i];e[r]=n.getModel([r,t])}return e}function Je(n,t,e,i,r){var o={};return(function(a,s,l,u,c){l=l||dp;var h,d=s.ecModel,p=d&&d.option.textStyle,f=(function(M){for(var I;M&&M!==M.ecModel;){var T=(M.option||dp).rich;if(T){I=I||{};for(var C=Re(T),D=0;D<C.length;D++)I[C[D]]=1}M=M.parentModel}return I})(s);if(f){h={};var g="richInheritPlainLabel",v=ae(s.get(g),d?d.get(g):void 0);for(var y in f)if(f.hasOwnProperty(y)){var m=s.getModel(["rich",y]);ow(h[y]={},m,p,s,v,l,u,c,!1,!0)}}h&&(a.rich=h);var x=s.get("overflow");x&&(a.overflow=x);var _=s.get("lineOverflow");_&&(a.lineOverflow=_);var b=a,w=s.get("minMargin");if(w!=null)w=Ve(w)?w/2:0,b.margin=[w,w,w,w],b.__marginType=ks.minMargin;else{var S=s.get("textMargin");S!=null&&(b.margin=Ec(S),b.__marginType=ks.textMargin)}ow(a,s,p,null,null,l,u,c,!0,!1)})(o,n,e,i,r),t&&X(o,t),o}function pp(n,t,e){t=t||{};var i,r={},o=n.getShallow("rotate"),a=ae(n.getShallow("distance"),e?null:5),s=n.getShallow("offset");return(i=n.getShallow("position")||(e?null:"inside"))==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=n.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}var nw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],iw=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],rw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ow(n,t,e,i,r,o,a,s,l,u){e=!a&&e||dp;var c=o&&o.inheritColor,h=t.getShallow("color"),d=t.getShallow("textBorderColor"),p=ae(t.getShallow("opacity"),e.opacity);h!=="inherit"&&h!=="auto"||(h=c||null),d!=="inherit"&&d!=="auto"||(d=c||null),s||(h=h||e.color,d=d||e.textBorderColor),h!=null&&(n.fill=h),d!=null&&(n.stroke=d);var f=ae(t.getShallow("textBorderWidth"),e.textBorderWidth);f!=null&&(n.lineWidth=f);var g=ae(t.getShallow("textBorderType"),e.textBorderType);g!=null&&(n.lineDash=g);var v=ae(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);v!=null&&(n.lineDashOffset=v),a||p!=null||u||(p=o&&o.defaultOpacity),p!=null&&(n.opacity=p),a||s||n.fill==null&&o.inheritColor&&(n.fill=o.inheritColor);for(var y=0;y<nw.length;y++){var m=nw[y];(_=r!==!1&&i?wn(t.getShallow(m),i.getShallow(m),e[m]):ae(t.getShallow(m),e[m]))!=null&&(n[m]=_)}for(y=0;y<iw.length;y++)m=iw[y],(_=t.getShallow(m))!=null&&(n[m]=_);if(n.verticalAlign==null){var x=t.getShallow("baseline");x!=null&&(n.verticalAlign=x)}if(!l||!o.disableBox){for(y=0;y<rw.length;y++){var _;m=rw[y],(_=t.getShallow(m))!=null&&(n[m]=_)}var b=t.getShallow("borderType");b!=null&&(n.borderDash=b),n.backgroundColor!=="auto"&&n.backgroundColor!=="inherit"||!c||(n.backgroundColor=c),n.borderColor!=="auto"&&n.borderColor!=="inherit"||!c||(n.borderColor=c)}}function tx(n,t){var e=t&&t.getModel("textStyle");return Cn([n.fontStyle||e&&e.getShallow("fontStyle")||"",n.fontWeight||e&&e.getShallow("fontWeight")||"",(n.fontSize||e&&e.getShallow("fontSize")||12)+"px",n.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var ml=Me();function YA(n,t,e,i){if(n){var r=ml(n);r.prevValue=r.value,r.value=e;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function XA(n,t,e,i,r){var o=ml(n);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=ae(o.interpolatedValue,o.prevValue),l=o.value;n.percent=0,(o.prevValue==null?rt:Fe)(n,{percent:1},i,t,null,function(u){var c=JD(e,o.precision,s,l,u);o.interpolatedValue=u===1?null:c;var h=Vm({labelDataIndex:t,labelFetcher:r,defaultText:a?a(c):c+""},o.statesModels,c);UA(n,h)})}}var Ug,Yg,ks={minMargin:1,textMargin:2},Dz=["textStyle","color"],Xg=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Zg=new Be,Az=(function(){function n(){}return n.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Dz):null)},n.prototype.getFont=function(){return tx({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Xg.length;i++)e[Xg[i]]=this.getShallow(Xg[i]);return Zg.useStyle(e),Zg.update(),Zg.getBoundingRect()},n})(),ZA=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],kz=Ma(ZA),Lz=(function(){function n(){}return n.prototype.getLineStyle=function(t){return kz(this,t)},n})(),qA=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Pz=Ma(qA),Oz=(function(){function n(){}return n.prototype.getItemStyle=function(t,e){return Pz(this,t,e)},n})(),Oe=(function(){function n(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return n.prototype.init=function(t,e,i){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o]},n.prototype.mergeOption=function(t,e){Se(this.option,t,!0)},n.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},n.prototype.getShallow=function(t,e){var i=this.option,r=i==null?i:i[t];if(r==null&&!e){var o=this.parentModel;o&&(r=o.getShallow(t))}return r},n.prototype.getModel=function(t,e){var i=t!=null,r=i?this.parsePath(t):null;return new n(i?this._doGet(r):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){return new this.constructor(se(this.option))},n.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},n.prototype.resolveParentPath=function(t){return t},n.prototype.isAnimationEnabled=function(){if(!Ee.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var r=0;r<t.length&&(!t[r]||(i=i&&typeof i=="object"?i[t[r]]:null)!=null);r++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},n})();F1(Oe),Ug=Oe,Yg=["__\0is_clz",CE++].join("_"),Ug.prototype[Yg]=!0,Ug.isInstance=function(n){return!(!n||!n[Yg])},xt(Oe,Lz),xt(Oe,Oz),xt(Oe,LE),xt(Oe,Az);var Rz=Math.round(10*Math.random());function Xa(n){return[n||"",Rz++].join("_")}function _o(n,t){return Se(Se({},n,!0),t,!0)}var fp="ZH",nx="EN",hc=nx,kd={},ix={},jA=Ee.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||hc).toUpperCase().indexOf(fp)>-1?fp:hc;function aw(n,t){n=n.toUpperCase(),ix[n]=new Oe(t),kd[n]=t}function Gm(n){return ix[n]}aw(nx,{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:". "}}}}),aw(fp,{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 Fm=null;function mt(){return Fm}function KA(n,t){var e=mt(),i=t.breakOption,r=t.breakParsed;return!r&&e&&(r=e.parseAxisBreakOption(i,n)),r}function gp(n){var t=n.brk;return t?t.breaks:[]}function vp(n){var t=n.brk;return!!t&&t.hasBreaks()}var $A=1e3,JA=6e4,QA=36e5,Fu=864e5,sw=31536e6,Nz={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})/},Ld={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},vh="{yyyy}-{MM}-{dd}",lw={year:"{yyyy}",month:"{yyyy}-{MM}",day:vh,hour:vh+" "+Ld.hour,minute:vh+" "+Ld.minute,second:vh+" "+Ld.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Mn=["year","month","day","hour","minute","second","millisecond"],Ez=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function zz(n){return te(n)||le(n)?n:(function(t){t=t||{};var e={},i=!0;return k(Mn,function(r){i&&(i=t[r]==null)}),k(Mn,function(r,o){var a=t[r];e[r]={};for(var s=null,l=o;l>=0;l--){var u=Mn[l],c=fe(a)&&!q(a)?a[u]:a,h=void 0;q(c)?s=(h=c.slice())[0]||"":te(c)?h=[s=c]:(s==null?s=Ld[r]:Nz[u].test(s)||(s=e[u][u][0]+" "+s),h=[s],i&&(h[1]="{primary|"+s+"}")),e[r][u]=h}}),e})(n)}function hn(n,t){return"0000".substr(0,t-(n+="").length)+n}function _u(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function Bz(n){return n===_u(n)}function dc(n,t,e,i){var r=Ki(n),o=r[ek(e)](),a=r[rx(e)]()+1,s=Math.floor((a-1)/3)+1,l=r[ox(e)](),u=r["get"+(e?"UTC":"")+"Day"](),c=r[ax(e)](),h=(c-1)%12+1,d=r[sx(e)](),p=r[lx(e)](),f=r[ux(e)](),g=c>=12?"pm":"am",v=g.toUpperCase(),y=(i instanceof Oe?i:Gm(i||jA)||ix[hc]).getModel("time"),m=y.get("month"),x=y.get("monthAbbr"),_=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,hn(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,hn(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,hn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,hn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,hn(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,hn(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,hn(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,hn(f,3)).replace(/{S}/g,f+"")}function rs(n,t){var e=Ki(n),i=e[rx(t)]()+1,r=e[ox(t)](),o=e[ax(t)](),a=e[sx(t)](),s=e[lx(t)](),l=e[ux(t)]()===0,u=l&&s===0,c=u&&a===0,h=c&&o===0,d=h&&r===1;return d&&i===1?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function yp(n,t,e){switch(t){case"year":n[tk(e)](0);case"month":n[nk(e)](1);case"day":n[ik(e)](0);case"hour":n[rk(e)](0);case"minute":n[ok(e)](0);case"second":n[ak(e)](0)}return n}function ek(n){return n?"getUTCFullYear":"getFullYear"}function rx(n){return n?"getUTCMonth":"getMonth"}function ox(n){return n?"getUTCDate":"getDate"}function ax(n){return n?"getUTCHours":"getHours"}function sx(n){return n?"getUTCMinutes":"getMinutes"}function lx(n){return n?"getUTCSeconds":"getSeconds"}function ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function Vz(n){return n?"setUTCFullYear":"setFullYear"}function tk(n){return n?"setUTCMonth":"setMonth"}function nk(n){return n?"setUTCDate":"setDate"}function ik(n){return n?"setUTCHours":"setHours"}function rk(n){return n?"setUTCMinutes":"setMinutes"}function ok(n){return n?"setUTCSeconds":"setSeconds"}function ak(n){return n?"setUTCMilliseconds":"setMilliseconds"}function cx(n){if(!E1(n))return te(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function hx(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var xl=Ec;function Hm(n,t,e){function i(u){return u&&Cn(u)?u:"-"}function r(u){return Yn(u)}var o=t==="time",a=n instanceof Date;if(o||a){var s=o?Ki(n):n;if(!isNaN(+s))return dc(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",e);if(a)return"-"}if(t==="ordinal")return qd(n)?i(n):Ve(n)&&r(n)?n+"":"-";var l=Xi(n);return r(l)?cx(l):qd(n)?i(n):typeof n=="boolean"?n+"":"-"}var uw=["a","b","c","d","e","f","g"],qg=function(n,t){return"{"+n+(t??"")+"}"};function dx(n,t,e){q(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=uw[o];n=n.replace(qg(a),qg(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];n=n.replace(qg(uw[l],s),e?Zt(u):u)}return n}function sk(n,t,e){return k(t,function(i,r){n=n.replace("{"+r+"}",e?Zt(i):i)}),n}function lk(n,t){var e=te(n)?{color:n,extraCssText:t}:n||{},i=e.color,r=e.type;t=e.extraCssText;var o=e.renderMode||"html";return i?o==="html"?r==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Zt(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Zt(i)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(e.markerId||"markerX")+"|} ",style:r==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Da(n,t){return t=t||"transparent",te(n)?n:fe(n)&&n.colorStops&&(n.colorStops[0]||{}).color||t}function mp(n,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=n}else window.open(n,t)}var Pd={},jg={},_l=(function(){function n(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return n.prototype.create=function(t,e){function i(r,o){var a=[];return k(r,function(s,l){var u=s.create(t,e);a=a.concat(u||[])}),a}this._nonSeriesBoxMasterList=i(Pd,!0),this._normalMasterList=i(jg,!1)},n.prototype.update=function(t,e){k(this._normalMasterList,function(i){i.update&&i.update(t,e)})},n.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},n.register=function(t,e){t!=="matrix"&&t!=="calendar"?jg[t]=e:Pd[t]=e},n.get=function(t){return jg[t]||Pd[t]},n})(),uk=re();function ck(n){var t=n.getShallow("coord",!0),e=1;if(t==null){var i=uk.get(n.type);i&&i.getCoord2&&(e=2,t=i.getCoord2(n))}return{coord:t,from:e}}function hk(n,t){var e=n.getShallow("coordinateSystem"),i=n.getShallow("coordinateSystemUsage",!0),r=0;if(e){var o=n.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(r=1,o||(r=0)):i==="box"&&(r=2,o||(function(a){return!!Pd[a]})(e)||(r=0))}return{coordSysType:e,kind:r}}function Wc(n){var t=n.targetModel,e=n.coordSysType,i=n.coordSysProvider,r=n.isDefaultDataCoordSys;n.allowNotFound;var o=hk(t),a=o.kind,s=o.coordSysType;if(r&&a!==1&&(a=1,s=e),a===0||s!==e)return 0;var l=i(e,t);return l?(a===1?t.coordinateSystem=l:t.boxCoordinateSystem=l,a):0}var dk=function(n,t){var e=t.getReferringComponents(n,pt).models[0];return e&&e.coordinateSystem},Od=k,pk=["left","right","top","bottom","width","height"],ra=[["width","left","right"],["height","top","bottom"]];function Wm(n,t,e,i,r){var o=0,a=0;i==null&&(i=1/0),r==null&&(r=1/0);var s=0;t.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if(n==="horizontal"){var g=d.width+(f?-f.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+e,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);(h=a+v)>r||l.newline?(o+=s+e,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),n==="horizontal"?o=c+e:a=h+e)})}var fa=Wm;Ce(Wm,"vertical"),Ce(Wm,"horizontal");function fk(n,t){return{left:n.getShallow("left",t),top:n.getShallow("top",t),right:n.getShallow("right",t),bottom:n.getShallow("bottom",t),width:n.getShallow("width",t),height:n.getShallow("height",t)}}function gk(n,t){var e=(function(h,d){var p,f,g=kt(h,d,{enableLayoutOnlyByCenter:!0}),v=h.getBoxLayoutParams();if(g.type===bu.point)f=g.refPoint,p=ot(v,{width:d.getWidth(),height:d.getHeight()});else{var y=h.get("center"),m=q(y)?y:[y,y];p=ot(v,g.refContainer),f=g.boxCoordFrom===2?g.refPoint:[ne(m[0],p.width)+p.x,ne(m[1],p.height)+p.y]}return{viewRect:p,center:f}})(n,t),i=e.viewRect,r=e.center,o=n.get("radius");q(o)||(o=[0,o]);var a=ne(i.width,t.getWidth()),s=ne(i.height,t.getHeight()),l=Math.min(a,s),u=ne(o[0],l/2),c=ne(o[1],l/2);return{cx:r[0],cy:r[1],r0:u,r:c,viewRect:i}}function ot(n,t,e){e=xl(e||0);var i=t.width,r=t.height,o=ne(n.left,i),a=ne(n.top,r),s=ne(n.right,i),l=ne(n.bottom,r),u=ne(n.width,i),c=ne(n.height,r),h=e[2]+e[0],d=e[1]+e[3],p=n.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),p!=null&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),n.left||n.right){case"center":o=i/2-u/2-e[3];break;case"right":o=i-u-d}switch(n.top||n.bottom){case"middle":case"center":a=r/2-c/2-e[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new de((t.x||0)+o+e[3],(t.y||0)+a+e[0],u,c);return f.margin=e,f}function vk(n,t,e){var i=n.getShallow("preserveAspect",!0);if(!i)return t;var r=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(r))<1e-9)return t;var o=n.getShallow("preserveAspectAlign",!0),a=n.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=i==="cover";return r>e&&!l||r<e&&l?(s.width=t.height*e,o==="left"?s.left=0:o==="right"?s.right=0:s.left="center"):(s.height=t.width/e,a==="top"?s.top=0:a==="bottom"?s.bottom=0:s.top="middle"),ot(s,t)}var bu={rect:1,point:2};function kt(n,t,e){var i,r,o,a,s=n.boxCoordinateSystem;if(s){var l=ck(n),u=l.coord,c=l.from;if(s.dataToLayout){o=bu.rect,a=c;var h=s.dataToLayout(u);i=h.contentRect||h.rect}else e&&e.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=bu.point,a=c,r=s.dataToPoint(u))}return o==null&&(o=bu.rect),o===bu.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:a}}function Vf(n,t,e,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||n).x=n.x,o.y=n.y,!s&&!l)return!1;if(u==="raw")a=n.type==="group"?new de(0,0,+t.width||0,+t.height||0):n.getBoundingRect();else if(a=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();(a=a.clone()).applyTransform(c)}var h=ot(pe({width:a.width,height:a.height},t),e,i),d=s?h.x-a.x:0,p=l?h.y-a.y:0;return u==="raw"?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===n&&n.markRedraw(),!0}function pc(n){var t=n.layoutMode||n.constructor.layoutMode;return fe(t)?t:t?{type:t}:null}function qi(n,t,e){var i=e&&e.ignoreSize;!q(i)&&(i=[i,i]);var r=a(ra[0],0),o=a(ra[1],1);function a(u,c){var h={},d=0,p={},f=0;if(Od(u,function(y){p[y]=n[y]}),Od(u,function(y){oe(t,y)&&(h[y]=p[y]=t[y]),s(h,y)&&d++,s(p,y)&&f++}),i[c])return s(t,u[1])?p[u[2]]=null:s(t,u[2])&&(p[u[1]]=null),p;if(f!==2&&d){if(d>=2)return h;for(var g=0;g<u.length;g++){var v=u[g];if(!oe(h,v)&&oe(n,v)){h[v]=n[v];break}}return h}return p}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,h){Od(u,function(d){c[d]=h[d]})}l(ra[0],n,r),l(ra[1],n,o)}function Za(n){return yk({},n)}function yk(n,t){return t&&n&&Od(pk,function(e){oe(t,e)&&(n[e]=t[e])}),n}var Gz=Me(),ke=(function(n){function t(i,r,o){var a=n.call(this,i,r,o)||this;return a.uid=Xa("ec_cpt_model"),a}var e;return G(t,n),t.prototype.init=function(i,r,o){this.mergeDefaultAndTheme(i,o)},t.prototype.mergeDefaultAndTheme=function(i,r){var o=pc(this),a=o?Za(i):{};Se(i,r.getTheme().get(this.mainType)),Se(i,this.getDefaultOption()),o&&qi(i,a,o)},t.prototype.mergeOption=function(i,r){Se(this.option,i,!0);var o=pc(this);o&&qi(this.option,i,o)},t.prototype.optionUpdated=function(i,r){},t.prototype.getDefaultOption=function(){var i=this.constructor;if(!(function(c){return!(!c||!c[nA])})(i))return i.defaultOption;var r=Gz(this);if(!r.defaultOption){for(var o=[],a=i;a;){var s=a.prototype.defaultOption;s&&o.push(s),a=a.superClass}for(var l={},u=o.length-1;u>=0;u--)l=Se(l,o[u],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(i,r){var o=i+"Index",a=i+"Id";return hl(this.ecModel,i,{index:this.get(o,!0),id:this.get(a,!0)},r)},t.prototype.getBoxLayoutParams=function(){return fk(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(i){this.option.zlevel=i},t.protoInitialize=((e=t.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",void(e.componentIndex=0)),t})(Oe);iA(ke,Oe),Af(ke),(function(n){var t={};n.registerSubTypeDefaulter=function(e,i){var r=Ri(e);t[r.main]=i},n.determineSubType=function(e,i){var r=i.type;if(!r){var o=Ri(e).main;n.hasSubTypes(e)&&t[o]&&(r=t[o](i))}return r}})(ke),(function(n,t){function e(i,r){return i[r]||(i[r]={predecessor:[],successor:[]}),i[r]}n.topologicalTravel=function(i,r,o,a){if(i.length){var s=(function(v){var y={},m=[];return k(v,function(x){var _=e(y,x),b=(function(w,S){var M=[];return k(w,function(I){be(S,I)>=0&&M.push(I)}),M})(_.originalDeps=t(x),v);_.entryCount=b.length,_.entryCount===0&&m.push(x),k(b,function(w){be(_.predecessor,w)<0&&_.predecessor.push(w);var S=e(y,w);be(S.successor,w)<0&&S.successor.push(x)})}),{graph:y,noEntryList:m}})(r),l=s.graph,u=s.noEntryList,c={};for(k(i,function(v){c[v]=!0});u.length;){var h=u.pop(),d=l[h],p=!!c[h];p&&(o.call(a,h,d.originalDeps.slice()),delete c[h]),k(d.successor,p?g:f)}k(c,function(){var v="";throw new Error(v)})}function f(v){l[v].entryCount--,l[v].entryCount===0&&u.push(v)}function g(v){c[v]=!0,f(v)}}})(ke,function(n){var t=[];return k(ke.getClassesByMainType(n),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=K(t,function(e){return Ri(e).main}),n!=="dataset"&&be(t,"dataset")<=0&&t.unshift("dataset"),t});var H={color:{},darkColor:{},size:{}},vt=H.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)"};for(Or in X(vt,{primary:vt.neutral80,secondary:vt.neutral70,tertiary:vt.neutral60,quaternary:vt.neutral50,disabled:vt.neutral20,border:vt.neutral30,borderTint:vt.neutral20,borderShade:vt.neutral40,background:vt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:vt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:vt.neutral70,axisLineTint:vt.neutral40,axisTick:vt.neutral70,axisTickMinor:vt.neutral60,axisLabel:vt.neutral70,axisSplitLine:vt.neutral15,axisMinorSplitLine:vt.neutral05}),vt)vt.hasOwnProperty(Or)&&(Kg=vt[Or],Or==="theme"?H.darkColor.theme=vt.theme.slice():Or==="highlight"?H.darkColor.highlight="rgba(255,231,130,0.4)":Or.indexOf("accent")===0?H.darkColor[Or]=dr(Kg,null,function(n){return .5*n},function(n){return Math.min(1,1.3-n)}):H.darkColor[Or]=dr(Kg,null,function(n){return .9*n},function(n){return 1-Math.pow(n,1.5)}));var Kg,Or;H.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var mk="";typeof navigator<"u"&&(mk=navigator.platform||"");var os="rgba(0, 0, 0, 0.2)",xk=H.color.theme[0],Fz=dr(xk,null,null,.9),_k={darkMode:"auto",colorBy:"series",color:H.color.theme,gradientColor:[Fz,xk],aria:{decal:{decals:[{color:os,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:os,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:os,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:os,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:os,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:os,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:mk.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},xp=1,bk=2,ii=3,wk=Me();function Sk(n,t,e){var i={},r=fx(t);if(!r||!n)return i;var o,a,s=[],l=[],u=t.ecModel,c=wk(u).datasetMap,h=r.uid+"_"+e.seriesLayoutBy;k(n=n.slice(),function(g,v){var y=fe(g)?g:n[v]={name:g};y.type==="ordinal"&&o==null&&(o=v,a=f(y)),i[y.name]=[]});var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(g,v,y){for(var m=0;m<y;m++)g.push(v+m)}function f(g){var v=g.dimsDef;return v?v.length:1}return k(n,function(g,v){var y=g.name,m=f(g);if(o==null){var x=d.valueWayDim;p(i[y],x,m),p(l,x,m),d.valueWayDim+=m}else o===v?(p(i[y],0,m),p(s,0,m)):(x=d.categoryWayDim,p(i[y],x,m),p(l,x,m),d.categoryWayDim+=m)}),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function px(n,t,e){var i={};if(!fx(n))return i;var r,o=t.sourceFormat,a=t.dimensionsDefine;o!==On&&o!==di||k(a,function(u,c){(fe(u)?u.name:u)==="name"&&(r=c)});var s=(function(){for(var u={},c={},h=[],d=0,p=Math.min(5,e);d<p;d++){var f=Ik(t.data,o,t.seriesLayoutBy,a,t.startIndex,d);h.push(f);var g=f===ii;if(g&&u.v==null&&d!==r&&(u.v=d),(u.n==null||u.n===u.v||!g&&h[u.n]===ii)&&(u.n=d),v(u)&&h[u.n]!==ii)return u;g||(f===bk&&c.v==null&&d!==r&&(c.v=d),c.n!=null&&c.n!==c.v||(c.n=d))}function v(y){return y.v!=null&&y.n!=null}return v(u)?u:v(c)?c:null})();if(s){i.value=[s.v];var l=r??s.n;i.itemName=[l],i.seriesName=[l]}return i}function fx(n){if(!n.get("data",!0))return hl(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},pt).models[0]}function Mk(n,t){return Ik(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,t)}function Ik(n,t,e,i,r,o){var a,s,l;if(vn(n))return ii;if(i){var u=i[o];fe(u)?(s=u.name,l=u.type):te(u)&&(s=u)}if(l!=null)return l==="ordinal"?xp:ii;if(t===Ht){var c=n;if(e===Wa){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if((a=m(h[r+d]))!=null)return a}else for(d=0;d<c.length&&d<5;d++){var p=c[r+d];if(p&&(a=m(p[o]))!=null)return a}}else if(t===On){var f=n;if(!s)return ii;for(d=0;d<f.length&&d<5;d++)if((v=f[d])&&(a=m(v[s]))!=null)return a}else if(t===di){if(!s||!(h=n[s])||vn(h))return ii;for(d=0;d<h.length&&d<5;d++)if((a=m(h[d]))!=null)return a}else if(t===Pn){var g=n;for(d=0;d<g.length&&d<5;d++){var v,y=cl(v=g[d]);if(!q(y))return ii;if((a=m(y[o]))!=null)return a}}function m(x){var _=te(x);return x!=null&&isFinite(Number(x))&&x!==""?_?bk:ii:_&&x!=="-"?xp:void 0}return ii}var Um=re(),yh,Bl,cw,hw=Me(),Hz=Me(),gx=(function(){function n(){}return n.prototype.getColorFromPalette=function(t,e,i){var r=$e(this.get("color",!0)),o=this.get("colorLayer",!0);return Tk(this,hw,r,o,t,e,i)},n.prototype.clearColorPalette=function(){(function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}})(this,hw)},n})();function Ym(n,t,e,i){var r=$e(n.get(["aria","decal","decals"]));return Tk(n,Hz,r,null,t,e,i)}function Tk(n,t,e,i,r,o,a){var s=t(o=o||n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=a!=null&&i?(function(d,p){for(var f=d.length,g=0;g<f;g++)if(d[g].length>p)return d[g];return d[f-1]})(i,a):e;if((c=c||e)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}var dw="\0_ec_inner",vx=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.init=function(e,i,r,o,a,s){o=o||{},this.option=null,this._theme=new Oe(o),this._locale=new Oe(a),this._optionManager=s},t.prototype.setOption=function(e,i,r){var o=gw(i);this._optionManager.setOption(e,r,o),this._resetOption(null,o)},t.prototype.resetOption=function(e,i){return this._resetOption(e,gw(i))},t.prototype._resetOption=function(e,i){var r=!1,o=this._optionManager;if(!e||e==="recreate"){var a=o.mountOption(e==="recreate");this.option&&e!=="recreate"?(this.restoreData(),this._mergeOption(a,i)):cw(this,a),r=!0}if(e!=="timeline"&&e!=="media"||this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=o.getTimelineOption(this);s&&(r=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=o.getMediaOption(this);l.length&&k(l,function(u){r=!0,this._mergeOption(u,i)},this)}return r},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var r=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=re(),u=i&&i.replaceMergeMainTypeMap;wk(this).datasetMap=re(),k(e,function(c,h){c!=null&&(ke.hasClass(h)?h&&(s.push(h),l.set(h,!0)):r[h]=r[h]==null?se(c):Se(r[h],c,!0))}),u&&u.each(function(c,h){ke.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ke.topologicalTravel(s,ke.getAllClassMainTypes(),function(c){var h=(function(x,_,b){var w=Um.get(_);if(!w)return b;var S=w(x);return S?b.concat(S):b})(this,c,$e(e[c])),d=o.get(c),p=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",f=KD(d,h,p);(function(x,_,b){k(x,function(w){var S=w.newOption;fe(S)&&(w.keyInfo.mainType=_,w.keyInfo.subType=(function(M,I,T,C){return I.type?I.type:T?T.subType:C.determineSubType(M,I)})(_,S,w.existing,b))})})(f,c,ke),r[c]=null,o.set(c,null),a.set(c,0);var g,v=[],y=[],m=0;k(f,function(x,_){var b=x.existing,w=x.newOption;if(w){var S=c==="series",M=ke.getClass(c,x.keyInfo.subType,!S);if(!M)return;if(c==="tooltip"){if(g)return;g=!0}if(b&&b.constructor===M)b.name=x.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var I=X({componentIndex:_},x.keyInfo);X(b=new M(w,this,this,I),I),x.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}else b&&(b.mergeOption({},this),b.optionUpdated({},!1));b?(v.push(b.option),y.push(b),m++):(v.push(void 0),y.push(void 0))},this),r[c]=v,o.set(c,y),a.set(c,m),c==="series"&&yh(this)},this),this._seriesIndices||yh(this)},t.prototype.getOption=function(){var e=se(this.option);return k(e,function(i,r){if(ke.hasClass(r)){for(var o=$e(i),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!vu(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,e[r]=o}}),delete e[dw],e},t.prototype.setTheme=function(e){this._theme=new Oe(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var r=this._componentsMap.get(e);if(r){var o=r[i||0];if(o)return o;if(i==null){for(var a=0;a<r.length;a++)if(r[a])return r[a]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var r,o=e.index,a=e.id,s=e.name,l=this._componentsMap.get(i);return l&&l.length?(o!=null?(r=[],k($e(o),function(u){l[u]&&r.push(l[u])})):r=a!=null?pw("id",a,l):s!=null?pw("name",s,l):Ye(l,function(u){return!!u}),fw(r,e)):[]},t.prototype.findComponents=function(e){var i,r,o,a,s,l=e.query,u=e.mainType,c=(r=u+"Index",o=u+"Id",a=u+"Name",!(i=l)||i[r]==null&&i[o]==null&&i[a]==null?null:{mainType:u,index:i[r],id:i[o],name:i[a]}),h=c?this.queryComponents(c):Ye(this._componentsMap.get(u),function(d){return!!d});return s=fw(h,e),e.filter?Ye(s,e.filter):s},t.prototype.eachComponent=function(e,i,r){var o=this._componentsMap;if(le(e)){var a=i,s=e;o.each(function(h,d){for(var p=0;h&&p<h.length;p++){var f=h[p];f&&s.call(a,d,f,f.componentIndex)}})}else for(var l=te(e)?o.get(e):fe(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&i.call(r,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Tt(e,null);return Ye(this._componentsMap.get("series"),function(r){return!!r&&i!=null&&r.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Ye(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return Ye(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){Bl(this),k(this._seriesIndices,function(r){var o=this._componentsMap.get("series")[r];e.call(i,o,r)},this)},t.prototype.eachRawSeries=function(e,i){k(this._componentsMap.get("series"),function(r){r&&e.call(i,r,r.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,r){Bl(this),k(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===e&&i.call(r,a,o)},this)},t.prototype.eachRawSeriesByType=function(e,i,r){return k(this.getSeriesByType(e),i,r)},t.prototype.isSeriesFiltered=function(e){return Bl(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){Bl(this);var r=[];k(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];e.call(i,a,o)&&r.push(o)},this),this._seriesIndices=r,this._seriesIndicesMap=re(r)},t.prototype.restoreData=function(e){yh(this);var i=this._componentsMap,r=[];i.each(function(o,a){ke.hasClass(a)&&r.push(a)}),ke.topologicalTravel(r,ke.getAllClassMainTypes(),function(o){k(i.get(o),function(a){!a||o==="series"&&(function(s,l){if(l){var u=l.seriesIndex,c=l.seriesId,h=l.seriesName;return u!=null&&s.componentIndex!==u||c!=null&&s.id!==c||h!=null&&s.name!==h}})(a,e)||a.restoreData()})})},t.internalField=(yh=function(e){var i=e._seriesIndices=[];k(e._componentsMap.get("series"),function(r){r&&i.push(r.componentIndex)}),e._seriesIndicesMap=re(i)},Bl=function(e){},void(cw=function(e,i){e.option={},e.option[dw]=1,e._componentsMap=re({series:[]}),e._componentsCount=re();var r=i.aria;fe(r)&&r.enabled==null&&(r.enabled=!0),(function(o,a){var s=o.color&&!o.colorLayer;k(a,function(l,u){u==="colorLayer"&&s||u==="color"&&o.color||ke.hasClass(u)||(typeof l=="object"?o[u]=o[u]?Se(o[u],l,!1):se(l):o[u]==null&&(o[u]=l))})})(i,e._theme.option),Se(i,_k,!1),e._mergeOption(i,null)})),t})(Oe);function pw(n,t,e){if(q(t)){var i=re();return k(t,function(o){o!=null&&Tt(o,null)!=null&&i.set(o,!0)}),Ye(e,function(o){return o&&i.get(o[n])})}var r=Tt(t,null);return Ye(e,function(o){return o&&r!=null&&o[n]===r})}function fw(n,t){return t.hasOwnProperty("subType")?Ye(n,function(e){return e&&e.subType===t.subType}):n}function gw(n){var t=re();return n&&k($e(n.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}xt(vx,gx);var Wz=/^(min|max)?(.+)$/,Uz=(function(){function n(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return n.prototype.setOption=function(t,e,i){t&&(k($e(t.series),function(a){a&&a.data&&vn(a.data)&&$u(a.data)}),k($e(t.dataset),function(a){a&&a.source&&vn(a.source)&&$u(a.source)})),t=se(t);var r=this._optionBackup,o=(function(a,s,l){var u,c,h=[],d=a.baseOption,p=a.timeline,f=a.options,g=a.media,v=!!a.media,y=!!(f||p||d&&d.timeline);d?(c=d).timeline||(c.timeline=p):((y||v)&&(a.options=a.media=null),c=a),v&&q(g)&&k(g,function(x){x&&x.option&&(x.query?h.push(x):u||(u=x))});function m(x){k(s,function(_){_(x,l)})}return m(c),k(f,function(x){return m(x)}),k(h,function(x){return m(x.option)}),{baseOption:c,timelineOptions:f||[],mediaDefault:u,mediaList:h}})(t,e,!r);this._newBaseOption=o.baseOption,r?(o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},n.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],se(t?e.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var r=t.getComponent("timeline");r&&(e=se(i[r.getCurrentIndex()]))}return e},n.prototype.getMediaOption=function(t){var e,i,r=this._api.getWidth(),o=this._api.getHeight(),a=this._mediaList,s=this._mediaDefault,l=[],u=[];if(!a.length&&!s)return u;for(var c=0,h=a.length;c<h;c++)Yz(a[c].query,r,o)&&l.push(c);return!l.length&&s&&(l=[-1]),l.length&&(e=l,i=this._currentMediaIndices,e.join(",")!==i.join(","))&&(u=K(l,function(d){return se(d===-1?s.option:a[d].option)})),this._currentMediaIndices=l,u},n})();function Yz(n,t,e){var i={width:t,height:e,aspectratio:t/e},r=!0;return k(n,function(o,a){var s=a.match(Wz);if(s&&s[1]&&s[2]){var l=s[1],u=s[2].toLowerCase();(function(c,h,d){return d==="min"?c>=h:d==="max"?c<=h:c===h})(i[u],o,l)||(r=!1)}}),r}var ti=k,Hu=fe,vw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $g(n){var t=n&&n.itemStyle;if(t)for(var e=0,i=vw.length;e<i;e++){var r=vw[e],o=t.normal,a=t.emphasis;o&&o[r]&&(n[r]=n[r]||{},n[r].normal?Se(n[r].normal,o[r]):n[r].normal=o[r],o[r]=null),a&&a[r]&&(n[r]=n[r]||{},n[r].emphasis?Se(n[r].emphasis,a[r]):n[r].emphasis=a[r],a[r]=null)}}function on(n,t,e){if(n&&n[t]&&(n[t].normal||n[t].emphasis)){var i=n[t].normal,r=n[t].emphasis;i&&(e?(n[t].normal=n[t].emphasis=null,pe(n[t],i)):n[t]=i),r&&(n.emphasis=n.emphasis||{},n.emphasis[t]=r,r.focus&&(n.emphasis.focus=r.focus),r.blurScope&&(n.emphasis.blurScope=r.blurScope))}}function wu(n){on(n,"itemStyle"),on(n,"lineStyle"),on(n,"areaStyle"),on(n,"label"),on(n,"labelLine"),on(n,"upperLabel"),on(n,"edgeLabel")}function St(n,t){var e=Hu(n)&&n[t],i=Hu(e)&&e.textStyle;if(i)for(var r=0,o=yb.length;r<o;r++){var a=yb[r];i.hasOwnProperty(a)&&(e[a]=i[a])}}function Rn(n){n&&(wu(n),St(n,"label"),n.emphasis&&St(n.emphasis,"label"))}function er(n){return q(n)?n:n?[n]:[]}function yw(n){return(q(n)?n[0]:n)||{}}function Xz(n,t){ti(er(n.series),function(i){Hu(i)&&(function(r){if(Hu(r)){$g(r),wu(r),St(r,"label"),St(r,"upperLabel"),St(r,"edgeLabel"),r.emphasis&&(St(r.emphasis,"label"),St(r.emphasis,"upperLabel"),St(r.emphasis,"edgeLabel"));var o=r.markPoint;o&&($g(o),Rn(o));var a=r.markLine;a&&($g(a),Rn(a));var s=r.markArea;s&&Rn(s);var l=r.data;if(r.type==="graph"){l=l||r.nodes;var u=r.links||r.edges;if(u&&!vn(u))for(var c=0;c<u.length;c++)Rn(u[c]);k(r.categories,function(p){wu(p)})}if(l&&!vn(l))for(c=0;c<l.length;c++)Rn(l[c]);if((o=r.markPoint)&&o.data){var h=o.data;for(c=0;c<h.length;c++)Rn(h[c])}if((a=r.markLine)&&a.data){var d=a.data;for(c=0;c<d.length;c++)q(d[c])?(Rn(d[c][0]),Rn(d[c][1])):Rn(d[c])}r.type==="gauge"?(St(r,"axisLabel"),St(r,"title"),St(r,"detail")):r.type==="treemap"?(on(r.breadcrumb,"itemStyle"),k(r.levels,function(p){wu(p)})):r.type==="tree"&&wu(r.leaves)}})(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ti(e,function(i){ti(er(n[i]),function(r){r&&(St(r,"axisLabel"),St(r.axisPointer,"label"))})}),ti(er(n.parallel),function(i){var r=i&&i.parallelAxisDefault;St(r,"axisLabel"),St(r&&r.axisPointer,"label")}),ti(er(n.calendar),function(i){on(i,"itemStyle"),St(i,"dayLabel"),St(i,"monthLabel"),St(i,"yearLabel")}),ti(er(n.radar),function(i){St(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),ti(er(n.geo),function(i){Hu(i)&&(Rn(i),ti(er(i.regions),function(r){Rn(r)}))}),ti(er(n.timeline),function(i){Rn(i),on(i,"label"),on(i,"itemStyle"),on(i,"controlStyle",!0);var r=i.data;q(r)&&k(r,function(o){fe(o)&&(on(o,"label"),on(o,"itemStyle"))})}),ti(er(n.toolbox),function(i){on(i,"iconStyle"),ti(i.feature,function(r){on(r,"iconStyle")})}),St(yw(n.axisPointer),"label"),St(yw(n.tooltip).axisPointer,"label")}function mw(n){n&&k(Zz,function(t){t[0]in n&&!(t[1]in n)&&(n[t[1]]=n[t[0]])})}var Zz=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],qz=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Jg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Vl(n){var t=n&&n.itemStyle;if(t)for(var e=0;e<Jg.length;e++){var i=Jg[e][1],r=Jg[e][0];t[i]!=null&&(t[r]=t[i])}}function xw(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&(n.edgeDistance=n.margin)}function _w(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay)}function Ck(n,t){if(n)for(var e=0;e<n.length;e++)t(n[e]),n[e]&&Ck(n[e].children,t)}function Dk(n,t){Xz(n,t),n.series=$e(n.series),k(n.series,function(e){if(fe(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){if(e.clockWise!=null&&(e.clockwise=e.clockWise),xw(e.label),(a=e.data)&&!vn(a))for(var r=0;r<a.length;r++)xw(a[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=(function(l,u){for(var c=u.split(","),h=l,d=0;d<c.length&&(h=h&&h[c[d]])!=null;d++);return h})(e,"pointer.color");o!=null&&(function(l,u,c,h){for(var d,p=u.split(","),f=l,g=0;g<p.length-1;g++)f[d=p[g]]==null&&(f[d]={}),f=f[d];(h||f[p[g]]==null)&&(f[p[g]]=c)})(e,"itemStyle.color",o)}else if(i==="bar"){var a;if(Vl(e),Vl(e.backgroundStyle),Vl(e.emphasis),(a=e.data)&&!vn(a))for(r=0;r<a.length;r++)typeof a[r]=="object"&&(Vl(a[r]),Vl(a[r]&&a[r].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),_w(e),Ck(e.data,_w)}else i==="graph"||i==="sankey"?(function(l){l&&l.focusNodeAdjacency!=null&&(l.emphasis=l.emphasis||{},l.emphasis.focus==null&&(l.emphasis.focus="adjacency"))})(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&pe(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),mw(e)}}),n.dataRange&&(n.visualMap=n.dataRange),k(qz,function(e){var i=n[e];i&&(q(i)||(i=[i]),k(i,function(r){mw(r)}))})}var jz=Bc(function(n){var t=re();n.eachSeries(function(e){var i=e.get("stack");if(i){var r=t.get(i)||t.set(i,[]),o=e.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get("stackOrder")||"seriesAsc")==="seriesDesc"&&e.reverse(),k(e,function(i,r){i.data.setCalculationInfo("stackedOnSeries",r>0?e[r-1].seriesModel:null)}),(function(i){k(i,function(r,o){var a=[],s=[NaN,NaN],l=[r.stackResultDimension,r.stackedOverDimension],u=r.data,c=r.isStackedByIndex,h=r.seriesModel.get("stackStrategy")||"samesign";u.modify(l,function(d,p,f){var g,v,y=u.get(r.stackedDimension,f);if(isNaN(y))return s;c?v=u.getRawIndex(f):g=u.get(r.stackedByDimension,f);for(var m=NaN,x=o-1;x>=0;x--){var _=i[x];if(c||(v=_.data.rawIndexOf(_.stackedByDimension,g)),v>=0){var b=_.data.getByRawIndex(_.stackResultDimension,v);if(h==="all"||h==="positive"&&b>0||h==="negative"&&b<0||h==="samesign"&&y>=0&&b>0||h==="samesign"&&y<=0&&b<0){y=Uo(y,b),m=b;break}}}return a[0]=y,a[1]=m,a})})})(e))})}),Gl,as,ss,ls,bw,ww,Gf=function(n){this.data=n.data||(n.sourceFormat===di?{}:[]),this.sourceFormat=n.sourceFormat||fA,this.seriesLayoutBy=n.seriesLayoutBy||oi,this.startIndex=n.startIndex||0,this.dimensionsDetectedCount=n.dimensionsDetectedCount,this.metaRawOption=n.metaRawOption;var t=this.dimensionsDefine=n.dimensionsDefine;if(t)for(var e=0;e<t.length;e++){var i=t[e];i.type==null&&Mk(this,e)===xp&&(i.type="ordinal")}};function yx(n){return n instanceof Gf}function Xm(n,t,e){e=e||Ak(n);var i=t.seriesLayoutBy,r=(function(o,a,s,l,u){var c,h;if(!o)return{dimensionsDefine:Sw(u),startIndex:h,dimensionsDetectedCount:c};if(a===Ht){var d=o;l==="auto"||l==null?Mw(function(f){f!=null&&f!=="-"&&(te(f)?h==null&&(h=1):h=0)},s,d,10):h=Ve(l)?l:l?1:0,u||h!==1||(u=[],Mw(function(f,g){u[g]=f!=null?f+"":""},s,d,1/0)),c=u?u.length:s===Wa?d.length:d[0]?d[0].length:null}else if(a===On)u||(u=(function(f){for(var g,v=0;v<f.length&&!(g=f[v++]););if(g)return Re(g)})(o));else if(a===di)u||(u=[],k(o,function(f,g){u.push(g)}));else if(a===Pn){var p=cl(o[0]);c=q(p)&&p.length||1}return{startIndex:h,dimensionsDefine:Sw(u),dimensionsDetectedCount:c}})(n,e,i,t.sourceHeader,t.dimensions);return new Gf({data:n,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:se(t)})}function mx(n){return new Gf({data:n,sourceFormat:vn(n)?io:Pn})}function Ak(n){var t=fA;if(vn(n))t=io;else if(q(n)){n.length===0&&(t=Ht);for(var e=0,i=n.length;e<i;e++){var r=n[e];if(r!=null){if(q(r)||vn(r)){t=Ht;break}if(fe(r)){t=On;break}}}}else if(fe(n)){for(var o in n)if(oe(n,o)&&qt(n[o])){t=di;break}}return t}function Sw(n){if(n){var t=re();return K(n,function(e,i){var r={name:(e=fe(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+="",r.displayName==null&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r})}}function Mw(n,t,e,i){if(t===Wa)for(var r=0;r<e.length&&r<i;r++)n(e[r]?e[r][0]:null,r);else{var o=e[0]||[];for(r=0;r<o.length&&r<i;r++)n(o[r],r)}}function kk(n){var t=n.sourceFormat;return t===On||t===di}var Lk=(function(){function n(e,i){var r=yx(e)?e:mx(e);this._source=r;var o=this._data=r.data,a=r.sourceFormat;r.seriesLayoutBy,a===io&&(this._offset=0,this._dimSize=i,this._data=o),ww(this,o,r)}var t;return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(e,i){},n.prototype.appendData=function(e){},n.prototype.clean=function(){},n.protoInitialize=((t=n.prototype).pure=!1,void(t.persistent=!0)),n.internalField=(function(){var e;ww=function(s,l,u){var c=u.sourceFormat,h=u.seriesLayoutBy,d=u.startIndex,p=u.dimensionsDefine,f=bw[xx(c,h)];if(X(s,f),c===io)s.getItem=i,s.count=o,s.fillStorage=r;else{var g=Pk(c,h);s.getItem=ie(g,null,l,d,p);var v=Ok(c,h);s.count=ie(v,null,l,d,p)}};var i=function(s,l){s-=this._offset,l=l||[];for(var u=this._data,c=this._dimSize,h=c*s,d=0;d<c;d++)l[d]=u[h+d];return l},r=function(s,l,u,c){for(var h=this._data,d=this._dimSize,p=0;p<d;p++){for(var f=c[p],g=f[0]==null?1/0:f[0],v=f[1]==null?-1/0:f[1],y=l-s,m=u[p],x=0;x<y;x++){var _=h[x*d+p];m[s+x]=_,_<g&&(g=_),_>v&&(v=_)}f[0]=g,f[1]=v}},o=function(){return this._data?this._data.length/this._dimSize:0};function a(s){for(var l=0;l<s.length;l++)this._data.push(s[l])}(e={})[Ht+"_"+oi]={pure:!0,appendData:a},e[Ht+"_"+Wa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[On]={pure:!0,appendData:a},e[di]={pure:!0,appendData:function(s){var l=this._data;k(s,function(u,c){for(var h=l[c]||(l[c]=[]),d=0;d<(u||[]).length;d++)h.push(u[d])})}},e[Pn]={appendData:a},e[io]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},bw=e})(),n})(),mh=function(n){q(n)||ZD("series.data or dataset.source must be an array.")},Iw=((Gl={})[Ht+"_"+oi]=mh,Gl[Ht+"_"+Wa]=mh,Gl[On]=mh,Gl[di]=function(n,t){for(var e=0;e<t.length;e++)t[e].name==null&&ZD("dimension name must not be null/undefined.")},Gl[Pn]=mh,function(n,t,e,i){return n[i]}),Kz=((as={})[Ht+"_"+oi]=function(n,t,e,i){return n[i+t]},as[Ht+"_"+Wa]=function(n,t,e,i,r){i+=t;for(var o=r||[],a=n,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},as[On]=Iw,as[di]=function(n,t,e,i,r){for(var o=r||[],a=0;a<e.length;a++){var s=e[a].name,l=s!=null?n[s]:null;o[a]=l?l[i]:null}return o},as[Pn]=Iw,as);function Pk(n,t){var e=Kz[xx(n,t)];return e}var Tw=function(n,t,e){return n.length},$z=((ss={})[Ht+"_"+oi]=function(n,t,e){return Math.max(0,n.length-t)},ss[Ht+"_"+Wa]=function(n,t,e){var i=n[0];return i?Math.max(0,i.length-t):0},ss[On]=Tw,ss[di]=function(n,t,e){var i=e[0].name,r=i!=null?n[i]:null;return r?r.length:0},ss[Pn]=Tw,ss);function Ok(n,t){var e=$z[xx(n,t)];return e}var Qg=function(n,t,e){return n[t]},Jz=((ls={})[Ht]=Qg,ls[On]=function(n,t,e){return n[e]},ls[di]=Qg,ls[Pn]=function(n,t,e){var i=cl(n);return i instanceof Array?i[t]:i},ls[io]=Qg,ls);function Rk(n){var t=Jz[n];return t}function xx(n,t){return n===Ht?n+"_"+t:n}function $s(n,t,e){if(n){var i=n.getRawDataItem(t);if(i!=null){var r=n.getStore(),o=r.getSource().sourceFormat;if(e!=null){var a=n.getDimensionIndex(e),s=r.getDimensionProperty(a);return Rk(o)(i,a,s)}var l=i;return o===Pn&&(l=cl(i)),l}}}var Qz=/\{@(.+?)\}/g,Ff=(function(){function n(){}return n.prototype.getDataParams=function(t,e){var i=this.getData(e),r=this.getRawValue(t,e),o=i.getRawIndex(t),a=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,d=h==="series",p=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:o,data:s,dataType:e,value:r,color:u,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(t,e,i,r,o,a){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);return a&&(l.value=a.interpolatedValue),r!=null&&q(l.value)&&(l.value=l.value[r]),o||(o=s.getItemModel(t).get(e==="normal"?["label","formatter"]:[e,"label","formatter"])),le(o)?(l.status=e,l.dimensionIndex=r,o(l)):te(o)?dx(o,l).replace(Qz,function(u,c){var h=c.length,d=c;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=$s(s,t,d);if(a&&q(a.interpolatedValue)){var f=s.getDimensionIndex(d);f>=0&&(p=a.interpolatedValue[f])}return p!=null?p+"":""}):void 0},n.prototype.getRawValue=function(t,e){return $s(this.getData(e),t)},n.prototype.formatTooltip=function(t,e,i){},n})();function Cw(n){var t,e;return fe(n)?n.type&&(e=n):t=n,{text:t,frag:e}}function Wu(n){return new e5(n)}var e5=(function(){function n(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var e,i=this._upstream,r=t&&t.skip;if(this._dirty&&i){var o=this.context;o.data=o.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var a,s=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(m){return!(m>=1)&&(m=1),m}s===u&&l===c||(e="reset"),(this._dirty||e==="reset")&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(a||p<f)){var g=this._progress;if(q(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],p,f,u,c);else this._doProgress(g,p,f,u,c)}this._dueIndex=f;var y=this._settedOutputEnd!=null?this._settedOutputEnd:f;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(t,e,i,r,o){Dw.reset(e,i,r,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Dw.next},this.context)},n.prototype._doReset=function(t){var e,i;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),q(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),i},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},n})(),Dw=(function(){var n,t,e,i,r,o={reset:function(l,u,c,h){t=l,n=u,e=c,i=h,r=Math.ceil(i/e),o.next=e>1&&i>0?s:a}};return o;function a(){return t<n?t++:null}function s(){var l=t%r*e+Math.ceil(t/r),u=t>=n?null:l<i?l:t;return t++,u}})();function oo(n,t){var e=t&&t.type;return e==="ordinal"?n:(e!=="time"||Ve(n)||n==null||n==="-"||(n=+Ki(n)),n==null||n===""?NaN:Number(n))}var t5=re({number:function(n){return parseFloat(n)},time:function(n){return+Ki(n)},trim:function(n){return te(n)?Cn(n):n}});function Nk(n){return t5.get(n)}var Ek={lt:function(n,t){return n<t},lte:function(n,t){return n<=t},gt:function(n,t){return n>t},gte:function(n,t){return n>=t}},n5=(function(){function n(t,e){if(!Ve(e)){var i="";Ue(i)}this._opFn=Ek[t],this._rvalFloat=Xi(e)}return n.prototype.evaluate=function(t){return Ve(t)?this._opFn(t,this._rvalFloat):this._opFn(Xi(t),this._rvalFloat)},n})(),zk=(function(){function n(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return n.prototype.evaluate=function(t,e){var i=Ve(t)?t:Xi(t),r=Ve(e)?e:Xi(e),o=isNaN(i),a=isNaN(r);if(o&&(i=this._incomparable),a&&(r=this._incomparable),o&&a){var s=te(t),l=te(e);s&&(i=l?t:0),l&&(r=s?e:0)}return i<r?this._resultLT:i>r?-this._resultLT:0},n})(),i5=(function(){function n(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Xi(e)}return n.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i===this._rvalTypeof||i!=="number"&&this._rvalTypeof!=="number"||(e=Xi(t)===this._rvalFloat)}return this._isEQ?e:!e},n})();function r5(n,t){return n==="eq"||n==="ne"?new i5(n==="eq",t):oe(Ek,n)?new n5(n,t):null}function Bk(n){var t="",e=-1/0,i=-1/0,r=1/0,o=1/0;return n&&(n.g!=null&&(t+="G"+n.g,e=n.g),n.ge!=null&&(t+="GE"+n.ge,i=n.ge),n.l!=null&&(t+="L"+n.l,r=n.l),n.le!=null&&(t+="LE"+n.le,o=n.le)),{key:t,g:e,ge:i,l:r,le:o}}function Vk(n,t){return t>n.g&&t>=n.ge&&t<n.l&&t<=n.le}var o5=(function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(t){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(t){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(t,e){},n.prototype.retrieveValueFromItem=function(t,e){},n.prototype.convertValue=function(t,e){return oo(t,e)},n})();function a5(n){var t=n.sourceFormat;if(!_x(t)){var e="";Ue(e)}return n.data}function s5(n){var t=n.sourceFormat,e=n.data;if(!_x(t)){var i="";Ue(i)}if(t===Ht){for(var r=[],o=0,a=e.length;o<a;o++)r.push(e[o].slice());return r}if(t===On){for(r=[],o=0,a=e.length;o<a;o++)r.push(X({},e[o]));return r}}function l5(n,t,e){if(e!=null)return Ve(e)||!isNaN(e)&&!oe(t,e)?n[e]:oe(t,e)?t[e]:void 0}function u5(n){return se(n)}var Gk=re();function c5(n,t,e,i){var r="";t.length||Ue(r),fe(n)||Ue(r);var o=n.type,a=Gk.get(o);a||Ue(r);var s=K(t,function(u){return(function(c,h){var d=new o5,p=c.data,f=d.sourceFormat=c.sourceFormat,g=c.startIndex,v="";c.seriesLayoutBy!==oi&&Ue(v);var y=[],m={},x=c.dimensionsDefine;if(x)k(x,function(I,T){var C=I.name,D={index:T,name:C,displayName:I.displayName};if(y.push(D),C!=null){var A="";oe(m,C)&&Ue(A),m[C]=D}});else for(var _=0;_<c.dimensionsDetectedCount;_++)y.push({index:_});var b=Pk(f,oi);h.__isBuiltIn&&(d.getRawDataItem=function(I){return b(p,g,y,I)},d.getRawData=ie(a5,null,c)),d.cloneRawData=ie(s5,null,c);var w=Ok(f,oi);d.count=ie(w,null,p,g,y);var S=Rk(f);d.retrieveValue=function(I,T){var C=b(p,g,y,I);return M(C,T)};var M=d.retrieveValueFromItem=function(I,T){if(I!=null){var C=y[T];return C?S(I,T,C.name):void 0}};return d.getDimensionInfo=ie(l5,null,y,m),d.cloneAllDimensionInfo=ie(u5,null,y),d})(u,a)}),l=$e(a.transform({upstream:s[0],upstreamList:s,config:se(n.config)}));return K(l,function(u,c){var h,d="";fe(u)||Ue(d),u.data||Ue(d),_x(Ak(u.data))||Ue(d);var p=t[0];if(p&&c===0&&!u.dimensions){var f=p.startIndex;f&&(u.data=p.data.slice(0,f).concat(u.data)),h={seriesLayoutBy:oi,sourceHeader:f,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:oi,sourceHeader:0,dimensions:u.dimensions};return Xm(u.data,h,null)})}function _x(n){return n===Ht||n===On}var ev,h5=typeof Uint32Array===pl?Array:Uint32Array,d5=typeof Uint16Array===pl?Array:Uint16Array,Fk=typeof Int32Array===pl?Array:Int32Array,Aw=typeof Float64Array===pl?Array:Float64Array,Hk={float:Aw,int:Fk,ordinal:Array,number:Array,time:Aw};function us(n){return n>65535?h5:d5}function p5(n){var t=n.constructor;return t===Array?n.slice():new t(n)}function kw(n,t,e,i,r){var o=Hk[e||"float"];if(r){var a=n[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];n[t]=l}}else n[t]=new o(i)}var Zm=(function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=re()}return n.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),o=this.defaultDimValueGetter=ev[r.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],kk(r),this._dimensions=K(e,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,r=this._dimensions,o=i.get(t);if(o!=null){if(r[o].type===e)return o}else o=r.length;return r[o]={type:e},i.set(t,o),this._chunks[o]=new Hk[e||"float"](this._rawCount),this._rawExtent[o]=[1/0,-1/0],o},n.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],r=this._dimensions[t],o=this._rawExtent,a=r.ordinalOffset||0,s=i.length;a===0&&(o[t]=[1/0,-1/0]);for(var l=o[t],u=a;u<s;u++){var c=i[u]=e.parseAndCollect(i[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}r.ordinalMeta=e,r.ordinalOffset=s,r.type="ordinal"},n.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},n.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},n.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=i),i<r&&this._initDataFromProvider(i,r,!0),[i,r]},n.prototype.appendValues=function(t,e){for(var i=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<o;u++)kw(i,u,(f=r[u]).type,l,!0);for(var c=[],h=s;h<l;h++)for(var d=h-s,p=0;p<o;p++){var f=r[p],g=ev.arrayRows.call(this,t[d]||c,f.property,d,p);i[p][h]=g;var v=a[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(t,e,i){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=K(a,function(m){return m.property}),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=sp()),kw(o,c,h.type,e,i)}if(r.fillStorage)r.fillStorage(t,e,o,l);else for(var d=[],p=t;p<e;p++){d=r.getItem(p,d);for(var f=0;f<s;f++){var g=o[f],v=this._dimValueGetter(d,u[f],p,f);g[p]=v;var y=l[f];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},n.prototype.getValues=function(t,e){var i=[],r=[];if(e==null){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)r.push(o)}else r=t;o=0;for(var a=r.length;o<a;o++)i.push(this.get(r[o],e));return i},n.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},n.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(e+=o)}return e},n.prototype.getMedian=function(t){var e=[];this.each([t],function(r){isNaN(r)||e.push(r)}),Ft(e);var i=this.count();return i===0?0:i%2==1?e[(i-1)/2]:(e[i/2]+e[i/2-1])/2},n.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var r=0,o=this._count-1;r<=o;){var a=(r+o)/2|0;if(e[a]<t)r=a+1;else{if(!(e[a]>t))return a;o=a-1}}return-1},n.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,r=this._count;if(i===Array){t=new i(r);for(var o=0;o<r;o++)t[o]=e[o]}else t=new i(e.buffer,0,r)}else for(t=new(i=us(this._rawCount))(this.count()),o=0;o<t.length;o++)t[o]=o;return t},n.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),r=i.count(),o=new(us(i._rawCount))(r),a=[],s=t.length,l=0,u=t[0],c=i._chunks,h=0;h<r;h++){var d=void 0,p=i.getRawIndex(h);if(s===0)d=e(h);else if(s===1)d=e(c[u][p],h);else{for(var f=0;f<s;f++)a[f]=c[t[f]][p];a[f]=h,d=e.apply(null,a)}d&&(o[l++]=p)}return l<r&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},n.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var r=Re(t),o=r.length;if(!o)return this;var a=e.count(),s=new(us(e._rawCount))(a),l=0,u=r[0],c=t[u][0],h=t[u][1],d=e._chunks,p=!1;if(!e._indices){var f=0;if(o===1){for(var g=d[r[0]],v=0;v<i;v++)((_=g[v])>=c&&_<=h||isNaN(_))&&(s[l++]=f),f++;p=!0}else if(o===2){g=d[r[0]];var y=d[r[1]],m=t[r[1]][0],x=t[r[1]][1];for(v=0;v<i;v++){var _=g[v],b=y[v];(_>=c&&_<=h||isNaN(_))&&(b>=m&&b<=x||isNaN(b))&&(s[l++]=f),f++}p=!0}}if(!p)if(o===1)for(v=0;v<a;v++){var w=e.getRawIndex(v);((_=d[r[0]][w])>=c&&_<=h||isNaN(_))&&(s[l++]=w)}else for(v=0;v<a;v++){for(var S=!0,M=(w=e.getRawIndex(v),0);M<o;M++){var I=r[M];((_=d[I][w])<t[I][0]||_>t[I][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(v))}return l<a&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},n.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},n.prototype.modify=function(t,e){this._updateDims(this,t,e)},n.prototype._updateDims=function(t,e,i){for(var r=t._chunks,o=[],a=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=sp();for(var h=0;h<s;h++){for(var d=t.getRawIndex(h),p=0;p<a;p++)l[p]=r[e[p]][d];l[a]=h;var f=i&&i.apply(null,l);if(f!=null)for(typeof f!="object"&&(o[0]=f,f=o),c=0;c<f.length;c++){var g=e[c],v=f[c],y=u[g],m=r[g];m&&(m[d]=v),v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}},n.prototype.lttbDownSample=function(t,e){var i,r,o,a=this.clone([t],!0),s=a._chunks[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),d=new(us(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var p=1;p<l-1;p+=c){for(var f=Math.min(p+c,l-1),g=Math.min(p+2*c,l),v=(g+f)/2,y=0,m=f;m<g;m++){var x=s[T=this.getRawIndex(m)];isNaN(x)||(y+=x)}y/=g-f;var _=p,b=Math.min(p+c,l),w=p-1,S=s[h];i=-1,o=_;var M=-1,I=0;for(m=_;m<b;m++){var T;x=s[T=this.getRawIndex(m)],isNaN(x)?(I++,M<0&&(M=T)):(r=Math.abs((w-v)*(x-S)-(w-m)*(y-S)))>i&&(i=r,o=T)}I>0&&I<b-_&&(d[u++]=Math.min(M,o),o=Math.max(M,o)),d[u++]=o,h=o}return d[u++]=this.getRawIndex(l-1),a._count=u,a._indices=d,a.getRawIndex=this._getRawIdx,a},n.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),r=i._chunks,o=Math.floor(1/e),a=r[t],s=this.count(),l=new(us(this._rawCount))(2*Math.ceil(s/o)),u=0,c=0;c<s;c+=o){var h=c,d=a[this.getRawIndex(h)],p=c,f=a[this.getRawIndex(p)],g=o;c+o>s&&(g=s-c);for(var v=0;v<g;v++){var y=a[this.getRawIndex(c+v)];y<d&&(d=y,h=c+v),y>f&&(f=y,p=c+v)}var m=this.getRawIndex(h),x=this.getRawIndex(p);h<p?(l[u++]=m,l[u++]=x):(l[u++]=x,l[u++]=m)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},n.prototype.downSample=function(t,e,i,r){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/e),u=a[t],c=this.count(),h=o._rawExtent[t]=[1/0,-1/0],d=new(us(this._rawCount))(Math.ceil(c/l)),p=0,f=0;f<c;f+=l){l>c-f&&(l=c-f,s.length=l);for(var g=0;g<l;g++){var v=this.getRawIndex(f+g);s[g]=u[v]}var y=i(s),m=this.getRawIndex(Math.min(f+r(s,y)||0,c-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),d[p++]=m}return o._count=p,o._indices=d,o._updateGetRawIdx(),o},n.prototype.each=function(t,e){if(this._count)for(var i=t.length,r=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(i){case 0:e(o);break;case 1:e(r[t[0]][s],o);break;case 2:e(r[t[0]][s],r[t[1]][s],o);break;default:for(var l=0,u=[];l<i;l++)u[l]=r[t[l]][s];u[l]=o,e.apply(null,u)}}},n.prototype.getDataExtent=function(t,e){var i=this._chunks[t],r=[1/0,-1/0];if(!i)return r;var o=this.count();if(!this._indices&&!e)return this._rawExtent[t].slice();var a=this._extent,s=a[t]||(a[t]={}),l=Bk(e),u=l.key,c=s[u];if(c)return c.slice();for(var h=r[0],d=r[1],p=0;p<o;p++){var f=i[this.getRawIndex(p)];e&&!Vk(l,f)||(f<h&&(h=f),f>d&&(d=f))}return s[u]=[h,d]},n.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],r=this._chunks,o=0;o<r.length;o++)i.push(r[o][e]);return i},n.prototype.clone=function(t,e){var i=new n,r=this._chunks,o=t&&Kn(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?p5(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},n.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=se(this._extent),t._rawExtent=se(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var r=0;r<i;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},n.prototype._getRawIdxIdentity=function(t){return t},n.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=(function(){function t(e,i,r,o){return oo(e[o],this._dimensions[o])}ev={arrayRows:t,objectRows:function(e,i,r,o){return oo(e[i],this._dimensions[o])},keyedColumns:t,original:function(e,i,r,o){var a=e&&(e.value==null?e:e.value);return oo(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(e,i,r,o){return e[o]}}})(),n})(),Wk=(function(){function n(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,r=this._getUpstreamSourceManagers(),o=!!r.length;if(xh(i)){var a=i,s=void 0,l=void 0,u=void 0;if(o){var c=r[0];c.prepareSource(),s=(u=c.getSource()).data,l=u.sourceFormat,e=[c._getVersionSign()]}else l=vn(s=a.get("data",!0))?io:Pn,e=[];var h=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=ae(h.seriesLayoutBy,d.seriesLayoutBy)||null,f=ae(h.sourceHeader,d.sourceHeader),g=ae(h.dimensions,d.dimensions);t=p!==d.seriesLayoutBy||!!f!=!!d.sourceHeader||g?[Xm(s,{seriesLayoutBy:p,sourceHeader:f,dimensions:g},l)]:[]}else{var v=i;if(o){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else t=[Xm(v.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},n.prototype._applyTransform=function(t){var e,i=this._sourceHost,r=i.get("transform",!0),o=i.get("fromTransformResult",!0);if(o!=null){var a="";t.length!==1&&Pw(a)}var s,l=[],u=[];return k(t,function(c){c.prepareSource();var h=c.getSource(o||0),d="";o==null||h||Pw(d),l.push(h),u.push(c._getVersionSign())}),r?e=(function(c,h){var d=$e(c),p=d.length,f="";p||Ue(f);for(var g=0,v=p;g<v;g++)h=c5(d[g],h),g!==v-1&&(h.length=Math.max(h.length,1));return h})(r,l,i.componentIndex):o!=null&&(e=[(s=l[0],new Gf({data:s.data,sourceFormat:s.sourceFormat,seriesLayoutBy:s.seriesLayoutBy,dimensionsDefine:se(s.dimensionsDefine),startIndex:s.startIndex,dimensionsDetectedCount:s.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:u}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},n.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},n.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},n.prototype._innerGetDataStore=function(t,e,i){var r=this._storeList,o=r[0];o||(o=r[0]={});var a=o[i];if(!a){var s=this._getUpstreamSourceManagers()[0];xh(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,i):(a=new Zm).initData(new Lk(e,t.length),t),o[i]=a}return a},n.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(xh(t)){var e=fx(t);return e?[e.getSourceManager()]:[]}return K((function(i){return i.get("transform",!0)||i.get("fromTransformResult",!0)?hl(i.ecModel,"dataset",{index:i.get("fromDatasetIndex",!0),id:i.get("fromDatasetId",!0)},pt).models:[]})(t),function(i){return i.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var t,e,i,r=this._sourceHost;if(xh(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=r;t=o.get("seriesLayoutBy",!0),e=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},n})();function Lw(n){n.option.transform&&$u(n.option.transform)}function xh(n){return n.mainType==="series"}function Pw(n){throw new Error(n)}function Uk(n){var t=n.lineHeight;return t==null?"line-height:1":"line-height:"+Zt(t+"")+"px"}function Yk(n,t){var e=n.color||H.color.tertiary,i=n.fontSize||12,r=n.fontWeight||"400",o=n.color||H.color.secondary,a=n.fontSize||14,s=n.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Zt(i+"")+"px;color:"+Zt(e)+";font-weight:"+Zt(r+""),valueStyle:"font-size:"+Zt(a+"")+"px;color:"+Zt(o)+";font-weight:"+Zt(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var f5=[0,10,20,30],g5=["",`
30
+ `,`
31
+
32
+ `,`
33
+
34
+
35
+ `];function Mt(n,t){return t.type=n,t}function qm(n){return n.type==="section"}function Xk(n){return qm(n)?v5:y5}function Zk(n){if(qm(n)){var t=0,e=n.blocks.length,i=e>1||e>0&&!n.noHeader;return k(n.blocks,function(r){var o=Zk(r);o>=t&&(t=o+ +(i&&(!o||qm(r)&&!r.noHeader)))}),t}return 0}function v5(n,t,e,i){var r,o=t.noHeader,a=(r=Zk(t),{html:f5[r],richText:g5[r]}),s=[],l=t.blocks||[];Kt(!l||q(l)),l=l||[];var u=n.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(oe(c,u)){var h=new zk(c[u],null);l.sort(function(v,y){return h.evaluate(v.sortParam,y.sortParam)})}else u==="seriesDesc"&&l.reverse()}k(l,function(v,y){var m=t.valueFormatter,x=Xk(v)(m?X(X({},n),{valueFormatter:m}):n,v,y>0?a.html:0,i);x!=null&&s.push(x)});var d=n.renderMode==="richText"?s.join(a.richText):jm(i,s.join(""),o?e:a.html);if(o)return d;var p=Hm(t.header,"ordinal",n.useUTC),f=Yk(i,n.renderMode).nameStyle,g=Uk(i);return n.renderMode==="richText"?qk(n,p,f)+a.richText+d:jm(i,'<div style="'+f+";"+g+';">'+Zt(p)+"</div>"+d,e)}function y5(n,t,e,i){var r=n.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=n.useUTC,c=t.valueFormatter||n.valueFormatter||function(_){return K(_=q(_)?_:[_],function(b,w){return Hm(b,q(p)?p[w]:p,u)})};if(!o||!a){var h=s?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||H.color.secondary,r),d=o?"":Hm(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value,t.rawDataIndex),g=!s||!o,v=!s&&o,y=Yk(i,r),m=y.nameStyle,x=y.valueStyle;return r==="richText"?(s?"":h)+(o?"":qk(n,d,m))+(a?"":(function(_,b,w,S,M){var I=[M],T=S?10:20;return w&&I.push({padding:[0,0,0,T],align:"right"}),_.markupStyleCreator.wrapRichTextStyle(q(b)?b.join(" "):b,I)})(n,f,g,v,x)):jm(i,(s?"":h)+(o?"":(function(_,b,w){return'<span style="'+w+";"+(b?"margin-left:2px":"")+'">'+Zt(_)+"</span>"})(d,!s,m))+(a?"":(function(_,b,w,S){var M=w?"10px":"20px",I=b?"float:right;margin-left:"+M:"";return _=q(_)?_:[_],'<span style="'+I+";"+S+'">'+K(_,function(T){return Zt(T)}).join("&nbsp;&nbsp;")+"</span>"})(f,g,v,x)),e)}}function Ow(n,t,e,i,r,o){if(n)return Xk(n)({useUTC:r,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:n.valueFormatter},n,0,o)}function jm(n,t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+Uk(n)+';">'+t+'<div style="clear:both"></div></div>'}function qk(n,t,e){return n.markupStyleCreator.wrapRichTextStyle(t,e)}function jk(n,t){return Da(n.getData().getItemVisual(t,"style")[n.visualDrawType])}function Kk(n,t){var e=n.get("padding");return e??(t==="richText"?[8,10]:10)}var tv=(function(){function n(){this.richTextStyles={},this._nextStyleNameId=z1()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,e,i){var r=i==="richText"?this._generateStyleName():null,o=lk({color:e,type:t,renderMode:i,markerId:r});return te(o)?o:(this.richTextStyles[r]=o.style,o.content)},n.prototype.wrapRichTextStyle=function(t,e){var i={};q(e)?k(e,function(o){return X(i,o)}):X(i,e);var r=this._generateStyleName();return this.richTextStyles[r]=i,"{"+r+"|"+t+"}"},n})();function $k(n){var t,e,i,r,o=n.series,a=n.dataIndex,s=n.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=q(h),p=jk(o,a);if(c>1||d&&!c){var f=(function(_,b,w,S,M){var I=b.getData(),T=Kn(_,function(P,E,O){var N=I.getDimensionInfo(O);return P||N&&N.tooltip!==!1&&N.displayName!=null},!1),C=[],D=[],A=[];function L(P,E){var O=I.getDimensionInfo(E);O&&O.otherDims.tooltip!==!1&&(T?A.push(Mt("nameValue",{markerType:"subItem",markerColor:M,name:O.displayName,value:P,valueType:O.type})):(C.push(P),D.push(O.type)))}return S.length?k(S,function(P){L($s(I,w,P),P)}):k(_,L),{inlineValues:C,inlineValueTypes:D,blocks:A}})(h,o,a,u,p);t=f.inlineValues,e=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=t=$s(l,a,u[0]),e=g.type}else r=t=d?h[0]:h;var v=B1(o),y=v&&o.name||"",m=l.getName(a),x=s?y:m;return Mt("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[Mt("nameValue",{markerType:"item",markerColor:p,name:x,noName:!Cn(x),value:t,valueType:e,rawDataIndex:l.getRawIndex(a)})].concat(i||[])})}var Rr=Me();function _h(n,t){return n.getName(t)||n.getId(t)}var Rd="__universalTransitionEnabled",je=(function(n){function t(){var i=n!==null&&n.apply(this,arguments)||this;return i._selectedDataIndicesMap={},i}var e;return G(t,n),t.prototype.init=function(i,r,o){this.seriesIndex=this.componentIndex,this.dataTask=Wu({count:m5,reset:x5}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(i,o),(Rr(this).sourceManager=new Wk(this)).prepareSource();var a=this.getInitialData(i,o);Nw(a,this),this.dataTask.context.data=a,Rr(this).dataBeforeProcessed=a,Rw(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(i,r){var o=pc(this),a=o?Za(i):{},s=this.subType;ke.hasClass(s)&&(s+="Series"),Se(i,r.getTheme().get(this.subType)),Se(i,this.getDefaultOption()),ba(i,"label",["show"]),this.fillDataTextStyle(i.data),o&&qi(i,a,o)},t.prototype.mergeOption=function(i,r){i=Se(this.option,i,!0),this.fillDataTextStyle(i.data);var o=pc(this);o&&qi(this.option,i,o);var a=Rr(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(i,r);Nw(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Rr(this).dataBeforeProcessed=s,Rw(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(i){if(i&&!vn(i))for(var r=["show"],o=0;o<i.length;o++)i[o]&&i[o].label&&ba(i[o],"label",r)},t.prototype.getInitialData=function(i,r){},t.prototype.appendData=function(i){this.getRawData().appendData(i.data)},t.prototype.getData=function(i){var r=Km(this);if(r){var o=r.context.data;return i!=null&&o.getLinkedData?o.getLinkedData(i):o}return Rr(this).data},t.prototype.getAllData=function(){var i=this.getData();return i&&i.getLinkedDataAll?i.getLinkedDataAll():[{data:i}]},t.prototype.setData=function(i){var r=Km(this);if(r){var o=r.context;o.outputData=i,r!==this.dataTask&&(o.data=i)}Rr(this).data=i},t.prototype.getEncode=function(){var i=this.get("encode",!0);if(i)return re(i)},t.prototype.getSourceManager=function(){return Rr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Rr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var i=this.coordinateSystem;return i&&i.getBaseAxis&&i.getBaseAxis()},t.prototype.indicesOfNearest=function(i,r,o,a){var s=this.getData(),l=this.coordinateSystem,u=l&&l.getAxis(i);if(!l||!u)return[];var c=u.dataToCoord(o);a==null&&(a=1/0);for(var h=[],d=1/0,p=-1,f=0,g=s.getDimensionIndex(r),v=s.getStore(),y=0,m=v.count();y<m;y++){var x=v.get(g,y),_=c-u.dataToCoord(x),b=Math.abs(_);b<=a&&((b<d||b===d&&_>=0&&p<0)&&(d=b,p=_,f=0),_===p&&(h[f++]=y))}return h.length=f,h},t.prototype.formatTooltip=function(i,r,o){return $k({series:this,dataIndex:i,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var i=this.ecModel;if(Ee.node&&(!i||!i.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(i,r,o){var a=this.ecModel,s=gx.prototype.getColorFromPalette.call(this,i,r,o);return s||(s=a.getColorFromPalette(i,r,o)),s},t.prototype.coordDimToDataDim=function(i){return this.getRawData().mapDimensionsAll(i)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(i,r){this._innerSelect(this.getData(r),i)},t.prototype.unselect=function(i,r){var o=this.option.selectedMap;if(o){var a=this.option.selectedMode,s=this.getData(r);if(a==="series"||o==="all")return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var l=0;l<i.length;l++){var u=_h(s,i[l]);o[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(i,r){for(var o=[],a=0;a<i.length;a++)o[0]=i[a],this.isSelected(i[a],r)?this.unselect(o,r):this.select(o,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var i=this._selectedDataIndicesMap,r=Re(i),o=[],a=0;a<r.length;a++){var s=i[r[a]];s>=0&&o.push(s)}return o},t.prototype.isSelected=function(i,r){var o=this.option.selectedMap;if(!o)return!1;var a=this.getData(r);return(o==="all"||o[_h(a,i)])&&!a.getItemModel(i).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Rd])return!0;var i=this.option.universalTransition;return!!i&&(i===!0||i&&i.enabled)},t.prototype._innerSelect=function(i,r){var o,a,s=this.option,l=s.selectedMode,u=r.length;if(l&&u){if(l==="series")s.selectedMap="all";else if(l==="multiple"){fe(s.selectedMap)||(s.selectedMap={});for(var c=s.selectedMap,h=0;h<u;h++){var d=r[h];c[f=_h(i,d)]=!0,this._selectedDataIndicesMap[f]=i.getRawIndex(d)}}else if(l==="single"||l===!0){var p=r[u-1],f=_h(i,p);s.selectedMap=((o={})[f]=!0,o),this._selectedDataIndicesMap=((a={})[f]=i.getRawIndex(p),a)}}},t.prototype._initSelectedMapFromData=function(i){if(!this.option.selectedMap){var r=[];i.hasItemOption&&i.each(function(o){var a=i.getRawDataItem(o);a&&a.selected&&r.push(o)}),r.length>0&&this._innerSelect(i,r)}},t.registerClass=function(i){return ke.registerClass(i)},t.protoInitialize=((e=t.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",void(e.visualDrawType="fill")),t})(ke);function Rw(n){var t=n.name;B1(n)||(n.name=(function(e){var i=e.getRawData(),r=i.mapDimensionsAll("seriesName"),o=[];return k(r,function(a){var s=i.getDimensionInfo(a);s.displayName&&o.push(s.displayName)}),o.join(" ")})(n)||t)}function m5(n){return n.model.getRawData().count()}function x5(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),_5}function _5(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Nw(n,t){k(Us(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(e){n.wrapMethod(e,Ce(b5,t))})}function b5(n,t){var e=Km(n);return e&&e.setOutputEnd((t||this).count()),t}function Km(n){var t=(n.ecModel||{}).scheduler,e=t&&t.getPipeline(n.uid);if(e){var i=e.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(n.uid))}return i}}xt(je,Ff),xt(je,gx),iA(je,ke);var et=(function(){function n(){this.group=new he,this.uid=Xa("viewComponent")}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){},n.prototype.updateLayout=function(t,e,i,r){},n.prototype.updateVisual=function(t,e,i,r){},n.prototype.toggleBlurSeries=function(t,e,i){},n.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},n})();function qa(){var n=Me();return function(t){var e=n(t),i=t.pipelineContext,r=!!e.large,o=!!e.progressiveRender,a=e.large=!(!i||!i.large),s=e.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}F1(et),Af(et);var Jk=Me(),w5=qa(),Ze=(function(){function n(){this.group=new he,this.uid=Xa("viewChart"),this.renderTask=Wu({plan:S5,reset:M5}),this.renderTask.context={view:this}}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){},n.prototype.highlight=function(t,e,i,r){var o=t.getData(r&&r.dataType);o&&zw(o,r,"emphasis")},n.prototype.downplay=function(t,e,i,r){var o=t.getData(r&&r.dataType);o&&zw(o,r,"normal")},n.prototype.remove=function(t,e){this.group.removeAll()},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.updateVisual=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.eachRendered=function(t){xo(this.group,t)},n.markUpdateMethod=function(t,e){Jk(t).updateMethod=e},n.protoInitialize=void(n.prototype.type="chart"),n})();function Ew(n,t,e){n&&lc(n)&&(t==="emphasis"?br:wr)(n,e)}function zw(n,t,e){var i=wa(n,t),r=t&&t.highlightKey!=null?(function(o){var a=Vb[o];return a==null&&Bb<=32&&(a=Vb[o]=Bb++),a})(t.highlightKey):null;i!=null?k($e(i),function(o){Ew(n.getItemGraphicEl(o),e,r)}):n.eachItemGraphicEl(function(o){Ew(o,e,r)})}function S5(n){return w5(n.model)}function M5(n){var t=n.model,e=n.ecModel,i=n.api,r=n.payload,o=t.pipelineContext.progressiveRender,a=n.view,s=r&&Jk(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,e,i,r),I5[l]}F1(Ze),Af(Ze);var I5={incrementalPrepareRender:{progress:function(n,t){t.view.incrementalRender(n,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(n,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},_p="\0__throttleOriginMethod",Bw="\0__throttleRate",Vw="\0__throttleType";function bx(n,t,e){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=new Date().getTime(),c=null,n.apply(o,a||[])}t=t||0;var d=function(){for(var p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];i=new Date().getTime(),o=this,a=p;var g=s||t,v=s||e;s=null,r=i-(v?l:u)-g,clearTimeout(c),v?c=setTimeout(h,g):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(p){s=p},d}function bl(n,t,e,i){var r=n[t];if(r){var o=r[_p]||r,a=r[Vw];if(r[Bw]!==e||a!==i){if(e==null||!i)return n[t]=o;(r=n[t]=bx(o,e,i==="debounce"))[_p]=o,r[Vw]=i,r[Bw]=e}return r}}function fc(n,t){var e=n[t];e&&e[_p]&&(e.clear&&e.clear(),n[t]=e[_p])}var Gw=Me(),Fw={itemStyle:Ma(qA,!0),lineStyle:Ma(ZA,!0)},T5={lineStyle:"stroke",itemStyle:"fill"};function Qk(n,t){var e=n.visualStyleMapper||Fw[t];return e||(console.warn("Unknown style type '"+t+"'."),Fw.itemStyle)}function eL(n,t){var e=n.visualDrawType||T5[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var C5={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=n.getModel(i),o=Qk(n,i)(r),a=r.getShallow("decal");a&&(e.setVisual("decal",a),a.dirty=!0);var s=eL(n,i),l=o[s],u=le(l)?l:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[s]||u||c){var h=n.getColorFromPalette(n.name,null,t.getSeriesCount());o[s]||(o[s]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||le(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||le(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",s),!t.isSeriesFiltered(n)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(d,p){var f=n.getDataParams(p),g=X({},o);g[s]=u(f),d.setItemVisual(p,"style",g)}}}},Fl=new Oe,D5={createOnAllSeries:!0,reset:function(n,t){if(!n.ignoreStyleOnData){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=Qk(n,i),o=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Fl.option=l[i];var u=r(Fl);X(a.ensureUniqueItemVisual(s,"style"),u),Fl.option.decal&&(a.setItemVisual(s,"decal",Fl.option.decal),Fl.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},A5={performRawSeries:!0,overallReset:function(n){var t=re();n.eachSeries(function(e){if(!e.isColorBySeries()){var i=e.type+"-"+e.getColorBy();Gw(e).scope=t.get(i)||t.set(i,{})}}),n.eachSeries(function(e){if(!e.isColorBySeries()){var i=e.getRawData(),r={},o=e.getData(),a=Gw(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=eL(e,s);o.each(function(u){var c=o.getRawIndex(u);r[c]=u}),i.each(function(u){var c=r[u];if(o.getItemVisual(c,"colorFromPalette")){var h=o.ensureUniqueItemVisual(c,"style"),d=i.getName(u)||u+"",p=i.count();h[l]=e.getColorFromPalette(d,a,p)}})}})}},bh=Math.PI,tL=(function(){function n(t,e,i,r){this._stageTaskMap=re(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=i.concat(r)}return n.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var r=i.overallTask;r&&r.dirty()})},n.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),r=i.context,o=!e&&i.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,a=r&&r.modDataCount;return{step:o,modBy:a!=null?Math.ceil(a/o):null,modDataCount:a}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),r=t.__preparePipelineContext?t.__preparePipelineContext(e,i):tA(t,e,i);t.pipelineContext=i.context=r},n.prototype.restorePipelines=function(t,e){var i=this,r=i._pipelineMap=re();e.eachSeries(function(o){var a=t.painter.type==="canvas"&&o.getProgressive(),s=o.uid;r.set(s,{id:s,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:a&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),i._pipe(o,o.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;k(this._allHandlers,function(r){var o=t.get(r.uid)||t.set(r.uid,{}),a="";Kt(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,o,e,i),r.overallReset&&this._createOverallStageTask(r,o,e,i)},this)},n.prototype.prepareView=function(t,e,i,r){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=i,a.api=r,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},n.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},n.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},n.prototype._performStageTasks=function(t,e,i,r){r=r||{};var o=!1,a=this;function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}k(t,function(l,u){if(!r.visualType||r.visualType===l.visualType){var c=a._stageTaskMap.get(l.uid),h=c.seriesTaskMap,d=c.overallTask;if(d){var p,f=d.agentStubMap;f.each(function(v){s(r,v)&&(v.dirty(),p=!0)}),p&&d.dirty(),a.updatePayload(d,i);var g=a.getPerformArgs(d,r.block);f.each(function(v){v.perform(g)}),d.perform(g)&&(o=!0)}else h&&h.each(function(v,y){s(r,v)&&v.dirty();var m=a.getPerformArgs(v,r.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(v.context.model),a.updatePayload(v,i),v.perform(m)&&(o=!0)})}}),this.unfinished=o||this.unfinished},n.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},n.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},n.prototype._createSeriesStageTask=function(t,e,i,r){var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=re(),l=t.seriesType,u=t.getTargetSeries;function c(h){var d=h.uid,p=s.set(d,a&&a.get(d)||Wu({plan:R5,reset:N5,count:z5}));p.context={model:h,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(h,p)}t.createOnAllSeries?i.eachRawSeries(c):l?i.eachRawSeriesByType(l,c):u&&u(i,r).each(c)},n.prototype._createOverallStageTask=function(t,e,i,r){var o=this,a=e.overallTask=e.overallTask||Wu({reset:k5});a.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=re(),u=t.seriesType,c=t.getTargetSeries,h=t.dirtyOnOverallProgress,d=!1,p="";function f(g){var v=g.uid,y=l.set(v,s&&s.get(v)||(d=!0,Wu({reset:L5,onDirty:O5})));y.context={model:g,dirtyOnOverallProgress:h},y.agent=a,y.__block=h,o._pipe(g,y)}Kt(!t.createOnAllSeries,p),u?i.eachRawSeriesByType(u,f):c?c(i,r).each(f):k(i.getSeries(),f),d&&a.dirty()},n.prototype._pipe=function(t,e){var i=t.uid,r=this._pipelineMap.get(i);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},n.wrapStageHandler=function(t,e){return le(t)&&(t={overallReset:t,seriesType:B5(t)}),t.uid=Xa("stageHandler"),e&&(t.visualType=e),t},n})();function k5(n){n.overallReset(n.ecModel,n.api,n.payload)}function L5(n){return n.dirtyOnOverallProgress&&P5}function P5(){this.agent.dirty(),this.getDownstream().dirty()}function O5(){this.agent&&this.agent.dirty()}function R5(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function N5(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=$e(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?K(t,function(e,i){return nL(i)}):E5}var E5=nL(0);function nL(n){return function(t,e){var i=e.data,r=e.resetDefines[n];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function z5(n){return n.data.count()}function B5(n){bp=null;try{n(Su,iL)}catch{}return bp}var bp,Su={},iL={};function Hw(n,t){for(var e in t.prototype)n[e]=ct}Hw(Su,vx),Hw(iL,vA),Su.eachSeriesByType=Su.eachRawSeriesByType=function(n){bp=n},Su.eachComponent=function(n){n.mainType==="series"&&n.subType&&(bp=n.subType)};var wh,ce=H.darkColor,Ww=ce.background,Hl=function(){return{axisLine:{lineStyle:{color:ce.axisLine}},splitLine:{lineStyle:{color:ce.axisSplitLine}},splitArea:{areaStyle:{color:[ce.backgroundTint,ce.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ce.axisMinorSplitLine}},axisLabel:{color:ce.axisLabel},axisName:{}}},Uw={label:{color:ce.secondary},itemStyle:{borderColor:ce.borderTint},dividerLineStyle:{color:ce.border}},rL={darkMode:!0,color:ce.theme,backgroundColor:Ww,axisPointer:{lineStyle:{color:ce.border},crossStyle:{color:ce.borderShade},label:{color:ce.tertiary}},legend:{textStyle:{color:ce.secondary},pageTextStyle:{color:ce.tertiary}},textStyle:{color:ce.secondary},title:{textStyle:{color:ce.primary},subtextStyle:{color:ce.quaternary}},toolbox:{iconStyle:{borderColor:ce.accent50},feature:{dataView:{backgroundColor:Ww,textColor:ce.primary,textareaColor:ce.background,textareaBorderColor:ce.border,buttonColor:ce.accent50,buttonTextColor:ce.neutral00}}},tooltip:{backgroundColor:ce.neutral20,defaultBorderColor:ce.border,textStyle:{color:ce.tertiary}},dataZoom:{borderColor:ce.accent10,textStyle:{color:ce.tertiary},brushStyle:{color:ce.backgroundTint},handleStyle:{color:ce.neutral00,borderColor:ce.accent20},moveHandleStyle:{color:ce.accent40},emphasis:{handleStyle:{borderColor:ce.accent50}},dataBackground:{lineStyle:{color:ce.accent30},areaStyle:{color:ce.accent20}},selectedDataBackground:{lineStyle:{color:ce.accent50},areaStyle:{color:ce.accent30}}},visualMap:{textStyle:{color:ce.secondary},handleStyle:{borderColor:ce.neutral30}},timeline:{lineStyle:{color:ce.accent10},label:{color:ce.tertiary},controlStyle:{color:ce.accent30,borderColor:ce.accent30}},calendar:{itemStyle:{color:ce.neutral00,borderColor:ce.neutral20},dayLabel:{color:ce.tertiary},monthLabel:{color:ce.secondary},yearLabel:{color:ce.secondary}},matrix:{x:Uw,y:Uw,backgroundColor:{borderColor:ce.axisLine},body:{itemStyle:{borderColor:ce.borderTint}}},timeAxis:Hl(),logAxis:Hl(),valueAxis:Hl(),categoryAxis:Hl(),line:{symbol:"circle"},graph:{color:ce.theme},gauge:{title:{color:ce.secondary},axisLine:{lineStyle:{color:[[1,ce.neutral05]]}},axisLabel:{color:ce.axisLabel},detail:{color:ce.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ce.background}},radar:(wh=Hl(),wh.axisName={color:ce.axisLabel},wh.axisLine.lineStyle.color=ce.neutral20,wh),treemap:{breadcrumb:{itemStyle:{color:ce.neutral20,textStyle:{color:ce.secondary}},emphasis:{itemStyle:{color:ce.neutral30}}}},sunburst:{itemStyle:{borderColor:ce.background}},map:{itemStyle:{borderColor:ce.border,areaColor:ce.neutral10},label:{color:ce.tertiary},emphasis:{label:{color:ce.primary},itemStyle:{areaColor:ce.highlight}},select:{label:{color:ce.primary},itemStyle:{areaColor:ce.highlight}}},geo:{itemStyle:{borderColor:ce.border,areaColor:ce.neutral10},emphasis:{label:{color:ce.primary},itemStyle:{areaColor:ce.highlight}},select:{label:{color:ce.primary},itemStyle:{color:ce.highlight}}}};rL.categoryAxis.splitLine.show=!1;var V5=(function(){function n(){}return n.prototype.normalizeQuery=function(t){var e={},i={},r={};if(te(t)){var o=Ri(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};k(t,function(l,u){for(var c=!1,h=0;h<a.length;h++){var d=a[h],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var f=u.slice(0,p);f!=="data"&&(e.mainType=f,e[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(i[u]=l,c=!0),c||(r[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:r}},n.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function c(h,d,p,f){return h[p]==null||d[f||p]===h[p]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n})(),$m=["symbol","symbolSize","symbolRotate","symbolOffset"],Yw=$m.concat(["symbolKeepAspect"]),G5={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData();if(n.legendIcon&&e.setVisual("legendIcon",n.legendIcon),n.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<$m.length;a++){var s=$m[a],l=n.get(s);le(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||n.defaultSymbol,e.setVisual(X({legendIcon:n.legendIcon||i.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(n)){var u=Re(r);return{dataEach:o?function(c,h){for(var d=n.getRawValue(h),p=n.getDataParams(h),f=0;f<u.length;f++){var g=u[f];c.setItemVisual(h,g,r[g](d,p))}}:null}}}}},F5={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(n.hasSymbolVisual&&!t.isSeriesFiltered(n))return{dataEach:n.getData().hasItemOption?function(e,i){for(var r=e.getItemModel(i),o=0;o<Yw.length;o++){var a=Yw[o],s=r.getShallow(a,!0);s!=null&&e.setItemVisual(i,a,s)}}:null}}};function Sx(n,t,e){switch(e){case"color":return n.getItemVisual(t,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(t,e)}}function Uc(n,t){switch(t){case"color":return n.getVisual("style")[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(t)}}function oL(n,t,e,i){switch(e){case"color":n.ensureUniqueItemVisual(t,"style")[n.getVisual("drawType")]=i,n.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(t,e,i)}}function Xw(n,t){function e(i,r){var o=[];return i.eachComponent({mainType:"series",subType:n,query:r},function(a){o.push(a.seriesIndex)}),o}k([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(i){t(i[0],function(r,o,a){r=X({},r),a.dispatchAction(X(r,{type:i[1],seriesIndex:e(o,r)}))})})}function cs(n,t,e,i,r){var o=n+t;e.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=r.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var h=a.getData(),d=wa(h,r.fromActionPayload);e.trigger(o,{type:o,seriesId:a.id,name:q(d)?h.getName(d[0]):h.getName(d),selected:te(l)?l:X({},l)})}})}function oa(n,t,e){for(var i;n&&(!t(n)||(i=n,!e));)n=n.__hostTarget||n.parent;return i}var Gn=new Qn,aL={};function sL(n){return aL[n]}var lL={};function uL(n,t){lL[n]=t}var wp=Me();function cL(n){return wp(n).prepare}function wl(n){return wp(n).fullUpdate}var H5=Math.round(9*Math.random()),W5=typeof Object.defineProperty=="function",U5=(function(){function n(){this._id="__ec_inner_"+H5++}return n.prototype.get=function(t){return this._guard(t)[this._id]},n.prototype.set=function(t,e){var i=this._guard(t);return W5?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},n.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},n.prototype.has=function(t){return!!this._guard(t)[this._id]},n.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},n})(),Y5=Le.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,i=t.cy,r=t.width/2,o=t.height/2;n.moveTo(e,i-o),n.lineTo(e+r,i+o),n.lineTo(e-r,i+o),n.closePath()}}),X5=Le.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,i=t.cy,r=t.width/2,o=t.height/2;n.moveTo(e,i-o),n.lineTo(e+r,i),n.lineTo(e,i+o),n.lineTo(e-r,i),n.closePath()}}),Z5=Le.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;n.moveTo(e-c,l+s),n.arc(e,l,a,Math.PI-u,2*Math.PI+u),n.bezierCurveTo(e+c-h*p,l+s+d*p,e,i-f,e,i),n.bezierCurveTo(e,i-f,e-c+h*p,l+s+d*p,e-c,l+s),n.closePath()}}),q5=Le.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;n.moveTo(r,o),n.lineTo(r+a,o+e),n.lineTo(r,o+e/4*3),n.lineTo(r-a,o+e),n.lineTo(r,o),n.closePath()}}),j5={line:function(n,t,e,i,r){r.x1=n,r.y1=t+i/2,r.x2=n+e,r.y2=t+i/2},rect:function(n,t,e,i,r){r.x=n,r.y=t,r.width=e,r.height=i},roundRect:function(n,t,e,i,r){r.x=n,r.y=t,r.width=e,r.height=i,r.r=Math.min(e,i)/4},square:function(n,t,e,i,r){var o=Math.min(e,i);r.x=n,r.y=t,r.width=o,r.height=o},circle:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.r=Math.min(e,i)/2},diamond:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.width=e,r.height=i},pin:function(n,t,e,i,r){r.x=n+e/2,r.y=t+i/2,r.width=e,r.height=i},arrow:function(n,t,e,i,r){r.x=n+e/2,r.y=t+i/2,r.width=e,r.height=i},triangle:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.width=e,r.height=i}},Sp={};k({line:_t,rect:Ae,roundRect:Ae,square:Ae,circle:$i,diamond:X5,pin:Z5,arrow:q5,triangle:Y5},function(n,t){Sp[t]=new n});var K5=Le.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,t,e){var i=ip(n,t,e),r=this.shape;return r&&r.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+.4*e.height),i},buildPath:function(n,t,e){var i=t.symbolType;if(i!=="none"){var r=Sp[i];r||(r=Sp[i="rect"]),j5[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(n,r.shape,e)}}});function $5(n,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=n,e.fill=t||H.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=n:e.fill=n,this.markRedraw()}}function bt(n,t,e,i,r,o,a){var s,l=n.indexOf("empty")===0;return l&&(n=n.substr(5,1).toLowerCase()+n.substr(6)),(s=n.indexOf("image://")===0?j1(n.slice(8),new de(t,e,i,r),a?"center":"cover"):n.indexOf("path://")===0?js(n.slice(7),{},new de(t,e,i,r),a?"center":"cover"):new K5({shape:{symbolType:n,x:t,y:e,width:i,height:r}})).__isEmptyBrush=l,s.setColor=$5,o&&s.setColor(o),s}function Sl(n){return q(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function ja(n,t){if(n!=null)return q(n)||(n=[n,n]),[ne(n[0],t[0])||0,ne(ae(n[1],n[0]),t[1])||0]}function zo(n){return isFinite(n)}function Jm(n,t,e){for(var i=t.type==="radial"?(function(a,s,l){var u=l.width,c=l.height,h=Math.min(u,c),d=s.x==null?.5:s.x,p=s.y==null?.5:s.y,f=s.r==null?.5:s.r;return s.global||(d=d*u+l.x,p=p*c+l.y,f*=h),d=zo(d)?d:.5,p=zo(p)?p:.5,f=f>=0&&zo(f)?f:.5,a.createRadialGradient(d,p,0,d,p,f)})(n,t,e):(function(a,s,l){var u=s.x==null?0:s.x,c=s.x2==null?1:s.x2,h=s.y==null?0:s.y,d=s.y2==null?0:s.y2;return s.global||(u=u*l.width+l.x,c=c*l.width+l.x,h=h*l.height+l.y,d=d*l.height+l.y),u=zo(u)?u:0,c=zo(c)?c:1,h=zo(h)?h:0,d=zo(d)?d:0,a.createLinearGradient(u,h,c,d)})(n,t,e),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function Sh(n){return parseInt(n,10)}function Ls(n,t,e){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(n);return(n[r]||Sh(s[i])||Sh(n.style[i]))-(Sh(s[o])||0)-(Sh(s[a])||0)||0}function Qm(n){var t,e,i=n.style,r=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,e=i.lineWidth,t&&t!=="solid"&&e>0?t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Ve(t)?[t]:q(t)?t:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(r=K(r,function(s){return s/a}),o/=a)}return[r,o]}var J5=new Zi(!0);function Mh(n){var t=n.stroke;return!(t==null||t==="none"||!(n.lineWidth>0))}function Zw(n){return typeof n=="string"&&n!=="none"}function Ih(n){var t=n.fill;return t!=null&&t!=="none"}function qw(n,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=e}else n.fill()}function jw(n,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=e}else n.stroke()}function e0(n,t,e){var i=H1(t.image,t.__image,e);if(kf(i)){var r=n.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Ou),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}var Kw=["shadowBlur","shadowOffsetX","shadowOffsetY"],$w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hL(n,t,e,i,r){var o=!1;if(!i&&t===(e=e||{}))return!1;if(i||t.opacity!==e.opacity){pn(n,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(a)?ha.opacity:a}(i||t.blend!==e.blend)&&(o||(pn(n,r),o=!0),n.globalCompositeOperation=t.blend||ha.blend);for(var s=0;s<Kw.length;s++){var l=Kw[s];(i||t[l]!==e[l])&&(o||(pn(n,r),o=!0),n[l]=n.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(o||(pn(n,r),o=!0),n.shadowColor=t.shadowColor||ha.shadowColor),o}function Jw(n,t,e,i,r){var o=t.style,a=i?null:e&&e.style||{};if(o===a)return!1;var s=hL(n,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(pn(n,r),s=!0),Zw(o.fill)&&(n.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(pn(n,r),s=!0),Zw(o.stroke)&&(n.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(pn(n,r),s=!0),n.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);n.lineWidth!==l&&(s||(pn(n,r),s=!0),n.lineWidth=l)}for(var u=0;u<$w.length;u++){var c=$w[u],h=c[0];(i||o[h]!==a[h])&&(s||(pn(n,r),s=!0),n[h]=o[h]||c[1])}return s}function Qw(n,t){var e=t.transform,i=n.dpr||1;e?n.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):n.setTransform(i,0,0,i,0,0)}function pn(n,t){t.batchFill&&(t.batchFill=!1,n.fill()),t.batchStroke&&(t.batchStroke=!1,n.stroke())}function dL(n,t){var e={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};aa(n,t,e),Gs(n,e)}function aa(n,t,e){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var r=t.__clipPaths,o=e.prevElClipPaths,a=t.style,s=!1,l=!1;if(o&&!(function(p,f){if(p===f||!p&&!f)return!1;if(!p||!f||p.length!==f.length)return!0;for(var g=0;g<p.length;g++)if(p[g]!==f[g])return!0;return!1})(r,o)||(o&&(pn(n,e),n.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),r&&r.length&&(pn(n,e),n.save(),(function(p,f,g){for(var v=!1,y=0;y<p.length;y++){var m=p[y];v=v||m.isZeroArea(),Qw(f,m),f.beginPath(),m.buildPath(f,m.shape),f.clip()}g.allClipped=v})(r,n,e),s=!0,e.prevElClipPaths=r)),e.allClipped)return t.__dirty&=-2,void(t.__isRendered=!1);t.beforeBrush&&t.beforeBrush(e.beforeBrushParam),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var c,h,d=t instanceof Le&&t.autoBatch&&(function(p){var f=Ih(p),g=Mh(p);return!(p.lineDash||!(+f^+g)||f&&typeof p.fill!="string"||g&&typeof p.stroke!="string"||p.strokePercent<1||p.strokeOpacity<1||p.fillOpacity<1)})(a);s||(c=i,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(pn(n,e),Qw(n,t)):d||pn(n,e),t instanceof Le?(e.lastDrawType!==1&&(l=!0,e.lastDrawType=1),Jw(n,t,u,l,e),d&&(e.batchFill||e.batchStroke)||n.beginPath(),(function(p,f,g,v,y){var m,x=Mh(g),_=Ih(g),b=g.strokePercent,w=b<1,S=!f.path;f.silent&&!w||!S||f.createPathProxy();var M=f.path||J5,I=f.__dirty;if(!v){var T=g.fill,C=g.stroke,D=_&&!!T.colorStops,A=x&&!!C.colorStops,L=_&&!!T.image,P=x&&!!C.image,E=void 0,O=void 0,N=void 0,R=void 0,z=void 0;(D||A)&&(z=f.getBoundingRect()),D&&(E=I?Jm(p,T,z):f.__canvasFillGradient,f.__canvasFillGradient=E),A&&(O=I?Jm(p,C,z):f.__canvasStrokeGradient,f.__canvasStrokeGradient=O),L&&(N=I||!f.__canvasFillPattern?e0(p,T,f):f.__canvasFillPattern,f.__canvasFillPattern=N),P&&(R=I||!f.__canvasStrokePattern?e0(p,C,f):f.__canvasStrokePattern,f.__canvasStrokePattern=R),D?p.fillStyle=E:L&&(N?p.fillStyle=N:_=!1),A?p.strokeStyle=O:P&&(R?p.strokeStyle=R:x=!1)}var B,V,W=f.getGlobalScale();M.setScale(W[0],W[1],f.segmentIgnoreThreshold),p.setLineDash&&g.lineDash&&(B=(m=Qm(f))[0],V=m[1]);var U=!0;(S||4&I)&&(M.setDPR(p.dpr),w?M.setContext(null):(M.setContext(p),U=!1),M.reset(),f.buildPath(M,f.shape,v),M.toStatic(),f.pathUpdated()),U&&M.rebuildPath(p,w?b:1),B&&(p.setLineDash(B),p.lineDashOffset=V),v?(y.batchFill=_,y.batchStroke=x):g.strokeFirst?(x&&jw(p,g),_&&qw(p,g)):(_&&qw(p,g),x&&jw(p,g)),B&&p.setLineDash([])})(n,t,a,d,e)):t instanceof qs?(e.lastDrawType!==3&&(l=!0,e.lastDrawType=3),Jw(n,t,u,l,e),(function(p,f,g){var v,y=g.text;if(y!=null&&(y+=""),y){p.font=g.font||mr,p.textAlign=g.textAlign,p.textBaseline=g.textBaseline;var m=void 0,x=void 0;p.setLineDash&&g.lineDash&&(m=(v=Qm(f))[0],x=v[1]),m&&(p.setLineDash(m),p.lineDashOffset=x),g.strokeFirst?(Mh(g)&&p.strokeText(y,g.x,g.y),Ih(g)&&p.fillText(y,g.x,g.y)):(Ih(g)&&p.fillText(y,g.x,g.y),Mh(g)&&p.strokeText(y,g.x,g.y)),m&&p.setLineDash([])}})(n,t,a)):t instanceof zt?(e.lastDrawType!==2&&(l=!0,e.lastDrawType=2),(function(p,f,g,v,y){hL(p,f.style,g&&g.style,v,y)})(n,t,u,l,e),(function(p,f,g){var v=f.__image=H1(g.image,f.__image,f,f.onload);if(v&&kf(v)){var y=g.x||0,m=g.y||0,x=f.getWidth(),_=f.getHeight(),b=v.width/v.height;if(x==null&&_!=null?x=_*b:_==null&&x!=null?_=x/b:x==null&&_==null&&(x=v.width,_=v.height),g.sWidth&&g.sHeight){var w=g.sx||0,S=g.sy||0;p.drawImage(v,w,S,g.sWidth,g.sHeight,y,m,x,_)}else if(g.sx&&g.sy){var M=x-(w=g.sx),I=_-(S=g.sy);p.drawImage(v,w,S,M,I,y,m,x,_)}else p.drawImage(v,y,m,x,_)}})(n,t,a)):t.getTemporalDisplayables&&(e.lastDrawType!==4&&(l=!0,e.lastDrawType=4),(function(p,f,g){var v=f.getDisplayables(),y=f.getTemporalDisplayables();p.save();var m,x,_={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:g.viewWidth,viewHeight:g.viewHeight,inHover:g.inHover,beforeBrushParam:{}};for(m=f.getCursor(),x=v.length;m<x;m++)(S=v[m]).beforeBrush&&S.beforeBrush(g.beforeBrushParam),S.innerBeforeBrush(),aa(p,S,_),S.innerAfterBrush(),S.afterBrush&&S.afterBrush(),_.prevEl=S;Gs(p,_);for(var b=0,w=y.length;b<w;b++){var S;(S=y[b]).beforeBrush&&S.beforeBrush(g.beforeBrushParam),S.innerBeforeBrush(),aa(p,S,_),S.innerAfterBrush(),S.afterBrush&&S.afterBrush(),_.prevEl=S}Gs(p,_),f.clearTemporalDisplayables(),f.notClear=!0,p.restore()})(n,t,e)),t.innerAfterBrush(),t.afterBrush&&(d&&pn(n,e),t.afterBrush()),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Gs(n,t){pn(n,t),t.prevElClipPaths&&n.restore()}var nv=new U5,eS=new Xs(100),tS=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Js(n,t){if(n==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),r=i.painter.type==="svg";n.dirty&&nv.delete(n);var o=nv.get(n);if(o)return o;var a=pe(n,{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});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return(function(l){for(var u,c=[e],h=!0,d=0;d<tS.length;++d){var p=a[tS[d]];if(p!=null&&!q(p)&&!te(p)&&!Ve(p)&&typeof p!="boolean"){h=!1;break}c.push(p)}if(h){u=c.join(",")+(r?"-svg":"");var f=eS.get(u);f&&(r?l.svgElement=f:l.image=f)}var g,v=fL(a.dashArrayX),y=(function(I){if(!I||typeof I=="object"&&I.length===0)return[0,0];if(Ve(I)){var T=Math.ceil(I);return[T,T]}var C=K(I,function(D){return Math.ceil(D)});return I.length%2?C.concat(C):C})(a.dashArrayY),m=pL(a.symbol),x=(M=v,K(M,function(I){return nS(I)})),_=nS(y),b=!r&&Rt.createCanvas(),w=r&&{tag:"g",attrs:{},key:"dcl",children:[]},S=(function(){for(var I=1,T=0,C=x.length;T<C;++T)I=fb(I,x[T]);var D=1;for(T=0,C=m.length;T<C;++T)D=fb(D,m[T].length);I*=D;var A=_*x.length*m.length;return{width:Math.max(1,Math.min(I,a.maxTileWidth)),height:Math.max(1,Math.min(A,a.maxTileHeight))}})(),M;b&&(b.width=S.width*e,b.height=S.height*e,g=b.getContext("2d")),(function(){g&&(g.clearRect(0,0,b.width,b.height),a.backgroundColor&&(g.fillStyle=a.backgroundColor,g.fillRect(0,0,b.width,b.height)));for(var I=0,T=0;T<y.length;++T)I+=y[T];if(I<=0)return;for(var C=-_,D=0,A=0,L=0;C<S.height;){if(D%2==0){for(var P=A/2%m.length,E=0,O=0,N=0;E<2*S.width;){var R=0;for(T=0;T<v[L].length;++T)R+=v[L][T];if(R<=0)break;if(O%2==0){var z=.5*(1-a.symbolSize),B=E+v[L][O]*z,V=C+y[D]*z,W=v[L][O]*a.symbolSize,U=y[D]*a.symbolSize,F=N/2%m[P].length;Q(B,V,W,U,m[P][F])}E+=v[L][O],++N,++O===v[L].length&&(O=0)}++L===v.length&&(L=0)}C+=y[D],++A,++D===y.length&&(D=0)}function Q(Z,Y,J,$,j){var ee=r?1:e,ue=bt(j,Z*ee,Y*ee,J*ee,$*ee,a.color,a.symbolKeepAspect);if(r){var ye=i.painter.renderOneToVNode(ue);ye&&w.children.push(ye)}else dL(g,ue)}})(),h&&eS.put(u,b||w),l.image=b,l.svgElement=w,l.svgWidth=S.width,l.svgHeight=S.height})(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/e,nv.set(n,s),n.dirty=!1,s}function pL(n){if(!n||n.length===0)return[["rect"]];if(te(n))return[[n]];for(var t=!0,e=0;e<n.length;++e)if(!te(n[e])){t=!1;break}if(t)return pL([n]);var i=[];for(e=0;e<n.length;++e)te(n[e])?i.push([n[e]]):i.push(n[e]);return i}function fL(n){if(!n||n.length===0)return[[0,0]];if(Ve(n))return[[r=Math.ceil(n),r]];for(var t=!0,e=0;e<n.length;++e)if(!Ve(n[e])){t=!1;break}if(t)return fL([n]);var i=[];for(e=0;e<n.length;++e)if(Ve(n[e])){var r=Math.ceil(n[e]);i.push([r,r])}else(r=K(n[e],function(o){return Math.ceil(o)})).length%2==1?i.push(r.concat(r)):i.push(r);return i}function nS(n){for(var t=0,e=0;e<n.length;++e)t+=n[e];return n.length%2==1?2*t:t}var Q5=Bc(function(n,t){n.eachRawSeries(function(e){if(!n.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var a=i.getItemVisual(o,"decal");a&&(i.ensureUniqueItemVisual(o,"style").decal=Js(a,t))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=Js(r,t))}})}),L6="6.1.0",P6={zrender:"6.1.0"},t0=2e3,Nd=4500,eB={PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:t0,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:Nd,ARIA:6e3,DECAL:7e3}},It="__flagInMainProcess",Th="__mainProcessVersion",Bt="__pendingUpdate",iv="__needsUpdateStatus",iS=/^[a-zA-Z0-9_]+$/,rv="__connectUpdateStatus";function rS(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return gL(this,n,t);this.id}}function oS(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gL(this,n,t)}}function gL(n,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Qn.prototype[t].apply(n,e)}var Bo,ov,Ch,tr,Dh,av,sv,hs,ds,aS,sS,lv,lS,Ah,uS,vL,Nn,cS,ps,yL=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t})(Qn),hS=yL.prototype;hS.on=oS("on"),hS.off=oS("off");var Mp=(function(n){function t(e,i,r){var o=n.call(this,new V5)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},o.__v_skip=!0,o._dom=e;var a="canvas",s="auto",l=!1;o[Th]=1,r.ssr&&HD(function(d){var p=me(d),f=p.dataIndex;if(f!=null){var g=re();return g.set("series_index",p.seriesIndex),g.set("data_index",f),p.ssrType&&g.set("ssr_type",p.ssrType),g}});var u=o._zr=Sm(e,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:ae(r.useDirtyRect,l),useCoarsePointer:ae(r.useCoarsePointer,s),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=bx(ie(u.flush,u),17),o._updateTheme(i),o._locale=(function(d){if(te(d)){var p=kd[d.toUpperCase()]||{};return d===fp||d===nx?se(p):Se(se(p),se(kd[hc]),!1)}return Se(se(d),se(kd[hc]),!1)})(r.locale||jA),o._coordSysMgr=new _l;var c=o._api=uS(o);function h(d,p){return d.__prio-p.__prio}return bd(Tp,h),bd(r0,h),o._scheduler=new tL(o,c,r0,Tp),o._messageCenter=new yL,o._initEvents(),o.resize=ie(o.resize,o),u.animation.on("frame",o._onframe,o),aS(u,o),sS(u,o),$u(o),o}return G(t,n),t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,i=this._model,r=this._api;if(cS(this),this[Bt]){var o=this[Bt].silent;this[It]=!0,ps(this);try{Bo(this),tr.update.call(this,null,this[Bt].updateParams)}catch(l){throw this[It]=!1,this[Bt]=null,l}this._zr.flush(),this[It]=!1,this[Bt]=null,hs.call(this,o),ds.call(this,o)}else if(e.unfinished){var a=1;do{e.unfinished=!1;var s=Rt.getTime();e.performSeriesTasks(i),e.performDataProcessorTasks(i),av(this,i),e.performVisualTasks(i),Ah(this,this._model,r,"remain",{}),a-=Rt.getTime()-s}while(a>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,r){if(!this[It])if(this._disposed)this.id;else{var o,a,s;if(fe(i)&&(r=i.lazyUpdate,o=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[It]=!0,ps(this),!this._model||i){var l=new Uz(this._api),u=this._theme,c=this._model=new vx;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:a},o0);var h={seriesTransition:s,optionChanged:!0};if(r)this[Bt]={silent:o,updateParams:h},this[It]=!1,this.getZr().wakeUp();else{try{Bo(this),tr.update.call(this,null,h)}catch(d){throw this[Bt]=null,this[It]=!1,d}this._ssr||this._zr.flush(),this[Bt]=null,this[It]=!1,hs.call(this,o),ds.call(this,o)}}},t.prototype.setTheme=function(e,i){if(!this[It])if(this._disposed)this.id;else{var r=this._model;if(r){var o=i&&i.silent,a=null;this[Bt]&&(o==null&&(o=this[Bt].silent),a=this[Bt].updateParams,this[Bt]=null),this[It]=!0,ps(this);try{this._updateTheme(e),r.setTheme(this._theme),Bo(this),tr.update.call(this,{type:"setTheme"},a)}catch(s){throw this[It]=!1,s}this[It]=!1,hs.call(this,o),ds.call(this,o)}}},t.prototype._updateTheme=function(e){te(e)&&(e=mL[e]),e&&((e=se(e))&&Dk(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ee.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return k(e.storage.getDisplayList(),function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(!this._disposed){var i=(e=e||{}).excludeComponents,r=this._model,o=[],a=this;k(i,function(l){r.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return k(o,function(l){l.group.ignore=!1}),s}this.id},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var i=e.type==="svg",r=this.group,o=Math.min,a=Math.max,s=1/0;if(Cp[r]){var l=s,u=s,c=-1/0,h=-1/0,d=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();k(ga,function(x,_){if(x.group===r){var b=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(se(e)),w=x.getDom().getBoundingClientRect();l=o(w.left,l),u=o(w.top,u),c=a(w.right,c),h=a(w.bottom,h),d.push({dom:b,left:w.left,top:w.top})}});var f=(c*=p)-(l*=p),g=(h*=p)-(u*=p),v=Rt.createCanvas(),y=Sm(v,{renderer:i?"svg":"canvas"});if(y.resize({width:f,height:g}),i){var m="";return k(d,function(x){var _=x.left-l,b=x.top-u;m+='<g transform="translate('+_+","+b+')">'+x.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new Ae({shape:{x:0,y:0,width:f,height:g},style:{fill:e.connectedBackgroundColor}})),k(d,function(x){var _=new zt({style:{x:x.left*p-l,y:x.top*p-u,image:x.dom}});y.add(_)}),y.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}this.id},t.prototype.convertToPixel=function(e,i,r){return Dh(this,"convertToPixel",e,i,r)},t.prototype.convertToLayout=function(e,i,r){return Dh(this,"convertToLayout",e,i,r)},t.prototype.convertFromPixel=function(e,i,r){return Dh(this,"convertFromPixel",e,i,r)},t.prototype.containPixel=function(e,i){var r;if(!this._disposed)return k(Bs(this._model,e),function(o,a){a.indexOf("Models")>=0&&k(o,function(s){var l=s.coordinateSystem;if(l&&l.containPoint)r=r||!!l.containPoint(i);else if(a==="seriesModels"){var u=this._chartsMap[s.__viewId];u&&u.containPoint&&(r=r||u.containPoint(i,s))}},this)},this),!!r;this.id},t.prototype.getVisual=function(e,i){var r=Bs(this._model,e,{defaultMainType:"series"}),o=r.seriesModel,a=o.getData(),s=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?a.indexOfRawIndex(r.dataIndex):null;return s!=null?Sx(a,s,i):Uc(a,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;k(tB,function(r){var o=function(a){var s,l=e.getModel(),u=a.target,c=r==="globalout";if(c?s={}:u&&oa(u,function(g){var v=me(g);if(v&&v.dataIndex!=null){var y=v.dataModel||l.getSeriesByIndex(v.seriesIndex);return s=y&&y.getDataParams(v.dataIndex,v.dataType,u)||{},!0}if(v.eventData)return s=X({},v.eventData),!0},!0),s){var h=s.componentType,d=s.componentIndex;h!=="markLine"&&h!=="markPoint"&&h!=="markArea"||(h="series",d=s.seriesIndex);var p=h&&d!=null&&l.getComponent(h,d),f=p&&e[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];s.event=a,s.type=r,e._$eventProcessor.eventInfo={targetEl:u,packedEvent:s,model:p,view:f},e.trigger(r,s)}};o.zrEventfulCallAtLast=!0,e._zr.on(r,o,e)});var i=this._messageCenter;k(i0,function(r,o){i.on(o,function(a){e.trigger(o,a)})}),(function(r,o,a){r.on("selectchanged",function(s){var l=a.getModel();s.isFromClick?(cs("map","selectchanged",o,l,s),cs("pie","selectchanged",o,l,s)):s.fromAction==="select"?(cs("map","selected",o,l,s),cs("pie","selected",o,l,s)):s.fromAction==="unselect"&&(cs("map","unselected",o,l,s),cs("pie","unselected",o,l,s))})})(i,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?(this.id,void 0):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&$D(this.getDom(),Mx,"");var e=this,i=e._api,r=e._model;k(e._componentsViews,function(o){o.dispose(r,i)}),k(e._chartsViews,function(o){o.dispose(r,i)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete ga[e.id]}},t.prototype.resize=function(e){if(!this[It])if(this._disposed)this.id;else{this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),i){var r=i.resetOption("media"),o=e&&e.silent;this[Bt]&&(o==null&&(o=this[Bt].silent),r=!0,this[Bt]=null),this[It]=!0,ps(this);try{r&&Bo(this),tr.update.call(this,{type:"resize",animation:X({duration:0},e&&e.animation)})}catch(a){throw this[It]=!1,a}this[It]=!1,hs.call(this,o),ds.call(this,o)}}},t.prototype.showLoading=function(e,i){if(this._disposed)this.id;else if(fe(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),a0[e]){var r=a0[e](this._api,i),o=this._zr;this._loadingFX=r,o.add(r)}},t.prototype.hideLoading=function(){this._disposed?(this.id,void 0):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var i=X({},e);return i.type=n0[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed)this.id;else if(fe(i)||(i={silent:!!i}),Ip[e.type]&&this._model)if(this[It])this._pendingActions.push(e);else{var r=i.silent;sv.call(this,e,r);var o=i.flush;o?this._zr.flush():o!==!1&&Ee.browser.weChat&&this._throttledZrFlush(),hs.call(this,r),ds.call(this,r)}},t.prototype.updateLabelLayout=function(){Gn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var i=e.seriesIndex,r=this.getModel().getSeriesByIndex(i);r.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=(function(){function e(s){s.clearColorPalette(),s.eachSeries(function(l){l.clearColorPalette()})}function i(s){for(var l=[],u=s.currentStates,c=0;c<u.length;c++){var h=u[c];h!=="emphasis"&&h!=="blur"&&h!=="select"&&l.push(h)}s.selected&&s.states.select&&l.push("select"),s.hoverState===2&&s.states.emphasis?l.push("emphasis"):s.hoverState===1&&s.states.blur&&l.push("blur"),s.useStates(l)}function r(s,l){if(!s.preventAutoZ){var u=Ca(s);l.eachRendered(function(c){return zf(c,u.z,u.zlevel),!0})}}function o(s,l){l.eachRendered(function(u){if(!Vs(u)){var c=u.getTextContent(),h=u.getTextGuideLine();u.stateTransition&&(u.stateTransition=null),c&&c.stateTransition&&(c.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),u.hasState()?(u.prevStates=u.currentStates,u.clearStates()):u.prevStates&&(u.prevStates=null)}})}function a(s,l){var u=s.getModel("stateAnimation"),c=s.isAnimationEnabled(),h=u.get("duration"),d=h>0?{duration:h,delay:u.get("delay"),easing:u.get("easing")}:null;l.eachRendered(function(p){if(p.states&&p.states.emphasis){if(Vs(p))return;if(p instanceof Le&&(function(y){var m=mA(y);m.normalFill=y.style.fill,m.normalStroke=y.style.stroke;var x=y.states.select||{};m.selectFill=x.style&&x.style.fill||null,m.selectStroke=x.style&&x.style.stroke||null})(p),p.__dirty){var f=p.prevStates;f&&p.useStates(f)}if(c){p.stateTransition=d;var g=p.getTextContent(),v=p.getTextGuideLine();g&&(g.stateTransition=d),v&&(v.stateTransition=d)}p.__dirty&&i(p)}})}Bo=function(s){var l;l=s._model,wp(l).prepare={};var u=s._scheduler;u.restorePipelines(s._zr,s._model),u.prepareStageTasks(),ov(s,!0),ov(s,!1),u.plan()},ov=function(s,l){for(var u=s._model,c=s._scheduler,h=l?s._componentsViews:s._chartsViews,d=l?s._componentsMap:s._chartsMap,p=s._zr,f=s._api,g=0;g<h.length;g++)h[g].__alive=!1;function v(m){var x=m.__requireNewView;m.__requireNewView=!1;var _="_ec_"+m.id+"_"+m.type,b=!x&&d[_];if(!b){var w=Ri(m.type),S=l?et.getClass(w.main,w.sub):Ze.getClass(w.sub);(b=new S).init(u,f),d[_]=b,h.push(b),p.add(b.group)}m.__viewId=b.__id=_,b.__alive=!0,b.__model=m,b.group.__ecComponentInfo={mainType:m.mainType,index:m.componentIndex},!l&&c.prepareView(b,m,u,f)}for(l?u.eachComponent(function(m,x){m!=="series"&&v(x)}):u.eachSeries(v),g=0;g<h.length;){var y=h[g];y.__alive?g++:(!l&&y.renderTask.dispose(),p.remove(y.group),y.dispose(u,f),h.splice(g,1),d[y.__id]===y&&delete d[y.__id],y.__id=y.group.__ecComponentInfo=null)}},Ch=function(s,l,u,c,h){var d=s._model;if(d.setUpdatePayload(u),c){var p,f=G1(u,c,h),g=u.excludeSeriesId;g!=null&&(p=re(),k($e(g),function(y){var m=Tt(y,null);m!=null&&p.set(m,!0)})),d&&d.eachComponent(f,function(y){if(!(p&&p.get(y.id)!=null))if(Xb(u))if(y instanceof je)u.type!==da||u.notBlur||y.get(["emphasis","disabled"])||(function(b,w,S){var M=b.seriesIndex,I=b.getData(w.dataType);if(I){var T=wa(I,w);T=(q(T)?T[0]:T)||0;var C=I.getItemGraphicEl(T);if(!C)for(var D=I.count(),A=0;!C&&A<D;)C=I.getItemGraphicEl(A++);if(C){var L=me(C);Eg(M,L.focus,L.blurScope,S)}else{var P=b.get(["emphasis","focus"]),E=b.get(["emphasis","blurScope"]);P!=null&&Eg(M,P,E,S)}}})(y,u,s._api);else{var m=Bg(y.mainType,y.componentIndex,u.name,s._api),x=m.focusSelf,_=m.dispatchers;u.type===da&&x&&!u.notBlur&&zg(y.mainType,y.componentIndex,s._api),_&&k(_,function(b){u.type===da?br(b):wr(b)})}else Vg(u)&&y instanceof je&&((function(b,w){if(Vg(w)){var S=w.dataType,M=wa(b.getData(S),w);q(M)||(M=[M]),b[w.type===cp?"toggleSelect":w.type===up?"select":"unselect"](M,S)}})(y,u,s._api),Ub(y),Nn(s))},s),d&&d.eachComponent(f,function(y){p&&p.get(y.id)!=null||v(s[c==="series"?"_chartsMap":"_componentsMap"][y.__viewId])},s)}else k([].concat(s._componentsViews).concat(s._chartsViews),v);function v(y){y&&y.__alive&&y[l]&&y[l](y.__model,d,s._api,u)}},tr={prepareAndUpdate:function(s){Bo(this),tr.update.call(this,s,s&&{optionChanged:s.newOption!=null})},update:function(s,l){var u=this._model,c=this._api,h=this._zr,d=this._coordSysMgr,p=this._scheduler;if(u){(function(v){wp(v).fullUpdate={}})(u),u.setUpdatePayload(s),p.restoreData(u,s),p.performSeriesTasks(u),d.create(u,c),Gn.trigger("coordsys:aftercreate",u,c),p.performDataProcessorTasks(u,s),av(this,u),d.update(u,c),e(u),p.performVisualTasks(u,s);var f=u.get("backgroundColor")||"transparent";h.setBackgroundColor(f);var g=u.get("darkMode");g!=null&&g!=="auto"&&h.setDarkMode(g),lv(this,u,c,s,l),Gn.trigger("afterupdate",u,c)}},updateTransform:function(s){var l=this,u=l._model,c=l._api;if(u){u.setUpdatePayload(s);var h=[];u.eachComponent(function(p,f){if(p!==Ti){var g=l.getViewOfComponentModel(f);if(g&&g.__alive)if(g.updateTransform){var v=g.updateTransform(f,u,c,s);v&&v.update&&h.push(g)}else h.push(g)}});var d=re();u.eachSeries(function(p){var f=l._chartsMap[p.__viewId],g=p.pipelineContext;if(f.updateTransform&&!g.progressiveRender){var v=f.updateTransform(p,u,c,s);v&&v.update&&d.set(p.uid,1)}else d.set(p.uid,1)}),l._scheduler.performVisualTasks(u,s,{setDirty:!0,dirtyMap:d}),Ah(l,u,c,s,{},d),Gn.trigger("afterupdate",u,c)}},updateView:function(s){var l=this._model;l&&(l.setUpdatePayload(s),Ze.markUpdateMethod(s,"updateView"),e(l),this._scheduler.performVisualTasks(l,s,{setDirty:!0}),lv(this,l,this._api,s,{}),Gn.trigger("afterupdate",l,this._api))},updateVisual:function(s){var l=this,u=this._model;u&&(u.setUpdatePayload(s),u.eachSeries(function(c){c.getData().clearAllVisual()}),Ze.markUpdateMethod(s,"updateVisual"),e(u),this._scheduler.performVisualTasks(u,s,{visualType:"visual",setDirty:!0}),u.eachComponent(function(c,h){if(c!=="series"){var d=l.getViewOfComponentModel(h);d&&d.__alive&&d.updateVisual(h,u,l._api,s)}}),u.eachSeries(function(c){l._chartsMap[c.__viewId].updateVisual(c,u,l._api,s)}),Gn.trigger("afterupdate",u,this._api))},updateLayout:function(s){tr.update.call(this,s)}},Dh=function(s,l,u,c,h){if(s._disposed)s.id;else for(var d,p=s._model,f=s._coordSysMgr.getCoordinateSystems(),g=Bs(p,u),v=0;v<f.length;v++){var y=f[v];if(y[l]&&(d=y[l](p,g,c,h))!=null)return d}},av=function(s,l){var u=s._chartsMap,c=s._scheduler;l.eachSeries(function(h){c.updateStreamModes(h,u[h.__viewId])})},sv=function(s,l){var u=this,c=this.getModel(),h=s.type,d=s.escapeConnect,p=Ip[h],f=(p.update||"update").split(":"),g=f.pop(),v=f[0]!=null&&Ri(f[0]);this[It]=!0,ps(this);var y=[s],m=!1;s.batch&&(m=!0,y=K(s.batch,function(D){return(D=pe(X({},D),s)).batch=null,D}));var x,_=[],b=[],w=p.nonRefinedEventType,S=Vg(s),M=Xb(s);if(M&&Wb(this._api),k(y,function(D){var A=p.action(D,c,u._api);if(p.refineEvent?b.push(A):x=A,(x=x||X({},D)).type=w,_.push(x),M){var L=V1(s),P=L.queryOptionMap,E=L.mainTypeSpecified?P.keys()[0]:"series";Ch(u,g,D,E),Nn(u)}else S?(Ch(u,g,D,"series"),Nn(u)):v&&Ch(u,g,D,v.main,v.sub)}),g!=="none"&&!M&&!S&&!v)try{this[Bt]?(Bo(this),tr.update.call(this,s),this[Bt]=null):tr[g].call(this,s)}catch(D){throw this[It]=!1,D}if(x=m?{type:w,escapeConnect:d,batch:_}:_[0],this[It]=!1,!l){var I=void 0;if(p.refineEvent){var T=p.refineEvent(b,s,c,this._api).eventContent;Kt(fe(T)),(I=pe({type:p.refinedEventType},T)).fromAction=s.type,I.fromActionPayload=s,I.escapeConnect=!0}var C=this._messageCenter;C.trigger(x.type,x),I&&C.trigger(I.type,I)}},hs=function(s){for(var l=this._pendingActions;l.length;){var u=l.shift();sv.call(this,u,s)}},ds=function(s){!s&&this.trigger("updated")},aS=function(s,l){s.on("rendered",function(u){l.trigger("rendered",u),!s.animation.isFinished()||l[Bt]||l._scheduler.unfinished||l._pendingActions.length?s.refresh():l.trigger("finished")})},sS=function(s,l){s.on("mouseover",function(u){var c=oa(u.target,lc);c&&((function(h,d,p){var f=me(h),g=Bg(f.componentMainType,f.componentIndex,f.componentHighDownName,p),v=g.dispatchers,y=g.focusSelf;v?(y&&zg(f.componentMainType,f.componentIndex,p),k(v,function(m){return Fb(m,d)})):(Eg(f.seriesIndex,f.focus,f.blurScope,p),f.focus==="self"&&zg(f.componentMainType,f.componentIndex,p),Fb(h,d))})(c,u,l._api),Nn(l))}).on("mouseout",function(u){var c=oa(u.target,lc);c&&((function(h,d,p){Wb(p);var f=me(h),g=Bg(f.componentMainType,f.componentIndex,f.componentHighDownName,p).dispatchers;g?k(g,function(v){return Hb(v,d)}):Hb(h,d)})(c,u,l._api),Nn(l))}).on("click",function(u){var c=oa(u.target,function(p){return me(p).dataIndex!=null},!0);if(c){var h=c.selected?"unselect":"select",d=me(c);l._api.dispatchAction({type:h,dataType:d.dataType,dataIndexInside:d.dataIndex,seriesIndex:d.seriesIndex,isFromClick:!0})}})},lv=function(s,l,u,c,h){(function(d){var p=[],f=[],g=!1;if(d.eachComponent(function(x,_){var b=_.get("zlevel")||0,w=_.get("z")||0,S=_.getZLevelKey();g=g||!!S,(x==="series"?f:p).push({zlevel:b,z:w,idx:_.componentIndex,type:x,key:S})}),g){var v,y,m=p.concat(f);bd(m,function(x,_){return x.zlevel===_.zlevel?x.z-_.z:x.zlevel-_.zlevel}),k(m,function(x){var _=d.getComponent(x.type,x.idx),b=x.zlevel,w=x.key;v!=null&&(b=Math.max(v,b)),w?(b===v&&w!==y&&b++,y=w):y&&(b===v&&b++,y=""),v=b,_.setZLevel(b)})}})(l),lS(s,l,u,c,h),k(s._chartsViews,function(d){d.__alive=!1}),Ah(s,l,u,c,h),k(s._chartsViews,function(d){d.__alive||d.remove(l,u)})},lS=function(s,l,u,c,h,d){k(d||s._componentsViews,function(p){var f=p.__model;o(f,p),p.render(f,l,u,c),r(f,p),a(f,p)})},Ah=function(s,l,u,c,h,d){var p=s._scheduler;h=X(h||{},{updatedSeries:l.getSeries()}),Gn.trigger("series:beforeupdate",l,u,h);var f=!1;l.eachSeries(function(g){var v=s._chartsMap[g.__viewId];v.__alive=!0;var y=v.renderTask;p.updatePayload(y,c),o(g,v),d&&d.get(g.uid)&&y.dirty(),y.perform(p.getPerformArgs(y))&&(f=!0),v.group.silent=!!g.get("silent"),(function(m,x){var _=m.get("blendMode")||null;x.eachRendered(function(b){b.isGroup||(b.style.blend=_)})})(g,v),Ub(g)}),p.unfinished=f||p.unfinished,Gn.trigger("series:layoutlabels",l,u,h),Gn.trigger("series:transition",l,u,h),l.eachSeries(function(g){var v=s._chartsMap[g.__viewId];r(g,v),a(g,v)}),(function(g,v){var y=g._zr;if(y.painter.type==="canvas"){var m=y.storage,x=0;m.traverse(function(b){b.isGroup||x++});var _=x>ae(v.get("hoverLayerThreshold"),_k.hoverLayerThreshold)&&!Ee.node&&!Ee.worker;(g._usingTHL||_)&&(v.eachSeries(function(b){if(!b.preventUsingHoverLayer){var w=g._chartsMap[b.__viewId];w.__alive&&w.eachRendered(function(S){var M=S.states.emphasis;M&&M.hoverLayer!==2&&(M.hoverLayer=_?1:0)})}}),g._usingTHL=_)}})(s,l),Gn.trigger("series:afterupdate",l,u,h)},Nn=function(s){s[iv]=!0,s.getZr().wakeUp()},ps=function(s){s[Th]=(s[Th]+1)%1e6},cS=function(s){s[iv]&&(s.getZr().storage.traverse(function(l){Vs(l)||i(l)}),s[iv]=!1)},uS=function(s){return new((function(l){function u(){return l!==null&&l.apply(this,arguments)||this}return G(u,l),u.prototype.getCoordinateSystems=function(){return s._coordSysMgr.getCoordinateSystems()},u.prototype.getComponentByElement=function(c){for(;c;){var h=c.__ecComponentInfo;if(h!=null)return s._model.getComponent(h.mainType,h.index);c=c.parent}},u.prototype.enterEmphasis=function(c,h){br(c,h),Nn(s)},u.prototype.leaveEmphasis=function(c,h){wr(c,h),Nn(s)},u.prototype.enterBlur=function(c){wA(c),Nn(s)},u.prototype.leaveBlur=function(c){Y1(c),Nn(s)},u.prototype.enterSelect=function(c){SA(c),Nn(s)},u.prototype.leaveSelect=function(c){MA(c),Nn(s)},u.prototype.getModel=function(){return s.getModel()},u.prototype.getViewOfComponentModel=function(c){return s.getViewOfComponentModel(c)},u.prototype.getViewOfSeriesModel=function(c){return s.getViewOfSeriesModel(c)},u.prototype.getECUpdateCycleVersion=function(){return s[Th]},u.prototype.usingTHL=function(){return s._usingTHL},u})(vA))(s)},vL=function(s){function l(u,c){for(var h=0;h<u.length;h++)u[h][rv]=c}k(n0,function(u,c){s._messageCenter.on(c,function(h){if(Cp[s.group]&&s[rv]!==0){if(h&&h.escapeConnect)return;var d=s.makeActionFromEvent(h),p=[];k(ga,function(f){f!==s&&f.group===s.group&&p.push(f)}),l(p,0),k(p,function(f){f[rv]!==1&&f.dispatchAction(d)}),l(p,2)}})})}})(),t})(Qn),uv=Mp.prototype;uv.on=rS("on"),uv.off=rS("off"),uv.one=function(n,t,e){var i=this;this.on.call(this,n,function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),i.off(n,r)},e)};var tB=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ip={},n0={},i0={},r0=[],o0=[],Tp=[],mL={},a0={},ga={},Cp={},nB=+new Date-0,iB=+new Date-0,Mx="_echarts_instance_";function O6(n,t,e){var i=!(e&&e.ssr);if(i){var r=xL(n);if(r)return r}var o=new Mp(n,t,e);return o.id="ec_"+nB++,ga[o.id]=o,i&&$D(n,Mx,o.id),vL(o),Gn.trigger("afterinit",o),o}function R6(n){if(q(n)){var t=n;n=null,k(t,function(e){e.group!=null&&(n=e.group)}),n=n||"g_"+iB++,k(t,function(e){e.group=n})}return Cp[n]=!0,n}function rB(n){Cp[n]=!1}var N6=rB;function E6(n){te(n)?n=ga[n]:n instanceof Mp||(n=xL(n)),n instanceof Mp&&!n.isDisposed()&&n.dispose()}function xL(n){return ga[(function(t,e){return t.getAttribute?t.getAttribute(e):t[e]})(n,Mx)]}function z6(n){return ga[n]}function dS(n,t){mL[n]=t}function _L(n){be(o0,n)<0&&o0.push(n)}function bL(n,t){Tx(r0,n,t,2e3)}function oB(n){Ix("afterinit",n)}function aB(n){Ix("afterupdate",n)}function Ix(n,t){Gn.on(n,t)}function Ci(n,t,e){var i,r,o,a,s;function l(c){return c.toLowerCase()}le(t)&&(e=t,t=""),fe(n)?(i=n.type,r=n.event,a=n.update,s=n.publishNonRefinedEvent,e||(e=n.action),o=n.refineEvent):(i=n,r=t),r=l(r||i);var u=o?l(i):r;Ip[i]||(Kt(iS.test(i)&&iS.test(r)),o&&Kt(r!==i),Ip[i]={actionType:i,refinedEventType:r,nonRefinedEventType:u,update:a,action:e,refineEvent:o},i0[r]=1,o&&s&&(i0[u]=1),n0[u]=i)}function sB(n,t){_l.register(n,t)}function B6(n){var t=_l.get(n);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function V6(n,t){uL(n,t)}function lB(n,t){Tx(Tp,n,t,1e3,"layout",!0)}function Yo(n,t){Tx(Tp,n,t,3e3,"visual",!0)}var pS=[];function Tx(n,t,e,i,r,o){if((le(t)||fe(t))&&(e=t,t=i),!(be(pS,e)>=0)){pS.push(e);var a=tL.wrapStageHandler(e,r);a.__prio=t,a.__raw=e,n.push(a)}}function wL(n,t){a0[n]=t}function G6(n){yN({createCanvas:n})}function uB(n,t,e){var i=sL("registerMap");i&&i(n,t,e)}function F6(n){var t=sL("getMap");return t&&t(n)}var cB=function(n){var t=(n=se(n)).type,e="";t||Ue(e);var i=t.split(":");i.length!==2&&Ue(e);var r=!1;i[0]==="echarts"&&(t=i[1],r=!0),n.__isBuiltIn=r,Gk.set(t,n)};function cv(n,t,e,i){return{eventContent:{selected:sz(e),isFromClick:t.isFromClick||!1}}}Yo(t0,C5),Yo(Nd,D5),Yo(Nd,A5),Yo(t0,G5),Yo(Nd,F5),Yo(7e3,Q5),_L(Dk),bL(900,jz),wL("default",function(n,t){pe(t=t||{},{text:"loading",textColor:H.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:H.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new he,i=new Ae({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var r,o=new Be({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ae({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return e.add(a),t.showSpinner&&((r=new Gc({shape:{startAngle:-bh/2,endAngle:-bh/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*bh/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*bh/2}).delay(300).start("circularInOut"),e.add(r)),e.resize=function(){var s=o.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(n.getWidth()-2*l-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;t.showSpinner&&r.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:2*l,height:2*l}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}),Ci({type:da,event:da,update:da},ct),Ci({type:Dd,event:Dd,update:Dd},ct),Ci({type:up,event:Rg,update:up,action:ct,refineEvent:cv,publishNonRefinedEvent:!0}),Ci({type:Om,event:Rg,update:Om,action:ct,refineEvent:cv,publishNonRefinedEvent:!0}),Ci({type:cp,event:Rg,update:cp,action:ct,refineEvent:cv,publishNonRefinedEvent:!0}),dS("default",{}),dS("dark",rL);var H6={},fS=[],hB={registerPreprocessor:_L,registerProcessor:bL,registerPostInit:oB,registerPostUpdate:aB,registerUpdateLifecycle:Ix,registerAction:Ci,registerCoordinateSystem:sB,registerLayout:lB,registerVisual:Yo,registerTransform:cB,registerLoading:wL,registerMap:uB,registerImpl:function(n,t){aL[n]=t},PRIORITY:eB,ComponentModel:ke,ComponentView:et,SeriesModel:je,ChartView:Ze,registerComponentModel:function(n){ke.registerClass(n)},registerComponentView:function(n){et.registerClass(n)},registerSeriesModel:function(n){je.registerClass(n)},registerChartView:function(n){Ze.registerClass(n)},registerCustomSeries:function(n,t){uL(n,t)},registerSubTypeDefaulter:function(n,t){ke.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){GD(n,t)}};function Te(n){q(n)?k(n,function(t){Te(t)}):be(fS,n)>=0||(fS.push(n),le(n)&&(n={install:n}),n.install(hB))}function Wl(n){return n==null?0:n.length||1}function gS(n){return n}var Sr=(function(){function n(t,e,i,r,o,a){this._old=t,this._new=e,this._oldKeyGetter=i||gS,this._newKeyGetter=r||gS,this.context=o,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(t){return this._add=t,this},n.prototype.update=function(t){return this._update=t,this},n.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},n.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},n.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},n.prototype.remove=function(t){return this._remove=t,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},r=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=r[a],l=i[s],u=Wl(l);if(u>1){var c=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(c,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,i)},n.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},r={},o=[],a=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=i[l],c=r[l],h=Wl(u),d=Wl(c);if(h>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),r[l]=null;else if(h===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),r[l]=null;else if(h===1&&d===1)this._update&&this._update(c,u),r[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),r[l]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(a,r)},n.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var r=t[i],o=e[r],a=Wl(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);e[r]=null}},n.prototype._initIndexMap=function(t,e,i,r){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[r](t[a],a);if(o||(i[a]=s),e){var l=e[s],u=Wl(l);u===0?(e[s]=a,o&&i.push(s)):u===1?e[s]=[l,a]:l.push(a)}}},n})(),dB=(function(){function n(t,e){this._encode=t,this._schema=e}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n})();function hv(n,t){return n.hasOwnProperty(t)||(n[t]=[]),n[t]}function Dp(n){return n==="category"?"ordinal":n==="time"?"time":"float"}var Ed=function(n){this.otherDims={},n!=null&&X(this,n)},pB=Me(),fB={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SL=(function(){function n(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=IL(this.source)))},n.prototype.getSourceDimensionIndex=function(t){return ae(this._dimNameMap.get(t),-1)},n.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},n.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=kk(this.source),i=!TL(t),r="",o=[],a=0,s=0;a<t;a++){var l=void 0,u=void 0,c=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===a)l=e?h.name:null,u=h.type,c=h.ordinalMeta,s++;else{var d=this.getSourceDimension(a);d&&(l=e?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),!e||l==null||h&&h.isCalculationCoord||(r+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=fB[u]||"f",c&&(r+=c.uid),r+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,r].join("$$")}},n.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var r=void 0,o=this.dimensions[i];if(o&&o.storeDimIndex===e)o.isCalculationCoord||(r=o.name),i++;else{var a=this.getSourceDimension(e);a&&(r=a.name)}t.push(r)}return t},n.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n})();function ML(n){return n instanceof SL}function Cx(n){for(var t=re(),e=0;e<(n||[]).length;e++){var i=n[e],r=fe(i)?i.name:i;r!=null&&t.get(r)==null&&t.set(r,e)}return t}function IL(n){var t=pB(n);return t.dimNameMap||(t.dimNameMap=Cx(n.dimensionsDefine))}function TL(n){return n>30}var vS,kh,Ul,Yl,dv,Xl,pv,Zl=fe,Nr=K,gB=typeof Int32Array>"u"?Array:Int32Array,vB=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],yB=["_approximateExtent"],fn=(function(){function n(t,e){var i;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 r=!1;ML(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,i=t),i=i||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c<i.length;c++){var h=i[c],d=te(h)?new Ed({name:h}):h instanceof Ed?h:new Ed(h),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};a.push(p),o[p]=d,u[p]!=null&&(l=!0),d.createInvertedIndices&&(s[p]=[]),r&&(d.storeDimIndex=c),f.itemName===0&&(this._nameDimIdx=d.storeDimIndex),f.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=re();k(a,function(v){g.set(o[v].storeDimIndex,v)})}}return n.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},n.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},n.prototype._recognizeDimIndex=function(t){if(Ve(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},n.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},n.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},n.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var r=i.encode[t];return r?r[e]:null},n.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(t,e,i){var r,o=this;if(t instanceof Zm&&(r=t),!r){var a=this.dimensions,s=yx(t)||qt(t)?new Lk(t,a.length):t;r=new Zm;var l=Nr(a,function(u){return{type:o._dimInfos[u].type,property:u}});r.initData(s,l,i)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=(function(u,c){var h={},d=h.encode={},p=re(),f=[],g=[],v={};k(u.dimensions,function(b){var w,S=u.getDimensionInfo(b),M=S.coordDim;if(M){var I=S.coordDimIndex;hv(d,M)[I]=b,S.isExtraCoord||(p.set(M,1),(w=S.type)!=="ordinal"&&w!=="time"&&(f[0]=b),hv(v,M)[I]=u.getDimensionIndex(S.name)),S.defaultTooltip&&g.push(b)}pA.each(function(T,C){var D=hv(d,C),A=S.otherDims[C];A!=null&&A!==!1&&(D[A]=S.name)})});var y=[],m={};p.each(function(b,w){var S=d[w];m[w]=S[0],y=y.concat(S)}),h.dataDimsOnCoord=y,h.dataDimIndicesOnCoord=K(y,function(b){return u.getDimensionInfo(b).storeDimIndex}),h.encodeFirstDimNotExtra=m;var x=d.label;x&&x.length&&(f=x.slice());var _=d.tooltip;return _&&_.length?g=_.slice():g.length||(g=f.slice()),d.defaultedLabel=f,d.defaultedTooltip=g,h.userOutput=new dB(v,c),h})(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},n.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),r=i.start,o=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=r;s<o;s++){var l=s-r;this._nameList[s]=e[l],a&&pv(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var r=this._dimInfos[e[i]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==io&&!t.fillStorage},n.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(i.getSource().sourceFormat===Pn&&!i.pure)for(var a=[],s=t;s<e;s++){var l=i.getItem(s,a);if(!this.hasItemOption&&bE(l)&&(this.hasItemOption=!0),l){var u=l.name;r[s]==null&&u!=null&&(r[s]=Tt(u,null));var c=l.id;o[s]==null&&c!=null&&(o[s]=Tt(c,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)pv(this,s);vS(this)}},n.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},n.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},n.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},n.prototype.setCalculationInfo=function(t,e){Zl(t)?X(this._calculationInfo,t):this._calculationInfo[t]=e},n.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=Ul(this,this._nameDimIdx,e)),i==null&&(i=""),i},n.prototype._getCategory=function(t,e){var i=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[i]:i},n.prototype.getId=function(t){return kh(this,this.getRawIndex(t))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(t,e){var i=this._store,r=this._dimInfos[t];if(r)return i.get(r.storeDimIndex,e)},n.prototype.getByRawIndex=function(t,e){var i=this._store,r=this._dimInfos[t];if(r)return i.getByRawIndex(r.storeDimIndex,e)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},n.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},n.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},n.prototype.getValues=function(t,e){var i=this,r=this._store;return q(t)?r.getValues(Nr(t,function(o){return i._getStoreDimIndex(o)}),e):r.getValues(t)},n.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,r=e.length;i<r;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},n.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},n.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},n.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},n.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],r=i&&i[e];return r==null||isNaN(r)?-1:r},n.prototype.each=function(t,e,i){le(t)&&(i=e,e=t,t=[]);var r=i||this,o=Nr(Yl(t),this._getStoreDimIndex,this);this._store.each(o,r?ie(e,r):e)},n.prototype.filterSelf=function(t,e,i){le(t)&&(i=e,e=t,t=[]);var r=i||this,o=Nr(Yl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,r?ie(e,r):e),this},n.prototype.selectRange=function(t){var e=this,i={};return k(Re(t),function(r){var o=e._getStoreDimIndex(r);i[o]=t[r]}),this._store=this._store.selectRange(i),this},n.prototype.mapArray=function(t,e,i){le(t)&&(i=e,e=t,t=[]),i=i||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i),r},n.prototype.map=function(t,e,i,r){var o=i||r||this,a=Nr(Yl(t),this._getStoreDimIndex,this),s=Xl(this);return s._store=this._store.map(a,o?ie(e,o):e),s},n.prototype.modify=function(t,e,i,r){var o=i||r||this,a=Nr(Yl(t),this._getStoreDimIndex,this);this._store.modify(a,o?ie(e,o):e)},n.prototype.downSample=function(t,e,i,r){var o=Xl(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,i,r),o},n.prototype.minmaxDownSample=function(t,e){var i=Xl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},n.prototype.lttbDownSample=function(t,e){var i=Xl(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},n.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},n.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new Oe(i,e,e&&e.ecModel)},n.prototype.diff=function(t){var e=this;return new Sr(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return kh(t,i)},function(i){return kh(e,i)})},n.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},n.prototype.setVisual=function(t,e){this._visual=this._visual||{},Zl(t)?X(this._visual,t):this._visual[t]=e},n.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],r=i&&i[e];return r??this.getVisual(e)},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,r=i[t];r||(r=i[t]={});var o=r[e];return o==null&&(q(o=this.getVisual(e))?o=o.slice():Zl(o)&&(o=X({},o)),r[e]=o),o},n.prototype.setItemVisual=function(t,e,i){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,Zl(e)?X(r,e):r[e]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,e){Zl(t)?X(this._layout,t):this._layout[t]=e},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?X(this._itemLayouts[t]||{},e):e},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Pm(i,this.dataType,t,e),this._graphicEls[t]=e},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,e){k(this._graphicEls,function(i,r){i&&t&&t.call(e,i,r)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:Nr(this.dimensions,this._getDimInfo,this),this.hostModel)),dv(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,e){var i=this[t];le(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var r=i.apply(this,arguments);return e.apply(this,[r].concat(bf(arguments)))})},n.internalField=(vS=function(t){var e=t._invertedIndicesMap;k(e,function(i,r){var o=t._dimInfos[r],a=o.ordinalMeta,s=t._store;if(a){i=e[r]=new gB(a.categories.length);for(var l=0;l<i.length;l++)i[l]=-1;for(l=0;l<s.count();l++)i[s.get(o.storeDimIndex,l)]=l}})},Ul=function(t,e,i){return Tt(t._getCategory(e,i),null)},kh=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Ul(t,t._idDimIdx,e)),i==null&&(i="e\0\0"+e),i},Yl=function(t){return q(t)||(t=t!=null?[t]:[]),t},Xl=function(t){var e=new n(t._schema?t._schema:Nr(t.dimensions,t._getDimInfo,t),t.hostModel);return dv(e,t),e},dv=function(t,e){k(vB.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,k(yB,function(i){t[i]=se(e[i])}),t._calculationInfo=X({},e._calculationInfo)},void(pv=function(t,e){var i=t._nameList,r=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=i[e],l=r[e];if(s==null&&o!=null&&(i[e]=s=Ul(t,o,e)),l==null&&a!=null&&(r[e]=l=Ul(t,a,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),r[e]=l}})),n})();function Ml(n,t){yx(n)||(n=mx(n));var e=(t=t||{}).coordDimensions||[],i=t.dimensionsDefine||n.dimensionsDefine||[],r=re(),o=[],a=(function(M,I,T,C){var D=Math.max(M.dimensionsDetectedCount||1,I.length,T.length,C||0);return k(I,function(A){var L;fe(A)&&(L=A.dimsDef)&&(D=Math.max(D,L.length))}),D})(n,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&TL(a),l=i===n.dimensionsDefine,u=l?IL(n):Cx(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(n,a));for(var h=re(c),d=new Fk(a),p=0;p<d.length;p++)d[p]=-1;function f(M){var I=d[M];if(I<0){var T=i[M],C=fe(T)?T:{name:T},D=new Ed,A=C.name;A!=null&&u.get(A)!=null&&(D.name=D.displayName=A),C.type!=null&&(D.type=C.type),C.displayName!=null&&(D.displayName=C.displayName);var L=o.length;return d[M]=L,D.storeDimIndex=M,o.push(D),D}return o[I]}if(!s)for(p=0;p<a;p++)f(p);h.each(function(M,I){var T=$e(M).slice();if(T.length===1&&!te(T[0])&&T[0]<0)h.set(I,!1);else{var C=h.set(I,[]);k(T,function(D,A){var L=te(D)?u.get(D):D;L!=null&&L<a&&(C[A]=L,v(f(L),I,A))})}});var g=0;function v(M,I,T){pA.get(I)!=null?M.otherDims[I]=T:(M.coordDim=I,M.coordDimIndex=T,r.set(I,!0))}k(e,function(M){var I,T,C,D;if(te(M))I=M,D={};else{I=(D=M).name;var A=D.ordinalMeta;D.ordinalMeta=null,(D=X({},D)).ordinalMeta=A,T=D.dimsDef,C=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var L=h.get(I);if(L!==!1){if(!(L=$e(L)).length)for(var P=0;P<(T&&T.length||1);P++){for(;g<a&&f(g).coordDim!=null;)g++;g<a&&L.push(g++)}k(L,function(E,O){var N=f(E);if(l&&D.type!=null&&(N.type=D.type),v(pe(N,D),I,O),N.name==null&&T){var R=T[O];!fe(R)&&(R={name:R}),N.name=N.displayName=R.name,N.defaultTooltip=R.defaultTooltip}C&&pe(N.otherDims,C)})}});var y=t.generateCoord,m=t.generateCoordCount,x=m!=null;m=y?m||1:0;var _=y||"value";function b(M){M.name==null&&(M.name=M.coordDim)}if(s)k(o,function(M){b(M)}),o.sort(function(M,I){return M.storeDimIndex-I.storeDimIndex});else for(var w=0;w<a;w++){var S=f(w);S.coordDim==null&&(S.coordDim=mB(_,r,x),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),b(S),S.type!=null||Mk(n,w)!==xp&&(!S.isExtraCoord||S.otherDims.itemName==null&&S.otherDims.seriesName==null)||(S.type="ordinal")}return Df(o,function(M){return M.name},function(M,I){I>0&&(M.name=M.name+(I-1))}),new SL({source:n,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function mB(n,t,e){if(e||t.hasKey(n)){for(var i=0;t.hasKey(n+i);)i++;n+=i}return t.set(n,!0),n}var xB=function(n){this.coordSysDims=[],this.axisMap=re(),this.categoryAxisMap=re(),this.coordSysName=n},_B={cartesian2d:function(n,t,e,i){var r=n.getReferringComponents("xAxis",pt).models[0],o=n.getReferringComponents("yAxis",pt).models[0];t.coordSysDims=["x","y"],e.set("x",r),e.set("y",o),fs(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),fs(o)&&(i.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,e,i){var r=n.getReferringComponents("singleAxis",pt).models[0];t.coordSysDims=["single"],e.set("single",r),fs(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(n,t,e,i){var r=n.getReferringComponents("polar",pt).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",o),e.set("angle",a),fs(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),fs(a)&&(i.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(n,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(n,t,e,i){var r=n.ecModel,o=r.getComponent("parallel",n.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();k(o.parallelAxisIndex,function(s,l){var u=r.getComponent("parallelAxis",s),c=a[l];e.set(c,u),fs(u)&&(i.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(n,t,e,i){var r=n.getReferringComponents("matrix",pt).models[0];t.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");e.set("x",o),e.set("y",a),i.set("x",o),i.set("y",a)}};function fs(n){return n.get("type")==="category"}function CL(n,t,e){var i,r,o,a=(e=e||{}).byIndex,s=e.stackedCoordDimension;(function(_){return!ML(_.schema)})(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,c,h,d=!(!n||!n.get("stack")),p=!0;function f(_){return _.type!=="ordinal"&&_.type!=="time"}if(k(i,function(_,b){te(_)&&(i[b]=_={name:_}),f(_)||(p=!1)}),k(i,function(_,b){d&&!_.isExtraCoord&&(a||l||!_.ordinalMeta||(l=_),u||!f(_)||p&&(_.coordDim==="x"||_.coordDim==="angle")||s&&s!==_.coordDim||(u=_))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+n.id,h="__\0ecstackedover_"+n.id,l&&(l.createInvertedIndices=!0);var g=u.coordDim,v=u.type,y=0;k(i,function(_){_.coordDim===g&&y++});var m={name:c,coordDim:g,coordDimIndex:y,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},x={name:h,coordDim:h,coordDimIndex:y+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(m.storeDimIndex=o.ensureCalculationDimension(h,v),x.storeDimIndex=o.ensureCalculationDimension(c,v)),r.appendCalculationDimension(m),r.appendCalculationDimension(x)):(i.push(m),i.push(x))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Mr(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}function Dx(n,t){return Mr(n,t)?n.getCalculationInfo("stackResultDimension"):t}function Ji(n,t,e){e=e||{};var i,r=t.getSourceManager(),o=!1;n?(o=!0,i=mx(n)):o=(i=r.getSource()).sourceFormat===Pn;var a=(function(v){var y=v.get("coordinateSystem"),m=new xB(y),x=_B[y];if(x)return x(v,m,m.axisMap,m.categoryAxisMap),m})(t),s=(function(v,y){var m,x=v.get("coordinateSystem"),_=_l.get(x);return y&&y.coordSysDims&&(m=K(y.coordSysDims,function(b){var w={name:b},S=y.axisMap.get(b);if(S){var M=S.get("type");w.type=Dp(M)}return w})),m||(m=_&&(_.getDimensionsInfo?_.getDimensionsInfo():_.dimensions.slice())||["x","y"]),m})(t,a),l=e.useEncodeDefaulter,u=le(l)?l:l?Ce(Sk,s,t):null,c=Ml(i,{coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=(function(v,y,m){var x,_;return m&&k(v,function(b,w){var S=b.coordDim,M=m.categoryAxisMap.get(S);M&&(x==null&&(x=w),b.ordinalMeta=M.getOrdinalMeta(),y&&(b.createInvertedIndices=!0)),b.otherDims.itemName!=null&&(_=!0)}),_||x==null||(v[x].otherDims.itemName=0),x})(c.dimensions,e.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),p=CL(t,{schema:c,store:d}),f=new fn(c,t);f.setCalculationInfo(p);var g=h!=null&&(function(v){if(v.sourceFormat===Pn){var y=(function(m){for(var x=0;x<m.length&&m[x]==null;)x++;return m[x]})(v.data||[]);return!q(cl(y))}})(i)?function(v,y,m,x){return x===h?m:this.defaultDimValueGetter(v,y,m,x)}:null;return f.hasItemOption=!1,f.initData(o?i:d,null,g),f}var pi=(function(){function n(){}return n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n})();Af(pi);var bB=0,gc=(function(){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++bB,this._onCollect=t.onCollect}return n.createByAxisModel=function(t){var e=t.option,i=e.data,r=i&&K(i,wB);return new n({categories:r,needCollect:!r,deduplication:e.dedplication!==!1})},n.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},n.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!te(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var r=this._getOrCreateMap();return(e=r.get(t))==null&&(i?(e=this.categories.length,this.categories[e]=t,r.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},n.prototype._getOrCreateMap=function(){return this._map||(this._map=re(this.categories))},n})();function wB(n){return fe(n)&&n.value!=null?n.value:n+""}var DL=Re({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});function Ax(n,t,e){var i;n=n||{};var r=mt();if(r){var o=r.createBreakScaleMapper(t,e);o.hasBreaks()&&(k(DL,function(a){o[a]&&(n[a]=ie(o[a],o))}),i=o)}return i==null&&s0(n,e),{brk:i,mapper:n}}function kx(n,t){k(DL,function(e){n[e]=t[e]})}function Lx(n,t){n.freeze=ct}function vc(n){return n.getExtentUnsafe(0,2)}function yc(n,t){return n.getExtentUnsafe(1,t)||n.getExtentUnsafe(0,t)}function Ap(n){var t=n.getExtentUnsafe(0,3);return t[1]-t[0]}function s0(n,t){var e=n||{},i=[];return e._extents=i,i[0]=t?t.slice():[1/0,-1/0],X(e,SB),e}var SB={needTransform:function(){return!1},normalize:function(n){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])},scale:function(n){var t=this._extents[1]||this._extents[0];return n*(t[1]-t[0])+t[0]},transformIn:function(n){return n},transformOut:function(n){return n},contain:function(n){var t=yc(this,null);return n>=t[0]&&n<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(n){return this._extents[n]},setExtent:function(n,t){yS(this._extents,0,n,t)},setExtent2:function(n,t,e){var i=this._extents;i[n]||(i[n]=i[0].slice()),yS(i,n,t,e)},freeze:function(){}};function yS(n,t,e,i){Sa(e,i)&&(n[t][0]=e,n[t][1]=i)}function AL(n){return kp(n)||Qs(n)}function kp(n){return n.type==="interval"}function Yc(n){return n.type==="time"}function Qs(n){return n.type==="log"}function ln(n){return n.type==="ordinal"}function MB(n){var t=Tf(n),e=Ha(10,t),i=Yi(n/e);return i?i===2?i=3:i===3?i=5:i*=2:i=1,Ge(i*e,-t)}function va(n){return Oi(n)+2}function Lh(n,t){return xa(n)/xa(t)}function fv(n,t,e){var i=e&&e.lookup;if(i){for(var r=0;r<i.from.length;r++)if(n===i.from[r])return i.to[r]}return Ha(t,n)}function kL(n,t,e){var i=n.slice();if(i[0]===i[1]){var r=e&&e.ctnShp;if(i[0]!==0){var o=ht(i[0]);t[1]||(i[1]+=o/2),i[0]-=o/2}else r&&(i[0]=-1),i[1]=1}return _r(i[0])&&_r(i[1])||(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function Lp(n,t){return Yi(De(n=n||t,1))}function LL(n,t,e){var i=vc(n),r=i[0],o=n.count(),a=Math.max((t||0)+1,1);r!==0&&a>1&&o/a>2&&(r=Math.round(Math.ceil(r/a)*a)),r!==i[0]&&l(i[0],!0,!0);for(var s=r;s<=i[1];s+=a)l(s,!1,s===i[0]||s===i[1]);function l(u,c,h){e({value:u,offInterval:c},h)}s-a!==i[1]&&l(i[1],!0,!0)}var mc=(function(n){function t(e){var i=n.call(this)||this;i.type="ordinal",i.parse=t.parse,kx(i,t.decoratedMethods);var r=e.ordinalMeta;r||(r=new gc({})),q(r)&&(r=new gc({categories:K(r,function(a){return fe(a)?a.value:a})})),i._ordinalMeta=r;var o=Ax(null,null,e.extent||[0,r.categories.length-1]);return i._mapper=o.mapper,Lx(i,o.mapper),i}return G(t,n),t.parse=function(e){return e==null?e=NaN:te(e)?(e=this._ordinalMeta.getOrdinal(e))==null&&(e=NaN):e=Yi(e),e},t.prototype.getTicks=function(){var e=[];return LL(this,0,function(i){e.push(i)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e!=null){for(var i=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Xe(s,i.length);a<l;++a)o[r[a]=i[a]]=a;for(var u=0;a<s;++a){for(;o[u]!=null;)u++;r[a]=u,o[u]=a}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),r=this._ordinalMeta.categories[i];return r==null?"":r+""}},t.prototype.count=function(){var e=vc(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Yi(this._mapper.scale(e)))},transformIn:function(e,i){return this._mapper.transformIn(this._getTickNumber(e),i)},transformOut:function(e,i){return this.getRawOrdinalNumber(this._mapper.transformOut(e,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,i){return this._mapper.getExtentUnsafe(e,i)},setExtent:function(e,i){return this._mapper.setExtent(e,i)},setExtent2:function(e,i,r){return this._mapper.setExtent2(e,i,r)}},t})(pi);function Px(n,t,e,i){for(var r=n.getTicks({expandToNicedExtent:!0}),o=[],a=n.getExtent(),s=1;s<r.length;s++){var l=r[s],u=r[s-1];if(!u.break&&!l.break){for(var c=0,h=[],d=(l.value-u.value)/t,p=va(d);c<t-1;){var f=Ge(u.value+(c+1)*d,p);f>a[0]&&f<a[1]&&h.push(f),c++}var g=mt();g&&g.pruneTicksByBreak("auto",h,e,function(v){return v},i,a),o.push(h)}}return o}pi.registerClass(mc);var ao=(function(n){function t(e){var i=n.call(this)||this;i.type="interval",i.parse=t.parse;var r=Ax(i,KA(i,e=e||{}),null);return i.brk=r.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return G(t,n),t.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.getConfig=function(){return se(this._cfg)},t.prototype.setConfig=function(e){var i=vc(this);this._cfg=e=se(e),e.niceExtent==null&&(e.niceExtent=i.slice()),e.intervalPrecision==null&&(e.intervalPrecision=va(e.interval))},t.prototype.getTicks=function(e){e=e||{};var i=this._cfg,r=i.interval,o=vc(this),a=i.niceExtent,s=i.intervalPrecision,l=mt(),u=this.brk,c=l&&u,h=[];if(!r)return h;if(e.breakTicks==="only_break"&&c)return l.addBreaksToTicks(h,u.breaks,o),h;o[0]<a[0]&&h.push({value:e.expandToNicedExtent?Ge(a[0]-r,s):o[0]});for(var d=function(m,x){return Yi((x-m)/r)},p=i.intervalCount,f=a[0],g=0;;g++){if(p==null){if(f>a[1]||!isFinite(f)||!isFinite(a[1]))break}else{if(g>p)break;f=Xe(f,a[1]),g===p&&(f=a[1])}if(h.push({value:f}),f=Ge(f+r,s),u){var v=u.calcNiceTickMultiple(f,d);v>=0&&(f=Ge(f+v*r,s))}if(h.length>0&&f===h[h.length-1].value)break;if(h.length>3e3)return[]}var y=h.length?h[h.length-1].value:a[1];return o[1]>y&&h.push({value:e.expandToNicedExtent?Ge(y+r,s):o[1]}),c&&l.pruneTicksByBreak(e.pruneByBreak,h,u.breaks,function(m){return m.value},i.interval,o),c&&e.breakTicks!=="none"&&l.addBreaksToTicks(h,u.breaks,o),h},t.prototype.getMinorTicks=function(e){return Px(this,e,gp(this),this._cfg.interval)},t.prototype.getLabel=function(e,i){if(e==null)return"";var r=i&&i.precision;return r==null?r=Oi(e.value)||0:r==="auto"&&(r=this._cfg.intervalPrecision),cx(Ge(e.value,r,!0))},t.type="interval",t})(pi);pi.registerClass(ao);var PL=(function(n){function t(e){var i=n.call(this)||this;i.type="time",i.parse=t.parse,i._locale=e.locale,i._useUTC=e.useUTC,i._interval=0;var r=Ax(i,KA(i,e),null);return i.brk=r.brk,i}return G(t,n),t.prototype.getLabel=function(e){return dc(e.value,lw[(function(i){switch(i){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}})(_u(this._minLevelUnit))]||lw.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,i,r){return(function(o,a,s,l,u){var c=null;if(te(s))c=s;else if(le(s)){var h={time:o.time,level:o.time?o.time.level:0},d=mt();d&&d.makeAxisLabelFormatterParamBreak(h,o.break),c=s(o.value,a,h)}else{var p=o.time;if(p){var f=s[p.lowerTimeUnit][p.upperTimeUnit];c=f[Math.min(p.level,f.length-1)]||""}else{var g=rs(o.value,u);c=s[g][g][0]}}return dc(new Date(o.value),c,u,l)})(e,i,r,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e=e||{};var i=this._interval,r=vc(this),o=mt(),a=this.brk,s=o&&a,l=[];if(!i)return l;var u=this._useUTC;if(s&&e.breakTicks==="only_break")return mt().addBreaksToTicks(l,a.breaks,r),l;l=(function(d,p,f,g,v,y){var m=3e3,x=Ez,_=0;function b(Z,Y,J,$,j,ee,ue){for(var ye=(function(Ie,Ne){var tt=new Date(0);tt[Ie](1);var ft=tt.getTime();tt[Ie](1+Ne);var Ut=tt.getTime()-ft;return function(wt,ut){return Math.max(0,Math.round((ut-wt)/Ut))}})(j,Z),we=Y,ve=new Date(we);we<J&&we<=g[1]&&(ue.push({value:we}),!(_++>m));)if(ve[j](ve[$]()+Z),we=ve.getTime(),y){var xe=y.calcNiceTickMultiple(we,ye);xe>0&&(ve[j](ve[$]()+xe*Z),we=ve.getTime())}ue.push({value:we,notAdd:we>g[1]})}function w(Z,Y,J){var $=[],j=!Y.length;if(!mS(_u(Z),g[0],g[1],f)){j&&(Y=[{value:AB(g[0],Z,f)},{value:g[1]}]);for(var ee=0;ee<Y.length-1;ee++){var ue=Y[ee].value,ye=Y[ee+1].value;if(ue!==ye){var we=void 0,ve=void 0,xe=void 0,Ie=!1;switch(Z){case"year":we=Math.max(1,Math.round(p/Fu/365)),ve=ek(f),xe=Vz(f);break;case"half-year":case"quarter":case"month":we=TB(p),ve=rx(f),xe=tk(f);break;case"week":case"half-week":case"day":we=IB(p),ve=ox(f),xe=nk(f),Ie=!0;break;case"half-day":case"quarter-day":case"hour":we=CB(p),ve=ax(f),xe=ik(f);break;case"minute":we=xS(p,!0),ve=sx(f),xe=rk(f);break;case"second":we=xS(p,!1),ve=lx(f),xe=ok(f);break;case"millisecond":we=DB(p),ve=ux(f),xe=ak(f)}ye>=g[0]&&ue<=g[1]&&b(we,ue,ye,ve,xe,Ie,$),Z==="year"&&J.length>1&&ee===0&&J.unshift({value:J[0].value-we})}}for(ee=0;ee<$.length;ee++)J.push($[ee])}}for(var S=[],M=[],I=0,T=0,C=0;C<x.length;++C){var D=_u(x[C]);if(Bz(x[C])&&(w(x[C],S[S.length-1]||[],M),D!==(x[C+1]?_u(x[C+1]):null))){if(M.length){T=I,M.sort(function(Z,Y){return Z.value-Y.value});for(var A=[],L=0;L<M.length;++L){var P=M[L].value;L!==0&&M[L-1].value===P||(A.push(M[L]),P>=g[0]&&P<=g[1]&&I++)}var E=v/p;if(I>1.5*E&&T>E/1.5||(S.push(A),I>E||d===x[C]))break}M=[]}}var O=Ye(K(S,function(Z){return Ye(Z,function(Y){return Y.value>=g[0]&&Y.value<=g[1]&&!Y.notAdd})}),function(Z){return Z.length>0}),N=O.length-1,R=[];for(C=0;C<O.length;++C)for(var z=O[C],B=0;B<z.length;++B){var V=rs(z[B].value,f);R.push({value:z[B].value,time:{level:N-C,upperTimeUnit:V,lowerTimeUnit:V}})}Df(R,IE,null),R.sort(function(Z,Y){return Z.value-Y.value});var W=R[0],U=R[R.length-1],F=rs(g[0],f),Q=rs(g[1],f);return(!W||W.value>g[0])&&R.unshift({value:g[0],time:{level:0,upperTimeUnit:F,lowerTimeUnit:F},notNice:!0}),(!U||U.value<g[1])&&R.push({value:g[1],time:{level:0,upperTimeUnit:Q,lowerTimeUnit:Q},notNice:!0}),R})(this._minLevelUnit,this._approxInterval,u,r,Ap(this),a);var c=Mn.length-1,h=0;return k(l,function(d){d.time&&(c=Math.min(c,be(Mn,d.time.upperTimeUnit)),h=Math.max(h,d.time.level))}),s&&mt().pruneTicksByBreak(e.pruneByBreak,l,a.breaks,function(d){return d.value},this._approxInterval,r),s&&e.breakTicks!=="none"&&mt().addBreaksToTicks(l,a.breaks,r,function(d){for(var p=Math.max(be(Mn,rs(d.vmin,u)),be(Mn,rs(d.vmax,u))),f=0,g=0;g<Mn.length;g++)if(!mS(Mn[g],d.vmin,d.vmax,u)){f=g;break}var v=Math.min(f,c),y=Math.max(v,p);return{level:h,lowerTimeUnit:Mn[y],upperTimeUnit:Mn[v]}}),l},t.prototype.getMinorTicks=function(e){return Px(this,e,gp(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return Ve(e)?Math.round(e):+Ki(e)},t.type="time",t})(pi),Ph=[["second",$A],["minute",JA],["hour",QA],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",sw/2],["year",sw]];function mS(n,t,e,i){return yp(new Date(t),n,i).getTime()===yp(new Date(e),n,i).getTime()}function IB(n,t){return(n/=Fu)>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function TB(n){return(n/=2592e6)>6?6:n>3?3:n>2?2:1}function CB(n){return(n/=QA)>12?12:n>6?6:n>3.5?4:n>2?2:1}function xS(n,t){return(n/=t?JA:$A)>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function DB(n){return De(Cf(n,!0),1)}function AB(n,t,e){var i=Math.max(0,be(Mn,t)-1);return yp(new Date(n),Mn[i],e).getTime()}pi.registerClass(PL);var OL=(function(n){function t(e){var i=n.call(this)||this;i.type="log",i.parse=ao.parse,i.base=e.logBase||10;var r=[],o=[],a=i._lookup={from:r,to:o};r[0]=r[1]=o[0]=o[1]=NaN,kx(i,t.mapperMethods);var s=mt(),l=e.breakOption,u={lookup:a};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},2,u),i.powStub=new ao({breakParsed:u.original}),i.intervalStub=new ao({breakParsed:u.transformed}),Lx(i,i.intervalStub),i}return G(t,n),t.prototype.getTicks=function(e){var i=this.base,r=this.powStub,o=mt(),a=this.intervalStub,s={lookup:{from:a.getExtent(),to:r.getExtent()}};return K(a.getTicks(e||{}),function(l){var u,c=fv(l.value,i,s);if(o){var h=o.getTicksBreakOutwardTransform(this,l,gp(r),this._lookup);h&&(u=h.vBreak,c=h.tickVal)}return{value:c,break:u}},this)},t.prototype.getMinorTicks=function(e){return Px(this,e,gp(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,i){return this.intervalStub.getLabel(e,i)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Lh(e,this.base))},scale:function(e){return fv(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,i){return e=Lh(e,this.base),i&&i.depth===2?e:this.intervalStub.transformIn(e,i)},transformOut:function(e,i){var r=i?i.depth:null;return _S.depth=r,bS.lookup=this._lookup,fv(r===2?e:this.intervalStub.transformOut(e,_S),this.base,bS)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,i){this.setExtent2(0,e,i)},setExtent2:function(e,i,r){if(!(!Sa(i,r)||i<=0||r<=0)){var o=wS,a=wS;if(e===0){var s=this._lookup;o=s.to,a=s.from}this.powStub.setExtent2(e,o[0]=i,o[1]=r);var l=this.base;this.intervalStub.setExtent2(e,a[0]=Lh(i,l),a[1]=Lh(r,l))}},getFilter:function(){return{g:0}},sanitize:function(e,i){return Sa(i[0],i[1])&&Yn(e)&&e<=0&&(e=i[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,i){return i===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,i)}},t})(pi);pi.registerClass(OL);var _S={},bS={},wS=[],RL={value:1,category:1,time:1,log:1},NL=Me();function Xc(n){var t=n.get("type");return t!=null&&(oe(RL,t)||pi.getClass(t))||(t="value"),t}function Il(n,t,e){var i;switch(mt()&&(i=EL(n,t,e)),t){case"category":return new mc({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new PL({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC"),breakOption:i});case"log":return new OL({logBase:n.get("logBase"),breakOption:i});case"value":return new ao({breakOption:i});default:return new(pi.getClass(t)||ao)({})}}var kB=1,LB=2,gv=3;function xc(n){var t=n.getLabelModel().get("formatter");if(n.type==="time"){var e=zz(t);return function(r,o){return n.scale.getFormattedLabel(r,o,e)}}if(te(t))return function(r){var o=n.scale.getLabel(r);return t.replace("{value}",o??"")};if(le(t)){if(n.type==="category")return function(r,o){return t(Pp(n,r),r.value-n.scale.getExtent()[0],null)};var i=mt();return function(r,o){var a=null;return i&&(a=i.makeAxisLabelFormatterParamBreak(a,r.break)),t(Pp(n,r),o,a)}}return function(r){return n.scale.getLabel(r)}}function Pp(n,t){var e=n.scale;return ln(e)?e.getLabel(t):t.value}function Ox(n){var t=n.get("interval");return t??"auto"}function el(n){return n==="middle"||n==="center"}function _c(n){return n.getShallow("show")}function EL(n,t,e){var i=n.get("breaks",!0);if(i!=null)return!mt()||!e||!(function(r){return r!=="category"})(t)?void 0:i}function zL(n,t,e,i,r,o){var a,s,l=Qs(n),u=l?n.intervalStub:n;if(u.setExtent(i[0],i[1]),l){var c=n.powStub,h={depth:2},d=n.transformOut(i[0],h),p=n.transformOut(i[1],h),f=(s=i,[(a=e)[0]!==s[0],a[1]!==s[1]]);t[0]&&!f[0]&&(d=r[0]),t[1]&&!f[1]&&(p=r[1]),c.setExtent(d,p)}u.setConfig(o)}function tl(n,t){return ln(n)?n.getRawOrdinalNumber(t.value):t.value}function Zc(n,t){return ln(n)&&!!t.get("boundaryGap")}var Tl=(function(){function n(){}return n.prototype.needIncludeZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){},n})(),PB=dl(),Op="|&",Cl=Me(),OB=Me();function Rx(n,t){var e=n.model,i=Cl(wl(e.ecModel)).keyed,r=i&&i.get(t);return r&&r.get(e.uid)}function RB(n,t){return VL(Rx(n,t))}function BL(n,t){var e=Cl(wl(n)).keyed;e&&e.each(function(i,r){i.each(function(o,a){t(o,r,a)})})}function VL(n){return{liPosMinGap:n?n.liPosMinGap:void 0}}function ya(n,t,e){var i=Rx(n,t);i&&Hf(n.model.ecModel,i.sers,e)}function Hf(n,t,e){if(t)for(var i=0;i<t.length;i++){var r=t[i];n.isSeriesFiltered(r)||e(r)}}function Nx(n,t,e){var i=Cl(wl(n)).keyed,r=i&&i.get(t);r&&r.each(function(o){e(o.axis)})}function GL(n,t){var e=n.model,i=Cl(wl(e.ecModel)).keys;i&&k(i.get(e.uid),function(r){t(r)})}function NB(n){var t=OB(cL(n)),e=t.keyed||(t.keyed=re());BL(n,function(i,r,o){var a=e.get(r)||e.set(r,re()),s=a.get(o)||a.set(o,{});i.metrics.liPosMinGap&&FL.liPosMinGap(n,i,s)})}var FL={};function Aa(n,t,e){if(n){var i=t.ecModel,r=Cl(wl(i)),o=n.model.uid,a=r.axSer||(r.axSer=re()),s=a.get(o)||a.set(o,[]);s.push(t);var l=t.subType,u=t.getBaseAxis()===n,c=c0.get(l0(l,u,e))||c0.get(l0(l,u,null));if(c){var h=r.keyed||(r.keyed=re()),d=r.keys||(r.keys=re()),p=c.key,f=h.get(p)||h.set(p,re()),g=f.get(o);g||((g=f.set(o,{axis:n,sers:[],serByIdx:[]})).metrics=c.getMetrics(n),(d.get(o)||d.set(o,[])).push(p)),g.sers.push(t),g.serByIdx[t.seriesIndex]=t}}}function l0(n,t,e){return n+Op+ae(t,!0)+Op+(e||"")}function u0(n,t){var e=l0(t.seriesType,t.baseAxis,t.coordSysType);c0.set(e,t),PB(n,function(){n.registerProcessor(n.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:NB})})}var c0=re(),EB=Me(),HL=(function(){function n(t,e,i,r,o){var a,s=ln(t),l=s?e.getCategories().length:null;if(s){var u=e.getCategories(!0);a=u&&!u.length}var c=i.slice();(kp(t)||Qs(t)||Yc(t))&&(QD(c,ql(t,e.get("dataMin",!0))),eA(c,ql(t,e.get("dataMax",!0)))),(function(S){var M=S[1]-S[0];return isFinite(M)&&M>=0})(c)||(c[0]=c[1]=NaN);var h=[],d=[!1,!1],p=e.get("min",!0);p==="dataMin"?(h[0]=c[0],d[0]=!0):(h[0]=ql(t,le(p)?p({min:c[0],max:c[1]}):p),d[0]=h[0]!=null);var f=e.get("max",!0);f==="dataMax"?(h[1]=c[1],d[1]=!0):(h[1]=ql(t,le(f)?f({min:c[0],max:c[1]}):f),d[1]=h[1]!=null);var g=(function(S,M){var I;if(ln(S))I=[0,0];else{var T=M.get("boundaryGap");typeof T=="boolean"&&(T=null),I=q(T)?T:[T,T]}return[MS(I[0]),MS(I[1])]})(t,e),v=s?null:c[1]-c[0]||Math.abs(c[0]);h[0]==null&&(h[0]=s?a?c[0]:l?0:NaN:c[0]-g[0]*v),h[1]==null&&(h[1]=s?a?c[1]:l?l-1:NaN:c[1]+g[1]*v),!_r(h[0])&&(h[0]=NaN),!_r(h[1])&&(h[1]=NaN);var y=a||jt(h[0])||jt(h[1])||s&&!l,m=kp(t),x=m&&e.needIncludeZero&&e.needIncludeZero();x&&(h[0]>0&&h[1]>0&&!d[0]&&(h[0]=0),h[0]<0&&h[1]<0&&!d[1]&&(h[1]=0));var _=!1;h[0]>h[1]&&(h.reverse(),_=!0);var b=ql(t,e.get("startValue",!0)),w=b!=null;!Yn(b)&&r&&(b=t.getDefaultStartValue?t.getDefaultStartValue():0),Yn(b)&&(w||!m||x)&&(b<h[0]&&!d[0]?(h[0]=b,d[0]=!0):b>h[1]&&!d[1]&&(h[1]=b,d[1]=!0)),SS(this._i={scale:t,dataMM:c,noZoomEffMM:h,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:y,incl0:x,tggAxInv:_,ctnShp:o},h)}return n.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},n.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,i=t.noZoomEffMM,r=t.zoomFixMM,o=t.fixMM,a={fixMM:o,zoomFixMM:r,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:i.slice()},s=a.effMM;return e[0]!=null&&(s[0]=e[0],o[0]=r[0]=!0),e[1]!=null&&(s[1]=e[1],o[1]=r[1]=!0),SS(t,s),a},n.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},n.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},n})();function SS(n,t){var e=n.scale,i=n.dataMM;e.sanitize&&(t[0]=e.sanitize(t[0],i),t[1]=e.sanitize(t[1],i),Cd(t))}function ql(n,t){return t==null?null:jt(t)?NaN:n.parse(t)}function MS(n){return Ui(typeof n=="boolean"?0:n,1)||0}function WL(n){var t=EB(n.scale);return t.extent||(t.extent=[1/0,-1/0]),t}function ka(n,t){var e=n.scale,i=n.model,r=n.dim;e.rawExtentInfo||(function(o,a,s,l,u){var c=WL(a),h=c.extent,d=!1;(function(g,v){var y=g.model.ecModel,m=Cl(wl(y)).axSer;m&&Hf(y,m.get(g.model.uid),v)})(a,function(g){if(g.boxCoordinateSystem){var v=ck(g).coord,y=c.dimIdxInCoord;if(y>=0&&q(v)){var m=v[y];m==null||q(m)||Tm(h,o.parse(m))}}else if(g.coordinateSystem){var x=g.getData();if(x){var _=o.getFilter?o.getFilter():null;k((function(b,w){var S={};return k(b.mapDimensionsAll(w),function(M){S[Dx(b,M)]=!0}),Re(S)})(x,s),function(b){var w,S;w=h,Sa((S=x.getApproximateExtent(b,_))[0],S[1])&&(S[0]<w[0]&&(w[0]=S[0]),S[1]>w[1]&&(w[1]=S[1]))})}g.__requireStartValue&&g.__requireStartValue(a)&&(d=!0)}});var p=(function(g,v,y){var m=Zc(g,y),x=y.get("containShape",!0);if(x!=null||m||(x=!0),!x)return!1;var _=!1;return GL(v,function(b){_=!!Ex.get(b)||_}),_})(o,a,l),f=new HL(o,l,h,d,p);UL(o,f,u),c.extent=null})(e,n,r,i,t)}function UL(n,t,e){n.rawExtentInfo=t,t.from=e}function zd(n,t){Ex.set(n,t)}var Ex=re();function YL(n,t,e,i,r){n.rawExtentInfo||(function(s,l){var u=s.scale;UL(u,new HL(u,s.model,l,!1,!1),3)})({scale:n,model:t},r||[1/0,-1/0]);var o=n.rawExtentInfo.makeFinal(),a=o.effMM;return n.setExtent(a[0],a[1]),n.setBlank(o.isBlank),i&&o.tggAxInv&&e&&!e.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),o}function zB(n,t,e,i){var r;if(e.ctnShp&&(GL(n,function(s){var l=Ex.get(s);if(l){var u=l(n,i);u&&(QD(r=r||[0,0],u[0]),eA(r,u[1]),(function(c){NL(c).noOnMyZero=!0})(n))}}),r)){var o=t.getExtent();if(ln(t))n.onBand||t.setExtent2(1,Xe(o[0],o[0]+r[0]),De(o[1],o[1]+r[1]));else{var a=o.slice();e.zoomFixMM[0]||(a[0]=Xe(a[0],t.transformOut(t.transformIn(a[0],null)+r[0],null))),e.zoomFixMM[1]||(a[1]=De(a[1],t.transformOut(t.transformIn(a[1],null)+r[1],null))),(a[0]<o[0]||a[1]>o[1])&&t.setExtent2(1,a[0],a[1])}}}function IS(n,t){var e=Qs(n),i=e?n.intervalStub:n,r=t.fixMinMax||[],o=e?n.getExtent():null,a=i.getExtent(),s=kL(a,r,t.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=e?(function(d,p){var f=Lp(p.splitNumber,10),g=d.getExtent(),v=Ap(d),y=De(N1(v),1);f/v*y<=.5&&(y*=10);var m=va(y),x=[Ge(ca(g[0]/y)*y,m),Ge(Zn(g[1]/y)*y,m)];return{intervalPrecision:m,interval:y,niceExtent:x}})(i,t):(function(d,p){var f=Lp(p.splitNumber,5),g=Ap(d),v=p.minInterval,y=p.maxInterval,m=Cf(g/f,!0);v!=null&&m<v&&(m=v),y!=null&&m>y&&(m=y);var x=va(m),_=d.getExtent(),b=[Ge(ca(_[0]/m)*m,x),Ge(Zn(_[1]/m)*m,x)];return{interval:m,intervalPrecision:x,niceExtent:b}})(i,t),u=l.intervalPrecision,c=l.interval,h=t.userInterval;h!=null&&(l.interval=h,l.intervalPrecision=va(h)),r[0]||(s[0]=Ge(Zn(s[0]/c)*c,u)),r[1]||(s[1]=Ge(ca(s[1]/c)*c,u)),h!=null&&(l.niceExtent=s.slice()),zL(n,r,a,s,o,l)}function nl(n){var t=n.scale,e=n.model,i=e.axis,r=e.ecModel;XL(t,e,i,r,null)}function XL(n,t,e,i,r){var o=YL(n,t,i,e,r),a=kp(n)||Yc(n);ZL(n,{splitNumber:t.get("splitNumber"),fixMinMax:o.fixMM,userInterval:t.get("interval"),minInterval:a?t.get("minInterval"):null,maxInterval:a?t.get("maxInterval"):null,rawExtentResult:o}),e&&i&&zB(e,n,o,i)}function ZL(n,t){BB[n.type](n,t)}var BB={interval:IS,log:IS,time:function(n,t){var e=n.getExtent();if(e[0]===e[1]&&(e[0]-=Fu,e[1]+=Fu),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-Fu}n.setExtent(e[0],e[1]);var r=Lp(t.splitNumber,10),o=Ap(n)/r,a=t.minInterval,s=t.maxInterval;a!=null&&o<a&&(o=a),s!=null&&o>s&&(o=s);var l=Ph.length,u=Math.min((function(d,p,f,g){for(;f<g;){var v=f+g>>>1;d[v][1]<p?f=v+1:g=v}return f})(Ph,o,0,l),l-1),c=Ph[u][1],h=Ph[Math.max(u-1,0)][0];n.setTimeInterval({approxInterval:o,interval:c,minLevelUnit:h})},ordinal:ct},VB={isDimensionStacked:Mr,enableDataStack:CL,getStackedDimension:Dx},W6=Object.freeze({__proto__:null,createList:function(n){return Ji(null,n)},getLayoutRect:ot,dataStack:VB,createScale:function(n,t){var e=t;t instanceof Oe||(e=new Oe(t));var i=Il(e,Xc(e),!1);return n[1]<n[0]&&(n=n.slice().reverse()),XL(i,e,null,null,n),i},mixinAxisModelCommonMethods:function(n){xt(n,Tl)},getECData:me,createTextStyle:function(n,t){return Je(n,null,null,(t=t||{}).state!=="normal")},createDimensions:function(n,t){return Ml(n,t).dimensions},createSymbol:bt,enableHoverEmphasis:ro});function TS(n,t){return Math.abs(n-t)<1e-8}function Jo(n,t,e){var i=0,r=n[0];if(!r)return!1;for(var o=1;o<n.length;o++){var a=n[o];i+=or(r[0],r[1],a[0],a[1],t,e),r=a}var s=n[0];return TS(r[0],s[0])&&TS(r[1],s[1])||(i+=or(r[0],r[1],s[0],s[1],t,e)),i!==0}var GB=[];function vv(n,t){for(var e=0;e<n.length;e++)dt(n[e],n[e],t)}function CS(n,t,e,i){for(var r=0;r<n.length;r++){var o=n[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(lr(t,t,o),ur(e,e,o))}}var qL=(function(){function n(t){this.name=t}return n.prototype.setCenter=function(t){this._center=t},n.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},n})(),DS=function(n,t){this.type="polygon",this.exterior=n,this.interiors=t},AS=function(n){this.type="linestring",this.points=n},jL=(function(n){function t(e,i,r){var o=n.call(this,e)||this;return o.type="geoJSON",o.geometries=i,o._center=r&&[r[0],r[1]],o}return G(t,n),t.prototype.calcCenter=function(){for(var e,i=this.geometries,r=0,o=0;o<i.length;o++){var a=i[o],s=a.exterior,l=s&&s.length;l>r&&(e=a,r=l)}if(e)return(function(c){for(var h=0,d=0,p=0,f=c.length,g=c[f-1][0],v=c[f-1][1],y=0;y<f;y++){var m=c[y][0],x=c[y][1],_=g*x-m*v;h+=_,d+=(g+m)*_,p+=(v+x)*_,g=m,v=x}return h?[d/h/3,p/h/3,h]:[c[0][0]||0,c[0][1]||0]})(e.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var i=this._rect;if(i&&!e)return i;var r=[1/0,1/0],o=[-1/0,-1/0];return k(this.geometries,function(a){a.type==="polygon"?CS(a.exterior,r,o,e):k(a.points,function(s){CS(s,r,o,e)})}),isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])||(r[0]=r[1]=o[0]=o[1]=0),i=new de(r[0],r[1],o[0]-r[0],o[1]-r[1]),e||(this._rect=i),i},t.prototype.contain=function(e){var i=this.getBoundingRect(),r=this.geometries;if(!i.contain(e[0],e[1]))return!1;e:for(var o=0,a=r.length;o<a;o++){var s=r[o];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Jo(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(Jo(u[c],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,i,r,o){var a=this.getBoundingRect(),s=a.width/a.height;r?o||(o=r/s):r=s*o;for(var l=new de(e,i,r,o),u=a.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++){var d=c[h];d.type==="polygon"?(vv(d.exterior,u),k(d.interiors,function(p){vv(p,u)})):k(d.points,function(p){vv(p,u)})}(a=this._rect).copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var i=new t(e,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},t})(qL),FB=(function(n){function t(e,i){var r=n.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=i,r}return G(t,n),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,i=e.getBoundingRect(),r=[i.x+i.width/2,i.y+i.height/2],o=Fa(GB),a=e;a&&!a.isGeoSVGGraphicRoot;)kn(o,a.getLocalTransform(),o),a=a.parent;return Ln(o,o),dt(r,r,o),r},t})(qL);function kS(n,t,e){for(var i=0;i<n.length;i++)n[i]=KL(n[i],t[i],e)}function KL(n,t,e){for(var i=[],r=t[0],o=t[1],a=0;a<n.length;a+=2){var s=n.charCodeAt(a)-64,l=n.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/e,l/e])}return i}function HB(n,t){return K(Ye((n=(function(e){if(!e.UTF8Encoding)return e;var i=e,r=i.UTF8Scale;return r==null&&(r=1024),k(i.features,function(o){var a=o.geometry,s=a.encodeOffsets,l=a.coordinates;if(s)switch(a.type){case"LineString":a.coordinates=KL(l,s,r);break;case"Polygon":case"MultiLineString":kS(l,s,r);break;case"MultiPolygon":k(l,function(u,c){return kS(u,s[c],r)})}}),i.UTF8Encoding=!1,i})(n)).features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,r=e.geometry,o=[];switch(r.type){case"Polygon":var a=r.coordinates;o.push(new DS(a[0],a.slice(1)));break;case"MultiPolygon":k(r.coordinates,function(l){l[0]&&o.push(new DS(l[0],l.slice(1)))});break;case"LineString":o.push(new AS([r.coordinates]));break;case"MultiLineString":o.push(new AS(r.coordinates))}var s=new jL(i[t||"name"],o,i.cp);return s.properties=i,s})}var U6=Object.freeze({__proto__:null,linearMap:He,round:function(n,t,e){return t==null&&(t=10),Ge(n,t,e)},asc:Ft,getPrecision:Oi,getPrecisionSafe:UD,getPixelPrecision:function(n,t){var e=Zn(xa(n[1]-n[0])/oc),i=Yi(xa(ht(t[1]-t[0]))/oc),r=Xe(De(-e+i,0),20);return isFinite(r)?r:20},getPercentWithPrecision:function(n,t,e){return n[t]&&YD(n,e)[t]||0},parsePercent:ne,MAX_SAFE_INTEGER:ac,remRadian:R1,isRadianAroundZero:_a,parseDate:Ki,quantity:N1,quantityExponent:Tf,nice:Cf,quantile:Td,reformIntervals:Mm,isNumeric:E1,numericToNumber:Xi}),Y6=Object.freeze({__proto__:null,parse:Ki,format:dc,roundTime:yp}),X6=Object.freeze({__proto__:null,extendShape:zA,extendPath:BA,makePath:js,makeImage:j1,mergePath:Tn,resizePath:K1,createIcon:yl,updateProps:Fe,initProps:rt,getTransform:pa,clipPointsByRect:$1,clipRectByRect:GA,registerShape:Vn,getShapeClass:uc,Group:he,Image:zt,Text:Be,Circle:$i,Ellipse:Vc,Sector:$t,Ring:fl,Polygon:Jt,Polyline:Wt,Rect:Ae,Line:_t,BezierCurve:gl,Arc:Gc,IncrementalDisplayable:NA,CompoundPath:Fc,LinearGradient:Ua,RadialGradient:Z1,BoundingRect:de}),Z6=Object.freeze({__proto__:null,addCommas:cx,toCamelCase:hx,normalizeCssArray:xl,encodeHTML:Zt,formatTpl:dx,getTooltipMarker:lk,formatTime:function(n,t,e){n!=="week"&&n!=="month"&&n!=="quarter"&&n!=="half-year"&&n!=="year"||(n=`MM-dd
36
+ yyyy`);var i=Ki(t),r=e?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),c=i[r+"Seconds"](),h=i[r+"Milliseconds"]();return n=n.replace("MM",hn(a,2)).replace("M",a).replace("yyyy",o).replace("yy",hn(o%100+"",2)).replace("dd",hn(s,2)).replace("d",s).replace("hh",hn(l,2)).replace("h",l).replace("mm",hn(u,2)).replace("m",u).replace("ss",hn(c,2)).replace("s",c).replace("SSS",hn(h,3))},capitalFirst:function(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)},truncateText:function(n,t,e,i,r){var o={};return rA(o,n,t,e,i,r),o.text},getTextRect:function(n,t,e,i,r,o,a,s){return new Be({style:{text:n,font:t,align:e,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}}),q6=Object.freeze({__proto__:null,map:K,each:k,indexOf:be,inherits:T1,reduce:Kn,filter:Ye,bind:ie,curry:Ce,isArray:q,isString:te,isObject:fe,isFunction:le,extend:X,defaults:pe,clone:se,merge:Se}),WB=Me(),Uu=Me(),bc=1,il=2;function Rp(n){return{out:{noPxChangeTryDetermine:[]},kind:n}}function UB(n,t){var e=n.getLabelModel().get("customValues");if(e){var i=n.scale;return{labels:K($L(e,i),function(r,o){return{formattedLabel:xc(n)(r,o),rawLabel:i.getLabel(r),tick:r}})}}return n.type==="category"?(function(r,o){var a=r.getLabelModel(),s=JL(r,a,o);return!a.get("show")||r.scale.isBlank()?{labels:[]}:s})(n,t):(function(r){var o=r.scale.getTicks(),a=xc(r);return{labels:K(o,function(s,l){return{formattedLabel:a(s,l),rawLabel:r.scale.getLabel(s),tick:s}})}})(n)}function YB(n,t,e){var i=n.scale,r=n.getTickModel().get("customValues");return r?{ticks:$L(r,i)}:n.type==="category"?(function(o,a){var s,l,u=XB(o),c=Ox(a),h=eP(u,c);if(h)return h;if(a.get("show")&&!o.scale.isBlank()||(s=[]),le(c))s=Np(o,c,!0);else if(c==="auto"){var d=JL(o,o.getLabelModel(),Rp(il));l=d.labelCategoryInterval,s=K(d.labels,function(p){return p.tick})}else s=Np(o,l=c,!0);return h0(u,c,{ticks:s,tickCategoryInterval:l})})(n,t):{ticks:i.getTicks(e)}}function $L(n,t){var e=t.getExtent(),i=[];return k(n,function(r){(r=t.parse(r))>=e[0]&&r<=e[1]&&i.push(r)}),Df(i,TE,null),Ft(i),K(i,function(r){return{value:r}})}function JL(n,t,e){var i,r,o=ZB(n),a=Ox(t),s=e.kind===bc;if(!s){var l=eP(o,a);if(l)return l}le(a)?i=Np(n,a,!1):(r=a==="auto"?(function(c,h){if(h.kind===bc){var d=c.calculateCategoryInterval(h);return h.out.noPxChangeTryDetermine.push(function(){return Uu(c).autoInterval=d,!0}),d}var p=Uu(c).autoInterval;return p??(Uu(c).autoInterval=c.calculateCategoryInterval(h))})(n,e):a,i=Np(n,r,!1));var u={labels:i,labelCategoryInterval:r};return s?e.out.noPxChangeTryDetermine.push(function(){return h0(o,a,u),!0}):h0(o,a,u),u}var XB=QL("axisTick"),ZB=QL("axisLabel");function QL(n){return function(t){return Uu(t)[n]||(Uu(t)[n]={list:[]})}}function eP(n,t){for(var e=0;e<n.list.length;e++)if(n.list[e].key===t)return n.list[e].value}function h0(n,t,e){return n.list.push({key:t,value:e}),e}function qB(n,t,e){return tP(n,t,e)==null}function tP(n,t,e){var i=WB(n.model),r=n.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(o!=null&&a!=null&&Math.abs(o-t)<=1&&Math.abs(a-e)<=1&&o>t&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=e,i.lastAutoInterval=t,i.axisExtent0=r[0],i.axisExtent1=r[1]}function Np(n,t,e){var i=xc(n),r=n.scale,o=[],a=le(t);return LL(r,a?0:t,function(s,l){var u=r.getLabel(s);if(a){var c=!!t(s.value,u);if(s.offInterval=!c,!c&&!l)return}o.push(e?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),o}function Qt(n,t){t=t||{};var e,i={w:NaN,w2:NaN},r=n.scale,o=t.fromStat,a=t.min,s=(e=yc(r,3))[1]-e[0];Yn(s)||(s=NaN);var l=n.getExtent(),u=ht(l[1]-l[0]);return ln(r)?(function(c,h,d,p){var f=h.onBand,g=d+(f?1:0);g===0&&(g=1),c.w=p/g,!f&&d&&p&&(c.w2=c.w*d/p)})(i,n,s,u):o&&(function(c,h,d,p,f){var g=!1,v=-1/0;k(f.key?[RB(h,f.key)]:(function(y,m){var x=[];return BL(y.model.ecModel,function(_){for(var b=0;b<m.length;b++)m[b]&&_.serByIdx[m[b].seriesIndex]&&x.push(VL(_))}),x})(h,f.sers||[]),function(y){var m=y.liPosMinGap;m!=null&&(m>0?(m>v&&(v=m),g=!1):m===-2&&(g=!0))}),Yn(d)&&d>0&&Yn(v)?(c.w=p/d*v,c.w2=v):g&&(c.w=.8*p,c.w2=c.w*d/p)})(i,n,s,u,o),a!=null&&(i.w=Yn(i.w)?De(a,i.w):a),i}var LS=[0,1],hi=(function(){function n(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return n.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=i&&t<=r},n.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},n.prototype.dataToCoord=function(t,e){var i=this.scale;return He(t=i.normalize(i.parse(t)),LS,PS(this),e)},n.prototype.coordToData=function(t,e){var i=He(t,PS(this),LS,e);return this.scale.scale(i)},n.prototype.pointToData=function(t,e){},n.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=K(YB(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,function(o){return{coord:this.dataToCoord(tl(this.scale,o)),tick:o}},this),r=(function(o,a,s){var l=a.length;if(!o.onBand||s||!l)return!1;var u=Qt(o).w;if(!u)return!1;k(a,function(d){d.coord-=u/2});var c=o.scale.getExtent(),h=a[l-1];return h.tick.offInterval&&a.pop(),a.push({coord:h.coord+u,tick:{value:c[1]+1}}),!0})(this,i,e.get("alignWithLabel"));return K(i,function(o){return{coord:o.coord,tickValue:o.tick.value,onBand:r}})},n.prototype.getMinorTicksCoords=function(){if(ln(this.scale))return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),K(this.scale.getMinorTicks(t),function(e){return K(e,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this)},n.prototype.getViewLabels=function(t){return UB(this,t=t||Rp(il)).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){return Qt(this,{min:1}).w},n.prototype.calculateCategoryInterval=function(t){return(function(e,i){var r=i.kind,o=(function(I){var T=I.getLabelModel();return{axisRotate:I.getRotate?I.getRotate():I.isHorizontal&&!I.isHorizontal()?90:0,labelRotate:T.get("rotate")||0,font:T.getFont()}})(e),a=xc(e),s=(o.axisRotate-o.labelRotate)/180*Math.PI,l=e.scale,u=l.getExtent(),c=l.count();if(u[1]-u[0]<1)return 0;var h=1;c>40&&(h=Math.max(1,Math.floor(c/40)));for(var d=u[0],p=e.dataToCoord(d+1)-e.dataToCoord(d),f=Math.abs(p*Math.cos(s)),g=Math.abs(p*Math.sin(s)),v=0,y=0;d<=u[1];d+=h){var m,x,_=If(a({value:d}),o.font,"center","top");m=1.3*_.width,x=1.3*_.height,v=Math.max(v,m,7),y=Math.max(y,x,7)}var b=v/f,w=y/g;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(b,w)));if(r===bc)return i.out.noPxChangeTryDetermine.push(ie(qB,null,e,S,c)),S;var M=tP(e,S,c);return M??S})(this,t=t||Rp(il))},n})();function PS(n){var t=n.getExtent();if(n.onBand){var e=(t[1]-t[0])/n.scale.count()/2;t[0]+=e,t[1]-=e}return t}function j6(n){var t=ke.extend(n);return ke.registerClass(t),t}function K6(n){var t=et.extend(n);return et.registerClass(t),t}function $6(n){var t=je.extend(n);return je.registerClass(t),t}function J6(n){var t=Ze.extend(n);return Ze.registerClass(t),t}var jl=2*Math.PI,Vo=Zi.CMD,jB=["top","right","bottom","left"];function KB(n,t,e,i,r){var o=e.width,a=e.height;switch(n){case"top":i.set(e.x+o/2,e.y-t),r.set(0,-1);break;case"bottom":i.set(e.x+o/2,e.y+a+t),r.set(0,1);break;case"left":i.set(e.x-t,e.y+a/2),r.set(-1,0);break;case"right":i.set(e.x+o+t,e.y+a/2),r.set(1,0)}}function $B(n,t,e,i,r,o,a,s,l){a-=n,s-=t;var u=Math.sqrt(a*a+s*s),c=(a/=u)*e+n,h=(s/=u)*e+t;if(Math.abs(i-r)%jl<1e-4)return l[0]=c,l[1]=h,u-e;if(o){var d=i;i=Dn(r),r=Dn(d)}else i=Dn(i),r=Dn(r);i>r&&(r+=jl);var p=Math.atan2(s,a);if(p<0&&(p+=jl),p>=i&&p<=r||p+jl>=i&&p+jl<=r)return l[0]=c,l[1]=h,u-e;var f=e*Math.cos(i)+n,g=e*Math.sin(i)+t,v=e*Math.cos(r)+n,y=e*Math.sin(r)+t,m=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(y-s)*(y-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(x))}function Ep(n,t,e,i,r,o,a,s){var l=r-n,u=o-t,c=e-n,h=i-t,d=Math.sqrt(c*c+h*h),p=(l*(c/=d)+u*(h/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=n+p*c,g=a[1]=t+p*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function nP(n,t,e,i,r,o,a){e<0&&(n+=e,e=-e),i<0&&(t+=i,i=-i);var s=n+e,l=t+i,u=a[0]=Math.min(Math.max(r,n),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var ri=[];function JB(n,t,e){var i=nP(t.x,t.y,t.width,t.height,n.x,n.y,ri);return e.set(ri[0],ri[1]),i}function QB(n,t,e){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=t.data,h=n.x,d=n.y,p=0;p<c.length;){var f=c[p++];p===1&&(s=o=c[p],l=a=c[p+1]);var g=u;switch(f){case Vo.M:o=s=c[p++],a=l=c[p++];break;case Vo.L:g=Ep(o,a,c[p],c[p+1],h,d,ri,!0),o=c[p++],a=c[p++];break;case Vo.C:g=ID(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,ri),o=c[p++],a=c[p++];break;case Vo.Q:g=CD(o,a,c[p++],c[p++],c[p],c[p+1],h,d,ri),o=c[p++],a=c[p++];break;case Vo.A:var v=c[p++],y=c[p++],m=c[p++],x=c[p++],_=c[p++],b=c[p++];p+=1;var w=!!(1-c[p++]);i=Math.cos(_)*m+v,r=Math.sin(_)*x+y,p<=1&&(s=i,l=r),g=$B(v,y,x,_,_+b,w,(h-v)*x/m+v,d,ri),o=Math.cos(_+b)*m+v,a=Math.sin(_+b)*x+y;break;case Vo.R:g=nP(s=o=c[p++],l=a=c[p++],c[p++],c[p++],h,d,ri);break;case Vo.Z:g=Ep(o,a,s,l,h,d,ri,!0),o=s,a=l}g<u&&(u=g,e.set(ri[0],ri[1]))}return u}var ai=new ge,it=new ge,yt=new ge,Ni=new ge,Di=new ge;function OS(n,t){if(n){var e=n.getTextGuideLine(),i=n.getTextContent();if(i&&e){var r=n.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||jB,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=n.getComputedTransform(),h=c&&Ln([],c),d=t.get("length2")||0;u&&yt.copy(u);for(var p=0;p<a.length;p++){KB(a[p],0,s,ai,Ni),ge.scaleAndAdd(it,ai,Ni,d),it.transform(h);var f=n.getBoundingRect(),g=u?u.distance(it):n instanceof Le?QB(it,n.path,yt):JB(it,f,yt);g<l&&(l=g,it.transform(c),yt.transform(c),yt.toArray(o[0]),it.toArray(o[1]),ai.toArray(o[2]))}iP(o,t.get("minTurnAngle")),e.setShape({points:o})}}}var zp=[],dn=new ge;function iP(n,t){if(t<=180&&t>0){t=t/180*Math.PI,ai.fromArray(n[0]),it.fromArray(n[1]),yt.fromArray(n[2]),ge.sub(Ni,ai,it),ge.sub(Di,yt,it);var e=Ni.len(),i=Di.len();if(!(e<.001||i<.001)){Ni.scale(1/e),Di.scale(1/i);var r=Ni.dot(Di);if(Math.cos(t)<r){var o=Ep(it.x,it.y,yt.x,yt.y,ai.x,ai.y,zp,!1);dn.fromArray(zp),dn.scaleAndAdd(Di,o/Math.tan(Math.PI-t));var a=yt.x!==it.x?(dn.x-it.x)/(yt.x-it.x):(dn.y-it.y)/(yt.y-it.y);if(isNaN(a))return;a<0?ge.copy(dn,it):a>1&&ge.copy(dn,yt),dn.toArray(n[1])}}}}function eV(n,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ai.fromArray(n[0]),it.fromArray(n[1]),yt.fromArray(n[2]),ge.sub(Ni,it,ai),ge.sub(Di,yt,it);var i=Ni.len(),r=Di.len();if(!(i<.001||r<.001)&&(Ni.scale(1/i),Di.scale(1/r),Ni.dot(t)<Math.cos(e))){var o=Ep(it.x,it.y,yt.x,yt.y,ai.x,ai.y,zp,!1);dn.fromArray(zp);var a=Math.PI/2,s=a+Math.acos(Di.dot(t))-e;if(s>=a)ge.copy(dn,yt);else{dn.scaleAndAdd(Di,o/Math.tan(Math.PI/2-s));var l=yt.x!==it.x?(dn.x-it.x)/(yt.x-it.x):(dn.y-it.y)/(yt.y-it.y);if(isNaN(l))return;l<0?ge.copy(dn,it):l>1&&ge.copy(dn,yt)}dn.toArray(n[1])}}}function yv(n,t,e,i){var r=e==="normal",o=r?n:n.ensureState(e);o.ignore=t;var a=i.get("smooth");a=a===!0?.3:Math.max(+a,0)||0,o.shape=o.shape||{},o.shape.smooth=a;var s=i.getModel("lineStyle").getLineStyle();r?n.useStyle(s):o.style=s}function tV(n,t){var e=t.smooth,i=t.points;if(i)if(n.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var r=sr(i[0],i[1]),o=sr(i[1],i[2]);if(!r||!o)return n.lineTo(i[1][0],i[1][1]),void n.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*e,s=Nu([],i[1],i[0],a/r),l=Nu([],i[1],i[2],a/o),u=Nu([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)n.lineTo(i[c][0],i[c][1])}function zx(n,t,e){var i=n.getTextGuideLine(),r=n.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<sc.length;l++){var u=sc[l],c=t[u],h=u==="normal";if(c){var d=c.get("show");if((h?s:ae(r.states[u]&&r.states[u].ignore,s))||!ae(d,a)){var p=h?i:i&&i.states[u];p&&(p.ignore=!0),i&&yv(i,!0,u,c);continue}i||(i=new Wt,n.setTextGuideLine(i),h||!s&&a||yv(i,!0,"normal",t.normal),n.stateProxy&&(i.stateProxy=n.stateProxy)),yv(i,!1,u,c)}}if(i){pe(i.style,e),i.style.fill=null;var f=o.get("showAbove");(n.textGuideLineConfig=n.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=tV}}else i&&n.removeTextGuideLine()}function Bx(n,t){t=t||"labelLine";for(var e={normal:n.getModel(t)},i=0;i<yn.length;i++){var r=yn[i];e[r]=n.getModel([r,t])}return e}var RS=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function Bp(n,t,e){e=e||3,t?n.dirty|=e:n.dirty&=~e}function rP(n,t){return t=t||3,n.dirty==null||!!(n.dirty&t)}function Si(n){if(n)return rP(n)&&oP(n,n.label,n),n}function oP(n,t,e){var i=t.getComputedTransform();n.transform=Q1(n.transform,i);var r=n.localRect=cc(n.localRect,t.getBoundingRect()),o=t.style,a=o.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,c=o.__marginType;c==null&&u&&(a=u,c=ks.textMargin);for(var h=0;h<4;h++)mv[h]=c===ks.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:a?a[h]:0;c===ks.textMargin&&Ta(r,mv,!1,!1);var d=n.rect=cc(n.rect,r);return i&&d.applyTransform(i),c===ks.minMargin&&Ta(d,mv,!1,!1),n.axisAligned=J1(i),(n.label=n.label||{}).ignore=t.ignore,Bp(n,!1),Bp(n,!0,2),n}var mv=[0,0,0,0];function d0(n,t){if(n){n.label.x+=t.x,n.label.y+=t.y,n.label.markRedraw();var e=n.transform;e&&(e[4]+=t.x,e[5]+=t.y);var i=n.rect;i&&(i.x+=t.x,i.y+=t.y);var r=n.obb;r&&r.fromBoundingRect(n.localRect,e)}}function p0(n,t){for(var e=0;e<RS.length;e++){var i=RS[e];n[i]==null&&(n[i]=t[i])}return Si(n)}function NS(n){var t=n.obb;return t&&!rP(n,2)||(n.obb=t=t||new RA,t.fromBoundingRect(n.localRect,n.transform),Bp(n,!1,2)),t}function f0(n,t,e,i,r){var o=n.length,a=_e[t],s=gt[t];if(o<2)return!1;n.sort(function(M,I){return M.rect[a]-I.rect[a]});for(var l,u=0,c=!1,h=0,d=0;d<o;d++){var p=n[d],f=p.rect;(l=f[a]-u)<0&&(f[a]-=l,p.label[a]-=l,c=!0),h+=Math.max(-l,0),u=f[a]+f[s]}h>0&&r&&b(-h/o,0,o);var g,v,y=n[0],m=n[o-1];function x(){g=y.rect[a]-e,v=i-m.rect[a]-m.rect[s]}function _(M,I,T){if(M<0){var C=Math.min(I,-M);if(C>0){b(C*T,0,o);var D=C+M;D<0&&w(-D*T,1)}else w(-M*T,1)}}function b(M,I,T){M!==0&&(c=!0);for(var C=I;C<T;C++){var D=n[C];D.rect[a]+=M,D.label[a]+=M}}function w(M,I){for(var T=[],C=0,D=1;D<o;D++){var A=n[D-1].rect,L=Math.max(n[D].rect[a]-A[a]-A[s],0);T.push(L),C+=L}if(C){var P=Math.min(Math.abs(M)/C,I);if(M>0)for(D=0;D<o-1;D++)b(T[D]*P,0,D+1);else for(D=o-1;D>0;D--)b(-(T[D-1]*P),D,o)}}function S(M){var I=M<0?-1:1;M=Math.abs(M);for(var T=Math.ceil(M/(o-1)),C=0;C<o-1;C++)if(I>0?b(T,0,C+1):b(-T,o-C-1,o),(M-=T)<=0)return}return x(),g<0&&w(-g,.8),v<0&&w(v,.8),x(),_(g,v,1),_(v,g,-1),x(),g<0&&S(-g),v<0&&S(v),c}function aP(n){var t=[];function e(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}n.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});for(var i=0;i<n.length;i++){var r=Si(n[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<t.length;l++)if(Wf(r,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(o),a&&e(a)):t.push(r)}}}function Wf(n,t,e,i){return!(!n||!t)&&!(n.label&&n.label.ignore||t.label&&t.label.ignore)&&!!n.rect.intersect(t.rect,e,i)&&(!(!n.axisAligned||!t.axisAligned)||NS(n).intersect(NS(t),e,i))}function nV(n){if(n){for(var t=[],e=0;e<n.length;e++)t.push(n[e].slice());return t}}function iV(n,t){var e=n.label,i=t&&t.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:nV(i&&i.shape.points)}}var ES=["align","verticalAlign","width","height","fontSize"],un=new ji,xv=Me(),rV=Me();function Oh(n,t,e){for(var i=0;i<e.length;i++){var r=e[i];t[r]!=null&&(n[r]=t[r])}}var Rh=["x","y","rotation"],oV=(function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(t,e,i,r,o){var a=r.style,s=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();de.applyTransform(u,u,l),l?un.setLocalTransform(l):(un.x=un.y=un.rotation=un.originX=un.originY=0,un.scaleX=un.scaleY=1),un.rotation=Dn(un.rotation);var c,h=r.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();de.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:i,dataIndex:t,dataType:e,layoutOptionOrCb:o,layoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:un.x,y:un.y,scaleX:un.scaleX,scaleY:un.scaleY,rotation:un.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},n.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,r=i.get("labelLayout");(le(r)||Re(r).length)&&t.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=me(o);a&&!a.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,i,a,r)})},n.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),i=t.getHeight();function r(y,m){return function(){OS(y,m)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,u=a.defaultAttr,c=void 0;c=(c=le(a.layoutOptionOrCb)?a.layoutOptionOrCb(iV(a,l)):a.layoutOptionOrCb)||{},a.layoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=ne(c.x,e),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=ne(c.y,i),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}xv(s).needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var f=0;f<ES.length;f++){var g=ES[f];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var v=a.seriesModel;a.dataIndex!=null&&(v=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),s.on("drag",r(l,v.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},n.prototype.layout=function(t){var e=t.getWidth(),i=t.getHeight(),r=[];k(this._labelList,function(l){l.defaultAttr.ignore||r.push(p0({},l))});var o=Ye(r,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=Ye(r,function(l){return l.layoutOption.moveOverlap==="shiftY"});f0(o,0,0,e),f0(a,1,0,i);var s=Ye(r,function(l){return l.layoutOption.hideOverlap});(function(l){for(var u=0;u<l.length;u++){var c=l[u],h=c.defaultAttr,d=c.labelLine;c.label.attr("ignore",h.ignore),d&&d.attr("ignore",h.labelGuideIgnore)}})(s),aP(s)},n.prototype.processLabelsOverall=function(){var t=this;k(this._chartViewList,function(e){var i=e.__model,r=e.ignoreLabelLineUpdate,o=i.isAnimationEnabled();e.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!r,l=a.getTextContent();!s&&l&&(s=xv(l).needsUpdateLabelLine),s&&t._updateLabelLine(a,i),o&&t._animateLabels(a,i)})})},n.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),r=me(t),o=r.dataIndex;if(i&&o!=null){var a=e.getData(r.dataType),s=a.getItemModel(o),l={},u=a.getItemVisual(o,"style");if(u){var c=a.getVisual("drawType");l.stroke=u[c]}var h=s.getModel("labelLine");zx(t,Bx(s),l),OS(t,h)}},n.prototype._animateLabels=function(t,e){var i=t.getTextContent(),r=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!Vs(t))){var o=(f=xv(i)).oldLayout,a=me(t),s=a.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},u=e.getData(a.dataType);if(o){i.attr(o);var c=t.prevStates;c&&(be(c,"select")>=0&&i.attr(f.oldLayoutSelect),be(c,"emphasis")>=0&&i.attr(f.oldLayoutEmphasis)),Fe(i,l,e,s)}else if(i.attr(l),!ml(i).valueAnimation){var h=ae(i.style.opacity,1);i.style.opacity=0,rt(i,{style:{opacity:h}},e,s)}if(f.oldLayout=l,i.states.select){var d=f.oldLayoutSelect={};Oh(d,l,Rh),Oh(d,i.states.select,Rh)}if(i.states.emphasis){var p=f.oldLayoutEmphasis={};Oh(p,l,Rh),Oh(p,i.states.emphasis,Rh)}XA(i,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){o=(f=rV(r)).oldLayout;var f,g={points:r.shape.points};o?(r.attr({shape:o}),Fe(r,{shape:g},e)):(r.setShape(g),r.style.strokePercent=0,rt(r,{style:{strokePercent:1}},e)),f.oldLayout=g}},n})(),_v=Me(),bv=Math.sin,wv=Math.cos,sP=Math.PI,Go=2*Math.PI,aV=180/sP,lP=(function(){function n(){}return n.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},n.prototype.moveTo=function(t,e){this._add("M",t,e)},n.prototype.lineTo=function(t,e){this._add("L",t,e)},n.prototype.bezierCurveTo=function(t,e,i,r,o,a){this._add("C",t,e,i,r,o,a)},n.prototype.quadraticCurveTo=function(t,e,i,r){this._add("Q",t,e,i,r)},n.prototype.arc=function(t,e,i,r,o,a){this.ellipse(t,e,i,i,0,r,o,a)},n.prototype.ellipse=function(t,e,i,r,o,a,s,l){var u=s-a,c=!l,h=Math.abs(u),d=$r(h-Go)||(c?u>=Go:-u>=Go),p=u>0?u%Go:u%Go+Go,f=!1;f=!!d||!$r(h)&&p>=sP==!!c;var g=t+i*wv(a),v=e+r*bv(a);this._start&&this._add("M",g,v);var y=Math.round(o*aV);if(d){var m=1/this._p,x=(c?1:-1)*(Go-m);this._add("A",i,r,y,1,+c,t+i*wv(a+x),e+r*bv(a+x)),m>.01&&this._add("A",i,r,y,0,+c,g,v)}else{var _=t+i*wv(s),b=e+r*bv(s);this._add("A",i,r,y,+f,+c,_,b)}},n.prototype.rect=function(t,e,i,r){this._add("M",t,e),this._add("l",i,0),this._add("l",0,r),this._add("l",-i,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(t,e,i,r,o,a,s,l,u){for(var c=[],h=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p))return void(this._invalid=!0);c.push(Math.round(p*h)/h)}this._d.push(t+c.join(" ")),this._start=t==="Z"},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},n.prototype.getStr=function(){return this._str},n})(),Kl="none",sV=Math.round,g0=["lineCap","miterLimit","lineJoin"],lV=K(g0,function(n){return"stroke-"+n.toLowerCase()});function uV(n,t,e,i){var r=t.opacity==null?1:t.opacity;if(e instanceof zt)n("opacity",r);else{if((function(m){var x=m.fill;return x!=null&&x!==Kl})(t)){var o=ic(t.fill);n("fill",o.color);var a=t.fillOpacity!=null?t.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&n("fill-opacity",a)}else n("fill",Kl);if((function(m){var x=m.stroke;return x!=null&&x!==Kl})(t)){var s=ic(t.stroke);n("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*r:s.opacity*r,h=t.strokeFirst;if((i||u!==1)&&n("stroke-width",u),(i||h)&&n("paint-order",h?"stroke":"fill"),(i||c<1)&&n("stroke-opacity",c),t.lineDash){var d=Qm(e),p=d[0],f=d[1];p&&(f=sV(f||0),n("stroke-dasharray",p.join(",")),(f||i)&&n("stroke-dashoffset",f))}else i&&n("stroke-dasharray",Kl);for(var g=0;g<g0.length;g++){var v=g0[g];if(i||t[v]!==lp[v]){var y=t[v]||lp[v];y&&n(lV[g],y)}}}else i&&n("stroke",Kl)}}var uP="http://www.w3.org/2000/svg",cP="http://www.w3.org/1999/xlink",zS="ecmeta_";function hP(n){return document.createElementNS(uP,n)}function Ot(n,t,e,i,r){return{tag:n,attrs:e||{},children:i,text:r,key:t}}function Vx(n,t){var e=(t=t||{}).newline?`
37
+ `:"";return(function i(r){var o=r.children,a=r.tag,s=r.attrs,l=r.text;return(function(u,c){var h=[];if(c)for(var d in c){var p=c[d],f=d;p!==!1&&(p!==!0&&p!=null&&(f+='="'+p+'"'),h.push(f))}return"<"+u+" "+h.join(" ")+">"})(a,s)+(a!=="style"?Zt(l):l||"")+(o?""+e+K(o,function(u){return i(u)}).join(e)+e:"")+("</"+a+">")})(n)}function v0(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function BS(n,t,e,i){return Ot("svg","root",{width:n,height:t,xmlns:uP,"xmlns:xlink":cP,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+n+" "+t},e)}var cV=0;function dP(){return cV++}var VS={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"},Xo="transform-origin";function hV(n,t,e){var i=X({},n.shape);X(i,t),n.buildPath(e,i);var r=new lP;return r.reset(RD(n)),e.rebuildPath(r,1),r.generateStr(),r.getStr()}function dV(n,t){var e=t.originX,i=t.originY;(e||i)&&(n[Xo]=e+"px "+i+"px")}var pV={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function GS(n,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=n,e}function FS(n){return te(n)?VS[n]?"cubic-bezier("+VS[n]+")":k1(n)?n:"":""}function Vp(n,t,e,i){var r=n.animators,o=r.length,a=[];if(n instanceof Fc){var s=(function(m,x,_){var b,w,S=m.shape.paths,M={};if(k(S,function(T){var C=v0(_.zrId);C.animation=!0,Vp(T,{},C,!0);var D=C.cssAnims,A=C.cssNodes,L=Re(D),P=L.length;if(P){var E=D[w=L[P-1]];for(var O in E){var N=E[O];M[O]=M[O]||{d:""},M[O].d+=N.d||""}for(var R in A){var z=A[R].animation;z.indexOf(w)>=0&&(b=z)}}}),b){x.d=!1;var I=GS(M,_);return b.replace(w,I)}})(n,t,e);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=r[u],h=[c.getMaxTime()/1e3+"s"],d=FS(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(m){var x,_=m[1],b=_.length,w={},S={},M={},I="animation-timing-function";function T(Z,Y,J){for(var $=Z.getTracks(),j=Z.getMaxTime(),ee=0;ee<$.length;ee++){var ue=$[ee];if(ue.needsAnimate()){var ye=ue.keyframes,we=ue.propName;if(J&&(we=J(we)),we)for(var ve=0;ve<ye.length;ve++){var xe=ye[ve],Ie=Math.round(xe.time/j*100)+"%",Ne=FS(xe.easing),tt=xe.rawValue;(te(tt)||Ve(tt))&&(Y[Ie]=Y[Ie]||{},Y[Ie][we]=xe.rawValue,Ne&&(Y[Ie][I]=Ne))}}}}for(var C=0;C<b;C++)(B=(z=_[C]).targetName)?B==="shape"&&T(z,S):!i&&T(z,w);for(var D in w){var A={};Vi(A,n),X(A,w[D]);var L=ND(A),P=w[D][I];M[D]=L?{transform:L}:{},dV(M[D],A),P&&(M[D][I]=P)}var E=!0;for(var D in S){M[D]=M[D]||{};var O=!x;P=S[D][I],O&&(x=new Zi);var N=x.len();x.reset(),M[D].d=hV(n,S[D],x);var R=x.len();if(!O&&N!==R){E=!1;break}P&&(M[D][I]=P)}if(!E)for(var D in M)delete M[D].d;if(!i)for(C=0;C<b;C++){var z,B;(B=(z=_[C]).targetName)==="style"&&T(z,M,function(Z){return pV[Z]})}var V,W=Re(M),U=!0;for(C=1;C<W.length;C++){var F=W[C-1],Q=W[C];if(M[F][Xo]!==M[Q][Xo]){U=!1;break}V=M[F][Xo]}if(U&&V){for(var D in M)M[D][Xo]&&delete M[D][Xo];t[Xo]=V}if(Ye(W,function(Z){return Re(M[Z]).length>0}).length)return GS(M,e)+" "+m[0]+" both"}for(var v in l)(s=g(l[v]))&&a.push(s);if(a.length){var y=e.zrId+"-cls-"+dP();e.cssNodes["."+y]={animation:a.join(",")},t.class=y}}function HS(n,t,e,i){var r=JSON.stringify(n),o=e.cssStyleCache[r];o||(o=e.zrId+"-cls-"+dP(),e.cssStyleCache[r]=o,e.cssNodes["."+o+(i?":hover":"")]=n),t.class=t.class?t.class+" "+o:o}var wc=Math.round;function pP(n){return n&&te(n.src)}function fP(n){return n&&le(n.toDataURL)}function y0(n,t,e,i){uV(function(r,o){var a=r==="fill"||r==="stroke";a&&OD(o)?vP(t,n,r,i):a&&vm(o)?yP(e,n,r,i):n[r]=o,a&&i.ssr&&o==="none"&&(n["pointer-events"]="visible")},t,e,!1),(function(r,o,a){var s=r.style;if((function(b){return b&&(b.shadowBlur||b.shadowOffsetX||b.shadowOffsetY)})(s)){var l=(function(b){var w=b.style,S=b.getGlobalScale();return[w.shadowColor,(w.shadowBlur||0).toFixed(2),(w.shadowOffsetX||0).toFixed(2),(w.shadowOffsetY||0).toFixed(2),S[0],S[1]].join(",")})(r),u=a.shadowCache,c=u[l];if(!c){var h=r.getGlobalScale(),d=h[0],p=h[1];if(!d||!p)return;var f=s.shadowOffsetX||0,g=s.shadowOffsetY||0,v=s.shadowBlur,y=ic(s.shadowColor),m=y.opacity,x=y.color,_=v/2/d+" "+v/2/p;c=a.zrId+"-s"+a.shadowIdx++,a.defs[c]=Ot("filter",c,{id:c,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ot("feDropShadow","",{dx:f/d,dy:g/p,stdDeviation:_,"flood-color":x,"flood-opacity":m})]),u[l]=c}o.filter=Mf(c)}})(e,n,i)}function m0(n,t){var e=FD(t);e&&(e.each(function(i,r){i!=null&&(n[(zS+r).toLowerCase()]=i+"")}),t.isSilent()&&(n[zS+"silent"]="true"))}function WS(n){return $r(n[0]-1)&&$r(n[1])&&$r(n[2])&&$r(n[3]-1)}function x0(n,t,e){if(t&&(!(function(r){return $r(r[4])&&$r(r[5])})(t)||!WS(t))){var i=e?10:1e4;n.transform=WS(t)?"translate("+wc(t[4]*i)/i+" "+wc(t[5]*i)/i+")":(function(r){return"matrix("+th(r[0])+","+th(r[1])+","+th(r[2])+","+th(r[3])+","+gm(r[4])+","+gm(r[5])+")"})(t)}}function US(n,t,e){for(var i=n.points,r=[],o=0;o<i.length;o++)r.push(wc(i[o][0]*e)/e),r.push(wc(i[o][1]*e)/e);t.points=r.join(" ")}function YS(n){return!n.smooth}var XS,Sv,fV={circle:[(XS=["cx","cy","r"],Sv=K(XS,function(n){return typeof n=="string"?[n,n]:n}),function(n,t,e){for(var i=0;i<Sv.length;i++){var r=Sv[i],o=n[r[0]];o!=null&&(t[r[1]]=wc(o*e)/e)}})],polyline:[US,YS],polygon:[US,YS]};function gP(n,t){var e=n.style,i=n.shape,r=fV[n.type],o={},a=t.animation,s="path",l=n.style.strokePercent,u=t.compress&&RD(n)||4;if(!r||t.willUpdate||r[1]&&!r[1](i)||a&&(function(v){for(var y=v.animators,m=0;m<y.length;m++)if(y[m].targetName==="shape")return!0;return!1})(n)||l<1){var c=!n.path||n.shapeChanged();n.path||n.createPathProxy();var h=n.path;c&&(h.beginPath(),n.buildPath(h,n.shape),n.pathUpdated());var d=h.getVersion(),p=n,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new lP),f.reset(u),h.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=n.type;var g=Math.pow(10,u);r[0](i,o,g)}return x0(o,n.transform),y0(o,e,n,t),m0(o,n),t.animation&&Vp(n,o,t),t.emphasis&&(function(v,y,m){if(!v.ignore)if(v.isSilent())HS(I={"pointer-events":"none"},y,m,!0);else{var x=v.states.emphasis&&v.states.emphasis.style?v.states.emphasis.style:{},_=x.fill;if(!_){var b=v.style&&v.style.fill,w=v.states.select&&v.states.select.style&&v.states.select.style.fill,S=v.currentStates.indexOf("select")>=0&&w||b;S&&(_=ep(S))}var M=x.lineWidth;M&&(M/=!x.strokeNoScale&&v.transform?v.transform[0]:1);var I={cursor:"pointer"};_&&(I.fill=_),x.stroke&&(I.stroke=x.stroke),M&&(I["stroke-width"]=M),HS(I,y,m,!0)}})(n,o,t),Ot(s,n.id+"",o)}function ZS(n,t){return n instanceof Le?gP(n,t):n instanceof zt?(function(e,i){var r=e.style,o=r.image;if(o&&!te(o)&&(pP(o)?o=o.src:fP(o)&&(o=o.toDataURL())),o){var a=r.x||0,s=r.y||0,l={href:o,width:r.width,height:r.height};return a&&(l.x=a),s&&(l.y=s),x0(l,e.transform),y0(l,r,e,i),m0(l,e),i.animation&&Vp(e,l,i),Ot("image",e.id+"",l)}})(n,t):n instanceof qs?(function(e,i){var r=e.style,o=r.text;if(o!=null&&(o+=""),o&&!isNaN(r.x)&&!isNaN(r.y)){var a=r.font||mr,s=r.x||0,l=(function(g,v,y){return y==="top"?g+=v/2:y==="bottom"&&(g-=v/2),g})(r.y||0,rc(a),r.textBaseline),u={"dominant-baseline":"central","text-anchor":QN[r.textAlign]||r.textAlign};if(dA(r)){var c="",h=r.fontStyle,d=hA(r.fontSize);if(!parseFloat(d))return;var p=r.fontFamily||iD,f=r.fontWeight;c+="font-size:"+d+";font-family:"+p+";",h&&h!=="normal"&&(c+="font-style:"+h+";"),f&&f!=="normal"&&(c+="font-weight:"+f+";"),u.style=c}else u.style="font: "+a;return o.match(/\s/)&&(u["xml:space"]="preserve"),s&&(u.x=s),l&&(u.y=l),x0(u,e.transform),y0(u,r,e,i),m0(u,e),i.animation&&Vp(e,u,i),Ot("text",e.id+"",u,void 0,o)}})(n,t):void 0}function vP(n,t,e,i){var r,o=n[e],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(LD(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!PD(o))return;r="radialGradient",a.cx=ae(o.x,.5),a.cy=ae(o.y,.5),a.r=ae(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*gm(s[u].offset)+"%",d=ic(s[u].color),p=d.color,f=d.opacity,g={offset:h};g["stop-color"]=p,f<1&&(g["stop-opacity"]=f),l.push(Ot("stop",u+"",g))}var v=Vx(Ot(r,"",a,l)),y=i.gradientCache,m=y[v];m||(m=i.zrId+"-g"+i.gradientIdx++,y[v]=m,a.id=m,i.defs[m]=Ot(r,m,a,l)),t[e]=Mf(m)}function yP(n,t,e,i){var r,o=n.style[e],a=n.getBoundingRect(),s={},l=o.repeat,u=l==="no-repeat",c=l==="repeat-x",h=l==="repeat-y";if(kD(o)){var d=o.imageWidth,p=o.imageHeight,f=void 0,g=o.image;if(te(g)?f=g:pP(g)?f=g.src:fP(g)&&(f=g.toDataURL()),typeof Image>"u"){var v="Image width/height must been given explictly in svg-ssr renderer.";Kt(d,v),Kt(p,v)}else if(d==null||p==null){var y=function(T,C){if(T){var D=T.elm,A=d||C.width,L=p||C.height;T.tag==="pattern"&&(c?(L=1,A/=a.width):h&&(A=1,L/=a.height)),T.attrs.width=A,T.attrs.height=L,D&&(D.setAttribute("width",A),D.setAttribute("height",L))}},m=H1(f,null,n,function(T){u||y(w,T),y(r,T)});m&&m.width&&m.height&&(d=d||m.width,p=p||m.height)}r=Ot("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else o.svgElement&&(r=se(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(r){var x,_;u?x=_=1:c?(_=1,x=s.width/a.width):h?(x=1,_=s.height/a.height):s.patternUnits="userSpaceOnUse",x==null||isNaN(x)||(s.width=x),_==null||isNaN(_)||(s.height=_);var b=ND(o);b&&(s.patternTransform=b);var w=Ot("pattern","",s,[r]),S=Vx(w),M=i.patternCache,I=M[S];I||(I=i.zrId+"-p"+i.patternIdx++,M[S]=I,s.id=I,w=i.defs[I]=Ot("pattern",I,s,[r])),t[e]=Mf(I)}}function gV(n,t,e){var i=e.clipPathCache,r=e.defs,o=i[n.id];if(!o){var a={id:o=e.zrId+"-c"+e.clipPathIdx++};i[n.id]=o,r[o]=Ot("clipPath",o,a,[gP(n,e)])}t["clip-path"]=Mf(o)}function qS(n){return document.createTextNode(n)}function Ps(n,t,e){n.insertBefore(t,e)}function jS(n,t){n.removeChild(t)}function KS(n,t){n.appendChild(t)}function mP(n){return n.parentNode}function xP(n){return n.nextSibling}function Mv(n,t){n.textContent=t}var vV=Ot("","");function Iv(n){return n===void 0}function Mi(n){return n!==void 0}function yV(n,t,e){for(var i={},r=t;r<=e;++r){var o=n[r].key;o!==void 0&&(i[o]=r)}return i}function Mu(n,t){var e=n.key===t.key;return n.tag===t.tag&&e}function Uf(n){var t,e=n.children,i=n.tag;if(Mi(i)){var r=n.elm=hP(i);if(Gx(vV,n),q(e))for(t=0;t<e.length;++t){var o=e[t];o!=null&&KS(r,Uf(o))}else Mi(n.text)&&!fe(n.text)&&KS(r,qS(n.text))}else n.elm=qS(n.text);return n.elm}function $S(n,t,e,i,r){for(;i<=r;++i){var o=e[i];o!=null&&Ps(n,Uf(o),t)}}function Bd(n,t,e,i){for(;e<=i;++e){var r=t[e];r!=null&&(Mi(r.tag)?jS(mP(r.elm),r.elm):jS(n,r.elm))}}function Gx(n,t){var e,i=t.elm,r=n&&n.attrs||{},o=t.attrs||{};if(r!==o){for(e in o){var a=o[e];r[e]!==a&&(a===!0?i.setAttribute(e,""):a===!1?i.removeAttribute(e):e==="style"?i.style.cssText=a:e.charCodeAt(0)!==120?i.setAttribute(e,a):e==="xmlns:xlink"||e==="xmlns"?i.setAttributeNS("http://www.w3.org/2000/xmlns/",e,a):e.charCodeAt(3)===58?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",e,a):e.charCodeAt(5)===58?i.setAttributeNS(cP,e,a):i.setAttribute(e,a))}for(e in r)e in o||i.removeAttribute(e)}}function Ts(n,t){var e=t.elm=n.elm,i=n.children,r=t.children;n!==t&&(Gx(n,t),Iv(t.text)?Mi(i)&&Mi(r)?i!==r&&(function(o,a,s){for(var l,u,c,h=0,d=0,p=a.length-1,f=a[0],g=a[p],v=s.length-1,y=s[0],m=s[v];h<=p&&d<=v;)f==null?f=a[++h]:g==null?g=a[--p]:y==null?y=s[++d]:m==null?m=s[--v]:Mu(f,y)?(Ts(f,y),f=a[++h],y=s[++d]):Mu(g,m)?(Ts(g,m),g=a[--p],m=s[--v]):Mu(f,m)?(Ts(f,m),Ps(o,f.elm,xP(g.elm)),f=a[++h],m=s[--v]):Mu(g,y)?(Ts(g,y),Ps(o,g.elm,f.elm),g=a[--p],y=s[++d]):(Iv(l)&&(l=yV(a,h,p)),Iv(u=l[y.key])||(c=a[u]).tag!==y.tag?Ps(o,Uf(y),f.elm):(Ts(c,y),a[u]=void 0,Ps(o,c.elm,f.elm)),y=s[++d]);(h<=p||d<=v)&&(h>p?$S(o,s[v+1]==null?null:s[v+1].elm,s,d,v):Bd(o,a,h,p))})(e,i,r):Mi(r)?(Mi(n.text)&&Mv(e,""),$S(e,null,r,0,r.length-1)):Mi(i)?Bd(e,i,0,i.length-1):Mi(n.text)&&Mv(e,""):n.text!==t.text&&(Mi(i)&&Bd(e,i,0,i.length-1),Mv(e,t.text)))}var mV=0,xV=(function(){function n(t,e,i){if(this.type="svg",this.configLayer=function(){},this.storage=e,this._opts=i=X({},i),this.root=t,this._id="zr"+mV++,this._oldVNode=BS(i.width,i.height),t&&!i.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=hP("svg");Gx(null,this._oldVNode),r.appendChild(o),t.appendChild(r)}this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",(function(e,i){if(Mu(e,i))Ts(e,i);else{var r=e.elm,o=mP(r);Uf(i),o!==null&&(Ps(o,i.elm,xP(r)),Bd(o,[e],0,0))}})(this._oldVNode,t),this._oldVNode=t}},n.prototype.renderOneToVNode=function(t){return ZS(t,v0(this._id))},n.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),i=this._width,r=this._height,o=v0(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis,o.ssr=this._opts.ssr;var a=[],s=this._bgVNode=(function(d,p,f,g){var v;if(f&&f!=="none")if(v=Ot("rect","bg",{width:d,height:p,x:"0",y:"0"}),OD(f))vP({fill:f},v.attrs,"fill",g);else if(vm(f))yP({style:{fill:f},dirty:ct,getBoundingRect:function(){return{width:d,height:p}}},v.attrs,"fill",g);else{var y=ic(f),m=y.color,x=y.opacity;v.attrs.fill=m,x<1&&(v.attrs["fill-opacity"]=x)}return v})(i,r,this._backgroundColor,o);s&&a.push(s);var l=t.compress?null:this._mainVNode=Ot("g","main",{},[]);this._paintList(e,o,l?l.children:a),l&&a.push(l);var u=K(Re(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(Ot("defs","defs",{},u)),t.animation){var c=(function(d,p,f){var g=(f=f||{}).newline?`
38
+ `:"",v=" {"+g,y=g+"}",m=K(Re(d),function(_){return _+v+K(Re(d[_]),function(b){return b+":"+d[_][b]+";"}).join(g)+y}).join(g),x=K(Re(p),function(_){return"@keyframes "+_+v+K(Re(p[_]),function(b){return b+v+K(Re(p[_][b]),function(w){var S=p[_][b][w];return w==="d"&&(S='path("'+S+'")'),w+":"+S+";"}).join(g)+y}).join(g)+y}).join(g);return m||x?["<![CDATA[",m,x,"]]>"].join(g):""})(o.cssNodes,o.cssAnims,{newline:!0});if(c){var h=Ot("style","stl",{},[],c);a.push(h)}}return BS(i,r,a,t.useViewBox)},n.prototype.renderToString=function(t){return t=t||{},Vx(this.renderToVNode({animation:ae(t.cssAnimation,!0),emphasis:ae(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ae(t.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(t,e,i){for(var r,o,a=t.length,s=[],l=0,u=0,c=0;c<a;c++){var h=t[c];if(!h.invisible){var d=h.__clipPaths,p=d&&d.length||0,f=o&&o.length||0,g=void 0;for(g=Math.max(p-1,f-1);g>=0&&(!d||!o||d[g]!==o[g]);g--);for(var v=f-1;v>g;v--)r=s[--l-1];for(var y=g+1;y<p;y++){var m={};gV(d[y],m,e);var x=Ot("g","clip-g-"+u++,m,[]);(r?r.children:i).push(x),s[l++]=x,r=x}o=d;var _=ZS(h,e);_&&(r?r.children:i).push(_)}}},n.prototype.resize=function(t,e){var i=this._opts,r=this.root,o=this._viewport;if(t!=null&&(i.width=t),e!=null&&(i.height=e),r&&o&&(o.style.display="none",t=Ls(r,0,i),e=Ls(r,1,i),o.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,o){var a=o.style;a.width=t+"px",a.height=e+"px"}if(vm(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},n.prototype.toDataURL=function(t){var e=this.renderToString(),i="data:image/svg+xml;";return t?(e=eE(e))&&i+"base64,"+e:i+"charset=UTF-8,"+encodeURIComponent(e)},n})();function JS(n,t,e){var i=Rt.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",n)),i.width=r*e,i.height=o*e,i}function Tv(n){return!n.__cursors.get(0)}function QS(n){var t=n.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var _P=(function(n){function t(e,i,r){var o,a=n.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0},r=r||np,typeof e=="string"?o=JS(e,i,r):fe(e)&&(e=(o=e).id),a.id=e,a.dom=o;var s=o.style;return s&&(C1(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=r,a}return G(t,n),t.prototype.afterBrush=function(){this.__prevIdx=QS(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=JS("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,r,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new de(0,0,0,0);function c(_){if(_.isFinite()&&!_.isZero())if(a.length===0)(b=new de(0,0,0,0)).copy(_),a.push(b);else{for(var b,w=!1,S=1/0,M=0,I=0;I<a.length;++I){var T=a[I];if(T.intersect(_)){var C=new de(0,0,0,0);C.copy(T),C.union(_),a[I]=C,w=!0;break}if(l){u.copy(_),u.union(T);var D=_.width*_.height,A=T.width*T.height,L=u.width*u.height-D-A;L<S&&(S=L,M=I)}}l&&(a[M].union(_),w=!0),!w&&((b=new de(0,0,0,0)).copy(_),a.push(b)),l||(l=a.length>=s)}}for(var h=QS(this),d=h.startIdx;d<h.endIdx;++d)if(y=e[d]){var p=y.shouldBePainted(r,o,!0,!0);(m=y.__isRendered&&(1&y.__dirty||!p)?y.getPrevPaintRect():null)&&c(m);var f=p&&(1&y.__dirty||!y.__isRendered)?y.getPaintRect():null;f&&c(f)}var g,v=this.__prevIdx;for(d=v.startIdx;d<v.endIdx;++d){var y,m;p=(y=i[d])&&y.shouldBePainted(r,o,!0,!0),y&&(!p||!y.__zr)&&y.__isRendered&&(m=y.getPrevPaintRect())&&c(m)}do for(g=!1,d=0;d<a.length;)if(a[d].isZero())a.splice(d,1);else{for(var x=d+1;x<a.length;)a[d].intersect(a[x])?(g=!0,a[d].union(a[x]),a.splice(x,1)):x++;d++}while(g);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var r=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=e+"px",a.height=i+"px"),o.width=e*r,o.height=i*r,s&&(s.width=e*r,s.height=i*r,r!==1&&this.ctxBack.scale(r,r))},t.prototype.clear=function(e,i,r){var o=this.dom,a=this.ctx,s=o.width,l=o.height;i=i||this.clearColor;var u=this.motionBlur&&!e,c=this.lastFrameAlpha,h=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/h,l/h));var p=this.domBack;function f(g,v,y,m){if(a.clearRect(g,v,y,m),i&&i!=="transparent"){var x=void 0;Nc(i)?(x=(i.global||i.__width===y&&i.__height===m)&&i.__canvasGradient||Jm(a,i,{x:0,y:0,width:y,height:m}),i.__canvasGradient=x,i.__width=y,i.__height=m):sD(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,x=e0(a,i,{dirty:function(){d.setUnpainted(),d.painter.refresh()}})),a.save(),a.fillStyle=x||i,a.fillRect(g,v,y,m),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(p,g,v,y,m),a.restore())}!r||u?f(0,0,s,l):r.length&&k(r,function(g){f(g.x*h,g.y*h,g.width*h,g.height*h)})},t})(Qn),eM=1e5,gs=314159,Cv=void 0;function tM(n,t,e,i){var r=new _P(n,t,t.dpr);return r.zlevel=e,r.zlevel2=i,r.__builtin__=!0,bP(r),r}function bP(n){n.__cursorStack=[],n.__cursors=re()}function _V(n,t){var e,i=n.__cursors,r=+t;return i.get(r)||(n.__cursorStack.push(r),i.set(r,((e={key:r}).startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e)))}function Nh(n,t){for(var e=n.__cursorStack,i=0;i<e.length;i++)t(n.__cursors.get(e[i]))}function Dv(n,t){var e=n.layers;return e[t]||(e[t]=new Array(3))}function rn(n,t,e){for(var i=n.layerStack,r=0;r<i.length;r++){var o=i[r].zl,a=i[r].zl2,s=n.layers[o][a];e&&(e&Yu&&!s.__builtin__||e&_0&&s.__builtin__||e&wP&&s===n.hoverlayer)||t(s,o,a,r)}}var Yu=1,_0=2,wP=4,Eh=Yu|wP,bV=(function(){function n(t,e,i,r){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";if(this._opts=i=X({},i||{}),this.dpr=i.devicePixelRatio||np,this._singleCanvas=o,this.root=t,t.style&&(C1(t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],o){var a=t,s=a.width,l=a.height;i.width!=null&&(s=i.width),i.height!=null&&(l=i.height),this.dpr=i.devicePixelRatio||1,a.width=s*this.dpr,a.height=l*this.dpr,this._width=s,this._height=l;var u=tM(a,this,gs,0);u.initContext(),this._insertLayer(u,gs,0,!0),this._domRoot=t}else{this._width=Ls(t,0,i),this._height=Ls(t,1,i);var c=this._domRoot=(function(h,d){var p=document.createElement("div");return p.style.cssText=["position:relative","width:"+h+"px","height:"+d+"px","padding:0","margin:0","border-width:0"].join(";")+";",p})(this._width,this._height);t.appendChild(c)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.refresh=function(t){var e,i=ae((e=t&&!fe(t)?{paintAll:!!t}:t||{}).refresh,!0),r=ae(e.refreshHover,!1);if(r&&(this._hoverLayerDirty=2),!i)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var o=this.storage.getDisplayList(!0);this._updateLayerStatus(o,e.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(o,a,this._redrawId);var s=this._backgroundColor;return rn(this._i,function(l,u,c,h){l.refresh&&l.refresh(h===0?s:null)},_0),this._opts.useDirtyRect&&(this._prevDisplayList=o.slice()),this},n.prototype._paintHoverList=function(t){var e=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=Cv,i!==Cv&&(e||i!==2||(e=this._i.hoverlayer=this._ensureLayer(eM)),e)){e.clear();for(var r,o={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a=0,s=t.length;a<s;a++){var l=t[a];if(l.__inHover){r||(r=e.ctx).save();var u=l.__hoverStyle,c=void 0;u&&(c=l.style,l.style=u),aa(r,l,o),u&&(l.style=c)}}r&&(Gs(r,o),r.restore())}},n.prototype.getHoverLayer=function(){return this._ensureLayer(eM)},n.prototype.paintOne=function(t,e){dL(t,e)},n.prototype._paintList=function(t,e,i){if(this._redrawId===i){var r=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),r)rn(this._i,function(a){a.afterBrush&&a.afterBrush()},Eh),this._paintHoverList(t);else{var o=this;hm(function(){o._paintList(t,e,i)})}}},n.prototype._compositeManually=function(){var t=this._ensureLayer(gs).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),rn(this._i,function(r){r.virtual&&t.drawImage(r.dom,0,0,e,i)},Yu)},n.prototype._doPaintList=function(t,e){var i=this,r=!0;return rn(this._i,function(o){var a=!1;if(Nh(o,function(h){(h.drawIdx<h.endIdx||h.notClearIdx>=0)&&(a=!0)}),a||o.__dirty){var s=i._opts.useDirtyRect&&!Tv(o)?o.createRepaintRects(t,e,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(o.__dirty){u=!1,o.__dirty=!1;var c=o.zlevel===l.zl&&o.zlevel2===l.zl2?i._backgroundColor:null;o.clear(!1,c,s)}Nh(o,function(h){var d=i._paintPerCursor(o,h,t,s,u);r=r&&d})}},Eh),Ee.wxa&&rn(this._i,function(o){o&&o.ctx&&o.ctx.draw&&o.ctx.draw()}),r},n.prototype._paintPerCursor=function(t,e,i,r,o){var a=t.ctx;if(r)if(r.length)for(var s=this.dpr,l=0;l<r.length;++l){var u=r[l];a.save(),a.beginPath(),a.rect(u.x*s,u.y*s,u.width*s,u.height*s),a.clip(),this._paintPerCursorInRect(t,e,i,u,o),a.restore()}else e.drawIdx=e.endIdx;else a.save(),this._paintPerCursorInRect(t,e,i,null,o),a.restore();return e.drawIdx>=e.endIdx},n.prototype._paintPerCursorInRect=function(t,e,i,r,o){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:o}},s=t.ctx,l=Tv(t),u=l&&Rt.getTime(),c=e.drawIdx,h=e.notClearIdx,d=h>=0?Math.min(h,c):c;d<e.endIdx;d++){var p=i[d];if(!(d<c)||p.notClear){if(p.__inHover&&(this._hoverLayerDirty=2),r!=null){var f=p.getPaintRect();f&&f.intersect(r)&&(aa(s,p,a),p.setPrevPaintRect(f))}else aa(s,p,a);if(l&&Rt.getTime()-u>15){d++;break}}}Gs(s,a),e.drawIdx=Math.max(d,c)},n.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},n.prototype._ensureLayer=function(t,e,i){e=e||0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(t=gs,e=0);var o=Dv(this._i,t)[e];return o||(o=tM("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&Se(o,this._layerConfig[t],!0),(i||r&&t!==gs)&&(o.virtual=!0),this._insertLayer(o,t,e,!1),o.initContext()),o},n.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},n.prototype._insertLayer=function(t,e,i,r){var o=this._i,a=o.layers,s=o.layerStack,l=this._domRoot,u=null;if((!a[e]||!a[e][i])&&(function(p){return!!p&&(!!p.__builtin__||typeof p.resize=="function"&&typeof p.refresh=="function")})(t)){for(var c=s.length,h=0;h<c&&(s[h].zl<e||s[h].zl===e&&s[h].zl2<i);)h++;if(h>0&&(u=Dv(o,s[h-1].zl)[s[h-1].zl2]),s.splice(h,0,{zl:e,zl2:i}),Dv(o,e)[i]=t,!r&&!t.virtual)if(u){var d=u.dom;d.nextSibling?l.insertBefore(t.dom,d.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.painter||(t.painter=this)}},n.prototype.eachLayer=function(t,e){return rn(this._i,function(i,r){t.call(e,i,r)})},n.prototype.eachBuiltinLayer=function(t,e){return rn(this._i,function(i,r){t.call(e,i,r)},Yu)},n.prototype.eachOtherLayer=function(t,e){return rn(this._i,function(i,r){t.call(e,i,r)},_0)},n.prototype.getLayers=function(){var t={};return rn(this._i,function(e,i,r){t[e.id]=e}),t},n.prototype._updateLayerStatus=function(t,e){var i,r=this;if(r._singleCanvas){for(var o=1;o<t.length;o++)if((h=t[o]).zlevel!==t[o-1].zlevel||h.incremental){r._needsManuallyCompositing=!0;break}}rn(r._i,function(v){v.__dirty=!1,Nh(v,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},Eh);for(var a=null,s=null,l=!1,u=0,c=t.length;u<c;u++){var h,d=(h=t[u]).zlevel,p=h.incremental,f=void 0;if(i!==d&&(i=d,l=!1),p?(l=!0,f=1):f=l?2:0,a&&d===a.zlevel&&f===a.zlevel2||(s=null,(a=r._ensureLayer(d,f)).__builtin__)){if(!(s&&p===s.key||(s=_V(a,p)).used))if(s.used=!0,e||s.first!==h.id)a.__dirty=!0,s.first=h.id,s.startIdx=s.drawIdx=u,s.endIdx=u+1;else{var g=u-s.startIdx;s.startIdx=u,s.drawIdx+=g,s.endIdx+=g}s.endIdxNew=u+1,1&h.__dirty&&!h.__inHover&&((!p||!h.notClear&&u<s.drawIdx)&&(a.__dirty=!0),p&&h.notClear&&s.notClearIdx<0&&(s.notClearIdx=u))}else xf("ZLevel "+d+" has been used by unknown layer "+a.id)}rn(r._i,function(v){for(var y=v.__cursorStack,m=v.__cursors,x=y.length-1;x>=0;x--){var _=m.get(y[x]);if(_.used){var b=_.endIdxNew;(Tv(v)?b<_.drawIdx:b!==_.endIdx||!b||t[b-1].id!==_.last)&&(v.__dirty=!0),_.endIdx=_.endIdxNew,_.last=b?t[b-1].id:NaN}else v.__dirty=!0,m.removeKey(y[x]),y.splice(x,1)}v.__dirty&&(Nh(v,function(w){w.drawIdx=w.startIdx}),r._hoverLayerDirty===Cv&&(r._hoverLayerDirty=1))},Eh)},n.prototype.clear=function(){return rn(this._i,function(t){t.clear(),bP(t)},Yu),this},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,rn(this._i,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?Se(i[t],e,!0):i[t]=e,rn(this._i,function(r,o){Se(r,i[o],!0)})}},n.prototype.delLayer=function(t){for(var e=this._i.layerStack,i=this._i.layers,r=e.length-1;r>=0;r--){var o=e[r];if(o.zl===t){var a=i[t][o.zl2];if(a.__builtin__)continue;if(e.splice(r,1),i[t][o.zl2]=void 0,!a.virtual){var s=a.dom.parentNode;s&&s.removeChild(a.dom)}}}},n.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts,o=this.root;t!=null&&(r.width=t),e!=null&&(r.height=e),t=Ls(o,0,r),e=Ls(o,1,r),i.style.display="",this._width===t&&e===this._height||(i.style.width=t+"px",i.style.height=e+"px",rn(this._i,function(a){a.resize(t,e)}),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this._ensureLayer(gs).resize(t,e)}return this},n.prototype.clearLayer=function(t){k(this._i.layers[t],function(e){e&&!e.__builtin__&&e.clear()})},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},n.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[314159][0].dom;var e=new _P("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,o=e.dom.height;rn(this._i,function(h){h.__builtin__?i.drawImage(h.dom,0,0,r,o):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];aa(i,c,a)}Gs(i,a)}return e.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n})(),wV=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return G(t,n),t.prototype.getInitialData=function(e){return Ji(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new he,r=bt("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(r),r.setStyle(e.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=.8*e.itemHeight,u=bt(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?a:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=H.color.neutral00,u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize: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},t})(je);function rl(n,t){var e=n.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var r=$s(n,t,e[0]);return r!=null?r+"":null}if(i){for(var o=[],a=0;a<e.length;a++)o.push($s(n,t,e[a]));return o.join(" ")}}function SP(n,t){var e=n.mapDimensionsAll("defaultedLabel");if(!q(t))return t+"";for(var i=[],r=0;r<e.length;r++){var o=n.getDimensionIndex(e[r]);o>=0&&i.push(t[o])}return i.join(" ")}var qc=(function(n){function t(e,i,r,o){var a=n.call(this)||this;return a.updateData(e,i,r,o),a}return G(t,n),t.prototype._createSymbol=function(e,i,r,o,a,s){this.removeAll();var l=bt(e,-1,-1,2,2,null,s);l.attr({z2:ae(a,100),culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=SV,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){br(this.childAt(0))},t.prototype.downplay=function(){wr(this.childAt(0))},t.prototype.setZ=function(e,i){var r=this.childAt(0);r.zlevel=e,r.z=i},t.prototype.setDraggable=function(e,i){var r=this.childAt(0);r.draggable=e,r.cursor=!i&&e?"move":r.cursor},t.prototype.updateData=function(e,i,r,o){this.silent=!1;var a=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=t.getSymbolZ2(e,i),c=a!==this._symbolType,h=o&&o.disableAnimation;if(c){var d=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,e,i,l,u,d)}else{(f=this.childAt(0)).silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};h?f.attr(p):Fe(f,p,s,i),Jn(f)}if(this._updateCommon(e,i,l,r,o),c){var f=this.childAt(0);h||(p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}},f.scaleX=f.scaleY=0,f.style.opacity=0,rt(f,p,s,i))}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,r,o,a){var s,l,u,c,h,d,p,f,g,v=this.childAt(0),y=e.hostModel;if(o&&(s=o.emphasisItemStyle,l=o.blurItemStyle,u=o.selectItemStyle,c=o.focus,h=o.blurScope,p=o.labelStatesModels,f=o.hoverScale,g=o.cursorStyle,d=o.emphasisDisabled),!o||e.hasItemOption){var m=o&&o.itemModel?o.itemModel:e.getItemModel(i),x=m.getModel("emphasis");s=x.getModel("itemStyle").getItemStyle(),u=m.getModel(["select","itemStyle"]).getItemStyle(),l=m.getModel(["blur","itemStyle"]).getItemStyle(),c=x.get("focus"),h=x.get("blurScope"),d=x.get("disabled"),p=Dt(m),f=x.getShallow("scale"),g=m.getShallow("cursor")}var _=e.getItemVisual(i,"symbolRotate");v.attr("rotation",(_||0)*Math.PI/180||0);var b=ja(e.getItemVisual(i,"symbolOffset"),r);b&&(v.x=b[0],v.y=b[1]),g&&v.attr("cursor",g);var w=e.getItemVisual(i,"style"),S=w.fill;if(v instanceof zt){var M=v.style;v.useStyle(X({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},w))}else v.__isEmptyBrush?v.useStyle(X({},w)):v.useStyle(w),v.style.decal=null,v.setColor(S,a&&a.symbolInnerColor),v.style.strokeNoScale=!0;var I=e.getItemVisual(i,"liftZ"),T=this._z2;I!=null?T==null&&(this._z2=v.z2,v.z2+=I):T!=null&&(v.z2=T,this._z2=null);var C=a&&a.useNameLabel;Et(v,p,{labelFetcher:y,labelDataIndex:i,defaultText:function(L){return C?e.getName(L):rl(e,L)},inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=r[0]/2,this._sizeY=r[1]/2;var D=v.ensureState("emphasis");D.style=s,v.ensureState("select").style=u,v.ensureState("blur").style=l;var A=f==null||f===!0?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*A,D.scaleY=this._sizeY*A,this.setSymbolScale(1),at(this,c,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,r){var o=this.childAt(0),a=me(this).dataIndex,s=r&&r.animation;if(this.silent=o.silent=!0,r&&r.fadeLabel){var l=o.getTextContent();l&&po(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();po(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return Sl(e.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(e,i){return e.getItemVisual(i,"z2")},t})(he);function SV(n,t){this.parent.drift(n,t)}function zh(n,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i&&i.isIgnore&&i.isIgnore(e))&&!(i&&i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&n.getItemVisual(e,"symbol")!=="none"}function nM(n){return n==null||fe(n)||(n={isIgnore:n}),n||{}}function iM(n){var t=n.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Dt(t),cursorStyle:t.get("cursor")}}function rM(n,t,e,i,r,o,a){var s=new n(t,e,i,r);return s.setPosition(o),t.setItemGraphicEl(e,s),a.add(s),s}var jc=(function(){function n(t){this.group=new he,this._SymbolCtor=t||qc}return n.prototype.updateData=function(t,e){this._progressiveEls=null,e=nM(e);var i=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=this._seriesScope=iM(t),u={disableAnimation:s},c=e.getSymbolPoint||function(h){return t.getItemLayout(h)};o||i.removeAll(),t.diff(o).add(function(h){var d=c(h);zh(t,d,h,e)&&rM(a,t,h,l,u,d,i)}).update(function(h,d){var p=o.getItemGraphicEl(d),f=c(h);if(zh(t,f,h,e)){var g=t.getItemVisual(h,"symbol")||"circle",v=p&&p.getSymbolType&&p.getSymbolType();if(!p||v&&v!==g)i.remove(p),(p=new a(t,h,l,u)).setPosition(f);else{p.updateData(t,h,l,u);var y={x:f[0],y:f[1]};s?p.attr(y):Fe(p,y,r)}i.add(p),t.setItemGraphicEl(h,p)}else i.remove(p)}).remove(function(h){var d=o.getItemGraphicEl(h);d&&d.fadeOut(function(){i.remove(d)},r)}).execute(),this._getSymbolPoint=c,this._data=t},n.prototype.updateLayout=function(t){var e=this._data;if(e)for(var i=this,r=0,o=e.getStore().count();r<o;r++){var a=e.getItemGraphicEl(r),s=i._getSymbolPoint(r);zh(e,s,r,t)?((a=a||rM(i._SymbolCtor,e,r,i._seriesScope,{disableAnimation:!0},s,i.group)).stopAnimation(),a.setPosition(s),a.markRedraw()):a&&(i.group.remove(a),e.setItemGraphicEl(r,null))}},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=iM(t),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,i,r){function o(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=2)}this._progressiveEls=[],r=nM(r);for(var a=t.start;a<t.end;a++){var s=e.getItemLayout(a);if(zh(e,s,a,r)){var l=new this._SymbolCtor(e,a,this._seriesScope);l.traverse(o),l.setPosition(s),this.group.add(l),e.setItemGraphicEl(a,l),this._progressiveEls.push(l)}}},n.prototype.eachRendered=function(t){xo(this._progressiveEls||this.group,t)},n.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(r){r.fadeOut(function(){e.remove(r)},i.hostModel)}):e.removeAll()},n})();function oM(n,t,e){var i=n.getBaseAxis(),r=n.getOtherAxis(i),o=(function(f,g){var v=0,y=f.scale.getExtent();return g==="start"?v=y[0]:g==="end"?v=y[1]:Ve(g)&&!isNaN(g)?v=g:y[0]>0?v=y[0]:y[1]<0&&(v=y[1]),v})(r,e),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),c=s==="x"||s==="radius"?1:0,h=K(n.dimensions,function(f){return t.mapDimension(f)}),d=!1,p=t.getCalculationInfo("stackResultDimension");return Mr(t,h[0])&&(d=!0,h[0]=p),Mr(t,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function aM(n,t,e,i){var r=NaN;n.stacked&&(r=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=n.valueStart);var o=n.baseDataOffset,a=[];return a[o]=e.get(n.baseDim,i),a[1-o]=r,t.dataToPoint(a)}function qn(n,t){return!isFinite(n)||!isFinite(t)}var MV=typeof Float32Array!==pl?Float32Array:void 0,IV=typeof Float64Array!==pl?Float64Array:void 0;function Ai(n){return Fx({ctor:MV},n).arr}function Fx(n,t){var e=n.arr,i=n.ctor;if(t>ac&&(t=ac),!e||n.typed&&e.length<t){var r=void 0;if(i)try{r=new i(t),n.typed=!0,e&&r.set(e)}catch{}if(!r&&(r=[],n.typed=!1,e))for(var o=0,a=e.length;o<a;o++)r[o]=e[o];n.arr=r}return n}var Er=Math.min,zr=Math.max;function b0(n,t,e,i,r,o,a,s,l){for(var u,c,h,d,p,f,g=e,v=0;v<i;v++){var y=t[2*g],m=t[2*g+1];if(g>=r||g<0)break;if(qn(y,m)){if(l){g+=o;continue}break}if(g===e)n[o>0?"moveTo":"lineTo"](y,m),h=y,d=m;else{var x=y-u,_=m-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=t[2*b],S=t[2*b+1];w===y&&S===m&&v<i;)v++,g+=o,w=t[2*(b+=o)],S=t[2*b+1],x=(y=t[2*g])-u,_=(m=t[2*g+1])-c;var M=v+1;if(l)for(;qn(w,S)&&M<i;)M++,w=t[2*(b+=o)],S=t[2*b+1];var I=.5,T=0,C=0,D=void 0,A=void 0;if(M>=i||qn(w,S))p=y,f=m;else{T=w-u,C=S-c;var L=y-u,P=w-y,E=m-c,O=S-m,N=void 0,R=void 0;if(s==="x"){var z=T>0?1:-1;p=y-z*(N=Math.abs(L))*a,f=m,D=y+z*(R=Math.abs(P))*a,A=m}else if(s==="y"){var B=C>0?1:-1;p=y,f=m-B*(N=Math.abs(E))*a,D=y,A=m+B*(R=Math.abs(O))*a}else N=Math.sqrt(L*L+E*E),p=y-T*a*(1-(I=(R=Math.sqrt(P*P+O*O))/(R+N))),f=m-C*a*(1-I),A=m+C*a*I,D=Er(D=y+T*a*I,zr(w,y)),A=Er(A,zr(S,m)),D=zr(D,Er(w,y)),f=m-(C=(A=zr(A,Er(S,m)))-m)*N/R,p=Er(p=y-(T=D-y)*N/R,zr(u,y)),f=Er(f,zr(c,m)),D=y+(T=y-(p=zr(p,Er(u,y))))*R/N,A=m+(C=m-(f=zr(f,Er(c,m))))*R/N}n.bezierCurveTo(h,d,p,f,y,m),h=D,d=A}else n.lineTo(y,m)}u=y,c=m,g+=o}return v}var MP=function(){this.smooth=0,this.smoothConstraint=!0},TV=(function(n){function t(e){var i=n.call(this,e)||this;return i.type="ec-polyline",i}return G(t,n),t.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new MP},t.prototype.buildPath=function(e,i){var r=i.points,o=0,a=r.length/2;if(i.connectNulls){for(;a>0&&qn(r[2*a-2],r[2*a-1]);a--);for(;o<a&&qn(r[2*o],r[2*o+1]);o++);}for(;o<a;)o+=b0(e,r,o,a,a,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var r,o,a=this.path.data,s=Zi.CMD,l=i==="x",u=[],c=0;c<a.length;){var h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,v=void 0,y=void 0;switch(a[c++]){case s.M:r=a[c++],o=a[c++];break;case s.L:if(h=a[c++],d=a[c++],(y=l?(e-r)/(h-r):(e-o)/(d-o))<=1&&y>=0){var m=l?(d-o)*y+o:(h-r)*y+r;return l?[e,m]:[m,e]}r=h,o=d;break;case s.C:h=a[c++],d=a[c++],p=a[c++],f=a[c++],g=a[c++],v=a[c++];var x=l?Jd(r,h,p,g,e,u):Jd(o,d,f,v,e,u);if(x>0)for(var _=0;_<x;_++){var b=u[_];if(b<=1&&b>=0)return m=l?Pt(o,d,f,v,b):Pt(r,h,p,g,b),l?[e,m]:[m,e]}r=g,o=v}}},t})(Le),CV=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t})(MP),IP=(function(n){function t(e){var i=n.call(this,e)||this;return i.type="ec-polygon",i}return G(t,n),t.prototype.getDefaultShape=function(){return new CV},t.prototype.buildPath=function(e,i){var r=i.points,o=i.stackedOnPoints,a=0,s=r.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&qn(r[2*s-2],r[2*s-1]);s--);for(;a<s&&qn(r[2*a],r[2*a+1]);a++);}for(;a<s;){var u=b0(e,r,a,s,s,1,i.smooth,l,i.connectNulls);b0(e,o,a+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),a+=u+1,e.closePath()}},t})(Le);function TP(n,t,e,i,r){var o=n.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=e.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new Ae({shape:{x:a,y:s,width:l,height:u}});if(t){var d=n.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=le(r)?function(v){r(v,h)}:null;rt(h,{shape:{width:l,height:u,x:a,y:s}},e,null,i,g)}return h}function CP(n,t,e){var i=n.getArea(),r=Ge(i.r0,1),o=Ge(i.r,1),a=new $t({shape:{cx:Ge(n.cx,1),cy:Ge(n.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return t&&(n.getBaseAxis().dim==="angle"?a.shape.endAngle=i.startAngle:a.shape.r=r,rt(a,{shape:{endAngle:i.endAngle,r:o}},e)),a}function La(n,t,e,i,r){return n?n.type==="polar"?CP(n,t,e):n.type==="cartesian2d"?TP(n,t,e,i,r):null:null}function Os(n,t,e){n?t.setClipPath(e):t.removeClipPath()}function DP(n){var t=n.coordinateSystem;if(n.get("clip",!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function Pa(n,t){return n.type===t}function sM(n){var t=n.dimensions;return t[0]==="lng"&&t[1]==="lat"&&!!n.getViewRect}function AP(n,t,e,i){return n&&(n.legacy||n.legacy!==!1&&!e&&!i&&t!=="tspan"&&(t==="text"||oe(n,"text")))}function kP(n,t,e){var i,r,o,a=n;if(t==="text")o=a;else{o={},oe(a,"text")&&(o.text=a.text),oe(a,"rich")&&(o.rich=a.rich),oe(a,"textFill")&&(o.fill=a.textFill),oe(a,"textStroke")&&(o.stroke=a.textStroke),oe(a,"fontFamily")&&(o.fontFamily=a.fontFamily),oe(a,"fontSize")&&(o.fontSize=a.fontSize),oe(a,"fontStyle")&&(o.fontStyle=a.fontStyle),oe(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=oe(a,"textPosition");e?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),oe(a,"textPosition")&&(i.position=a.textPosition),oe(a,"textOffset")&&(i.offset=a.textOffset),oe(a,"textRotation")&&(i.rotation=a.textRotation),oe(a,"textDistance")&&(i.distance=a.textDistance)}return lM(o,n),k(o.rich,function(l){lM(l,l)}),{textConfig:i,textContent:r}}function lM(n,t){t&&(t.font=t.textFont||t.font,oe(t,"textStrokeWidth")&&(n.lineWidth=t.textStrokeWidth),oe(t,"textAlign")&&(n.align=t.textAlign),oe(t,"textVerticalAlign")&&(n.verticalAlign=t.textVerticalAlign),oe(t,"textLineHeight")&&(n.lineHeight=t.textLineHeight),oe(t,"textWidth")&&(n.width=t.textWidth),oe(t,"textHeight")&&(n.height=t.textHeight),oe(t,"textBackgroundColor")&&(n.backgroundColor=t.textBackgroundColor),oe(t,"textPadding")&&(n.padding=t.textPadding),oe(t,"textBorderColor")&&(n.borderColor=t.textBorderColor),oe(t,"textBorderWidth")&&(n.borderWidth=t.textBorderWidth),oe(t,"textBorderRadius")&&(n.borderRadius=t.textBorderRadius),oe(t,"textBoxShadowColor")&&(n.shadowColor=t.textBoxShadowColor),oe(t,"textBoxShadowBlur")&&(n.shadowBlur=t.textBoxShadowBlur),oe(t,"textBoxShadowOffsetX")&&(n.shadowOffsetX=t.textBoxShadowOffsetX),oe(t,"textBoxShadowOffsetY")&&(n.shadowOffsetY=t.textBoxShadowOffsetY))}function uM(n,t,e){var i=n;i.textPosition=i.textPosition||e.position||"inside",e.offset!=null&&(i.textOffset=e.offset),e.rotation!=null&&(i.textRotation=e.rotation),e.distance!=null&&(i.textDistance=e.distance);var r=i.textPosition.indexOf("inside")>=0,o=n.fill||H.color.neutral99;cM(i,t);var a=i.textFill==null;return r?a&&(i.textFill=e.insideFill||H.color.neutral00,!i.textStroke&&e.insideStroke&&(i.textStroke=e.insideStroke),!i.textStroke&&(i.textStroke=o),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(a&&(i.textFill=n.fill||e.outsideFill||H.color.neutral00),!i.textStroke&&e.outsideStroke&&(i.textStroke=e.outsideStroke)),i.text=t.text,i.rich=t.rich,k(t.rich,function(s){cM(s,s)}),i}function cM(n,t){t&&(oe(t,"fill")&&(n.textFill=t.fill),oe(t,"stroke")&&(n.textStroke=t.fill),oe(t,"lineWidth")&&(n.textStrokeWidth=t.lineWidth),oe(t,"font")&&(n.font=t.font),oe(t,"fontStyle")&&(n.fontStyle=t.fontStyle),oe(t,"fontWeight")&&(n.fontWeight=t.fontWeight),oe(t,"fontSize")&&(n.fontSize=t.fontSize),oe(t,"fontFamily")&&(n.fontFamily=t.fontFamily),oe(t,"align")&&(n.textAlign=t.align),oe(t,"verticalAlign")&&(n.textVerticalAlign=t.verticalAlign),oe(t,"lineHeight")&&(n.textLineHeight=t.lineHeight),oe(t,"width")&&(n.textWidth=t.width),oe(t,"height")&&(n.textHeight=t.height),oe(t,"backgroundColor")&&(n.textBackgroundColor=t.backgroundColor),oe(t,"padding")&&(n.textPadding=t.padding),oe(t,"borderColor")&&(n.textBorderColor=t.borderColor),oe(t,"borderWidth")&&(n.textBorderWidth=t.borderWidth),oe(t,"borderRadius")&&(n.textBorderRadius=t.borderRadius),oe(t,"shadowColor")&&(n.textBoxShadowColor=t.shadowColor),oe(t,"shadowBlur")&&(n.textBoxShadowBlur=t.shadowBlur),oe(t,"shadowOffsetX")&&(n.textBoxShadowOffsetX=t.shadowOffsetX),oe(t,"shadowOffsetY")&&(n.textBoxShadowOffsetY=t.shadowOffsetY),oe(t,"textShadowColor")&&(n.textShadowColor=t.textShadowColor),oe(t,"textShadowBlur")&&(n.textShadowBlur=t.textShadowBlur),oe(t,"textShadowOffsetX")&&(n.textShadowOffsetX=t.textShadowOffsetX),oe(t,"textShadowOffsetY")&&(n.textShadowOffsetY=t.textShadowOffsetY))}function hM(n,t){if(n.length===t.length){for(var e=0;e<n.length;e++)if(n[e]!==t[e])return;return!0}}function dM(n){for(var t=[1/0,-1/0],e=[1/0,-1/0],i=0;i<n.length;){var r=n[i++],o=n[i++];qn(r,o)||(Tm(t,r),Tm(e,o))}return[t,e]}function pM(n,t){var e=dM(n),i=e[0],r=e[1],o=dM(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(r[0]-s[0]),Math.abs(i[1]-a[1]),Math.abs(r[1]-s[1]))}function fM(n){return Ve(n)?n:n?.5:0}function Br(n,t,e,i,r){var o=e.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(r){for(l=0;l<n.length;l+=2){var p=t||n;qn(p[l],p[l+1])||d.push(n[l],n[l+1])}n=d}for(l=0;l<n.length-2;l+=2)switch(h[0]=n[l+2],h[1]=n[l+3],c[0]=n[l],c[1]=n[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(n[l++],n[l++]),s}function DV(n,t,e){var i=n.getVisual("visualMeta");if(i&&i.length&&n.count()&&t.type==="cartesian2d"){for(var r,o,a=i.length-1;a>=0;a--){var s=n.getDimensionInfo(i[a].dimension);if((r=s&&s.coordDim)==="x"||r==="y"){o=i[a];break}}if(o){var l=t.getAxis(r),u=K(o.stops,function(m){return{coord:l.toGlobalCoord(l.dataToCoord(m.value)),color:m.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=(function(m,x){var _,b,w=[],S=m.length;function M(D,A,L){var P=D.coord;return{coord:L,color:L1((L-P)/(A.coord-P),[D.color,A.color])}}for(var I=0;I<S;I++){var T=m[I],C=T.coord;if(C<0)_=T;else{if(C>x){b?w.push(M(b,T,x)):_&&w.push(M(_,T,0),M(_,T,x));break}_&&(w.push(M(_,T,0)),_=null),w.push(T),b=T}}return w})(u,r==="x"?e.getWidth():e.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,v=g-f;if(v<.001)return"transparent";k(d,function(m){m.offset=(m.coord-f)/v}),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var y=new Ua(0,0,0,0,d,!0);return y[r]=f,y[r+"2"]=g,y}}}function AV(n,t,e){var i=n.get("showAllSymbol"),r=i==="auto";if(!i||r){var o=e.getAxesByScale("ordinal")[0];if(o&&(!r||!(function(l,u){var c=l.getExtent(),h=Math.abs(c[1]-c[0])/l.scale.count();isNaN(h)&&(h=0);for(var d=u.count(),p=Math.max(1,Math.round(d/5)),f=0;f<d;f+=p)if(1.5*qc.getSymbolSize(u,f)[l.isHorizontal()?1:0]>h)return!1;return!0})(o,t))){var a=t.mapDimension(o.dim),s={};return k(o.getViewLabels(),function(l){l.tick.offInterval||(s[tl(o.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function gM(n,t){return[n[2*t],n[2*t+1]]}function LP(n){if(n.get(["endLabel","show"]))return!0;for(var t=0;t<yn.length;t++)if(n.get([yn[t],"endLabel","show"]))return!0;return!1}function Av(n,t,e,i){if(Pa(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=LP(i)?function(p,f){n._endLabelOnDuring(p,f,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),c=TP(t,e,i,function(){var p=n._endLabel;p&&e&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return CP(t,e,i)}var kV=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.init=function(){var e=new he,i=new jc;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e,this._changePolyState=ie(this._changePolyState,this)},t.prototype.render=function(e,i,r){var o=e.coordinateSystem,a=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=s.getLayout("points")||[],h=o.type==="polar",d=this._coordSys,p=this._symbolDraw,f=this._polyline,g=this._polygon,v=this._lineGroup,y=!i.ssr&&e.get("animation"),m=!u.isEmpty(),x=u.get("origin"),_=oM(o,s,x),b=m&&(function(Z,Y,J){if(J.valueDim==null)return[];for(var $=Y.count(),j=Ai(2*$),ee=0;ee<$;ee++){var ue=aM(J,Z,Y,ee);j[2*ee]=ue[0],j[2*ee+1]=ue[1]}return j})(o,s,_),w=e.get("showSymbol"),S=e.get("connectNulls"),M=w&&!h&&AV(e,s,o),I=this._data;I&&I.eachItemGraphicEl(function(Z,Y){Z.__temp&&(a.remove(Z),I.setItemGraphicEl(Y,null))}),w||p.remove(),a.add(v);var T,C=!h&&e.get("step");o&&o.getArea&&e.get("clip",!0)&&((T=o.getArea()).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 D=DV(s,o,r)||s.getVisual("style")[s.getVisual("drawType")];if(f&&d.type===o.type&&C===this._step){m&&!g?g=this._newPolygon(c,b):g&&!m&&(v.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,Da(D));var A=v.getClipPath();A?rt(A,{shape:Av(this,o,!1,e).shape},e):v.setClipPath(Av(this,o,!0,e)),w&&p.updateData(s,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(Z){return[c[2*Z],c[2*Z+1]]}}),hM(this._stackedOnPoints,b)&&hM(this._points,c)||(y?this._doUpdateAnimation(s,b,o,r,C,x,S):(C&&(b&&(b=Br(b,c,o,C,S)),c=Br(c,null,o,C,S)),f.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:b})))}else w&&p.updateData(s,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(Z){return[c[2*Z],c[2*Z+1]]}}),y&&this._initSymbolLabelAnimation(s,o,T),C&&(b&&(b=Br(b,c,o,C,S)),c=Br(c,null,o,C,S)),f=this._newPolyline(c),m?g=this._newPolygon(c,b):g&&(v.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,Da(D)),v.setClipPath(Av(this,o,!0,e));var L=e.getModel("emphasis"),P=L.get("focus"),E=L.get("blurScope"),O=L.get("disabled");f.useStyle(pe(l.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Ct(f,e,"lineStyle"),f.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1),me(f).seriesIndex=e.seriesIndex,at(f,P,E,O);var N=fM(e.get("smooth")),R=e.get("smoothMonotone");if(f.setShape({smooth:N,smoothMonotone:R,connectNulls:S}),g){var z=s.getCalculationInfo("stackedOnSeries"),B=0;g.useStyle(pe(u.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),z&&(B=fM(z.get("smooth"))),g.setShape({smooth:N,stackedOnSmooth:B,smoothMonotone:R,connectNulls:S}),Ct(g,e,"areaStyle"),me(g).seriesIndex=e.seriesIndex,at(g,P,E,O)}var V=this._changePolyState;s.eachItemGraphicEl(function(Z){Z&&(Z.onHoverStateChange=V)}),this._polyline.onHoverStateChange=V,this._data=s,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=C,this._valueOrigin=x;var W=e.get("triggerEvent"),U=e.get("triggerLineEvent"),F=U===!0||W===!0||W==="line",Q=U===!0||W===!0||W==="area";this.packEventData(e,f,F),g&&this.packEventData(e,g,Q)},t.prototype.packEventData=function(e,i,r){me(i).eventData=r?{componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},t.prototype.highlight=function(e,i,r,o){var a=e.getData(),s=wa(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[2*s],h=l[2*s+1];if(qn(c,h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var d=e.get("zlevel")||0,p=e.get("z")||0;(u=new qc(a,s)).x=c,u.y=h,u.setZ(d,p);var f=u.getSymbolPath().getTextContent();f&&(f.zlevel=d,f.z=p,f.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ze.prototype.highlight.call(this,e,i,r,o)},t.prototype.downplay=function(e,i,r,o){var a=e.getData(),s=wa(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ze.prototype.downplay.call(this,e,i,r,o)},t.prototype._changePolyState=function(e){var i=this._polygon;hp(this._polyline,e),i&&hp(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new TV({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new IP({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,i,r){var o,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):i.type==="polar"&&(o=s.dim==="angle",a=!0);var u=e.hostModel,c=u.get("animationDuration");le(c)&&(c=c(null));var h=u.get("animationDelay")||0,d=le(h)?h(null):h;e.eachItemGraphicEl(function(p,f){var g=p;if(g){var v=[p.x,p.y],y=void 0,m=void 0,x=void 0;if(r)if(a){var _=r,b=i.pointToCoord(v);o?(y=_.startAngle,m=_.endAngle,x=-b[1]/180*Math.PI):(y=_.r0,m=_.r,x=b[0])}else{var w=r;o?(y=w.x,m=w.x+w.width,x=p.x):(y=w.y+w.height,m=w.y,x=p.y)}var S=m===y?0:(x-y)/(m-y);l&&(S=1-S);var M=le(h)?h(f):c*S+d,I=g.getSymbolPath(),T=I.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:M}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,r){var o=e.getModel("endLabel");if(LP(e)){var a=e.getData(),s=this._polyline,l=a.getLayout("points");if(!l)return s.removeTextContent(),void(this._endLabel=null);var u=this._endLabel;u||((u=this._endLabel=new Be({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=(function(h){for(var d=h.length/2;d>0&&qn(h[2*d-2],h[2*d-1]);d--);return d-1})(l);c>=0&&(Et(s,Dt(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:c,defaultText:function(h,d,p){return p!=null?SP(a,p):rl(a,h)},enableTextSetter:!0},(function(h,d){var p=d.getBaseAxis(),f=p.isHorizontal(),g=p.inverse,v=f?g?"right":"left":"center",y=f?"middle":g?"top":"bottom";return{normal:{align:h.get("align")||v,verticalAlign:h.get("verticalAlign")||y}}})(o,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,r,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var h=r.getLayout("points"),d=r.hostModel,p=d.get("connectNulls"),f=s.get("precision"),g=s.get("distance")||0,v=l.getBaseAxis(),y=v.isHorizontal(),m=v.inverse,x=i.shape,_=m?y?x.x:x.y+x.height:y?x.x+x.width:x.y,b=(y?g:0)*(m?-1:1),w=(y?0:-g)*(m?-1:1),S=y?"x":"y",M=(function(O,N,R){for(var z,B,V=O.length/2,W=R==="x"?0:1,U=0,F=-1,Q=0;Q<V;Q++)if(!qn(B=O[2*Q+W],O[2*Q+1-W]))if(Q!==0){if(z<=N&&B>=N||z>=N&&B<=N){F=Q;break}U=Q,z=B}else z=B;return{range:[U,F],t:(N-z)/(B-z)}})(h,_,S),I=M.range,T=I[1]-I[0],C=void 0;if(T>=1){if(T>1&&!p){var D=gM(h,I[0]);u.attr({x:D[0]+b,y:D[1]+w}),a&&(C=d.getRawValue(I[0]))}else{(D=c.getPointOn(_,S))&&u.attr({x:D[0]+b,y:D[1]+w});var A=d.getRawValue(I[0]),L=d.getRawValue(I[1]);a&&(C=JD(r,f,A,L,M.t))}o.lastFrameIndex=I[0]}else{var P=e===1||o.lastFrameIndex>0?I[0]:0;D=gM(h,P),a&&(C=d.getRawValue(P)),u.attr({x:D[0]+b,y:D[1]+w})}if(a){var E=ml(u);typeof E.setLabelText=="function"&&E.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,i,r,o,a,s,l){var u=this._polyline,c=this._polygon,h=e.hostModel,d=(function(w,S,M,I,T,C,D){for(var A=(function(Pe,nt){var Ke=[];return nt.diff(Pe).add(function(qe){Ke.push({cmd:"+",idx:qe})}).update(function(qe,Lt){Ke.push({cmd:"=",idx:Lt,idx1:qe})}).remove(function(qe){Ke.push({cmd:"-",idx:qe})}).execute(),Ke})(w,S),L=[],P=[],E=[],O=[],N=[],R=[],z=[],B=oM(T,S,D),V=w.getLayout("points")||[],W=S.getLayout("points")||[],U=0;U<A.length;U++){var F=A[U],Q=!0,Z=void 0,Y=void 0;switch(F.cmd){case"=":Z=2*F.idx,Y=2*F.idx1;var J=V[Z],$=V[Z+1],j=W[Y],ee=W[Y+1];(isNaN(J)||isNaN($))&&(J=j,$=ee),L.push(J,$),P.push(j,ee),E.push(M[Z],M[Z+1]),O.push(I[Y],I[Y+1]),z.push(S.getRawIndex(F.idx1));break;case"+":var ue=F.idx,ye=B.dataDimsForPoint,we=T.dataToPoint([S.get(ye[0],ue),S.get(ye[1],ue)]);Y=2*ue,L.push(we[0],we[1]),P.push(W[Y],W[Y+1]);var ve=aM(B,T,S,ue);E.push(ve[0],ve[1]),O.push(I[Y],I[Y+1]),z.push(S.getRawIndex(ue));break;case"-":Q=!1}Q&&(N.push(F),R.push(R.length))}R.sort(function(Pe,nt){return z[Pe]-z[nt]});var xe=L.length,Ie=Ai(xe),Ne=Ai(xe),tt=Ai(xe),ft=Ai(xe),Ut=[];for(U=0;U<R.length;U++){var wt=R[U],ut=2*U,We=2*wt;Ie[ut]=L[We],Ie[ut+1]=L[We+1],Ne[ut]=P[We],Ne[ut+1]=P[We+1],tt[ut]=E[We],tt[ut+1]=E[We+1],ft[ut]=O[We],ft[ut+1]=O[We+1],Ut[U]=N[wt]}return{current:Ie,next:Ne,stackedOnCurrent:tt,stackedOnNext:ft,status:Ut}})(this._data,e,this._stackedOnPoints,i,this._coordSys,0,this._valueOrigin),p=d.current,f=d.stackedOnCurrent,g=d.next,v=d.stackedOnNext;if(a&&(f=Br(d.stackedOnCurrent,d.current,r,a,l),p=Br(d.current,null,r,a,l),v=Br(d.stackedOnNext,d.next,r,a,l),g=Br(d.next,null,r,a,l)),pM(p,g)>3e3||c&&pM(f,v)>3e3)return u.stopAnimation(),u.setShape({points:g}),void(c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:v})));u.shape.__points=d.current,u.shape.points=p;var y={shape:{points:g}};d.current!==p&&(y.shape.__points=d.next),u.stopAnimation(),Fe(u,y,h),c&&(c.setShape({points:p,stackedOnPoints:f}),c.stopAnimation(),Fe(c,{shape:{stackedOnPoints:v}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],x=d.status,_=0;_<x.length;_++)if(x[_].cmd==="="){var b=e.getItemGraphicEl(x[_].idx1);b&&m.push({el:b,ptIdx:_})}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,S=0;S<m.length;S++){var M=m[S].el,I=2*m[S].ptIdx;M.x=w[I],M.y=w[I+1],M.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,r=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),r&&r.eachItemGraphicEl(function(o,a){o.__temp&&(i.remove(o),r.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Ze);function Xu(n,t){return{seriesType:n,plan:qa(),reset:function(e){var i=e.getData(),r=e.coordinateSystem,o=e.pipelineContext,a=t||o.large;if(r){var s=K(r.dimensions,function(p){return i.mapDimension(p)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Mr(i,s[0])&&(s[0]=u),Mr(i,s[1])&&(s[1]=u);var c=i.getStore(),h=i.getDimensionIndex(s[0]),d=i.getDimensionIndex(s[1]);return l&&{progress:function(p,f){for(var g=p.end-p.start,v=a&&Ai(g*l),y=[],m=[],x=p.start,_=0;x<p.end;x++){var b=void 0;if(l===1){var w=c.get(h,x);b=r.dataToPoint(w,null,m)}else y[0]=c.get(h,x),y[1]=c.get(d,x),b=r.dataToPoint(y,null,m);a?(v[_++]=b[0],v[_++]=b[1]):f.setItemLayout(x,b.slice())}a&&(f.setLayout("points",v),f.setLayout("pointsRange",{start:p.start,end:p.end}))}}}}}}var LV={average:function(n){for(var t=0,e=0,i=0;i<n.length;i++)isNaN(n[i])||(t+=n[i],e++);return e===0?NaN:t/e},sum:function(n){for(var t=0,e=0;e<n.length;e++)t+=n[e]||0;return t},max:function(n){for(var t=-1/0,e=0;e<n.length;e++)n[e]>t&&(t=n[e]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,e=0;e<n.length;e++)n[e]<t&&(t=n[e]);return isFinite(t)?t:NaN},nearest:function(n){return n[0]}},PV=function(n){return Math.round(n.length/2)};function vM(n){return{seriesType:n,reset:function(t,e,i){var r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),h=i.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(h||1),p=Math.round(s/d);if(isFinite(p)&&p>1){o==="lttb"?t.setData(r.lttbDownSample(r.mapDimension(u.dim),1/p)):o==="minmax"&&t.setData(r.minmaxDownSample(r.mapDimension(u.dim),1/p));var f=void 0;te(o)?f=LV[o]:le(o)&&(f=o),f&&t.setData(r.downSample(r.mapDimension(u.dim),1/p,f,PV))}}}}}var PP=(function(n){function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return G(t,n),t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(hi),w0=null;function Kc(){return w0}var Yf="expandAxisBreak",OP="collapseAxisBreak",RP="toggleAxisBreak",Hx="axisbreakchanged",OV={type:Yf,event:Hx,update:"update",refineEvent:Wx},RV={type:OP,event:Hx,update:"update",refineEvent:Wx},NV={type:RP,event:Hx,update:"update",refineEvent:Wx};function Wx(n,t,e,i){var r=[];return k(n,function(o){r=r.concat(o.eventBreaks)}),{eventContent:{breaks:r}}}var Zr=Math.PI,EV=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],zV=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Qo=Me(),NP=Me(),EP=(function(){function n(t){this.recordMap={},this.resolveAxisNameOverlap=t}return n.prototype.ensureRecord=function(t){var e=t.axis.dim,i=t.componentIndex,r=this.recordMap,o=r[e]||(r[e]=[]);return o[i]||(o[i]={ready:{}})},n})(),$l=[1,0,0,1,0,0],Bh=new de(0,0,0,0),zP=function(n,t,e,i,r,o){if(el(n.nameLocation)){var a=o.stOccupiedRect;a&&BP((function(s,l,u){return s.transform=Q1(s.transform,u),s.localRect=cc(s.localRect,l),s.rect=cc(s.rect,l),u&&s.rect.applyTransform(u),s.axisAligned=J1(u),s.obb=void 0,(s.label=s.label||{}).ignore=!1,s})({},a,o.transGroup.transform),i,r)}else VP(o.labelInfoList,o.dirVec,i,r)};function BP(n,t,e){var i=new ge;Wf(n,t,i,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&d0(t,i)}function VP(n,t,e,i){for(var r=ge.dot(i,t)>=0,o=0,a=n.length;o<a;o++){var s=n[r?o:a-1-o];s.label.ignore||BP(s,e,i)}}var gn=(function(){function n(t,e,i,r){this.group=new he,this._axisModel=t,this._api=e,this._local={},this._shared=r||new EP(zP),this._resetCfgDetermined(i)}return n.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},n.prototype.__getRawCfg=function(){return this._cfg.raw},n.prototype._resetCfgDetermined=function(t){var e=this._axisModel,i=e.getDefaultOption?e.getDefaultOption():{},r=ae(t.axisName,e.get("name")),o=e.get("nameMoveOverlap");o!=null&&o!=="auto"||(o=ae(t.defaultNameMoveOverlap,!0));var a={raw:t,position:t.position,rotation:t.rotation,nameDirection:ae(t.nameDirection,1),tickDirection:ae(t.tickDirection,1),labelDirection:ae(t.labelDirection,1),labelOffset:ae(t.labelOffset,0),silent:ae(t.silent,!0),axisName:r,nameLocation:wn(e.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Ux(r)&&o,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=a;var s=new he({x:a.position[0],y:a.position[1],rotation:a.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new ge(Math.cos(-a.rotation),Math.sin(-a.rotation))},n.prototype.build=function(t,e){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),k(BV,function(r){t[r]&&VV[r](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,e||{})}),this},n.innerTextLayout=function(t,e,i){var r,o,a=R1(e-t);return _a(a)?(o=i>0?"top":"bottom",r="center"):_a(a-Zr)?(o=i>0?"bottom":"top",r="center"):(o="middle",r=a>0&&a<Zr?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:o}},n.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},n.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},n})(),BV=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],VV={axisLine:function(n,t,e,i,r,o,a){var s=i.get(["axisLine","show"]);if(s==="auto"&&(s=!0,n.raw.axisLineAutoShow!=null&&(s=!!n.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],d=c[0]>h[0];u&&(dt(c,c,u),dt(h,h,u));var p=X({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:n.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(i.get(["axisLine","breakLine"])&&vp(i.axis.scale))Kc().buildAxisBreakLine(i,r,o,f);else{var g=new _t(X({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},f));Ks(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var v=i.get(["axisLine","symbol"]);if(v!=null){var y=i.get(["axisLine","symbolSize"]);te(v)&&(v=[v,v]),(te(y)||Ve(y))&&(y=[y,y]);var m=ja(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],_=y[1];k([{rotate:n.rotation+Math.PI/2,offset:m[0],r:0},{rotate:n.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(b,w){if(v[w]!=="none"&&v[w]!=null){var S=bt(v[w],-x/2,-_/2,x,_,p.stroke,!0),M=b.r+b.offset,I=d?h:c;S.attr({rotation:b.rotate,x:I[0]+M*Math.cos(n.rotation),y:I[1]-M*Math.sin(n.rotation),silent:!0,z2:11}),r.add(S)}})}}},axisTickLabelEstimate:function(n,t,e,i,r,o,a,s){xM(t,r,s)&&yM(n,t,e,i,r,o,a,bc)},axisTickLabelDetermine:function(n,t,e,i,r,o,a,s){xM(t,r,s)&&yM(n,t,e,i,r,o,a,il);var l=(function(u,c,h,d){var p=d.axis,f=d.getModel("axisTick"),g=f.get("show");if(g==="auto"&&(g=!0,u.raw.axisTickAutoShow!=null&&(g=!!u.raw.axisTickAutoShow)),!g||p.scale.isBlank())return[];for(var v=f.getModel("lineStyle"),y=u.tickDirection*f.get("length"),m=mM(p.getTicksCoords(),h.transform,y,pe(v.getLineStyle(),{stroke:d.get(["axisLine","lineStyle","color"])}),"ticks"),x=0;x<m.length;x++)c.add(m[x]);return m})(n,r,o,i);(function(u,c,h){u.showMinorTicks||k(c,function(d){if(d&&d.label.ignore)for(var p=0;p<h.length;p++){var f=h[p],g=NP(f),v=Qo(d.label);if(g.tickValue!=null&&!g.onBand&&g.tickValue===v.labelInfo.tick.value)return void Iu(f)}})})(n,t.labelLayoutList,l),(function(u,c,h,d,p){var f=d.axis,g=d.getModel("minorTick");if(!(!u.showMinorTicks||f.scale.isBlank())){var v=f.getMinorTicksCoords();if(v.length)for(var y=g.getModel("lineStyle"),m=p*g.get("length"),x=pe(y.getLineStyle(),pe(d.getModel("axisTick").getLineStyle(),{stroke:d.get(["axisLine","lineStyle","color"])})),_=0;_<v.length;_++)for(var b=mM(v[_],h.transform,m,x,"minorticks_"+_),w=0;w<b.length;w++)c.add(b[w])}})(n,r,o,i,n.tickDirection)},axisName:function(n,t,e,i,r,o,a,s){var l=e.ensureRecord(i);t.nameEl&&(r.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=n.axisName;if(Ux(u)){var c=n.nameLocation,h=n.nameDirection,d=i.getModel("nameTextStyle"),p=i.get("nameGap")||0,f=i.axis.getExtent(),g=i.axis.inverse?-1:1,v=new ge(0,0),y=new ge(0,0);c==="start"?(v.x=f[0]-g*p,y.x=-g):c==="end"?(v.x=f[1]+g*p,y.x=g):(v.x=(f[0]+f[1])/2,v.y=n.labelOffset+h*p,y.y=h);var m=[1,0,0,1,0,0];y.transform(Cr(m,m,n.rotation));var x,_,b=i.get("nameRotate");b!=null&&(b=b*Zr/180),el(c)?x=gn.innerTextLayout(n.rotation,b??n.rotation,h):(x=(function(P,E,O,N){var R,z,B=R1(O-P),V=N[0]>N[1],W=E==="start"&&!V||E!=="start"&&V;return _a(B-Zr/2)?(z=W?"bottom":"top",R="center"):_a(B-1.5*Zr)?(z=W?"top":"bottom",R="center"):(z="middle",R=B<1.5*Zr&&B>Zr/2?W?"left":"right":W?"right":"left"),{rotation:B,textAlign:R,textVerticalAlign:z}})(n.rotation,c,b||0,f),(_=n.raw.axisNameAvailableWidth)!=null&&(_=Math.abs(_/Math.sin(x.rotation)),!isFinite(_)&&(_=null)));var w=d.getFont(),S=i.get("nameTruncate",!0)||{},M=S.ellipsis,I=an(n.raw.nameTruncateMaxWidth,S.maxWidth,_),T=s.nameMarginLevel||0,C=new Be({x:v.x,y:v.y,rotation:x.rotation,silent:gn.isLabelSilent(i),style:Je(d,{text:u,font:w,overflow:"truncate",width:I,ellipsis:M,fill:d.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:d.get("align")||x.textAlign,verticalAlign:d.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(Ar({el:C,componentModel:i,itemName:u}),C.__fullText=u,C.anid="name",i.get("triggerEvent")){var D=gn.makeAxisEventDataBase(i);D.targetType="axisName",D.name=u,me(C).eventData=D}o.add(C),C.updateTransform(),t.nameEl=C;var A=l.nameLayout=Si({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:el(c)?EV[T]:zV[T]});if(l.nameLocation=c,r.add(C),C.decomposeTransform(),n.shouldNameMoveOverlap&&A){var L=e.ensureRecord(i);e.resolveAxisNameOverlap(n,e,i,A,y,L)}}}};function yM(n,t,e,i,r,o,a,s){GP(t)||(function(c,h,d,p,f,g){var v=f.axis,y=an(c.raw.axisLabelShow,f.get(["axisLabel","show"])),m=new he;d.add(m);var x=Rp(p);if(!y||v.scale.isBlank())return void S0(h,[],m,x);var _=f.getModel("axisLabel"),b=v.getViewLabels(x),w=(an(c.raw.labelRotate,_.get("rotate"))||0)*Zr/180,S=gn.innerTextLayout(c.rotation,w,c.labelDirection),M=f.getCategories&&f.getCategories(!0),I=[],T=f.get("triggerEvent"),C=1/0,D=-1/0;k(b,function(L,P){var E,O=L.tick,N=L.formattedLabel,R=L.rawLabel,z=_,B=tl(v.scale,O);if(M&&M[B]){var V=M[B];fe(V)&&V.textStyle&&(z=new Oe(V.textStyle,_,f.ecModel))}var W=z.getTextColor()||f.get(["axisLine","lineStyle","color"]),U=z.getShallow("align",!0)||S.textAlign,F=ae(z.getShallow("alignMinLabel",!0),U),Q=ae(z.getShallow("alignMaxLabel",!0),U),Z=z.getShallow("verticalAlign",!0)||z.getShallow("baseline",!0)||S.textVerticalAlign,Y=ae(z.getShallow("verticalAlignMinLabel",!0),Z),J=ae(z.getShallow("verticalAlignMaxLabel",!0),Z),$=10+(((E=O.time)===null||E===void 0?void 0:E.level)||0);C=Math.min(C,$),D=Math.max(D,$);var j=new Be({x:0,y:0,rotation:0,silent:gn.isLabelSilent(f),z2:$,style:Je(z,{text:N,align:P===0?F:P===b.length-1?Q:U,verticalAlign:P===0?Y:P===b.length-1?J:Z,fill:le(W)?W(v.type==="category"?R:v.type==="value"?B+"":B,P):W})});j.anid="label_"+B;var ee=Qo(j);if(ee.labelInfo=L,ee.layoutRotation=S.rotation,Ar({el:j,componentModel:f,itemName:N,formatterParamsExtra:{isTruncated:function(){return j.isTruncated},value:R,tickIndex:P}}),T){var ue=gn.makeAxisEventDataBase(f);ue.targetType="axisLabel",ue.value=R,ue.tickIndex=P;var ye=L.tick.break;if(ye){var we=ye.parsedBreak;ue.break={start:we.vmin,end:we.vmax}}v.type==="category"&&(ue.dataIndex=B),me(j).eventData=ue,ye&&(function(ve,xe,Ie,Ne){Ie.on("click",function(tt){var ft={type:Yf,breaks:[{start:Ne.parsedBreak.breakOption.start,end:Ne.parsedBreak.breakOption.end}]};ft[ve.axis.dim+"AxisIndex"]=ve.componentIndex,xe.dispatchAction(ft)})})(f,g,j,ye)}I.push(j),m.add(j)});var A=K(I,function(L){return{label:L,priority:Qo(L).labelInfo.tick.break?L.z2+(D-C+1):L.z2,defaultAttr:{ignore:L.ignore}}});S0(h,A,m,x)})(n,t,r,s,i,a);var l=t.labelLayoutList;(function(c,h,d,p){var f=h.get(["axisLabel","margin"]);k(d,function(g,v){var y=Si(g);if(y){var m=y.label,x=Qo(m);y.suggestIgnore=m.ignore,m.ignore=!1,Vi(nr,GV);var _=h.axis;nr.x=_.dataToCoord(tl(_.scale,x.labelInfo.tick)),nr.y=c.labelOffset+c.labelDirection*f,nr.rotation=x.layoutRotation,p.add(nr),nr.updateTransform(),p.remove(nr),nr.decomposeTransform(),Vi(m,nr),m.markRedraw(),Bp(y,!0),Si(y)}})})(n,i,l,o),(function(c,h,d){var p=mt();if(p){var f=p.retrieveAxisBreakPairs(d,function(v){return v&&Qo(v.label).labelInfo.tick.break},!0),g=c.get(["breakLabelLayout","moveOverlap"],!0);g!==!0&&g!=="auto"||k(f,function(v){Kc().adjustBreakLabelPair(c.axis.inverse,h,[Si(d[v[0]]),Si(d[v[1]])])})}})(i,n.rotation,l);var u=n.optionHideOverlap;(function(c,h,d){var p=c.axis,f=c.get(["axisLabel","customValues"]);if((function(x){return x.type==="category"&&Ox(x.getLabelModel())===0})(p))return;function g(x,_,b){var w=Si(h[_]),S=Si(h[b]),M=p.scale;if(w&&S){if(x==null){if(!d&&f)return;var I=Qo(w.label).labelInfo.tick;if(Yc(M)&&I.notNice||ln(M)&&I.offInterval)return void Iu(w.label)}if(x===!1||w.suggestIgnore)Iu(w.label);else if(S.suggestIgnore)Iu(S.label);else{var T=.1;if(!d){var C=[0,0,0,0];w=p0({marginForce:C},w),S=p0({marginForce:C},S)}Wf(w,S,null,{touchThreshold:T})&&Iu(x?S.label:w.label)}}}var v=c.get(["axisLabel","showMinLabel"]),y=c.get(["axisLabel","showMaxLabel"]),m=h.length;g(v,0,1),g(y,m-1,m-2)})(i,l,u),u&&aP(Ye(l,function(c){return c&&!c.label.ignore})),(function(c,h,d,p){var f,g=d.axis,v=h.ensureRecord(d),y=[],m=Ux(c.axisName)&&el(c.nameLocation);k(p,function(M){var I=Si(M);if(I&&!I.label.ignore){y.push(I);var T=v.transGroup;m&&(T.transform?Ln($l,T.transform):Fa($l),I.transform&&kn($l,$l,I.transform),de.copy(Bh,I.localRect),Bh.applyTransform($l),f?f.union(Bh):de.copy(f=new de(0,0,0,0),Bh))}});var x=Math.abs(v.dirVec.x)>.1?"x":"y",_=v.transGroup[x];if(y.sort(function(M,I){return Math.abs(M.label[x]-_)-Math.abs(I.label[x]-_)}),m&&f){var b=g.getExtent(),w=Math.min(b[0],b[1]),S=Math.max(b[0],b[1])-w;f.union(new de(w,0,S,1))}v.stOccupiedRect=f,v.labelInfoList=y})(n,e,i,l)}function Iu(n){n&&(n.ignore=!0)}function mM(n,t,e,i,r){for(var o=[],a=[],s=[],l=0;l<n.length;l++){var u=n[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=e,t&&(dt(a,a,t),dt(s,s,t));var c=new _t({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Ks(c.shape,c.style.lineWidth),c.anid=r+"_"+n[l].tickValue,o.push(c);var h=NP(c);h.onBand=!!n[l].onBand,h.tickValue=n[l].tickValue}return o}function xM(n,t,e){if(GP(n)){var i=n.axisLabelsCreationContext,r=i.out.noPxChangeTryDetermine;if(e.noPxChange){for(var o=!0,a=0;a<r.length;a++)o=o&&r[a]();if(o)return!1}r.length&&(t.remove(n.labelGroup),S0(n,null,null,null))}return!0}function GP(n){return!!n.labelLayoutList}function S0(n,t,e,i){n.labelLayoutList=t,n.labelGroup=e,n.axisLabelsCreationContext=i}var nr=new Ae,GV=new Ae;function Ux(n){return!!n}function Gp(n,t,e){e=e||{};var i=t.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[n.x,n.x+n.width,n.y,n.y+n.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,d=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}r.position=[l==="y"?d[c[s]]:u[0],l==="x"?d[c[s]]:u[3]],r.rotation=Math.PI/2*(l==="x"?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?d[c[a]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),an(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var f=t.get(["axisLabel","rotate"]);return r.labelRotate=s==="top"?-f:f,r.z2=1,r}function FV(){var n;n=HV,FL.liPosMinGap=n}function HV(n,t,e){var i,r=re(),o=e.serUids,a=e.liPosMinGap,s=t.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,h=Bk(c);function d(x){Hf(n,t.sers,function(_){var b=_.getRawData(),w=b.getDimensionIndex(b.mapDimension(s.dim));w>=0&&x(w,_,b.getStore())})}var p=0;if(d(function(x,_,b){r.set(_.uid,1),o&&o.hasKey(_.uid)||(i=!0),p+=b.count()}),o&&o.keys().length===r.keys().length||(i=!0),i||a==null){Fx(Fo,p);var f=0;d(function(x,_,b){for(var w=0,S=b.count();w<S;++w){var M=b.get(x,w);!isFinite(M)||c&&!Vk(h,M)||(u&&(M=l.transformIn(M,null)),Fo.arr[f++]=M)}});var g=Fo.typed?Fo.arr.subarray(0,f):(Fo.arr.length=f,Fo.arr);Fo.typed?g.sort():Ft(g);for(var v=1/0,y=1;y<f;++y){var m=g[y]-g[y-1];m>0&&m<v&&(v=m)}e.liPosMinGap=t.liPosMinGap=Yn(v)?v:f>0?-2:-1,e.serUids=r}else t.liPosMinGap=a}var Fo=Fx({ctor:IV},50);function Vd(n){return function(t,e){var i=Qt(t,{fromStat:{key:n}});if(Yn(i.w2))return[-i.w2/2,i.w2/2]}}function sa(n){return n+Op}function Oa(n,t){return n+Op+t}function M0(n){return FV(),{liPosMinGap:!ln(n.scale)}}var Ei="bar",Sc="pictorialBar";function FP(n,t,e,i){u0(n,{key:t,seriesType:e,coordSysType:i,getMetrics:M0})}function HP(n){var t=n.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var WP={left:0,right:0,top:0,bottom:0},Fp=["25%","25%"],ui="cartesian2d",WV=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.mergeDefaultAndTheme=function(e,i){var r=Za(e.outerBounds);n.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&e.outerBounds&&qi(e.outerBounds,r)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&qi(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:WP,outerBoundsContain:"all",outerBoundsClampWidth:Fp[0],outerBoundsClampHeight:Fp[1],backgroundColor:H.color.transparent,borderWidth:1,borderColor:H.color.neutral30},t})(ke),UV=dl(),I0="__ec_stack_";function UP(n){return n.get("stack")||I0+n.seriesIndex}function YV(n,t){var e=(function(i,r){var o=Oa(r,ui),a=[],s=Qt(i,{fromStat:{key:o},min:1});return ya(i,o,function(l){a.push({barWidth:ne(l.get("barWidth"),s.w),barMaxWidth:ne(l.get("barMaxWidth"),s.w),barMinWidth:ne(l.get("barMinWidth")||(XP(l)?.5:1),s.w),barGap:l.get("barGap"),barCategoryGap:l.get("barCategoryGap"),defaultBarGap:l.get("defaultBarGap"),stackId:UP(l)})}),{bandWidthResult:s,seriesInfo:a}})(n,t);return e.columnMap=YP(e),e}function YP(n){var t,e,i=n.bandWidthResult.w,r=i,o=0,a=[],s={};k(n.seriesInfo,function(g,v){v||(e=g.defaultBarGap||0);var y=g.stackId;oe(s,y)||o++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},a.push(y));var x=g.barWidth;x&&!m.width&&(m.width=x,x=Xe(r,x),r-=x);var _=g.barMaxWidth;_&&(m.maxWidth=_);var b=g.barMinWidth;b&&(m.minWidth=b);var w=g.barGap;w!=null&&(e=w);var S=g.barCategoryGap;S!=null&&(t=S)}),t==null&&(t=De(35-4*a.length,15)+"%");var l=ne(t,i),u=ne(e,1),c=(r-l)/(o+(o-1)*u);c=De(c,0),k(a,function(g){var v=s[g],y=v.maxWidth,m=v.minWidth;if(v.width)x=v.width,y&&(x=Xe(x,y)),m&&(x=De(x,m)),v.width=x,r-=x+u*x,o--;else{var x=c;y&&y<x&&(x=Xe(y,r)),m&&m>x&&(x=m),x!==c&&(v.width=x,r-=x+u*x,o--)}}),c=De(c=(r-l)/(o+(o-1)*u),0);var h,d=0;k(a,function(g){var v=s[g];v.width||(v.width=c),h=v,d+=v.width*(1+u)}),h&&(d-=h.width*u);var p={},f=-d/2;return k(a,function(g){var v=s[g];p[g]=p[g]||{bandWidth:i,offset:f,width:v.width},f+=v.width*(1+u)}),p}function _M(n){return{seriesType:n,overallReset:function(t){var e=Oa(n,ui);Nx(t,e,function(i){var r=YV(i,n);ya(i,e,function(o){var a=r.columnMap[UP(o)];o.getData().setLayout({bandWidth:a.bandWidth,offset:a.offset,size:a.width})})})}}}function bM(n){return{seriesType:n,plan:qa(),reset:function(t){if((function(x){return x.coordinateSystem&&x.coordinateSystem.type==="cartesian2d"})(t)){var e=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=i.getOtherAxis(r),a=e.getDimensionIndex(e.mapDimension(o.dim)),s=e.getDimensionIndex(e.mapDimension(r.dim)),l=t.get("showBackground",!0),u=e.mapDimension(o.dim),c=e.getCalculationInfo("stackResultDimension"),h=Mr(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),p=o.toGlobalCoord(o.dataToCoord(HP(o))),f=XP(t),g=t.get("barMinHeight")||0,v=c&&e.getDimensionIndex(c),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(x,_){for(var b,w=x.count,S=f&&Ai(3*w),M=f&&l&&Ai(3*w),I=f&&Ai(w),T=i.master.getRect(),C=d?T.width:T.height,D=_.getStore(),A=0;(b=x.next())!=null;){var L=D.get(h?v:a,b),P=D.get(s,b),E=p,O=void 0;h&&(O=+L-D.get(a,b));var N=void 0,R=void 0,z=void 0,B=void 0;if(d){var V=i.dataToPoint([L,P]);h&&(E=i.dataToPoint([O,P])[0]),N=E,R=V[1]+m,z=V[0]-E,B=y,ht(z)<g&&(z=(z<0?-1:1)*g)}else V=i.dataToPoint([P,L]),h&&(E=i.dataToPoint([P,O])[1]),N=V[0]+m,R=E,z=y,B=V[1]-E,ht(B)<g&&(B=(B<=0?-1:1)*g);f?(S[A]=N,S[A+1]=R,S[A+2]=d?z:B,M&&(M[A]=d?T.x:N,M[A+1]=d?R:T.y,M[A+2]=C),I[b]=b):_.setItemLayout(b,{x:N,y:R,width:z,height:B}),A+=3}f&&_.setLayout({largePoints:S,largeDataIndices:I,largeBackgroundPoints:M,valueAxisHorizontal:d})}}}}}}function XP(n){return n.pipelineContext&&n.pipelineContext.large}function wM(n){UV(n,function(){function t(e){var i=Oa(e,ui);FP(n,i,e,ui),zd(i,(function(r){return Vd(Oa(r,ui))})(e))}t("bar"),t("pictorialBar")})}var Mc=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.getInitialData=function(e,i){return Ji(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,r){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(e),s=o.dataToPoint(a);if(r)k(o.getAxes(),function(d,p){if(d.type==="category"&&i!=null){var f=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),v=a[p],y=i[p]==="x1"||i[p]==="y1";if(y&&!g&&(v+=1),f.length<2)return;if(f.length===2)return void(s[p]=d.toGlobalCoord(d.getExtent()[y?1:0]));for(var m=void 0,x=void 0,_=1,b=0;b<f.length;b++){var w=f[b].coord,S=b===f.length-1?f[b-1].tickValue+_:f[b].tickValue;if(S===v){x=w;break}if(S<v)m=w;else if(m!=null&&S>v){x=(w+m)/2;break}b===1&&(_=S-f[0].tickValue)}x==null&&(m?m&&(x=f[f.length-1].coord):x=f[0].coord),s[p]=d.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=o.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(je);je.registerClass(Mc);var XV=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.getInitialData=function(){return Ji(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.__preparePipelineContext=function(e,i){var r=tA(this,e,i);return r.progressiveRender&&(r.large=!0),r},t.prototype.brushSelector=function(e,i,r){return r.rect(i.getItemLayout(e))},t.type="series."+Ei,t.dependencies=["grid","polar"],t.defaultOption=_o(Mc.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:H.color.primary,borderWidth:2}},realtimeSort:!1}),t})(Mc),ZV=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Hp=(function(n){function t(e){var i=n.call(this,e)||this;return i.type="sausage",i}return G(t,n),t.prototype.getDefaultShape=function(){return new ZV},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=.5*(s-a),u=a+l,c=i.startAngle,h=i.endAngle,d=i.clockwise,p=2*Math.PI,f=d?h-c<p:c-h<p;f||(c=h-(d?p:-p));var g=Math.cos(c),v=Math.sin(c),y=Math.cos(h),m=Math.sin(h);f?(e.moveTo(g*a+r,v*a+o),e.arc(g*u+r,v*u+o,l,-Math.PI+c,c,!d)):e.moveTo(g*s+r,v*s+o),e.arc(r,o,s,c,h,!d),e.arc(y*u+r,m*u+o,l,h-2*Math.PI,h-Math.PI,!d),a!==0&&e.arc(r,o,a,h,c,d)},t})(Le);function Vh(n,t,e){return t*Math.sin(n)*(e?-1:1)}function Gh(n,t,e){return t*Math.cos(n)*(e?1:-1)}function zi(n,t,e){var i=n.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;q(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:K(i,function(o){return Ui(o,r)})}}var kv=Math.max,Lv=Math.min,qV=(function(n){function t(){var e=n.call(this)||this;return e.type=Ei,e._isFirstFrame=!0,e}return G(t,n),t.prototype.render=function(e,i,r,o){this._model=e,this._removeOnRenderedListener(r),this._updateDrawMode(e);var a=e.get("coordinateSystem");(a==="cartesian2d"||a==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,r):this._renderNormal(e,i,r,o))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,i){this._progressiveEls=[],this._incrementalRenderLarge(e,i)},t.prototype.eachRendered=function(e){xo(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;this._isLargeDraw!=null&&i===this._isLargeDraw||(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e,i,r,o){var a,s=this.group,l=e.getData(),u=this._data,c=e.coordinateSystem,h=c.getBaseAxis();c.type==="cartesian2d"?a=h.isHorizontal():c.type==="polar"&&(a=h.dim==="angle");var d=e.isAnimationEnabled()?e:null,p=(function(C,D){var A=C.get("realtimeSort",!0),L=D.getBaseAxis();if(A&&L.type==="category"&&D.type==="cartesian2d")return{baseAxis:L,otherAxis:D.getOtherAxis(L)}})(e,c);p&&this._enableRealtimeSort(p,l,r);var f=e.get("clip",!0)||p,g=c.getArea();s.removeClipPath();var v=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),x=m.get("borderRadius")||0,_=[],b=this._backgroundEls,w=o&&o.isInitSort,S=o&&o.type==="changeAxisOrder";function M(C){var D=Fh[c.type](l,C);if(!D)return null;var A=(function(L,P,E){var O=L.type==="polar"?$t:Ae;return new O({shape:PM(P,E,L),silent:!0,z2:0})})(c,a,D);return A.useStyle(m.getItemStyle()),c.type==="cartesian2d"?A.setShape("r",x):A.setShape("cornerRadius",x),_[C]=A,A}l.diff(u).add(function(C){var D=l.getItemModel(C),A=Fh[c.type](l,C,D);if(A&&(y&&M(C),l.hasValue(C)&&CM[c.type](A))){var L=!1;f&&(L=SM[c.type](g,A));var P=MM[c.type](e,l,C,A,a,d,h.model,!1,v);p&&(P.forceLabelAnimation=!0),DM(P,l,C,D,A,e,a,c.type==="polar"),w?P.attr({shape:A}):p?IM(p,d,P,A,C,a,!1,!1):rt(P,{shape:A},e,C),l.setItemGraphicEl(C,P),s.add(P),P.ignore=L}}).update(function(C,D){var A=l.getItemModel(C),L=Fh[c.type](l,C,A);if(L){if(y){var P=void 0;b.length===0?P=M(D):((P=b[D]).useStyle(m.getItemStyle()),c.type==="cartesian2d"?P.setShape("r",x):P.setShape("cornerRadius",x),_[C]=P);var E=Fh[c.type](l,C);Fe(P,{shape:PM(a,E,c)},d,C)}var O=u.getItemGraphicEl(D);if(l.hasValue(C)&&CM[c.type](L)){var N=!1;if(f&&(N=SM[c.type](g,L))&&s.remove(O),O&&(O.type==="sector"&&v||O.type==="sausage"&&!v)&&(O&&fr(O,e,D),O=null),O?Jn(O):O=MM[c.type](e,l,C,L,a,d,h.model,!0,v),p&&(O.forceLabelAnimation=!0),S){var R=O.getTextContent();if(R){var z=ml(R);z.prevValue!=null&&(z.prevValue=z.value)}}else DM(O,l,C,A,L,e,a,c.type==="polar");w?O.attr({shape:L}):p?IM(p,d,O,L,C,a,!0,S):Fe(O,{shape:L},e,C,null),l.setItemGraphicEl(C,O),O.ignore=N,s.add(O)}else s.remove(O)}}).remove(function(C){var D=u.getItemGraphicEl(C);D&&fr(D,e,C)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new he);I.removeAll();for(var T=0;T<_.length;++T)I.add(_[T]);s.add(I),this._backgroundEls=_,this._data=l},t.prototype._renderLarge=function(e,i,r){this._clear(),kM(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),kM(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&La(e.coordinateSystem,!1,e),r=this.group;i?r.setClipPath(i):r.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,r){var o=this;if(i.count()){var a=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,r),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(a.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){o._updateSortWithinSameData(i,s,a,r)},r.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,r){var o=[];return e.each(e.mapDimension(i.dim),function(a,s){var l=r(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:K(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,r){for(var o=r.scale,a=e.mapDimension(r.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(a,o.getRawOrdinalNumber(l)),h=c<0?Number.MIN_VALUE:i(e.indexOfRawIndex(c));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var r=i.scale,o=r.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],r.getOrdinalMeta().categories.length-1);a<=s;++a)if(e.ordinalNumbers[a]!==r.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(e,i,r,o){if(this._isOrderChangedWithinSameData(e,i,r)){var a=this._dataSort(e,r,i);this._isOrderDifferentInView(a,r)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(e,i,r){var o=i.baseAxis,a=this._dataSort(e,o,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,r=this._data;e&&e.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl(function(o){fr(o,e,me(o).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=Ei,t})(Ze),SM={cartesian2d:function(n,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=n.x+n.width,o=n.y+n.height,a=kv(t.x,n.x),s=Lv(t.x+t.width,r),l=kv(t.y,n.y),u=Lv(t.y+t.height,o),c=s<a,h=u<l;return t.x=c&&a>r?s:a,t.y=h&&l>o?u:l,t.width=c?0:s-a,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(n,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var r=Lv(t.r,n.r),o=kv(t.r0,n.r0);t.r=r,t.r0=o;var a=r-o<0;return e<0&&(i=t.r,t.r=t.r0,t.r0=i),a}},MM={cartesian2d:function(n,t,e,i,r,o,a,s,l){var u=new Ae({shape:X({},i),z2:1});return u.__dataIndex=e,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(n,t,e,i,r,o,a,s,l){var u=!r&&l?Hp:$t,c=new u({shape:i,z2:1});c.name="item";var h,d,p=ZP(r);if(c.calculateTextPosition=(h=p,d=u===Hp,function(v,y,m){var x=y.position;if(!x||x instanceof Array)return ip(v,y,m);var _=h(x),b=y.distance!=null?y.distance:5,w=this.shape,S=w.cx,M=w.cy,I=w.r,T=w.r0,C=(I+T)/2,D=w.startAngle,A=w.endAngle,L=(D+A)/2,P=d?Math.abs(I-T)/2:0,E=Math.cos,O=Math.sin,N=S+I*E(D),R=M+I*O(D),z="left",B="top";switch(_){case"startArc":N=S+(T-b)*E(L),R=M+(T-b)*O(L),z="center",B="top";break;case"insideStartArc":N=S+(T+b)*E(L),R=M+(T+b)*O(L),z="center",B="bottom";break;case"startAngle":N=S+C*E(D)+Vh(D,b+P,!1),R=M+C*O(D)+Gh(D,b+P,!1),z="right",B="middle";break;case"insideStartAngle":N=S+C*E(D)+Vh(D,-b+P,!1),R=M+C*O(D)+Gh(D,-b+P,!1),z="left",B="middle";break;case"middle":N=S+C*E(L),R=M+C*O(L),z="center",B="middle";break;case"endArc":N=S+(I+b)*E(L),R=M+(I+b)*O(L),z="center",B="bottom";break;case"insideEndArc":N=S+(I-b)*E(L),R=M+(I-b)*O(L),z="center",B="top";break;case"endAngle":N=S+C*E(A)+Vh(A,b+P,!0),R=M+C*O(A)+Gh(A,b+P,!0),z="left",B="middle";break;case"insideEndAngle":N=S+C*E(A)+Vh(A,-b+P,!0),R=M+C*O(A)+Gh(A,-b+P,!0),z="right",B="middle";break;default:return ip(v,y,m)}return(v=v||{}).x=N,v.y=R,v.align=z,v.verticalAlign=B,v}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?Fe:rt)(c,{shape:g},o)}return c}};function IM(n,t,e,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Fe:rt)(e,{shape:l},t,r,null),(a?Fe:rt)(e,{shape:u},t?n.baseAxis.model:null,r)}function TM(n,t){for(var e=0;e<t.length;e++)if(!isFinite(n[t[e]]))return!0;return!1}var jV=["x","y","width","height"],KV=["cx","cy","r","startAngle","endAngle"],CM={cartesian2d:function(n){return!TM(n,jV)},polar:function(n){return!TM(n,KV)}},Fh={cartesian2d:function(n,t,e){var i=n.getItemLayout(t);if(!i)return null;var r=e?(function(s,l){var u=s.get(["itemStyle","borderColor"]);if(!u||u==="none")return 0;var c=s.get(["itemStyle","borderWidth"])||0,h=isNaN(l.width)?Number.MAX_VALUE:Math.abs(l.width),d=isNaN(l.height)?Number.MAX_VALUE:Math.abs(l.height);return Math.min(c,h,d)})(e,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(n,t,e){var i=n.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ZP(n){return(function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}})(n)}function DM(n,t,e,i,r,o,a,s){var l=t.getItemVisual(e,"style");if(s){if(!o.get("roundCap")){var u=n.shape;X(u,zi(i.getModel("itemStyle"),u,!0)),n.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",c)}n.useStyle(l);var h=i.getShallow("cursor");h&&n.attr("cursor",h);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?(function(y,m){return y.height===0?m.getOtherAxis(m.getBaseAxis()).inverse?"bottom":"top":y.height>0?"bottom":"top"})(r,o.coordinateSystem):(function(y,m){return y.width===0?m.getOtherAxis(m.getBaseAxis()).inverse?"left":"right":y.width>=0?"right":"left"})(r,o.coordinateSystem),p=Dt(i);Et(n,p,{labelFetcher:o,labelDataIndex:e,defaultText:rl(o.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var f=n.getTextContent();if(s&&f){var g=i.get(["label","position"]);n.textConfig.inside=g==="middle"||null,(function(y,m,x,_){if(Ve(_))y.setTextConfig({rotation:_});else if(q(m))y.setTextConfig({rotation:0});else{var b,w=y.shape,S=w.clockwise?w.startAngle:w.endAngle,M=w.clockwise?w.endAngle:w.startAngle,I=(S+M)/2,T=x(m);switch(T){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":b=I;break;case"startAngle":case"insideStartAngle":b=S;break;case"endAngle":case"insideEndAngle":b=M;break;default:return void y.setTextConfig({rotation:0})}var C=1.5*Math.PI-b;T==="middle"&&C>Math.PI/2&&C<1.5*Math.PI&&(C-=Math.PI),y.setTextConfig({rotation:C})}})(n,g==="outside"?d:g,ZP(a),i.get(["label","rotate"]))}YA(f,p,o.getRawValue(e),function(y){return SP(t,y)});var v=i.getModel(["emphasis"]);at(n,v.get("focus"),v.get("blurScope"),v.get("disabled")),Ct(n,i),(function(y){return y.startAngle!=null&&y.endAngle!=null&&y.startAngle===y.endAngle})(r)&&(n.style.fill="none",n.style.stroke="none",k(n.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}var $V=function(){},AM=(function(n){function t(e){var i=n.call(this,e)||this;return i.type="largeBar",i}return G(t,n),t.prototype.getDefaultShape=function(){return new $V},t.prototype.buildPath=function(e,i){for(var r=i.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<r.length;c+=3)l[o]=u,l[a]=r[c+2],s[o]=r[c+o],s[a]=r[c+a],e.rect(s[0],s[1],l[0],l[1])},t})(Le);function kM(n,t,e,i){var r=n.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=n.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints"),c=i?Gi(n):0;if(u){var h=new AM({shape:{points:u},incremental:c,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),t.add(h),e&&e.push(h)}var d=new AM({shape:{points:r.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(r.getVisual("style")),d.style.stroke=null,me(d).seriesIndex=n.seriesIndex,n.get("silent")||(d.on("mousedown",LM),d.on("mousemove",LM)),e&&e.push(d)}var LM=bx(function(n){var t=(function(e,i,r){for(var o=e.baseDimIdx,a=1-o,s=e.shape.points,l=e.largeDataIndices,u=[],c=[],h=e.barWidth,d=0,p=s.length/3;d<p;d++){var f=3*d;if(c[o]=h,c[a]=s[f+2],u[o]=s[f+o],u[a]=s[f+a],c[a]<0&&(u[a]+=c[a],c[a]=-c[a]),i>=u[0]&&i<=u[0]+c[0]&&r>=u[1]&&r<=u[1]+c[1])return l[d]}return-1})(this,n.offsetX,n.offsetY);me(this).dataIndex=t>=0?t:null},30,!1);function PM(n,t,e){if(Pa(e,"cartesian2d")){var i=t,r=e.getArea();return{x:n?i.x:r.x,y:n?r.y:i.y,width:n?i.width:r.width,height:n?r.height:i.height}}var o=t;return{cx:(r=e.getArea()).cx,cy:r.cy,r0:n?r.r0:o.r0,r:n?r.r:o.r,startAngle:n?o.startAngle:0,endAngle:n?o.endAngle:2*Math.PI}}function Jl(n){return{seriesType:n,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var r=t.getData();r.filterSelf(function(o){for(var a=r.getName(o),s=0;s<i.length;s++)if(!i[s].isSelected(a))return!1;return!0})}}}}function Dl(n,t,e){t=q(t)&&{coordDimensions:t}||X({encodeDefine:n.getEncode()},t);var i=n.getSource(),r=Ml(i,t).dimensions,o=new fn(r,n);return o.initData(i,e),o}var Pv,Al=(function(){function n(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},n.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},n.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},n})(),so="pie",JV=Me(),qP=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new Al(ie(this.getData,this),ie(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Dl(this,{coordDimensions:["value"],encodeDefaulter:Ce(px,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),r=JV(i),o=r.seats;if(!o){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),o=r.seats=YD(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,e);return s.percent=o[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){ba(e,"labelLine",["show"]);var i=e.labelLine,r=e.emphasis.labelLine;i.show=i.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.type="series."+so,t.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"},t})(je);Pv={fullType:qP.type,getCoord2:function(n){return n.getShallow("center")}},uk.set(Pv.fullType,{getCoord2:void 0}).getCoord2=Pv.getCoord2;var QV=Math.PI/180;function OM(n,t,e,i,r,o,a,s,l,u){if(!(n.length<2)){for(var c=n.length,h=0;h<c;h++)if(n[h].position==="outer"&&n[h].labelAlignTo==="labelLine"){var d=n[h].label.x-u;n[h].linePoints[1][0]+=d,n[h].label.x=u}f0(n,1,l,l+a)&&(function(f){for(var g={list:[],maxY:0},v={list:[],maxY:0},y=0;y<f.length;y++)if(f[y].labelAlignTo==="none"){var m=f[y],x=m.label.y>e?v:g,_=Math.abs(m.label.y-e);if(_>=x.maxY){var b=m.label.x-t-m.len2*r,w=i+m.len,S=Math.abs(b)<w?Math.sqrt(_*_/(1-b*b/w/w)):w;x.rB=S,x.maxY=_}x.list.push(m)}p(g),p(v)})(n)}function p(f){for(var g=f.rB,v=g*g,y=0;y<f.list.length;y++){var m=f.list[y],x=Math.abs(m.label.y-e),_=i+m.len,b=_*_,w=Math.sqrt(Math.abs((1-x*x/v)*b)),S=t+(w+m.len2)*r,M=S-m.label.x;jP(m,m.targetTextWidth-M*r,!0),m.label.x=S}}}function jP(n,t,e){if(n.labelStyleWidth==null){var i=n.label,r=i.style,o=n.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(t<c||e){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",a)}else{var d=t-l,p=t<c?d:e?d>n.unconstrainedWidth?null:d:null;i.setStyle("width",p)}KP(o,i)}}}function KP(n,t){RM.rect=n,oP(RM,t,e3)}var e3={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},RM={};function Ov(n){return n.position==="center"}function t3(n){var t,e,i=n.getData(),r=[],o=!1,a=(n.get("minShowLabelAngle")||0)*QV,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(b){b.ignore=!0}i.each(function(b){var w=i.getItemGraphicEl(b),S=w.shape,M=w.getTextContent(),I=w.getTextGuideLine(),T=i.getItemModel(b),C=T.getModel("label"),D=C.get("position")||T.get(["emphasis","label","position"]),A=C.get("distanceToLabelLine"),L=C.get("alignTo"),P=ne(C.get("edgeDistance"),u),E=C.get("bleedMargin");E==null&&(E=Math.min(u,d)>200?10:2);var O=T.getModel("labelLine"),N=O.get("length");N=ne(N,u);var R=O.get("length2");if(R=ne(R,u),Math.abs(S.endAngle-S.startAngle)<a)return k(M.states,p),M.ignore=!0,void(I&&(k(I.states,p),I.ignore=!0));if((function(Ne){if(!Ne.ignore)return!0;for(var tt in Ne.states)if(Ne.states[tt].ignore===!1)return!0;return!1})(M)){var z,B,V,W,U=(S.startAngle+S.endAngle)/2,F=Math.cos(U),Q=Math.sin(U);t=S.cx,e=S.cy;var Z=D==="inside"||D==="inner";if(D==="center")z=S.cx,B=S.cy,W="center";else{var Y=(Z?(S.r+S.r0)/2*F:S.r*F)+t,J=(Z?(S.r+S.r0)/2*Q:S.r*Q)+e;if(z=Y+3*F,B=J+3*Q,!Z){var $=Y+F*(N+l-S.r),j=J+Q*(N+l-S.r),ee=$+(F<0?-1:1)*R;z=L==="edge"?F<0?c+P:c+u-P:ee+(F<0?-A:A),B=j,V=[[Y,J],[$,j],[ee,j]]}W=Z?"center":L==="edge"?F>0?"right":"left":F>0?"left":"right"}var ue=Math.PI,ye=0,we=C.get("rotate");if(Ve(we))ye=we*(ue/180);else if(D==="center")ye=0;else if(we==="radial"||we===!0)ye=F<0?-U+ue:-U;else if(we==="tangential"||we==="tangential-noflip"&&D!=="outside"&&D!=="outer"){var ve=Math.atan2(F,Q);ve<0&&(ve=2*ue+ve),Q>0&&we!=="tangential-noflip"&&(ve=ue+ve),ye=ve-ue}if(o=!!ye,M.x=z,M.y=B,M.rotation=ye,M.setStyle({verticalAlign:"middle"}),Z){M.setStyle({align:W});var xe=M.states.select;xe&&(xe.x+=M.x,xe.y+=M.y)}else{var Ie=new de(0,0,0,0);KP(Ie,M),r.push({label:M,labelLine:I,position:D,len:N,len2:R,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ge(F,Q),linePoints:V,textAlign:W,labelDistance:A,labelAlignTo:L,edgeDistance:P,bleedMargin:E,rect:Ie,unconstrainedWidth:Ie.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:Z})}}),!o&&n.get("avoidLabelOverlap")&&(function(b,w,S,M,I,T,C,D){for(var A=[],L=[],P=Number.MAX_VALUE,E=-Number.MAX_VALUE,O=0;O<b.length;O++){var N=b[O].label;Ov(b[O])||(N.x<w?(P=Math.min(P,N.x),A.push(b[O])):(E=Math.max(E,N.x),L.push(b[O])))}for(O=0;O<b.length;O++)if(!Ov(B=b[O])&&B.linePoints){if(B.labelStyleWidth!=null)continue;N=B.label;var R=B.linePoints,z=void 0;z=B.labelAlignTo==="edge"?N.x<w?R[2][0]-B.labelDistance-C-B.edgeDistance:C+I-B.edgeDistance-R[2][0]-B.labelDistance:B.labelAlignTo==="labelLine"?N.x<w?P-C-B.bleedMargin:C+I-E-B.bleedMargin:N.x<w?N.x-C-B.bleedMargin:C+I-N.x-B.bleedMargin,B.targetTextWidth=z,jP(B,z,!1)}for(OM(L,w,S,M,1,0,T,0,D,E),OM(A,w,S,M,-1,0,T,0,D,P),O=0;O<b.length;O++){var B;if(!Ov(B=b[O])&&B.linePoints){N=B.label,R=B.linePoints;var V=B.labelAlignTo==="edge",W=N.style.padding,U=W?W[1]+W[3]:0,F=N.style.backgroundColor?0:U,Q=B.rect.width+F,Z=R[1][0]-R[2][0];V?N.x<w?R[2][0]=C+B.edgeDistance+Q+B.labelDistance:R[2][0]=C+I-B.edgeDistance-Q-B.labelDistance:(N.x<w?R[2][0]=N.x+B.labelDistance:R[2][0]=N.x-B.labelDistance,R[1][0]=R[2][0]+Z),R[1][1]=R[2][1]=N.y}}})(r,t,e,l,u,d,c,h);for(var f=0;f<r.length;f++){var g=r[f],v=g.label,y=g.labelLine,m=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),m&&(k(v.states,p),v.ignore=!0);var x=v.states.select;x&&(x.x+=v.x,x.y+=v.y)}if(y){var _=g.linePoints;m||!_?(k(y.states,p),y.ignore=!0):(iP(_,g.minTurnAngle),eV(_,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:_}),v.__hostTarget.textGuideLineConfig={anchor:new ge(_[0][0],_[0][1])})}}}var NM=2*Math.PI,Hh=Math.PI/180,n3=At(so,function(n,t){n.eachSeriesByType(so,function(e){var i=e.getData(),r=i.mapDimension("value"),o=gk(e,t),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=o.viewRect,h=-e.get("startAngle")*Hh,d=e.get("endAngle"),p=e.get("padAngle")*Hh;d=d==="auto"?h-NM:-d*Hh;var f=e.get("minAngle")*Hh+p,g=0;i.each(r,function(P){!isNaN(P)&&g++});var v=i.getSum(r),y=Math.PI/(v||g)*2,m=e.get("clockwise"),x=e.get("roseType"),_=e.get("stillShowZeroSum"),b=i.getDataExtent(r);b[0]=0;var w=m?1:-1,S=[h,d],M=w*p/2;Of(S,!m),h=S[0],d=S[1];var I=$P(e);I.startAngle=h,I.endAngle=d,I.clockwise=m,I.cx=a,I.cy=s,I.r=l,I.r0=u;var T=Math.abs(d-h),C=T,D=0,A=h;if(i.setLayout({viewRect:c,r:l}),i.each(r,function(P,E){var O;if(isNaN(P))i.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:s,r0:u,r:x?NaN:l});else{(O=x!=="area"?v===0&&_?y:P*y:T/g)<f?(O=f,C-=f):D+=P;var N=A+w*O,R=0,z=0;p>O?z=R=A+w*O/2:(R=A+M,z=N-M),i.setItemLayout(E,{angle:O,startAngle:R,endAngle:z,clockwise:m,cx:a,cy:s,r0:u,r:x?He(P,b,[u,l]):l}),A=N}}),C<NM&&g)if(C<=.001){var L=T/g;i.each(r,function(P,E){if(!isNaN(P)){var O=i.getItemLayout(E);O.angle=L;var N=0,R=0;L<p?R=N=h+w*(E+.5)*L:(N=h+w*E*L+M,R=h+w*(E+1)*L-M),O.startAngle=N,O.endAngle=R}})}else y=C/D,A=h,i.each(r,function(P,E){if(!isNaN(P)){var O=i.getItemLayout(E),N=O.angle===f?f:P*y,R=0,z=0;N<p?z=R=A+w*N/2:(R=A+M,z=A+w*N-M),O.startAngle=R,O.endAngle=z,A+=w*N}})})}),$P=Me(),i3=(function(n){function t(e,i,r){var o=n.call(this)||this;o.z2=2;var a=new Be;return o.setTextContent(a),o.updateData(e,i,r,!0),o}return G(t,n),t.prototype.updateData=function(e,i,r,o){var a=this,s=e.hostModel,l=e.getItemModel(i),u=l.getModel("emphasis"),c=e.getItemLayout(i),h=X(zi(l.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle))a.setShape(h);else{if(o){a.setShape(h);var d=s.getShallow("animationType");s.ecModel.ssr?(rt(a,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),a.originX=h.cx,a.originY=h.cy):d==="scale"?(a.shape.r=c.r0,rt(a,{shape:{r:c.r}},s,i)):r!=null?(a.setShape({startAngle:r,endAngle:r}),rt(a,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,i)):(a.shape.endAngle=c.startAngle,Fe(a,{shape:{endAngle:c.endAngle}},s,i))}else Jn(a),Fe(a,{shape:h},s,i);a.useStyle(e.getItemVisual(i,"style")),Ct(a,l);var p=(c.startAngle+c.endAngle)/2,f=s.get("selectedOffset"),g=Math.cos(p)*f,v=Math.sin(p)*f,y=l.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,e,i),a.ensureState("emphasis").shape=X({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},zi(u.getModel("itemStyle"),c)),X(a.ensureState("select"),{x:g,y:v,shape:zi(l.getModel(["select","itemStyle"]),c)}),X(a.ensureState("blur"),{shape:zi(l.getModel(["blur","itemStyle"]),c)});var m=a.getTextGuideLine(),x=a.getTextContent();m&&X(m.ensureState("select"),{x:g,y:v}),X(x.ensureState("select"),{x:g,y:v}),at(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))}},t.prototype._updateLabel=function(e,i,r){var o=this,a=i.getItemModel(r),s=a.getModel("labelLine"),l=i.getItemVisual(r,"style"),u=l&&l.fill,c=l&&l.opacity;Et(o,Dt(a),{labelFetcher:i.hostModel,labelDataIndex:r,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(r,"normal")||i.getName(r)});var h=o.getTextContent();o.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var d=a.get(["label","position"]);if(d!=="outside"&&d!=="outer")o.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Wt,this.setTextGuideLine(p)),zx(this,Bx(a),{stroke:u,opacity:wn(s.get(["lineStyle","opacity"]),c,1)})}},t})($t),r3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=so,e.ignoreLabelLineUpdate=!0,e}return G(t,n),t.prototype.render=function(e,i,r,o){var a,s=e.getData(),l=this._data,u=this.group;if(!l&&s.count()>0){for(var c=s.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<s.count();++h)c=s.getItemLayout(h);c&&(a=c.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),s.count()===0&&e.get("showEmptyCircle")){var d=$P(e),p=new $t({shape:se(d)});p.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,u.add(p)}s.diff(l).add(function(f){var g=new i3(s,f,a);s.setItemGraphicEl(f,g),u.add(g)}).update(function(f,g){var v=l.getItemGraphicEl(g);v.updateData(s,f,a),v.off("click"),u.add(v),s.setItemGraphicEl(f,v)}).remove(function(f){fr(l.getItemGraphicEl(f),e,f)}).execute(),t3(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=s)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var r=i.getData().getItemLayout(0);if(r){var o=e[0]-r.cx,a=e[1]-r.cy,s=Math.sqrt(o*o+a*a);return s<=r.r&&s>=r.r0}},t.type=so,t})(Ze),o3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return G(t,n),t.prototype.getInitialData=function(e,i){return Ji(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,i,r){return r.point(i.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:H.color.primary}},universalTransition:{divideShape:"clone"}},t})(je),a3=function(){},s3=(function(n){function t(e){var i=n.call(this,e)||this;return i._off=0,i.hoverDataIdx=-1,i}return G(t,n),t.prototype.getDefaultShape=function(){return new a3},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,i){var r,o=i.points,a=i.size,s=this.symbolProxy,l=s.shape,u=e.getContext?e.getContext():e,c=u&&a[0]<4,h=this.softClipShape;if(c)this._ctx=u;else{for(this._ctx=null,r=this._off;r<o.length;){var d=o[r++],p=o[r++];isNaN(d)||isNaN(p)||h&&!h.contain(d,p)||(l.x=d-a[0]/2,l.y=p-a[1]/2,l.width=a[0],l.height=a[1],s.buildPath(e,l,!0))}this.incremental&&(this._off=r,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,i=this.shape,r=i.points,o=i.size,a=this._ctx,s=this.softClipShape;if(a){for(e=this._off;e<r.length;){var l=r[e++],u=r[e++];isNaN(l)||isNaN(u)||s&&!s.contain(l,u)||a.fillRect(l-o[0]/2,u-o[1]/2,o[0],o[1])}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,i){for(var r=this.shape,o=r.points,a=r.size,s=Math.max(a[0],4),l=Math.max(a[1],4),u=o.length/2-1;u>=0;u--){var c=2*u,h=o[c]-s/2,d=o[c+1]-l/2;if(e>=h&&i>=d&&e<=h+s&&i<=d+l)return u}return-1},t.prototype.contain=function(e,i){var r=this.transformCoordToLocal(e,i),o=this.getBoundingRect();return e=r[0],i=r[1],o.contain(e,i)?(this.hoverDataIdx=this.findDataIndex(e,i))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var i=this.shape,r=i.points,o=i.size,a=o[0],s=o[1],l=1/0,u=1/0,c=-1/0,h=-1/0,d=0;d<r.length;){var p=r[d++],f=r[d++];l=Math.min(p,l),c=Math.max(p,c),u=Math.min(f,u),h=Math.max(f,h)}e=this._rect=new de(l-a/2,u-s/2,c-l+a,h-u+s)}return e},t})(Le),l3=(function(){function n(){this.group=new he}return n.prototype.updateData=function(t,e){this._clear(),this._data=t;var i=this._create();i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,e)},n.prototype.updateLayout=function(t){var e=this._data;if(e){var i=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var o=2*(r.endIndex-r.startIndex),a=4*r.startIndex*2;i=new Float32Array(i.buffer,a,o)}r.setShape("points",i),r.reset(),r.stopAnimation()})}},n.prototype.incrementalPrepareUpdate=function(t){this._clear()},n.prototype.incrementalUpdate=function(t,e,i,r){var o=this._newAdded[0],a=e.getLayout("points"),s=o&&o.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+a.length);u.set(s),u.set(a,l),o.endIndex=t.end,o.setShape({points:u})}else{this._newAdded=[];var c=this._create();c.startIndex=t.start,c.endIndex=t.end,c.incremental=i,c.setShape({points:a}),this._setCommon(c,e,r)}},n.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},n.prototype._create=function(){var t=new s3({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},n.prototype._setCommon=function(t,e,i){var r=e.hostModel;i=i||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=bt(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=me(t);u.seriesIndex=r.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var h=t.hoverDataIdx;h>=0&&(u.dataIndex=h+(t.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n})(),u3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){var o=e.getData();this._updateSymbolDraw(o,e).updateData(o,Rv(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,i,r){var o=e.getData();this._updateSymbolDraw(o,e).incrementalPrepareUpdate(o),this._finished=!1},t.prototype.incrementalRender=function(e,i,r){this._symbolDraw.incrementalUpdate(e,i.getData(),Gi(i),Rv(i)),this._finished=e.end===i.getData().count()},t.prototype.updateTransform=function(e,i,r){var o=e.getData();if(this.group.dirty(),!this._finished)return{update:!0};var a=Xu("").reset(e,i,r);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(Rv(e))},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,i){var r=this._symbolDraw,o=i.pipelineContext.large;return r&&o===this._isLargeDraw||(r&&r.remove(),r=this._symbolDraw=o?new l3:new jc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(r.group),r},t.prototype.remove=function(e,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(Ze);function Rv(n){return{clipShape:DP(n)}}var T0=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",pt).models[0]},t.type="cartesian2dAxis",t})(ke);xt(T0,Tl);var JP={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:H.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:H.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:H.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[H.color.backgroundTint,H.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:H.color.neutral00,borderColor:H.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},c3=Se({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},JP),Nv=Se({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:H.color.axisMinorSplitLine,width:1}}},JP),QP={category:c3,value:Nv,time:Se({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Nv),log:pe({logBase:10},Nv)};function Fs(n,t,e,i){k(RL,function(r,o){var a=Se(Se({},QP[o],!0),i,!0),s=(function(l){function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return G(u,l),u.prototype.mergeDefaultAndTheme=function(c,h){var d=pc(this),p=d?Za(c):{};Se(c,h.getTheme().get(o+"Axis")),Se(c,this.getDefaultOption()),c.type=EM(c),d&&qi(c,p,d)},u.prototype.optionUpdated=function(){this.option.type==="category"&&(this.__ordinalMeta=gc.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var h=Kc();return h?h.updateModelAxisBreak(this,c):{breaks:[]}},u.type=t+"Axis."+o,u.defaultOption=a,u})(e);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(t+"Axis",EM)}function EM(n){return n.type||(n.data?"category":"value")}var h3=(function(){function n(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return n.prototype.getAxis=function(t){return this._axes[t]},n.prototype.getAxes=function(){return K(this._dimList,function(t){return this._axes[t]},this)},n.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ye(this.getAxes(),function(e){return e.scale.type===t})},n.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},n})(),Gd=["x","y"];function zM(n){return(n.type==="interval"||n.type==="time")&&!vp(n)}var d3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=ui,e.dimensions=Gd,e}return G(t,n),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(zM(e)&&zM(i)){var r=yc(e,null),o=yc(i,null),a=this.dataToPoint([r[0],o[0]]),s=this.dataToPoint([r[1],o[1]]),l=r[1]-r[0],u=o[1]-o[0];if(l&&u){var c=(s[0]-a[0])/l,h=(s[1]-a[1])/u,d=a[0]-r[0]*c,p=a[1]-o[0]*h,f=this._transform=[c,0,0,h,d,p];this._invTransform=Ln([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),r=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&r.contain(r.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var r=this.dataToPoint(e),o=this.dataToPoint(i),a=this.getArea(),s=new de(r[0],r[1],o[0]-r[0],o[1]-r[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,i,r){r=r||[];var o=e[0],a=e[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return dt(r,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(o,i)),r[1]=l.toGlobalCoord(l.dataToCoord(a,i)),r},t.prototype.clampData=function(e,i){var r=this.getAxis("x").scale,o=this.getAxis("y").scale,a=r.getExtent(),s=o.getExtent(),l=r.parse(e[0]),u=o.parse(e[1]);return(i=i||[])[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i,r){if(r=r||[],this._invTransform)return dt(r,e,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return r[0]=o.coordToData(o.toLocalCoord(e[0]),i),r[1]=a.coordToData(a.toLocalCoord(e[1]),i),r},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),o=Math.min(i[0],i[1])-e,a=Math.min(r[0],r[1])-e,s=Math.max(i[0],i[1])-o+e,l=Math.max(r[0],r[1])-a+e;return new de(o,a,s,l)},t})(h3);function eO(n,t){var e=n.scale,i=n.model,r,o,a,s=YL(e,i,i.ecModel,n,null),l=Qs(e),u=Qs(t)?t.intervalStub:t,c=l?e.intervalStub:e,h=e.base,d=u.getTicks(),p=u.getTicks({expandToNicedExtent:!0}),f=d.length-1;if(f===1)r=o=0,a=1;else if(f===2){var g=ht(d[0].value-d[1].value),v=ht(d[1].value-d[2].value);r=o=0,g===v?a=2:(a=1,g<v?r=g/v:o=v/g)}else{var y=u.getConfig().interval;r=(1-(d[0].value-p[0].value)/y)%1,o=(1-(p[f].value-d[f].value)/y)%1,a=f-(r?1:0)-(o?1:0)}var m,x,_,b,w,S,M=s.zoomFixMM,I=M[0]||M[1],T=[s.fixMM[0]||I,s.fixMM[1]||I],C=e.getExtent(),D=c.getExtent(),A=kL(D,T);function L(V){for(var W=0;W<50&&!V();W++)_=l?_*De(h,2):MB(_),b=va(_)}function P(){m=Ge(S-_*r,b)}function E(){x=Ge(w+_*o,b)}function O(){S=r?Ge(m+_*r,b):m}function N(){w=o?Ge(x-_*o,b):x}if(T[0]&&T[1]){m=A[0],x=A[1],_=(x-m)/(a+r+o);var R=n.getExtent(),z=ht(R[1]-R[0]);b=O1([x,m],z,.5/a),O(),N(),Yn(b)&&(_=Ge(_,b))}else{var B=A[1]-A[0];_=l?De(N1(B),1):Cf(B/a,2),b=va(_),T[0]?(m=A[0],L(function(){if(O(),w=Ge(S+_*a,b),E(),x>=A[1])return!0})):T[1]?(x=A[1],L(function(){if(N(),S=Ge(w-_*a,b),P(),m<=A[0])return!0})):L(function(){S=Ge(ca(A[0]/_)*_,b),w=Ge(Zn(A[1]/_)*_,b);var V=Yi((w-S)/_);if(V<=a){var W=a-V,U=void 0,F=s.incl0||l;if(F&&A[0]===0)U=[0,W];else if(F&&A[1]===0)U=[W,0];else{var Q=Zn(W/2);U=W%2==0?[Q,Q]:m+x<A[0]+A[1]?[Q,Q+1]:[Q+1,Q]}if(S=Ge(S-_*U[0],b),w=Ge(w+_*U[1],b),P(),E(),m<=A[0]&&x>=A[1])return!0}})}zL(e,T,D,[m,x],C,{interval:_,intervalCount:a,intervalPrecision:b,niceExtent:[S,w]})}var C0,BM=[[3,1],[0,2]],p3=(function(){function n(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Gd,this._initCartesian(t,e,i),this.model=t}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(t,e){var i=this._axesMap;function r(a){for(var s=Re(a),l=[],u=s.length-1;u>=0;u--){var c=a[+s[u]];c.__alignTo?l.push(c):nl(c)}k(l,function(h){var d,p;d=h,p=h.__alignTo,vp(d.scale)||vp(p.scale)||p.scale.getTicks().length<2?nl(h):eO(h,h.__alignTo.scale)})}k(this._axesList,function(a){ka(a,1);var s=a.scale;ln(s)&&s.setSortInfo(a.model.get("categorySortInfo"))}),r(i.x),r(i.y);var o={};k(i.x,function(a){VM(i,"y",a,o)}),k(i.y,function(a){VM(i,"x",a,o)}),this.resize(this.model,e)},n.prototype.resize=function(t,e,i){var r=kt(t,e),o=this._rect=ot(t.getBoxLayoutParams(),r.refContainer),a=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(D0(a,o),!i){var u=(function(g,v,y,m,x){var _=new EP(f3);return k(y,function(b){return k(b,function(w){if(_c(w.model)){var S=!m;w.axisBuilder=(function(M,I,T,C,D,A){for(var L=Gp(M,T),P=!1,E=!1,O=0;O<I.length;O++)AL(I[O].getOtherAxis(T.axis).scale)&&(P=E=!0,T.axis.type==="category"&&T.axis.onBand&&(E=!1));return L.axisLineAutoShow=P,L.axisTickAutoShow=E,L.defaultNameMoveOverlap=A,new gn(T,C,L,D)})(g,v,w.model,x,_,S)}})}),_})(o,s,a,l,e),c=void 0;if(l)C0?(C0(this._axesList,o),D0(a,o)):c=WM(o.clone(),"axisLabel",null,o,a,u,r);else{var h=(function(g,v,y){var m,x=g.get("outerBoundsMode",!0);x==="same"?m=v.clone():x!=null&&x!=="auto"||(m=ot(g.get("outerBounds",!0)||WP,y.refContainer));var _,b=g.get("outerBoundsContain",!0);_=b==null||b==="auto"||be(["all","axisLabel"],b)<0?"all":b;var w=[ap(ae(g.get("outerBoundsClampWidth",!0),Fp[0]),v.width),ap(ae(g.get("outerBoundsClampHeight",!0),Fp[1]),v.height)];return{outerBoundsRect:m,parsedOuterBoundsContain:_,outerBoundsClamp:w}})(t,o,r),d=h.outerBoundsRect,p=h.parsedOuterBoundsContain,f=h.outerBoundsClamp;d&&(c=WM(d,p,f,o,a,u,r))}tO(o,a,il,null,c,r),k(this._coordsList,function(g){g.calcAffineTransform()})}},n.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}fe(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===t||o[r].getAxis("y").index===e)return o[r]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(t,e,i){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(i):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(i)):null},n.prototype.convertFromPixel=function(t,e,i){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(i):r.axis?r.axis.coordToData(r.axis.toLocalCoord(i)):null},n.prototype._findConvertTarget=function(t){var e,i,r=t.seriesModel,o=t.xAxisModel||r&&r.getReferringComponents("xAxis",pt).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",pt).models[0],s=t.gridModel,l=this._coordsList;return r?be(l,e=r.coordinateSystem)<0&&(e=null):o&&a?e=this.getCartesian(o.componentIndex,a.componentIndex):o?i=this.getAxis("x",o.componentIndex):a?i=this.getAxis("y",a.componentIndex):s&&s.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},n.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},n.prototype._initCartesian=function(t,e,i){var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function u(c){return function(h,d){if((function(v,y){return v.getCoordSysModel()===y})(h,t)){var p=h.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=a.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=a.left?"right":"left"),a[p]=!0;var f=Xc(h),g=new PP(c,Il(h,f,!0),[0,0],f,p);g.onBand=Zc(g.scale,h),g.inverse=h.get("inverse"),h.axis=g,g.model=h,g.grid=o,g.index=d,o._axesList.push(g),s[c][d]=g,l[c]++}}}this._axesMap=s,k(s.x,function(c,h){k(s.y,function(d,p){var f="x"+h+"y"+p,g=new d3(f);g.master=r,g.model=t,r._coordsMap[f]=g,r._coordsList.push(g),g.addAxis(c),g.addAxis(d)})}),FM(s.x),FM(s.y)},n.prototype.getTooltipAxes=function(t){var e=[],i=[];return k(this.getCartesians(),function(r){var o=t!=null&&t!=="auto"?r.getAxis(t):r.getBaseAxis(),a=r.getOtherAxis(o);be(e,o)<0&&e.push(o),be(i,a)<0&&i.push(a)}),{baseAxes:e,otherAxes:i}},n.create=function(t,e){var i=[];return t.eachComponent("grid",function(r,o){var a=new n(r,t,e);a.name="grid_"+o,a.resize(r,e,!0),r.coordinateSystem=a,i.push(a),k(a._axesList,function(s){var l,u;l=s,u=n.dimIdxMap,WL(l).dimIdxInCoord=u.get(l.dim)})}),t.eachSeries(function(r){var o,a;Wc({targetModel:r,coordSysType:ui,coordSysProvider:function(){var s=(function(h){var d={xAxisModel:null,yAxisModel:null};return k(d,function(p,f){var g=f.replace(/Model$/,""),v=h.getReferringComponents(g,pt).models[0];d[f]=v}),d})(r),l=s.xAxisModel,u=s.yAxisModel;o=l.axis,a=u.axis;var c=l.getCoordSysModel();return c.coordinateSystem.getCartesian(l.componentIndex,u.componentIndex)}}),o&&a&&(Aa(o,r,ui),Aa(a,r,ui))},this),i},n.dimensions=Gd,n.dimIdxMap=Cx(Gd),n})();function VM(n,t,e,i){e.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=n[t],a=e.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(l!=null)GM(s,o[l])&&(r=o[l]);else for(var u in o)if(oe(o,u)&&GM(s,o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(h){return h.dim+"_"+h.index}}function GM(n,t){if(!t)return!1;var e=(function(r,o,a){var s=a?yc(r,null):r.getExtentUnsafe(0,null),l=s[0],u=s[1];return Sa(l,u)?l===o||u===o?LB:l<o&&u>o?kB:gv:gv})(t.scale,0,!1),i=t&&t.type!=="category"&&t.type!=="time"&&e!==gv;return i&&n==="auto"&&(function(r){return NL(r).noOnMyZero})(t)&&(i=!1),i}function FM(n){for(var t,e=Re(n),i=[],r=e.length-1;r>=0;r--){var o=n[+e[r]];AL(o.scale)&&EL(o.model,o.type,!0)==null&&(o.model.get("alignTicks")&&o.model.get("interval")==null?i.push(o):t=o)}t||(t=i.pop()),t&&k(i,function(a){a.__alignTo=t})}function D0(n,t){k(n.x,function(e){return HM(e,t.x,t.width)}),k(n.y,function(e){return HM(e,t.y,t.height)})}function HM(n,t,e){var i=[0,e],r=n.inverse?1:0;n.setExtent(i[r],i[1-r]),(function(o,a){var s=o.getExtent(),l=s[0]+s[1];o.toGlobalCoord=o.dim==="x"?function(u){return u+a}:function(u){return l-u+a},o.toLocalCoord=o.dim==="x"?function(u){return u-a}:function(u){return l-u+a}})(n,t)}function WM(n,t,e,i,r,o,a){tO(i,r,bc,t,!1,a);var s=[0,0,0,0];u(0),u(1),c(i,0,NaN),c(i,1,NaN);var l=Tr(s,function(d){return d>0})==null;return Ta(i,s,!0,!0,e),D0(r,i),l;function u(d){k(r[_e[d]],function(p){if(_c(p.model)){var f=o.ensureRecord(p.model),g=f.labelInfoList;if(g)for(var v=0;v<g.length;v++){var y=g[v],m=p.scale.normalize(tl(p.scale,Qo(y.label).labelInfo.tick));m=d===1?1-m:m,c(y.rect,d,m),c(y.rect,1-d,NaN)}var x=f.nameLayout;x&&(m=el(f.nameLocation)?.5:NaN,c(x.rect,d,m),c(x.rect,1-d,NaN))}})}function c(d,p,f){var g=n[_e[p]]-d[_e[p]],v=d[gt[p]]+d[_e[p]]-(n[gt[p]]+n[_e[p]]);g=h(g,1-f),v=h(v,f);var y=BM[p][0],m=BM[p][1];s[y]=De(s[y],g),s[m]=De(s[m],v)}function h(d,p){return d>0&&!jt(p)&&p>1e-4&&(d/=p),d}}function tO(n,t,e,i,r,o){var a=e===il;k(t,function(u){return k(u,function(c){_c(c.model)&&((function(h,d,p){var f=Gp(d,p);h.updateCfg(f)})(c.axisBuilder,n,c.model),c.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r}))})});var s={x:0,y:0};function l(u){s[_e[1-u]]=n[gt[u]]<=.5*o.refContainer[gt[u]]?0:1-u==1?2:1}l(0),l(1),k(t,function(u,c){return k(u,function(h){_c(h.model)&&((i==="all"||a)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),a&&h.axisBuilder.build({axisLine:!0}))})})}var f3=function(n,t,e,i,r,o){var a=e.axis.dim==="x"?"y":"x";zP(n,0,0,i,r,o),el(n.nameLocation)||k(t.recordMap[a],function(s){s&&s.labelInfoList&&s.dirVec&&VP(s.labelInfoList,s.dirVec,i,r)})};function g3(n,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return(function(i,r,o){var a=r.getComponent("tooltip"),s=r.getComponent("axisPointer"),l=s.get("link",!0)||[],u=[];k(o.getCoordinateSystems(),function(c){if(c.axisPointerEnabled){var h=Zu(c.model),d=i.coordSysAxesInfo[h]={};i.coordSysMap[h]=c;var p=c.model.getModel("tooltip",a);if(k(c.getAxes(),Ce(y,!1,null)),c.getTooltipAxes&&a&&p.get("show")){var f=p.get("trigger")==="axis",g=p.get(["axisPointer","type"])==="cross",v=c.getTooltipAxes(p.get(["axisPointer","axis"]));(f||g)&&k(v.baseAxes,Ce(y,!g||"cross",f)),g&&k(v.otherAxes,Ce(y,"cross",!1))}}function y(m,x,_){var b=_.model.getModel("axisPointer",s),w=b.get("show");if(w&&(w!=="auto"||m||k0(b))){x==null&&(x=b.get("triggerTooltip")),b=m?(function(L,P,E,O,N,R){var z=P.getModel("axisPointer"),B={};k(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(F){B[F]=se(z.get(F))}),B.snap=L.type!=="category"&&!!R,z.get("type")==="cross"&&(B.type="line");var V=B.label||(B.label={});if(V.show==null&&(V.show=!1),N==="cross"){var W=z.get(["label","show"]);if(V.show=W==null||W,!R){var U=B.lineStyle=z.get("crossStyle");U&&pe(V,U.textStyle)}}return L.model.getModel("axisPointer",new Oe(B,E,O))})(_,p,s,r,m,x):b;var S=b.get("snap"),M=b.get("triggerEmphasis"),I=Zu(_.model),T=x||S||_.type==="category",C=i.axesInfo[I]={key:I,axis:_,coordSys:c,axisPointerModel:b,triggerTooltip:x,triggerEmphasis:M,involveSeries:T,snap:S,useHandle:k0(b),seriesModels:[],linkGroup:null};d[I]=C,i.seriesInvolved=i.seriesInvolved||T;var D=(function(L,P){for(var E=P.model,O=P.dim,N=0;N<L.length;N++){var R=L[N]||{};if(Ev(R[O+"AxisId"],E.id)||Ev(R[O+"AxisIndex"],E.componentIndex)||Ev(R[O+"AxisName"],E.name))return N}})(l,_);if(D!=null){var A=u[D]||(u[D]={axesInfo:{}});A.axesInfo[I]=C,A.mapper=l[D].mapper,C.linkGroup=A}}}})})(e,n,t),e.seriesInvolved&&(function(i,r){r.eachSeries(function(o){var a=o.coordinateSystem,s=o.get(["tooltip","trigger"],!0),l=o.get(["tooltip","show"],!0);a&&a.model&&s!=="none"&&s!==!1&&s!=="item"&&l!==!1&&o.get(["axisPointer","show"],!0)!==!1&&k(i.coordSysAxesInfo[Zu(a.model)],function(u){var c=u.axis;a.getAxis(c.dim)===c&&(u.seriesModels.push(o),u.seriesDataCount==null&&(u.seriesDataCount=0),u.seriesDataCount+=o.getData().count())})})})(e,n),e}function Ev(n,t){return n==="all"||q(n)&&be(n,t)>=0||n===t}function A0(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Zu(n)]}function k0(n){return!!n.get(["handle","show"])}function Zu(n){return n.type+"||"+n.id}var UM={},Ra=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r,o){this.axisPointerClass&&(function(a){var s=A0(a);if(s){var l=s.axisPointerModel,u=s.axis.scale,c=l.option,h=l.get("status"),d=l.get("value");d!=null&&(d=u.parse(d));var p=k0(l);h==null&&(c.status=p?"show":"hide");var f=u.getExtent();(d==null||d>f[1])&&(d=f[1]),d<f[0]&&(d=f[0]),c.value=d,p&&(c.status=s.axis.scale.isBlank()?"hide":"show")}})(e),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},t.prototype.updateAxisPointer=function(e,i,r,o){this._doUpdateAxisPointerClass(e,r,!1)},t.prototype.remove=function(e,i){var r=this._axisPointer;r&&r.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),n.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,r){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=(function(s){var l=A0(s);return l&&l.axisPointerModel})(e);a?(this._axisPointer||(this._axisPointer=new o)).render(e,a,i,r):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){UM[e]=i},t.getAxisPointerClass=function(e){return e&&UM[e]},t.type="axis",t})(et),L0=Me();function nO(n,t,e,i){var r=e.axis;if(!r.scale.isBlank()){var o=e.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=L0(n).splitAreaColors,d=re(),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(g!=null){p=(g+(c-1)*f)%c;break}}var v=r.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=q(s)?s:[s],f=1;f<u.length;f++){var m=r.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;r.isHorizontal()?(x=v,_=l.y,b=m-x,w=l.height,v=x+b):(x=l.x,_=v,b=l.width,v=_+(w=m-_));var S=u[f-1].tickValue;S!=null&&d.set(S,p),t.add(new Ae({anid:S!=null?"area_"+S:null,shape:{x,y:_,width:b,height:w},style:pe({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}L0(n).splitAreaColors=d}}}function iO(n){L0(n).splitAreaColors=null}var v3=["splitArea","splitLine","minorSplitLine","breakArea"],rO=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return G(t,n),t.prototype.render=function(e,i,r,o){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new he,this.group.add(this._axisGroup),_c(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),k(v3,function(s){e.get([s,"show"])&&y3[s](this,this._axisGroup,e,e.getCoordSysModel(),r)},this),o&&o.type==="changeAxisOrder"&&o.isInitSort||Hc(a,this._axisGroup,e),n.prototype.render.call(this,e,i,r,o))},t.prototype.remove=function(){iO(this)},t.type="cartesianAxis",t})(Ra),y3={splitLine:function(n,t,e,i,r){var o=e.axis;if(!o.scale.isBlank()){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=a.get("showMinLine")!==!1,c=a.get("showMaxLine")!==!1;l=q(l)?l:[l];for(var h=i.coordinateSystem.getRect(),d=o.isHorizontal(),p=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],y=s.getLineStyle(),m=0;m<f.length;m++){var x=o.toGlobalCoord(f[m].coord);if((m!==0||u)&&(m!==f.length-1||c)){var _=f[m].tickValue;d?(g[0]=x,g[1]=h.y,v[0]=x,v[1]=h.y+h.height):(g[0]=h.x,g[1]=x,v[0]=h.x+h.width,v[1]=x);var b=p++%l.length,w=new _t({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:pe({stroke:l[b]},y),silent:!0});Ks(w.shape,y.lineWidth),t.add(w)}}}},minorSplitLine:function(n,t,e,i,r){var o=e.axis,a=e.getModel("minorSplitLine").getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=o.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new _t({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});Ks(v.shape,d.lineWidth),t.add(v)}},splitArea:function(n,t,e,i,r){nO(n,t,e,i)},breakArea:function(n,t,e,i,r){var o=Kc(),a=e.axis.scale;o&&a.type!=="ordinal"&&o.rectCoordBuildBreakAxis(t,n,e,i.coordinateSystem.getRect(),r)}},oO=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="xAxis",t})(rO),m3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=oO.type,e}return G(t,n),t.type="yAxis",t})(rO),x3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="grid",e}return G(t,n),t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new Ae({shape:e.coordinateSystem.getRect(),style:pe({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(et),YM={offset:0};function XM(n){n.registerComponentView(x3),n.registerComponentModel(WV),n.registerCoordinateSystem("cartesian2d",p3),Fs(n,"x",T0,YM),Fs(n,"y",T0,YM),n.registerComponentView(oO),n.registerComponentView(m3),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Wp="single",P0="singleAxis",Fd=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.getCoordSysModel=function(){return this},t.type=P0,t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t})(ke);xt(Fd,Tl.prototype);var _3=Me();function ZM(n,t,e,i){if(n instanceof PP&&n.scale.type!=="ordinal")return e;var r=n.model,o=r.get("jitter");if(!(o>0))return e;var a=r.get("jitterOverlap"),s=r.get("jitterMargin")||0,l=ln(n.scale)?Qt(n).w:null;return a?qM(e,o,l,i):(function(u,c,h,d,p,f){var g=_3(u);g.items||(g.items=[]);var v=g.items,y=jM(v,c,h,d,p,f,1),m=jM(v,c,h,d,p,f,-1),x=Math.abs(y-h)<Math.abs(m-h)?y:m,_=ln(u.scale)?Qt(u).w:null,b=Math.abs(x-h);return b>p/2||_&&b>_/2-d?qM(h,p,_,d):(v.push({fixedCoord:c,floatCoord:x,r:d}),x)})(n,t,e,i,o,s)}function qM(n,t,e,i){if(e===null)return n+(Math.random()-.5)*t;var r=e-2*i,o=Math.min(Math.max(0,t),r);return n+(Math.random()-.5)*o}function jM(n,t,e,i,r,o,a){for(var s=e,l=0;l<n.length;l++){var u=n[l],c=t-u.fixedCoord,h=s-u.floatCoord,d=c*c+h*h,p=i+u.r+o;if(d<p*p){var f=u.floatCoord+Math.sqrt(p*p-c*c)*a;if(Math.abs(f-e)>r/2)return Number.MAX_VALUE;if(a===1&&f>s||a===-1&&f<s){s=f,l=-1;continue}}}return s}function b3(){return{seriesType:"scatter",plan:qa(),reset:function(n){var t=n.coordinateSystem;if(t&&(t.type===ui||t.type===Wp)){var e=t.getBaseAxis&&t.getBaseAxis(),i=e&&(function(u,c){var h=u.coordinateSystem,d=h&&h.type,p=h&&h.getBaseAxis&&h.getBaseAxis(),f=p&&p.scale&&p.scale.type,g=d===ui&&f==="ordinal"||d===Wp,v=c.model.get("jitter")>0;return g&&v})(n,e);if(i){var r=e.dim,o=e.orient,a=o==="horizontal"&&e.type!=="category"||o==="vertical"&&e.type==="category",s=r==="y"||r==="single"&&a,l=r==="x"||r==="single"&&!a;if(s||l)return{progress:function(u,c){for(var h=c.getLayout("points"),d=!!h,p=u.start;p<u.end;p++){var f=d?2*(p-u.start):-1,g=d?[h[f],h[f+1]]:c.getItemLayout(p);if(g){var v=c.getItemVisual(p,"symbolSize"),y=v instanceof Array?(v[1]+v[0])/2:v;if(s){var m=ZM(e,g[0],g[1],y/2);d?h[f+1]=m:g[1]=m}else l&&(m=ZM(e,g[1],g[0],y/2),d?h[f]=m:g[0]=m)}}}}}}}}}function w3(n){var t=n.polar;if(t){q(t)||(t=[t]);var e=[];k(t,function(i,r){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),n.radar=n.radar||[],q(n.radar)||(n.radar=[n.radar]),n.radar.push(i)):e.push(i)}),n.polar=e}k(n.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var Ic="radar",S3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return G(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new Al(ie(this.getData,this),ie(this.getRawData,this))},t.prototype.getInitialData=function(e,i){return Dl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,i,r){var o=this.getData(),a=this.coordinateSystem.getIndicatorAxes(),s=this.getData().getName(e),l=s===""?this.name:s,u=jk(this,e);return Mt("section",{header:l,sortBlocks:!0,blocks:K(a,function(c){var h=o.get(o.mapDimension(c.dim),e);return Mt("nameValue",{markerType:"subItem",markerColor:u,name:c.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var i=this.getData(),r=this.coordinateSystem,o=i.getValues(K(r.dimensions,function(u){return i.mapDimension(u)}),e),a=0,s=o.length;a<s;a++)if(!isNaN(o[a])){var l=r.getIndicatorAxes();return r.coordToPoint(l[a].dataToCoord(o[a]),a)}}},t.type="series."+Ic,t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(je),M3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=Ic,e}return G(t,n),t.prototype.render=function(e,i,r){var o=e.coordinateSystem,a=this.group,s=e.getData(),l=this._data;function u(d,p){var f=d.getItemVisual(p,"symbol")||"circle";if(f!=="none"){var g=Sl(d.getItemVisual(p,"symbolSize")),v=bt(f,-1,-1,2,2),y=d.getItemVisual(p,"symbolRotate")||0;return v.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),v}}function c(d,p,f,g,v,y){f.removeAll();for(var m=0;m<p.length-1;m++){var x=u(g,v);x&&(x.__dimIdx=m,d[m]?(x.setPosition(d[m]),Ya[y?"initProps":"updateProps"](x,{x:p[m][0],y:p[m][1]},e,v)):x.setPosition(p[m]),f.add(x))}}function h(d){return K(d,function(p){return[o.cx,o.cy]})}s.diff(l).add(function(d){var p=s.getItemLayout(d);if(p){var f=new Jt,g=new Wt,v={shape:{points:p}};f.shape.points=h(p),g.shape.points=h(p),rt(f,v,e,d),rt(g,v,e,d);var y=new he,m=new he;y.add(g),y.add(f),y.add(m),c(g.shape.points,p,m,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,p){var f=l.getItemGraphicEl(p),g=f.childAt(0),v=f.childAt(1),y=f.childAt(2),m={shape:{points:s.getItemLayout(d)}};m.shape.points&&(c(g.shape.points,m.shape.points,y,s,d,!1),Jn(v),Jn(g),Fe(g,m,e),Fe(v,m,e),s.setItemGraphicEl(d,f))}).remove(function(d){a.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,p){var f=s.getItemModel(p),g=d.childAt(0),v=d.childAt(1),y=d.childAt(2),m=s.getItemVisual(p,"style"),x=m.fill;a.add(d),g.useStyle(pe(f.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),Ct(g,f,"lineStyle"),Ct(v,f,"areaStyle");var _=f.getModel("areaStyle"),b=_.isEmpty()&&_.parentModel.isEmpty();v.ignore=b,k(["emphasis","select","blur"],function(S){var M=f.getModel([S,"areaStyle"]),I=M.isEmpty()&&M.parentModel.isEmpty();v.ensureState(S).ignore=I&&b;var T=f.getModel([S,"lineStyle"]).getLineStyle();g.ensureState(S).style=T;var C=M.getAreaStyle();v.ensureState(S).style=C;var D=f.getModel([S,"itemStyle"]).getItemStyle();y.eachChild(function(A){A.ensureState(S).style=se(D)})}),v.useStyle(pe(f.getModel("areaStyle").getAreaStyle(),{fill:x,opacity:.7,decal:m.decal}));var w=f.getModel("emphasis");y.eachChild(function(S){if(S instanceof zt){var M=S.style;S.useStyle(X({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},m))}else S.useStyle(m),S.setColor(x),S.style.strokeNoScale=!0;var I=s.getStore().get(s.getDimensionIndex(S.__dimIdx),p);(I==null||isNaN(I))&&(I=""),Et(S,Dt(f),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:S.__dimIdx,defaultText:I,inheritColor:x,defaultOpacity:m.opacity})}),at(d,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=Ic,t})(Ze),Ql=QP.value,qu="radar",aO=qu,I3=qu;function Wh(n,t){return pe({show:t},n)}var T3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),i=this.get("splitNumber"),r=this.get("clockwise"),o=this.get("scale"),a=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),c=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),p=this.get("triggerEvent"),f=K(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var v=u;g.color!=null&&(v=pe({color:g.color},u));var y=Se(se(g),{boundaryGap:e,splitNumber:i,clockwise:r,scale:o,axisLine:a,axisTick:s,axisLabel:l,name:g.text,showName:c,nameLocation:"end",nameGap:d,nameTextStyle:v,triggerEvent:p},!1);if(te(h)){var m=y.name;y.name=h.replace("{value}",m??"")}else le(h)&&(y.name=h(y.name,y));var x=new Oe(y,null,this.ecModel);return xt(x,Tl.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x.uid=Xa("ec_radar"),x},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=aO,t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:H.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Se({lineStyle:{color:H.color.neutral20}},Ql.axisLine),axisLabel:Wh(Ql.axisLabel,!1),axisTick:Wh(Ql.axisTick,!1),splitLine:Wh(Ql.splitLine,!0),splitArea:Wh(Ql.splitArea,!0),indicator:[]},t})(ke),C3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){this.group.removeAll(),this._buildAxes(e,r),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,i){var r=e.coordinateSystem;k(K(r.getIndicatorAxes(),function(o){var a=o.model.get("showName")?o.name:"";return new gn(o.model,i,{axisName:a,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(o){o.build(),this.group.add(o.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var i=e.coordinateSystem,r=i.getIndicatorAxes();if(r.length){var o=e.get("shape"),a=e.getModel("splitLine"),s=e.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),c=a.get("show"),h=s.get("show"),d=l.get("color"),p=u.get("color"),f=q(d)?d:[d],g=q(p)?p:[p],v=[],y=[];if(o==="circle")for(var m=r[0].getTicksCoords(),x=i.cx,_=i.cy,b=0;b<m.length;b++)c&&v[A(v,f,b)].push(new $i({shape:{cx:x,cy:_,r:m[b].coord}})),h&&b<m.length-1&&y[A(y,g,b)].push(new fl({shape:{cx:x,cy:_,r0:m[b].coord,r:m[b+1].coord}}));else{var w,S=K(r,function(L,P){var E=L.getTicksCoords();return w=w==null?E.length-1:Math.min(E.length-1,w),K(E,function(O){return i.coordToPoint(O.coord,P)})}),M=[];for(b=0;b<=w;b++){for(var I=[],T=0;T<r.length;T++)I.push(S[T][b]);I[0]&&I.push(I[0].slice()),c&&v[A(v,f,b)].push(new Wt({shape:{points:I}})),h&&M&&y[A(y,g,b-1)].push(new Jt({shape:{points:I.concat(M)}})),M=I.slice().reverse()}}var C=l.getLineStyle(),D=u.getAreaStyle();k(y,function(L,P){this.group.add(Tn(L,{style:pe({stroke:"none",fill:g[P%g.length]},D),silent:!0}))},this),k(v,function(L,P){this.group.add(Tn(L,{style:pe({fill:"none",stroke:f[P%f.length]},C),silent:!0}))},this)}function A(L,P,E){var O=E%P.length;return L[O]=L[O]||[],O}},t.type="radar",t})(et),D3=(function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.type="value",o.angle=0,o.name="",o}return G(t,n),t})(hi),A3=(function(){function n(t,e,i){this.type=qu,this.dimensions=[],this._model=t,this._indicatorAxes=K(t.getIndicatorModels(),function(r,o){var a="indicator_"+o,s=new D3(a,new ao);return s.name=r.get("name"),s.model=r,r.axis=s,this.dimensions.push(a),s},this),this.resize(t,i)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},n.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},n.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,r=Math.sqrt(e*e+i*i);e/=r,i/=r;for(var o,a=Math.atan2(-i,e),s=1/0,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(a-c.angle);h<s&&(o=c,l=u,s=h)}return[l,+(o&&o.coordToData(r))]},n.prototype.resize=function(t,e){var i=kt(t,e).refContainer,r=t.get("center"),o=t.get("clockwise")||!1,a=Math.min(i.width,i.height)/2;this.cx=ne(r[0],i.width)+i.x,this.cy=ne(r[1],i.height)+i.y,this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(te(s)||Ve(s))&&(s=[0,s]),this.r0=ne(s[0],a),this.r=ne(s[1],a);var l=o?-1:1;k(this._indicatorAxes,function(u,c){u.setExtent(this.r0,this.r);var h=this.startAngle+l*c*Math.PI*2/this._indicatorAxes.length;h=Math.atan2(Math.sin(h),Math.cos(h)),u.angle=h},this)},n.prototype.update=function(t,e){var i=this._indicatorAxes,r=Lp(this._model.get("splitNumber"),5),o=new ao;o.setExtent(0,r),o.setConfig({interval:1}),k(i,function(a){ka(a,1),eO(a,o)})},n.prototype.convertToPixel=function(t,e,i){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(t,e,i){return console.warn("Not implemented."),null},n.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},n.create=function(t,e){var i=[];return t.eachComponent(aO,function(r){var o=new n(r,t,e);i.push(o),r.coordinateSystem=o}),t.eachSeriesByType(I3,function(r){if(r.get("coordinateSystem")===qu){var o=r.coordinateSystem=i[r.get("radarIndex")||0];o&&k(o.getIndicatorAxes(),function(a){Aa(a,r,qu)})}}),i},n.dimensions=[],n})();function k3(n){n.registerCoordinateSystem("radar",A3),n.registerComponentModel(T3),n.registerComponentView(C3),n.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(i){e.setItemVisual(i,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var L3=At(Ic,function(n){n.eachSeriesByType(Ic,function(t){var e=t.getData(),i=[],r=t.coordinateSystem;if(r){var o=r.getIndicatorAxes();k(o,function(a,s){e.each(e.mapDimension(o[s].dim),function(l,u){i[u]=i[u]||[];var c=r.dataToPoint(l,s);i[u][s]=KM(c)?c:$M(r)})}),e.each(function(a){var s=Tr(i[a],function(l){return KM(l)})||$M(r);i[a].push(s.slice()),e.setItemLayout(a,i[a])})}})});function KM(n){return!isNaN(n[0])&&!isNaN(n[1])}function $M(n){return[n.cx,n.cy]}var O0=Me();function JM(n,t){return!!O0(n)[t]}Ci({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ct);var P3={axisPointer:1,tooltip:1,brush:1};function sO(n,t,e){var i=t.getComponentByElement(n.topTarget);if(!i||i===e||P3.hasOwnProperty(i.mainType))return!1;var r=i.coordinateSystem;if(!r||r.model===e)return!1;var o=Ca(i),a=Ca(e);return!((o.zlevel-a.zlevel||o.z-a.z)<=0)}var Ka=(function(n){function t(e){var i=n.call(this)||this;i._zr=e;var r=ie(i._mousedownHandler,i),o=ie(i._mousemoveHandler,i),a=ie(i._mouseupHandler,i),s=ie(i._mousewheelHandler,i),l=ie(i._pinchHandler,i);return i.enable=function(u,c){var h=c.zInfo,d=Ca(h.component),p=d.z,f=d.zlevel,g={component:h.component,z:p,zlevel:f,z2:ae(h.z2,-1/0)},v=X({},c.triggerInfo);this._opt=pe(X({},c),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:g,triggerInfo:v,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),this._enabled&&this._controlType===u||(this.disable(),this._enabled=!0,u!==!0&&u!=="move"&&u!=="pan"||(tu(e,"mousedown",r,g),tu(e,"mousemove",o,g),tu(e,"mouseup",a,g)),u!==!0&&u!=="scale"&&u!=="zoom"||(tu(e,"mousewheel",s,g),tu(e,"pinch",l,g)))},i.disable=function(){this._enabled&&(this._enabled=!1,nu(e,"mousedown",r),nu(e,"mousemove",o),nu(e,"mouseup",a),nu(e,"mousewheel",s),nu(e,"pinch",l))},i}return G(t,n),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,i,r){var o=this._opt,a=o.zInfoParsed;if(sO(e,o.api,a.component))return!1;var s=o.triggerInfo,l=!1;return s.roamTrigger==="global"&&(l=!0),l||(l=s.isInSelf(e,i,r)),l&&s.isInClip&&!s.isInClip(e,i,r)&&(l=!1),l},t.prototype._decideCursorStyle=function(e,i,r,o){var a=e.target;return!a&&this._checkPointer(e,i,r)?this._opt.cursorGrab:o?a&&a.cursor||"default":void 0},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!W_(e)&&!eu(e)){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var r=e.offsetX,o=e.offsetY;this._checkPointer(e,r,o)&&(this._x=r,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var i=this._zr;if(e.gestureEvent!=="pinch"&&!JM(i,"globalPan")&&!eu(e)){var r=e.offsetX,o=e.offsetY;if(this._dragging&&Hd("moveOnMouseMove",e,this._opt)){i.setCursorStyle(this._opt.cursorGrabbing);var a=this._x,s=this._y,l=r-a,u=o-s;this._x=r,this._y=o,this._opt.preventDefaultMouseMove&&xr(e.event),e.__ecRoamConsumed=!0,QM(this,"pan","moveOnMouseMove",e,{dx:l,dy:u,oldX:a,oldY:s,newX:r,newY:o,isAvailableBehavior:null})}else{var c=this._decideCursorStyle(e,r,o,!1);c&&i.setCursorStyle(c)}}},t.prototype._mouseupHandler=function(e){if(!eu(e)){var i=this._zr;if(!W_(e)){this._dragging=!1;var r=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);r&&i.setCursorStyle(r)}}},t.prototype._mousewheelHandler=function(e){if(!eu(e)){var i=Hd("zoomOnMouseWheel",e,this._opt),r=Hd("moveOnMouseWheel",e,this._opt),o=e.wheelDelta,a=Math.abs(o),s=e.offsetX,l=e.offsetY;if(o!==0&&(i||r)){if(i){var u=a>3?1.4:a>1?1.2:1.1,c=o>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(r){var h=Math.abs(o),d=(o>0?1:-1)*(h>3?.4:h>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!JM(this._zr,"globalPan")&&!eu(e)){var i=e.pinchScale>1?1.1:.9090909090909091;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,i,r,o,a){e._checkPointer(o,a.originX,a.originY)&&(xr(o.event),o.__ecRoamConsumed=!0,QM(e,i,r,o,a))},t})(Qn);function eu(n){return n.__ecRoamConsumed}var zv,O3=Me();function Up(n){var t=O3(n);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function tu(n,t,e,i){for(var r=Up(n).roam,o=r[t]=r[t]||[],a=0;a<o.length;a++){var s=o[a].zInfoParsed;if((s.zlevel-i.zlevel||s.z-i.z||s.z2-i.z2)<=0)break}o.splice(a,0,{listener:e,zInfoParsed:i}),(function(l,u){var c=Up(l);c.uniform[u]||l.on(u,c.uniform[u]=function(h){var d=c.roam[u];if(d)for(var p=0;p<d.length;p++)d[p].listener(h)})})(n,t)}function nu(n,t,e){for(var i=Up(n).roam[t]||[],r=0;r<i.length;r++)if(i[r].listener===e)return i.splice(r,1),void(i.length||R3(n,t))}function R3(n,t){var e=Up(n).uniform;e[t]&&(n.off(t,e[t]),e[t]=null)}function QM(n,t,e,i,r){r.isAvailableBehavior=ie(Hd,null,e,i),n.trigger(t,r)}function Hd(n,t,e){var i=e[n];return!n||i&&(!te(i)||t.event[i+"Key"])}function lO(n){te(n)&&(n=new DOMParser().parseFromString(n,"text/xml"));var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Yp={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},eI=Re(Yp),Xp={"alignment-baseline":"textBaseline","stop-color":"stopColor"},tI=Re(Xp),N3=(function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(t,e){e=e||{};var i=lO(t);this._defsUsePending=[];var r=new he;this._root=r;var o=[],a=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||e.width),l=parseFloat(i.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Sn(i,r,null,!0,!1);for(var u,c,h=i.firstChild;h;)this._parseNode(h,r,o,null,!1,!1),h=h.nextSibling;if((function(f,g){for(var v=0;v<g.length;v++){var y=g[v];y[0].style[y[1]]=f[y[2]]}})(this._defs,this._defsUsePending),this._defsUsePending=[],a){var d=Zp(a);d.length>=4&&(u={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(u&&s!=null&&l!=null&&(c=cO(u,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var p=r;(r=new he).add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return e.ignoreRootClip||s==null||l==null||r.setClipPath(new Ae({shape:{x:0,y:0,width:s,height:l}})),{root:r,width:s,height:l,viewBoxRect:u,viewBoxTransform:c,named:o}},n.prototype._parseNode=function(t,e,i,r,o,a){var s,l=t.nodeName.toLowerCase(),u=r;if(l==="defs"&&(o=!0),l==="text"&&(a=!0),l==="defs"||l==="switch")s=e;else{if(!o){var c=zv[l];if(c&&oe(zv,l)){s=c.call(this,t,e);var h=t.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:s};i.push(d),l==="g"&&(u=d)}else r&&i.push({name:r.name,namedFrom:r,svgNodeTagLower:l,el:s});e.add(s)}}var p=nI[l];if(p&&oe(nI,l)){var f=p.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=f)}}if(s&&s.isGroup)for(var v=t.firstChild;v;)v.nodeType===1?this._parseNode(v,s,i,u,o,a):v.nodeType===3&&a&&this._parseText(v,s),v=v.nextSibling},n.prototype._parseText=function(t,e){var i=new qs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});En(e,i),Sn(t,i,this._defsUsePending,!1,!1),(function(l,u){var c=u.__selfStyle;if(c){var h=c.textBaseline,d=h;h&&h!=="auto"?h==="baseline"?d="alphabetic":h==="before-edge"||h==="text-before-edge"?d="top":h==="after-edge"||h==="text-after-edge"?d="bottom":h!=="central"&&h!=="mathematical"||(d="middle"):d="alphabetic",l.style.textBaseline=d}var p=u.__inheritedStyle;if(p){var f=p.textAlign,g=f;f&&(f==="middle"&&(g="center"),l.style.textAlign=g)}})(i,e);var r=i.style,o=r.fontSize;o&&o<9&&(r.fontSize=9,i.scaleX*=o/9,i.scaleY*=o/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var s=i.getBoundingRect();return this._textX+=s.width,e.add(i),i},n.internalField=void(zv={g:function(t,e){var i=new he;return En(e,i),Sn(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new Ae;return En(e,i),Sn(t,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(t,e){var i=new $i;return En(e,i),Sn(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new _t;return En(e,i),Sn(t,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(t,e){var i=new Vc;return En(e,i),Sn(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(t,e){var i,r=t.getAttribute("points");r&&(i=oI(r));var o=new Jt({shape:{points:i||[]},silent:!0});return En(e,o),Sn(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,e){var i,r=t.getAttribute("points");r&&(i=oI(r));var o=new Wt({shape:{points:i||[]},silent:!0});return En(e,o),Sn(t,o,this._defsUsePending,!1,!1),o},image:function(t,e){var i=new zt;return En(e,i),Sn(t,i,this._defsUsePending,!1,!1),i.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new he;return En(e,s),Sn(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var i=t.getAttribute("x"),r=t.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),r!=null&&(this._textY=parseFloat(r));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new he;return En(e,s),Sn(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(t,e){var i=kA(t.getAttribute("d")||"");return En(e,i),Sn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),n})(),nI={lineargradient:function(n){var t=parseInt(n.getAttribute("x1")||"0",10),e=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),r=parseInt(n.getAttribute("y2")||"0",10),o=new Ua(t,e,i,r);return iI(n,o),rI(n,o),o},radialgradient:function(n){var t=parseInt(n.getAttribute("cx")||"0",10),e=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),r=new Z1(t,e,i);return iI(n,r),rI(n,r),r}};function iI(n,t){n.getAttribute("gradientUnits")==="userSpaceOnUse"&&(t.global=!0)}function rI(n,t){for(var e=n.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var i=e.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};uO(e,o,o);var a=o.stopColor||e.getAttribute("stop-color")||"#000000",s=o.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=sn(a);l&&l[3]&&(l[3]*=hr(s),a=Xn(l,"rgba"))}t.colorStops.push({offset:r,color:a})}e=e.nextSibling}}function En(n,t){n&&n.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),pe(t.__inheritedStyle,n.__inheritedStyle))}function oI(n){for(var t=Zp(n),e=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);e.push([r,o])}return e}function Sn(n,t,e,i,r){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};n.nodeType===1&&((function(l,u){var c=l.getAttribute("transform");if(c){c=c.replace(/,/g," ");var h=[],d=null;c.replace(B3,function(y,m,x){return h.push(m,x),""});for(var p=h.length-1;p>0;p-=2){var f=h[p],g=h[p-1],v=Zp(f);switch(d=d||pD(),g){case"translate":ci(d,d,[parseFloat(v[0]),parseFloat(v[1]||"0")]);break;case"scale":wf(d,d,[parseFloat(v[0]),parseFloat(v[1]||v[0])]);break;case"rotate":Cr(d,d,-parseFloat(v[0])*Bv,[parseFloat(v[1]||"0"),parseFloat(v[2]||"0")]);break;case"skewX":kn(d,[1,0,Math.tan(parseFloat(v[0])*Bv),1,0,0],d);break;case"skewY":kn(d,[1,Math.tan(parseFloat(v[0])*Bv),0,1,0,0],d);break;case"matrix":d[0]=parseFloat(v[0]),d[1]=parseFloat(v[1]),d[2]=parseFloat(v[2]),d[3]=parseFloat(v[3]),d[4]=parseFloat(v[4]),d[5]=parseFloat(v[5])}}u.setLocalTransform(d)}})(n,t),uO(n,a,s),i||(function(l,u,c){for(var h=0;h<eI.length;h++){var d=eI[h];(p=l.getAttribute(d))!=null&&(u[Yp[d]]=p)}for(h=0;h<tI.length;h++){var p;d=tI[h],(p=l.getAttribute(d))!=null&&(c[Xp[d]]=p)}})(n,a,s)),o.style=o.style||{},a.fill!=null&&(o.style.fill=aI(o,"fill",a.fill,e)),a.stroke!=null&&(o.style.stroke=aI(o,"stroke",a.stroke,e)),k(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(o.style[l]=parseFloat(a[l]))}),k(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(o.style[l]=a[l])}),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=K(Zp(a.lineDash),function(l){return parseFloat(l)})),a.visibility!=="hidden"&&a.visibility!=="collapse"||(o.invisible=!0),a.display==="none"&&(o.ignore=!0)}var E3=/^url\(\s*#(.*?)\)/;function aI(n,t,e,i){var r=e&&e.match(E3);if(!r)return e==="none"&&(e=null),e;var o=Cn(r[1]);i.push([n,t,o])}var z3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Zp(n){return n.match(z3)||[]}var B3=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Bv=Math.PI/180,sI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function uO(n,t,e){var i,r=n.getAttribute("style");if(r)for(sI.lastIndex=0;(i=sI.exec(r))!=null;){var o=i[1],a=oe(Yp,o)?Yp[o]:null;a&&(t[a]=i[2]);var s=oe(Xp,o)?Xp[o]:null;s&&(e[s]=i[2])}}function cO(n,t){var e=t.width/n.width,i=t.height/n.height,r=Math.min(e,i);return{scale:r,x:-(n.x+n.width/2)*r+(t.x+t.width/2),y:-(n.y+n.height/2)*r+(t.y+t.height/2)}}var V3=re(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),G3=(function(){function n(t,e){this.type="geoSVG",this._usedGraphicMap=re(),this._freedGraphics=[],this._mapName=t,this._parsedXML=lO(e)}return n.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=(function(o){var a=[],s=re();return k(o,function(l){if(l.namedFrom==null){var u=new FB(l.name,l.el);a.push(u),s.set(l.name,u)}}),{regions:a,regionsMap:s}})(t.named),i=e.regions,r=e.regionsMap;this._regions=i,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(t){var e,i;try{e=t&&(function(v,y){return new N3().parse(v,y)})(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},Kt((i=e.root)!=null)}catch(v){throw new Error(`Invalid svg format
39
+ `+v.message)}var r=new he;r.add(i),r.isGeoSVGGraphicRoot=!0;var o=e.width,a=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,d=void 0;if(o!=null?(u=0,h=o):s&&(u=s.x,h=s.width),a!=null?(c=0,d=a):s&&(c=s.y,d=s.height),u==null||c==null){var p=i.getBoundingRect();u==null&&(u=p.x,h=p.width),c==null&&(c=p.y,d=p.height)}l=this._boundingRect=new de(u,c,h,d)}if(s){var f=cO(s,l);i.scaleX=i.scaleY=f.scale,i.x=f.x,i.y=f.y}r.setClipPath(new Ae({shape:l.plain()}));var g=[];return k(e.named,function(v){var y;V3.get(v.svgNodeTagLower)!=null&&(g.push(v),(y=v.el).silent=!1,y.isGroup&&y.traverse(function(m){m.silent=!1}))}),{root:r,boundingRect:l,named:g}},n.prototype.useGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,i),i)},n.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);i&&(e.removeKey(t),this._freedGraphics.push(i))},n})();for(Wd=[126,25],R0="\u5357\u6D77\u8BF8\u5C9B",Wr=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Vr=0;Vr<Wr.length;Vr++)for(Ho=0;Ho<Wr[Vr].length;Ho++)Wr[Vr][Ho][0]/=10.5,Wr[Vr][Ho][1]/=-14,Wr[Vr][Ho][0]+=Wd[0],Wr[Vr][Ho][1]+=Wd[1];var Ho,Wd,R0,Wr,Vr,F3={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]},H3=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],W3=(function(){function n(t,e,i){var r;this.type="geoJSON",this._parsedMap=re(),this._mapName=t,this._specialAreas=i,this._geoJSON=te(r=e)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return n.prototype.load=function(t,e){e=e||"name";var i=this._parsedMap.get(e);if(!i){var r=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:r,boundingRect:U3(r)})}var o=re(),a=[];return k(i.regions,function(s){var l=s.name;t&&oe(t,l)&&(s=s.cloneShallow(l=t[l])),a.push(s),o.set(l,s)}),{regions:a,boundingRect:i.boundingRect||new de(0,0,0,0),regionsMap:o}},n.prototype._parseToRegions=function(t){var e,i=this._mapName,r=this._geoJSON;try{e=r?HB(r,t):[]}catch(o){throw new Error(`Invalid geoJson format
40
+ `+o.message)}return(function(o,a){if(o==="china"){for(var s=0;s<a.length;s++)if(a[s].name===R0)return;a.push(new jL(R0,K(Wr,function(l){return{type:"polygon",exterior:l}}),Wd))}})(i,e),k(e,function(o){var a=o.name;(function(l,u){if(l==="china"){var c=F3[u.name];if(c){var h=u.getCenter();h[0]+=c[0]/10.5,h[1]+=-c[1]/14,u.setCenter(h)}}})(i,o),(function(l,u){l==="china"&&u.name==="\u53F0\u6E7E"&&u.geometries.push({type:"polygon",exterior:H3[0]})})(i,o);var s=this._specialAreas&&this._specialAreas[a];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),e},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n})();function U3(n){for(var t,e=0;e<n.length;e++){var i=n[e].getBoundingRect();(t=t||i.clone()).union(i)}return t}var Tc=re(),Y3=function(n,t,e){if(t.svg){var i=new G3(n,t.svg);Tc.set(n,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?e=t.specialAreas:r=t,i=new W3(n,r,e),Tc.set(n,i)}},qp=function(n){return Tc.get(n)},X3=function(n){var t=Tc.get(n);return t&&t.type==="geoJSON"&&t.getMapForUser()},Yx=function(n,t,e){var i=Tc.get(n);if(i)return i.load(t,e)},Xf=(function(n){function t(e,i,r){var o=n.call(this)||this;o.type="view",o.dimensions=["x","y"];var a=o;a.invertY=e,a.lgCt=i,a.lgGeo=r;var s=a.trans=[];return s[0]=zs(),s[1]=zs(),s[2]=zs(),a.mtRaw=[1,0,0,1,0,0],a.mtRawInv=[1,0,0,1,0,0],a.mtOverall=[1,0,0,1,0,0],a.mtOverallInv=[1,0,0,1,0,0],a.zoom=1,o}return G(t,n),t.prototype.getBoundingRect=function(){return hO(null,this)},t.prototype.getViewRect=function(){return Xx(null,this)},t.prototype.getRoamTransform=function(){return ho(this.trans[1])},t.prototype.dataToPoint=function(e,i,r){var o=i?this.mtRaw:this.mtOverall;return r=r||[],o?dt(r,e,o):Yt(r,e)},t.prototype.pointToData=function(e,i,r){r=r||[];var o=this.mtOverallInv;return o?dt(r,e,o):Yt(r,e)},t.prototype.convertToPixel=function(e,i,r){var o=dI(i);return o===this?o.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,i,r){var o=dI(i);return o===this?o.pointToData(r):null},t.prototype.containPoint=function(e){return Ys(Uh,this.dataRect),vD(Uh,Uh,this.mtOverall),EN(Uh,e[0],e[1])},t.dimensions=["x","y"],t})(ji),Uh=Sf();function jp(n,t){return uo(n||[],t.mtOverall)}function Z3(n){return n.zoom}function hO(n,t){return Ys(n||Sf(),t.dataRect)}function Xx(n,t){return Ys(n||Sf(),t.viewRect)}function Cc(n,t,e){return Vi(n||zs(),t.trans[e])}function Zx(n){return!(!n.dataRect||!n.viewRect)}function lI(n,t,e){ho(e,Yh),kn(Yh,Yh,t.mtRawInv),Bf(n,Yh)}var Yh=[1,0,0,1,0,0];function qx(n,t){var e=n;e.centerOption=t.getShallow("center");var i=e.zoomLimit=t.getShallow("scaleLimit"),r=t.getShallow("zoom");e.zoom=Kx(r||1,i)||1,Zx(e)&&jx(e)}function Zf(n,t,e,i,r){var o=n;o.dataRect=new de(t,e,i,r),Zx(o)&&jx(o)}function Kp(n,t,e,i,r){var o=n;o.viewRect=new de(t,e,i,r),Zx(o)&&jx(o)}function jx(n){(function(t){var e=t.dataRect,i=t.viewRect,r=t.trans[0],o=t.invertY;o&&((e=Ys(q3,e)).y=-e.y-e.height),gD(uI,e,i),Bf(r,uI),o&&(r.scaleY=-r.scaleY);var a=ho(r,t.mtRaw);Ln(t.mtRawInv,a)})(n),(function(t){var e=pO(t),i=(function(a,s,l){var u=s.dataRect;if(!l)return!1;var c=s.lgCt;return c?cr(a,ne(l[0],c.w),ne(l[1],c.h)):u&&cr(a,ne(l[0],u.width,u.x),ne(l[1],u.height,u.y)),!0})(Vv,t,t.centerOption)?dt(Vv,Vv,t.mtRaw):e,r=t.zoom,o=t.trans[1];o.x=e[0]-r*i[0],o.y=e[1]-r*i[1],o.scaleX=o.scaleY=r})(n),(function(t){var e=t.trans,i=e[1],r=e[0],o=e[2];dO(o,r,i);var a=ho(o,t.mtOverall),s=Ln(t.mtOverallInv,a);cI(t,o,a,s),cI(t.lgGeo,o,a,s)})(n)}var uI=[1,0,0,1,0,0],q3=Sf(),Vv=[];function cI(n,t,e,i){n&&(Vi(n,t),uo(n.transform||(n.transform=[]),e),uo(n.invTransform||(n.invTransform=[]),i))}function dO(n,t,e){ho(t,hI),ho(e,Xh),kn(Xh,Xh,hI),Bf(n,Xh)}var hI=[1,0,0,1,0,0],Xh=[1,0,0,1,0,0];function dI(n){var t=n.seriesModel;return t?t.coordinateSystem:null}function pO(n){var t=n.viewRect;return Gv[0]=t.x+t.width/2,Gv[1]=t.y+t.height/2,Gv}var Gv=[];function fO(n){return n&&n.type==="view"}function fo(n,t,e,i){var r=e;r.syncBackEl=n,r.syncBackType=t,i?Fe(n,Cc(null,e,t),i):(Cc(n,e,t),n.dirty())}function j3(n,t,e,i){var r=n,o=r.syncBackEl;o?(o.stopAnimation(),(function(a,s,l,u){u===1?dO(a,s.trans[0],l):Vi(a,l)})(Gr,r,o,r.syncBackType)):Vi(Gr,r.trans[2]),lI(Fv,r,Gr),i?(function(a,s,l,u){u.dx!=null&&u.dy!=null&&(a.x+=u.dx,a.y+=u.dy);var c=u.zoom;if(c!=null){var h=pI(s),d=Kx(h*c,l.zoomLimit)/h;a.x-=(u.originX-a.x)*(d-1),a.y-=(u.originY-a.y)*(d-1),a.scaleX*=d,a.scaleY*=d}})(Gr,Fv,r,i):Vi(Gr,Fv),lI(Gr,r,Gr),(function(a,s,l,u){var c=pO(a),h=pI(u),d=ht(h)>1e-6;iu[0]=d?(c[0]-u.x)/h:c[0],iu[1]=d?(c[1]-u.y)/h:c[1],dt(iu,iu,a.mtRawInv);var p=(function(f,g){var v=f.centerOption,y=f.dataRect;return!v||f.lgCt?g.slice():[fI(0,g,v,y),fI(1,g,v,y)]})(a,iu);gI(s,p,h),k(l,function(f){f!==s&&gI(f,p.slice(),h)})})(r,t,e,Gr)}var Gr=zs(),Fv=zs();function gO(n,t,e){var i=$p(t);i&&(j3(i,t,e,n),qx(i,t))}function $p(n){return n.__ownRoamView?n.__ownRoamView():null}function vO(n,t,e,i){e.setUpdatePayload(ex(n));var r=yA(i,t);r&&r.__updateOnOwnRoam&&r.__updateOnOwnRoam(n,t,i)}function pI(n){return n.scaleX}function fI(n,t,e,i){return e&&i&&i[gt[n]]&&te(r=e[n])&&WD(r)?(t[n]-i[_e[n]])/i[gt[n]]*100+"%":t[n];var r}function yO(n,t){return t&&n&&n.getShallow("legacyViewCoordSysCenterBase")?{w:t.getWidth(),h:t.getHeight()}:null}var iu=[];function gI(n,t,e){var i=n.option;i.center=t,i.zoom=e}function Kx(n,t){if(t){var e=t.min||0,i=t.max||1/0;n=Math.max(Math.min(i,n),e)}return n}function mO(n,t){var e=t.getShallow("nodeScaleRatio",!0)||1,i=n;return((i.zoom-1)*e+1)/(i.trans[2].scaleX||1)}function qf(n,t,e,i,r,o,a,s){function l(u){var c=n.mainType,h=ex(pe({type:_O(c,n.subType,gA)},u));s&&(h.componentType=c),h[c+"Id"]=n.id,t.dispatchAction(h)}$p(n)?(e.enable(ae(n.get("roam"),a),{api:t,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:i,isInClip:function(u,c,h){return!r||r.contain(c,h)}}}),e.off("pan").off("zoom").on("pan",function(u){o&&o("pan"),l({dx:u.dx,dy:u.dy})}).on("zoom",function(u){o&&o("zoom"),l({zoom:u.scale,originX:u.originX,originY:u.originY})})):e.disable()}function xO(n){return function(t,e,i){return Hv.copy(n.getBoundingRect()),Hv.applyTransform(n.getComputedTransform()),Hv.contain(e,i)}}var Hv=new de(0,0,0,0);function Wv(n,t,e){var i=_O(t,e,gA);n.registerAction({type:i,event:i,update:"none"},function(r,o,a){o.eachComponent(G1(r,t,e),function(s){gO(r,s),vO(r,s,o,a)})})}function _O(n,t,e){return(n!==Ti?n:t==="map"?"geo":t)+e}function bO(n){return n.zoom!=null}function $x(n,t,e,i,r,o,a){var s=new Xf(null,yO(n.ecModel,t));return Zf(s,e,i,r,o),a?Kp(s,a.x,a.y,a.width,a.height):Kp(s,e,i,r,o),qx(s,n),s}var Jx=["rect","circle","line","ellipse","polygon","polyline","path"],K3=re(Jx),$3=re(Jx.concat(["g"])),J3=re(Jx.concat(["g"])),wO=Me();function Zh(n){var t=n.getItemStyle(),e=n.get("areaColor");return e!=null&&(t.fill=e),t}function vI(n){var t=n.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var SO=(function(){function n(t){var e=this.group=new he,i=this._transformGroup=new he;e.add(i),this.uid=Xa("ec_map_draw"),this._controller=new Ka(t.getZr()),i.add(this._regionsGroup=new he),i.add(this._svgGroup=new he)}return n.prototype.draw=function(t,e,i,r,o){var a=this,s=t.getData&&t.getData();Hs(t)&&e.eachComponent({mainType:"series",subType:"map"},function(g){s||g.getHostGeoModel()!==t||(s=g.getData())});var l,u=t.coordinateSystem,c=u.view,h=this._regionsGroup,d=this._transformGroup,p=!h.childAt(0)||o;u.shouldClip()?(l=Xx(null,c),this.group.setClipPath(new Ae({shape:l.clone()}))):this.group.removeClipPath(),fo(d,1,c,p?null:t);var f=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;u.resourceType==="geoJSON"?this._buildGeoJSON(c,i,u,t,s,f):u.resourceType==="geoSVG"&&this._buildSVG(c,i,u,t,s,f),qf(t,i,this._controller,function(g,v,y){return t.coordinateSystem.containPoint([v,y])},l,function(){a._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(t,h,i,r)},n.prototype.__updateOnOwnRoam=function(t){fo(this._transformGroup,1,t.coordinateSystem.view,null)},n.prototype._buildGeoJSON=function(t,e,i,r,o,a){var s=this._regionsGroupByName=re(),l=re(),u=this._regionsGroup,c=i.projection,h=c&&c.stream,d=ho(Cc(null,t,0));function p(v,y){return y&&(v=y(v)),v&&dt([],v,d)}function f(v){for(var y=[],m=!h&&c&&c.project,x=0;x<v.length;++x){var _=p(v[x],m);_&&y.push(_)}return y}function g(v){return{shape:{points:f(v)}}}u.removeAll(),k(i.regions,function(v){var y=v.name,m=s.get(y),x=l.get(y)||{},_=x.dataIdx,b=x.regionModel;if(!m){m=s.set(y,new he),u.add(m),_=o?o.indexOfName(y):null;var w=(b=Hs(r)?r.getRegionModel(y):o?o.getItemModel(_):null).get("silent",!0);w!=null&&(m.silent=w),l.set(y,{dataIdx:_,regionModel:b})}var S=[],M=[];k(v.geometries,function(C){if(C.type==="polygon"){var D=[C.exterior].concat(C.interiors||[]);h&&(D=wI(D,h)),k(D,function(L){S.push(new Jt(g(L)))})}else{var A=C.points;h&&(A=wI(A,h,!0)),k(A,function(L){M.push(new Wt(g(L)))})}});var I=p(v.getCenter(),c&&c.project);function T(C,D){if(C.length){var A=new Fc({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});m.add(A),yI(e,o,a,A,_,b),mI(r,o,A,y,b,_,I),D&&(vI(A),k(A.states,vI))}}T(S),T(M,!0)}),s.each(function(v,y){var m=l.get(y),x=m.dataIdx,_=m.regionModel;xI(r,o,v,y,_,x),_I(r,o,v,y,_),bI(r,v,y,_)},this)},n.prototype._buildSVG=function(t,e,i,r,o,a){var s=i.map;Cc(this._svgGroup,t,0),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=re(),u=!1;k(this._svgGraphicRecord.named,function(c){var h=c.name,d=c.svgNodeTagLower,p=c.el,f=o?o.indexOfName(h):null,g=r.getRegionModel(h);K3.get(d)!=null&&p instanceof $n&&yI(e,o,a,p,f,g),p instanceof $n&&(p.culling=!0);var v=g.get("silent",!0);v!=null&&(p.silent=v),p.z2EmphasisLift=0,c.namedFrom||(J3.get(d)!=null&&mI(r,o,p,h,g,f,null),xI(r,o,p,h,g,f),_I(r,o,p,h,g),$3.get(d)!=null&&(bI(r,p,h,g)==="self"&&(u=!0),(l.get(h)||l.set(h,[])).push(p)))},this),this._enableBlurEntireSVG(u,r)},n.prototype._enableBlurEntireSVG=function(t,e){if(t&&Hs(e)){var i=e.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(r){if(!r.isGroup){Ia(r);var o=r.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),r.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},n.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var i=e.coordinateSystem;if(i.resourceType==="geoJSON"){var r=this._regionsGroupByName;if(r){var o=r.get(t);return o?[o]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},n.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},n.prototype._useSVG=function(t){var e=qp(t);if(e&&e.type==="geoSVG"){var i=e.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=t}},n.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=qp(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=wO(e).ignore)})},n.prototype._updateMapSelectHandler=function(t,e,i,r){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){o._mouseDownFlag=!0}),e.on("click",function(a){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},n})();function yI(n,t,e,i,r,o){var a=o.getModel("itemStyle"),s=o.getModel(["emphasis","itemStyle"]),l=o.getModel(["blur","itemStyle"]),u=o.getModel(["select","itemStyle"]),c=Zh(a),h=Zh(s),d=Zh(u),p=Zh(l);if(t){var f=t.getItemVisual(r,"style"),g=t.getItemVisual(r,"decal");e&&f.fill&&(c.fill=f.fill),g&&(c.decal=Js(g,n))}i.setStyle(c),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=h,i.ensureState("select").style=d,i.ensureState("blur").style=p,Ia(i)}function mI(n,t,e,i,r,o,a){var s=t&&isNaN(t.get(t.mapDimension("value"),o)),l=t&&t.getItemLayout(o);if(Hs(n)||s||l&&l.showLabel){var u=Hs(n)?i:o,c=void 0;(!t||o>=0)&&(c=n);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Et(e,Dt(r),{labelFetcher:c,labelDataIndex:u,defaultText:i},h);var d=e.getTextContent();if(d&&(wO(d).ignore=d.ignore,e.textConfig&&a)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(a[0]-p.x)/p.width*100+"%",(a[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function xI(n,t,e,i,r,o){t?t.setItemGraphicEl(o,e):me(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:i,region:r&&r.option||{}}}function _I(n,t,e,i,r){t||Ar({el:e,componentModel:n,itemName:i,itemTooltipOption:r.get("tooltip")})}function bI(n,t,e,i){t.highDownSilentOnTouch=!!n.get("selectedMode");var r=i.getModel("emphasis"),o=r.get("focus");return at(t,o,r.get("blurScope"),r.get("disabled")),Hs(n)&&(function(a,s,l){var u=me(a);u.componentMainType=s.mainType,u.componentIndex=s.componentIndex,u.componentHighDownName=l})(t,n,e),o}function wI(n,t,e){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),k(n,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),r}function Hs(n){return n.mainType==="geo"}var Na="map",Q3=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.getTooltipPosition=function(i){if(i!=null){var r=this.getData().getName(i),o=this.coordinateSystem,a=o.getRegion(r);return a&&o.dataToPoint(a.getCenter())}},e}return G(t,n),t.prototype.getInitialData=function(e){for(var i=Dl(this,{coordDimensions:["value"],encodeDefaulter:Ce(px,this)}),r=re(),o=[],a=0,s=i.count();a<s;a++){var l=i.getName(a);r.set(l,a)}return k(Yx(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(u){var c,h=u.name,d=r.get(h),p=u.properties&&u.properties.echartsStyle;d==null?(c={name:h},o.push(c)):c=i.getRawDataItem(d),p&&Se(c,p)}),i.appendData(o),i},t.prototype.getHostGeoModel=function(){if(hk(this).kind!==2)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var i=this.getData();return i.get(i.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var i=this.getData();return i.getItemModel(i.indexOfName(e))},t.prototype.formatTooltip=function(e,i,r){var o=this.getData(),a=this.getRawValue(e),s=o.getName(e),l=[];return k(this.seriesGroup.f,function(u){var c=u.originalData.indexOfName(s),h=o.mapDimension("value");isNaN(u.originalData.get(h,c))||l.push(u.name)}),Mt("section",{header:l.join(", "),noHeader:!l.length,blocks:[Mt("nameValue",{name:s,value:a})]})},t.prototype.getLegendIcon=function(e){var i=e.icon||"roundRect",r=bt(i,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return r.setStyle(e.itemStyle),r.style.stroke="none",i.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=H.color.neutral00,r.style.lineWidth=2),r},t.prototype.__ownRoamView=function(){return Jp(this)?this.coordinateSystem.view:null},t.type="series."+Na,t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:H.color.tertiary},itemStyle:{borderWidth:.5,borderColor:H.color.border,areaColor:H.color.background},emphasis:{label:{show:!0,color:H.color.primary},itemStyle:{areaColor:H.color.highlight}},select:{label:{show:!0,color:H.color.primary},itemStyle:{color:H.color.highlight}},nameProperty:"name"},t})(je);function MO(n){return n.indexOf("i")===0}function Jp(n){return Dc(n.seriesGroup)===n&&!n.getHostGeoModel()}function Dc(n){return n.f[0]}function Qx(n,t){var e={};return n.eachRawSeriesByType(Na,function(i){var r=i.getHostGeoModel(),o=r?"o"+r.id:"i"+i.getMapType(),a=e[o]=e[o]||{f:[],r:[]};n.isSeriesFiltered(i)||t||a.f.push(i),a.r.push(i)}),e}var eG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=Na,e}return G(t,n),t.prototype.render=function(e,i,r,o){if(!o||o.type!=="mapToggleSelect"||o.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){var s=this._mapDraw;s&&o&&o.type==="geoRoam"&&s.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===e.id?s&&a.add(s.group):Jp(e)?(s=s||(this._mapDraw=new SO(r)),a.add(s.group),s.draw(e,i,r,this,o)):this._clearMapDraw(),e.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(e)}}},t.prototype.__updateOnOwnRoam=function(e,i,r){var o=this._mapDraw;Jp(i)&&o&&o.__updateOnOwnRoam(i)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),function(o,a){if(!isNaN(o)){var s=i.getItemLayout(a);if(s&&s.point){var l=s.point,u=s.offset,c=new $i({style:{fill:e.getData().getVisual("style").fill},shape:{cx:l[0]+9*u,cy:l[1],r:3},silent:!0,z2:8+(u?0:11)});if(!u){var h=Dc(e.seriesGroup).getData(),d=i.getName(a),p=h.indexOfName(d),f=i.getItemModel(a),g=f.getModel("label"),v=h.getItemGraphicEl(p);Et(c,Dt(f),{labelFetcher:{getFormattedLabel:function(y,m){return e.getFormattedLabel(p,m)}},defaultText:d}),c.disableLabelAnimation=!0,g.get("position")||c.setTextConfig({position:"bottom"}),v.onHoverStateChange=function(y){hp(c,y)}}r.add(c)}}})},t.type=Na,t})(Ze),tG={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},IO=["lng","lat"],SI=(function(n){function t(e,i,r){var o=n.call(this)||this;o.dimensions=IO,o.type="geo",o._nameCoordMap=re(),o.name=e;var a=r.projection,s=Yx(i,r.nameMap,r.nameProperty),l=qp(i),u=(o.resourceType=l?l.type:null,o.regions=s.regions),c=tG[l.type];o._clip=r.clip;var h,d=!a&&c.invertLongitute;if(o.view=new Xf(d,yO(r.ecModel,r.api),o),o.map=i,o._regionsMap=s.regionsMap,o.regions=s.regions,o.projection=a,a)for(var p=0;p<u.length;p++){var f=u[p].getBoundingRect(a);(h=h||f.clone()).union(f)}else h=s.boundingRect;return Zf(o.view,h.x,h.y,h.width,h.height),o.aspectScale=a?1:ae(r.aspectScale,c.aspectScale),o}return G(t,n),t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var i=this.regions,r=0;r<i.length;r++){var o=i[r];if(o.type==="geoJSON"&&o.contain(e))return i[r]}},t.prototype.addGeoCoord=function(e,i){this._nameCoordMap.set(e,i)},t.prototype.getGeoCoord=function(e){var i=this._regionsMap.get(e);return this._nameCoordMap.get(e)||i&&i.getCenter()},t.prototype.dataToPoint=function(e,i,r){if(te(e)&&(e=this.getGeoCoord(e)),e){var o=this.projection;return o&&(e=o.project(e)),e&&this.view.dataToPoint(e,i,r)}},t.prototype.pointToData=function(e,i,r){var o=this.projection;return o&&(e=o.unproject(e)),e&&this.view.pointToData(e,r)},t.prototype.convertToPixel=function(e,i,r){var o=MI(i);return o===this?o.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,i,r){var o=MI(i);return o===this?o.pointToData(r):null},t.prototype.containPoint=function(e){return this.view.containPoint(e)},t.prototype.getArea=function(e){e=e||0;var i=Xx(null,this.view);return i.x-=e,i.y-=e,i.width+=2*e,i.height+=2*e,i},t.prototype.shouldClip=function(){return this._clip},t.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},t.prototype.getViewRect=function(){return this.view.getViewRect()},t.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},t})(ji);function MI(n){var t=n.geoModel,e=n.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",pt).models[0]||{}).coordinateSystem:null}function II(n,t){var e=this.view,i=n.get("boundingCoords");if(i!=null){var r=i[0],o=i[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])){var a=this.projection;if(a){var s=r[0],l=r[1],u=o[0],c=o[1];r=[1/0,1/0],o=[-1/0,-1/0];var h=function(w,S,M,I){for(var T=M-w,C=I-S,D=0;D<=100;D++){var A=D/100,L=a.project([w+T*A,S+C*A]);lr(r,r,L),ur(o,o,L)}};h(s,l,u,l),h(u,l,u,c),h(u,c,s,c),h(s,c,u,l)}Zf(e,r[0],r[1],o[0]-r[0],o[1]-r[1])}}var d,p,f,g=e.getBoundingRect(),v=n.get("layoutCenter"),y=n.get("layoutSize"),m=kt(n,t).refContainer,x=g.width/g.height*this.aspectScale,_=!1;if(v&&y&&(d=[ne(v[0],m.width)+m.x,ne(v[1],m.height)+m.y],p=ne(y,Math.min(m.width,m.height)),isNaN(d[0])||isNaN(d[1])||isNaN(p)||(_=!0)),_)f={},x>1?(f.width=p,f.height=p/x):(f.height=p,f.width=p*x),f.y=d[1]-f.height/2,f.x=d[0]-f.width/2;else{var b=n.getBoxLayoutParams();b.aspect=x,f=vk(n,f=ot(b,m),x)}Kp(e,f.x,f.y,f.width,f.height),qx(e,n)}var nG=(function(){function n(){this.dimensions=IO}return n.prototype.create=function(t,e){var i=[];function r(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection"),clip:o.getShallow("clip",!0)}}return t.eachComponent("geo",function(o,a){var s=o.get("map"),l=new SI(s+a,s,X({nameMap:o.get("nameMap"),api:e,ecModel:t},r(o)));i.push(l),o.coordinateSystem=l,l.model=o,l.resize=II,l.resize(o,e)}),t.eachSeries(function(o){Wc({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var a=o.subType===Na?o.getHostGeoModel():o.getReferringComponents("geo",pt).models[0];return a&&a.coordinateSystem},allowNotFound:!0})}),k(Qx(t,!0),function(o,a){if(MO(a)){var s=o.r[0],l=[];k(o.r,function(d){l.push(d.get("nameMap")),d.seriesGroup=null});var u,c=a.slice(1),h=new SI(c,c,X({nameMap:_f(l),api:e,ecModel:t},r(s)));k(o.r,function(d){u=ae(u,d.get("scaleLimit"))}),i.push(h),h.resize=II,h.resize(s,e),k(o.r,function(d){d.coordinateSystem=h,(function(p,f){k(f.get("geoCoord"),function(g,v){p.addGeoCoord(v,g)})})(h,d)})}}),i},n.prototype.getFilledRegions=function(t,e,i,r){for(var o=(t||[]).slice(),a=re(),s=0;s<o.length;s++)a.set(o[s].name,o[s]);return k(Yx(e,i,r).regions,function(l){var u=l.name,c=a.get(u),h=l.properties&&l.properties.echartsStyle;c||(c={name:u},o.push(c)),h&&Se(c,h)}),o},n})(),TO=new nG,iG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r);var o=qp(e.map);if(o&&o.type==="geoJSON"){var a=e.itemStyle=e.itemStyle||{};"color"in a||(a.color=e.defaultItemStyleColor||H.color.backgroundTint)}ba(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,i=this.option;i.regions=TO.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var r={};this._optionModelMap=Kn(i.regions||[],function(o,a){var s=a.name;return s&&(o.set(s,new Oe(a,e,e.ecModel)),a.selected&&(r[s]=!0)),o},re()),i.selectedMap||(i.selectedMap=r)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Oe(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,i){var r=this.getRegionModel(e),o=i==="normal"?r.get(["label","formatter"]):r.get(["emphasis","label","formatter"]),a={name:e};return le(o)?(a.status=i,o(a)):te(o)?o.replace("{a}",e??""):void 0},t.prototype.select=function(e){var i=this.option,r=i.selectedMode;r&&(r!=="multiple"&&(i.selectedMap=null),(i.selectedMap||(i.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var i=this.option.selectedMap;i&&(i[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var i=this.option.selectedMap;return!(!i||!i[e])},t.prototype.__ownRoamView=function(){return this.coordinateSystem.view},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:H.color.tertiary},itemStyle:{borderWidth:.5,borderColor:H.color.border},emphasis:{label:{show:!0,color:H.color.primary},itemStyle:{color:H.color.highlight}},select:{label:{show:!0,color:H.color.primary},itemStyle:{color:H.color.highlight}},regions:[]},t})(ke),rG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return G(t,n),t.prototype.init=function(e,i){this._api=i},t.prototype.render=function(e,i,r,o){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new SO(r));var a=this._mapDraw;a.draw(e,i,r,this,o),a.group.on("click",this._handleRegionClick,this),a.group.silent=e.get("silent"),this.group.add(a.group),this.updateSelectStatus(e,i,r)},t.prototype.__updateOnOwnRoam=function(e,i,r){var o=this._mapDraw;o&&o.__updateOnOwnRoam(i)},t.prototype._handleRegionClick=function(e){var i;oa(e.target,function(r){return(i=me(r).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},t.prototype.updateSelectStatus=function(e,i,r){var o=this;this._mapDraw.group.traverse(function(a){var s=me(a).eventData;if(s)return o._model.isSelected(s.name)?r.enterSelect(a):r.leaveSelect(a),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t})(et);function oG(n,t,e){Y3(n,t,e)}function TI(n){function t(e,i){i.update="geo:updateSelectStatus",n.registerAction(i,function(r,o){var a={},s=[];return o.eachComponent({mainType:"geo",query:r},function(l){l[e](r.name),k(l.coordinateSystem.regions,function(c){a[c.name]=l.isSelected(c.name)||!1});var u=[];k(a,function(c,h){a[h]&&u.push(h)}),s.push({geoIndex:l.componentIndex,name:u})}),{selected:a,allSelected:s,name:r.name}})}n.registerCoordinateSystem("geo",TO),n.registerComponentModel(iG),n.registerComponentView(rG),n.registerImpl("registerMap",oG),n.registerImpl("getMap",function(e){return X3(e)}),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,i,r){var o=e.componentType||(e.geoId!=null||e.geoName!=null||e.geoIndex!=null?"geo":Ti),a=o===Ti;if(o==="geo"||a){var s=a?"map":null;i.eachComponent(G1(e,o,s),function(l){a&&!Jp(l)||(gO(e,l,a?l.seriesGroup.r:null),vO(e,l,i,r))})}})}var aG=At(Na,function(n){k(Qx(n),function(t,e){if(Dc(t)&&MO(e)){var i={};k(t.f,function(o){var a=o.coordinateSystem,s=o.originalData;o.get("showLegendSymbol")&&n.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var c=s.getName(u),h=a.getRegion(c);if(h&&!isNaN(l)){var d=i[c]||0,p=a.dataToPoint(h.getCenter());i[c]=d+1,s.setItemLayout(u,{point:p,offset:d})}})});var r=Dc(t).getData();r.each(function(o){var a=r.getName(o),s=r.getItemLayout(o)||{};s.showLabel=!i[a],r.setItemLayout(o,s)})}})}),sG=At(Na,function(n){k(Qx(n),function(t){var e=Dc(t);if(e){var i,r,o,a=(i=K(t.f,function(s){return s.getData()}),r=e.get("mapValueCalculation"),o={},k(i,function(s){s.each(s.mapDimension("value"),function(l,u){var c="ec-"+s.getName(u);o[c]=o[c]||[],isNaN(l)||o[c].push(l)})}),i[0].map(i[0].mapDimension("value"),function(s,l){for(var u="ec-"+i[0].getName(l),c=0,h=1/0,d=-1/0,p=o[u].length,f=0;f<p;f++)h=Math.min(h,o[u][f]),d=Math.max(d,o[u][f]),c+=o[u][f];return p===0?NaN:r==="min"?h:r==="max"?d:r==="average"?c/p:c}));k(t.f,function(s){s.seriesGroup=t,s.originalData=s.getData(),s.setData(a.cloneShallow())})}})});function lG(n,t){var e=n.isExpand?n.children:[],i=n.parentNode.children,r=n.hierNode.i?i[n.hierNode.i-1]:null;if(e.length){(function(a){for(var s=a.children,l=s.length,u=0,c=0;--l>=0;){var h=s[l];h.hierNode.prelim+=u,h.hierNode.modifier+=u,c+=h.hierNode.change,u+=h.hierNode.shift+c}})(n);var o=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;r?(n.hierNode.prelim=r.hierNode.prelim+t(n,r),n.hierNode.modifier=n.hierNode.prelim-o):n.hierNode.prelim=o}else r&&(n.hierNode.prelim=r.hierNode.prelim+t(n,r));n.parentNode.hierNode.defaultAncestor=(function(a,s,l,u){if(s){for(var c=a,h=a,d=h.parentNode.children[0],p=s,f=c.hierNode.modifier,g=h.hierNode.modifier,v=d.hierNode.modifier,y=p.hierNode.modifier;p=Uv(p),h=Yv(h),p&&h;){c=Uv(c),d=Yv(d),c.hierNode.ancestor=a;var m=p.hierNode.prelim+y-h.hierNode.prelim-g+u(p,h);m>0&&(hG(cG(p,a,l),a,m),g+=m,f+=m),y+=p.hierNode.modifier,g+=h.hierNode.modifier,f+=c.hierNode.modifier,v+=d.hierNode.modifier}p&&!Uv(c)&&(c.hierNode.thread=p,c.hierNode.modifier+=y-f),h&&!Yv(d)&&(d.hierNode.thread=h,d.hierNode.modifier+=g-v,l=a)}return l})(n,r,n.parentNode.hierNode.defaultAncestor||i[0],t)}function uG(n){var t=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:t},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function CI(n){return arguments.length?n:dG}function Tu(n,t){return n-=Math.PI/2,{x:t*Math.cos(n),y:t*Math.sin(n)}}function Uv(n){var t=n.children;return t.length&&n.isExpand?t[t.length-1]:n.hierNode.thread}function Yv(n){var t=n.children;return t.length&&n.isExpand?t[0]:n.hierNode.thread}function cG(n,t,e){return n.hierNode.ancestor.parentNode===t.parentNode?n.hierNode.ancestor:e}function hG(n,t,e){var i=e/(t.hierNode.i-n.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,n.hierNode.change+=i}function dG(n,t){return n.parentNode===t.parentNode?1:2}var jn=Me();function CO(n){var t=n.mainData,e=n.datas;e||(e={main:t},n.datasAttr={main:"data"}),n.datas=n.mainData=null,DO(t,e,n),k(e,function(i){k(t.TRANSFERABLE_METHODS,function(r){i.wrapMethod(r,Ce(pG,n))})}),t.wrapMethod("cloneShallow",Ce(gG,n)),k(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,Ce(fG,n))}),Kt(e[t.dataType]===t)}function pG(n,t){if(jn(i=this).mainData===i){var e=X({},jn(this).datas);e[this.dataType]=t,DO(t,e,n)}else e_(t,this.dataType,jn(this).mainData,n);var i;return t}function fG(n,t){return n.struct&&n.struct.update(),t}function gG(n,t){return k(jn(t).datas,function(e,i){e!==t&&e_(e.cloneShallow(),i,t,n)}),t}function vG(n){var t=jn(this).mainData;return n==null||t==null?t:jn(t).datas[n]}function yG(){var n=jn(this).mainData;return n==null?[{data:n}]:K(Re(jn(n).datas),function(t){return{type:t,data:jn(n).datas[t]}})}function DO(n,t,e){jn(n).datas={},k(t,function(i,r){e_(i,r,n,e)})}function e_(n,t,e,i){jn(e).datas[t]=n,jn(n).mainData=e,n.dataType=t,i.struct&&(n[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=n),n.getLinkedData=vG,n.getLinkedDataAll=yG}var mG=(function(){function n(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(t,e,i){le(t)&&(i=e,e=t,t=null),te(t=t||{})&&(t={order:t});var r,o=t.order||"preorder",a=this[t.attr||"children"];o==="preorder"&&(r=e.call(i,this));for(var s=0;!r&&s<a.length;s++)a[s].eachNode(t,e,i);o==="postorder"&&e.call(i,this)},n.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var i=0;i<this.children.length;i++){var r=this.children[i];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},n.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,r=i.length;e<r;e++){var o=i[e].getNodeById(t);if(o)return o}},n.prototype.contains=function(t){if(t===this)return!0;for(var e=0,i=this.children,r=i.length;e<r;e++){var o=i[e].contains(t);if(o)return o}},n.prototype.getAncestors=function(t){for(var e=[],i=t?this:this.parentNode;i;)e.push(i),i=i.parentNode;return e.reverse(),e},n.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},n.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},n.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},n.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},n.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},n.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},n.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},n})(),t_=(function(){function n(t){this.type="tree",this._nodes=[],this.hostModel=t}return n.prototype.eachNode=function(t,e,i){this.root.eachNode(t,e,i)},n.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},n.prototype.getNodeById=function(t){return this.root.getNodeById(t)},n.prototype.update=function(){for(var t=this.data,e=this._nodes,i=0,r=e.length;i<r;i++)e[i].dataIndex=-1;for(i=0,r=t.count();i<r;i++)e[t.getRawIndex(i)].dataIndex=i},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(t,e,i){var r=new n(e),o=[],a=1;(function u(c,h){var d=c.value;a=Math.max(a,q(d)?d.length:1),o.push(c);var p=new mG(Tt(c.name,""),r);h?(function(v,y){var m=y.children;v.parentNode!==y&&(m.push(v),v.parentNode=y)})(p,h):r.root=p,r._nodes.push(p);var f=c.children;if(f)for(var g=0;g<f.length;g++)u(f[g],p)})(t),r.root.updateDepthAndHeight(0);var s=Ml(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new fn(s,e);return l.initData(o),i&&i(l),CO({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},n})();function ju(n,t,e){if(n&&be(t,n.type)>=0){var i=e.getData().tree.root,r=n.targetNode;if(te(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=n.targetNodeId;if(o!=null&&(r=i.getNodeById(o)))return{node:r}}}function AO(n){for(var t=[];n;)(n=n.parentNode)&&t.push(n);return t.reverse()}function N0(n,t){return be(AO(n),t)>=0}function jf(n,t){for(var e=[];n;){var i=n.dataIndex;e.push({name:n.name,dataIndex:i,value:t.getRawValue(i)}),n=n.parentNode}return e.reverse(),e}var Ea="tree",xG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return G(t,n),t.prototype.getInitialData=function(e){var i={name:e.name,children:e.data},r=e.leaves||{},o=new Oe(r,this,this.ecModel),a=t_.createTree(i,this,function(u){u.wrapMethod("getItemModel",function(c,h){var d=a.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(c.parentModel=o),c})}),s=0;a.eachNode("preorder",function(u){u.depth>s&&(s=u.depth)});var l=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return a.root.eachNode("preorder",function(u){var c=u.hostTree.data.getRawDataItem(u.dataIndex);u.isExpand=c&&c.collapsed!=null?!c.collapsed:u.depth<=l}),a.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.formatTooltip=function(e,i,r){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return Mt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return i.treeAncestors=jf(r,this),i.collapsed=!r.isExpand,i},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+Ea,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:H.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(je),_G=function(){this.parentPoint=[],this.childPoints=[]},bG=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new _G},t.prototype.buildPath=function(e,i){var r=i.childPoints,o=r.length,a=i.parentPoint,s=r[0],l=r[o-1];if(o===1)return e.moveTo(a[0],a[1]),void e.lineTo(s[0],s[1]);var u=i.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,d=ne(i.forkPosition,1),p=[];p[c]=a[c],p[h]=a[h]+(l[h]-a[h])*d,e.moveTo(a[0],a[1]),e.lineTo(p[0],p[1]),e.moveTo(s[0],s[1]),p[c]=s[c],e.lineTo(p[0],p[1]),p[c]=l[c],e.lineTo(p[0],p[1]),e.lineTo(l[0],l[1]);for(var f=1;f<o-1;f++){var g=r[f];e.moveTo(g[0],g[1]),p[c]=g[c],e.lineTo(p[0],p[1])}},t})(Le),wG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=Ea,e._mainGroup=new he,e}return G(t,n),t.prototype.init=function(e,i){this._controller=new Ka(i.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,i,r){var o=e.getData(),a=e.layoutInfo,s=this._mainGroup;e.get("layout")==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(e,r),qf(e,r,this._controller,xO(this.group),null);var l=this._data;o.diff(l).add(function(u){DI(o,u)&&AI(o,u,null,s,e)}).update(function(u,c){var h=l.getItemGraphicEl(c);DI(o,u)?AI(o,u,h,s,e):h&&LI(l,c,h,s,e)}).remove(function(u){var c=l.getItemGraphicEl(u);c&&LI(l,u,c,s,e)}).execute(),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(u,c){u.off("click").on("click",function(){r.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:c})})}),this._data=o,this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,i,r){fo(this.group,2,i.coordinateSystem,null),bO(e)&&this._updateNodeAndLinkScale(i)},t.prototype._updateViewCoordSys=function(e,i){var r=e.getData(),o=[];r.each(function(h){var d=r.getItemLayout(h);!d||isNaN(d.x)||isNaN(d.y)||o.push([+d.x,+d.y])});var a=[],s=[];Pf(o,a,s);var l=this._min,u=this._max;s[0]-a[0]===0&&(a[0]=l?l[0]:a[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-a[1]===0&&(a[1]=l?l[1]:a[1]-1,s[1]=u?u[1]:s[1]+1);var c=e.coordinateSystem=$x(e,i,a[0],a[1],s[0]-a[0],s[1]-a[1]);fo(this.group,2,c,this._firstRender?null:e),this._min=a,this._max=s},t.prototype._updateNodeAndLinkScale=function(e){var i=e.getData(),r=mO(e.coordinateSystem,e);i.eachItemGraphicEl(function(o,a){o.setSymbolScale(r)})},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=Ea,t})(Ze);function DI(n,t){var e=n.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function AI(n,t,e,i,r){var o=!e,a=n.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=a.isExpand===!1&&a.children.length!==0?l:H.color.neutral00,c=n.tree.root,h=a.parentNode===c?a:a.parentNode||a,d=n.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?((e=new qc(n,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,e.y=f.y):e.updateData(n,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=g.rawX,e.__radialRawY=g.rawY,i.add(e),n.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,Fe(e,{x:g.x,y:g.y},r);var v=e.getSymbolPath();if(r.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),x=y.children.length,_=void 0,b=void 0;if(g.x===m.x&&a.isExpand===!0&&y.children.length){var w={x:(y.children[0].getLayout().x+y.children[x-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[x-1].getLayout().y)/2};(_=Math.atan2(w.y-m.y,w.x-m.x))<0&&(_=2*Math.PI+_),(b=w.x<m.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-m.y,g.x-m.x))<0&&(_=2*Math.PI+_),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(b=g.x<m.x)&&(_-=Math.PI):(b=g.x>m.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=I*(Math.PI/180),C=v.getTextContent();C&&(v.setTextConfig({position:M.get("position")||S,rotation:I==null?-_:T,origin:"center"}),C.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),A=D==="relative"?Us(a.getAncestorsIndices(),a.getDescendantIndices()):D==="ancestor"?a.getAncestorsIndices():D==="descendant"?a.getDescendantIndices():null;A&&(me(e).focus=A),(function(L,P,E,O,N,R,z,B){var V=P.getModel(),W=L.get("edgeShape"),U=L.get("layout"),F=L.getOrient(),Q=L.get(["lineStyle","curveness"]),Z=L.get("edgeForkPosition"),Y=V.getModel("lineStyle").getLineStyle(),J=O.__edge;if(W==="curve")P.parentNode&&P.parentNode!==E&&(J||(J=O.__edge=new gl({shape:E0(U,F,Q,N,N)})),Fe(J,{shape:E0(U,F,Q,R,z)},L));else if(W==="polyline"&&U==="orthogonal"&&P!==E&&P.children&&P.children.length!==0&&P.isExpand===!0){for(var $=P.children,j=[],ee=0;ee<$.length;ee++){var ue=$[ee].getLayout();j.push([ue.x,ue.y])}J||(J=O.__edge=new bG({shape:{parentPoint:[z.x,z.y],childPoints:[[z.x,z.y]],orient:F,forkPosition:Z}})),Fe(J,{shape:{parentPoint:[z.x,z.y],childPoints:j}},L)}J&&(W!=="polyline"||P.isExpand)&&(J.useStyle(pe({strokeNoScale:!0,fill:null},Y)),Ct(J,V,"lineStyle"),Ia(J),B.add(J))})(r,a,c,e,f,p,g,i),e.__edge&&(e.onHoverStateChange=function(L){if(L!=="blur"){var P=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex);P&&P.hoverState===1||hp(e.__edge,L)}})}function kI(n,t,e,i,r){var o=kO(t.tree.root,n),a=o.source,s=o.sourceLayout,l=t.getItemGraphicEl(n.dataIndex);if(l){var u=t.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(a.isExpand===!1||a.children.length===1?u:void 0),h=i.get("edgeShape"),d=i.get("layout"),p=i.get("orient"),f=i.get(["lineStyle","curveness"]);c&&(h==="curve"?po(c,{shape:E0(d,p,f,s,s),style:{opacity:0}},i,{cb:function(){e.remove(c)},removeOpt:r}):h==="polyline"&&i.get("layout")==="orthogonal"&&po(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){e.remove(c)},removeOpt:r}))}}function kO(n,t){for(var e,i=t.parentNode===n?t:t.parentNode||t;(e=i.getLayout())==null;)i=i.parentNode===n?i:i.parentNode||i;return{source:i,sourceLayout:e}}function LI(n,t,e,i,r){var o=n.tree.getNodeByDataIndex(t),a=kO(n.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};po(e,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(e),n.setItemGraphicEl(t,null)},removeOpt:s}),e.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:s}),k(o.children,function(l){kI(l,n,i,r,s)}),kI(o,n,i,r,s)}function E0(n,t,e,i,r){var o,a,s,l,u,c,h,d;if(n==="radial"){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var p=Tu(u,h),f=Tu(u,h+(d-h)*e),g=Tu(c,d+(h-d)*e),v=Tu(c,d);return{x1:p.x||0,y1:p.y||0,x2:v.x||0,y2:v.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,t!=="LR"&&t!=="RL"||(o=u+(c-u)*e,a=h,s=c+(u-c)*e,l=d),t!=="TB"&&t!=="BT"||(o=u,a=h+(d-h)*e,s=c,l=d+(h-d)*e),{x1:u,y1:h,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}function ru(n,t){for(var e,i=[n];e=i.pop();)if(t(e),e.isExpand){var r=e.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function SG(n,t){n.eachSeriesByType("tree",function(e){(function(i,r){var o=kt(i,r).refContainer,a=ot(i.getBoxLayoutParams(),o);i.layoutInfo=a;var s=i.get("layout"),l=0,u=0,c=null;s==="radial"?(l=2*Math.PI,u=Math.min(a.height,a.width)/2,c=CI(function(S,M){return(S.parentNode===M.parentNode?1:2)/S.depth})):(l=a.width,u=a.height,c=CI());var h=i.getData().tree.root,d=h.children[0];if(d){(function(S){var M=S;M.hierNode={defaultAncestor:null,ancestor:M,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var I,T,C=[M];I=C.pop();)if(T=I.children,I.isExpand&&T.length)for(var D=T.length-1;D>=0;D--){var A=T[D];A.hierNode={defaultAncestor:null,ancestor:A,prelim:0,modifier:0,change:0,shift:0,i:D,thread:null},C.push(A)}})(h),(function(S,M,I){for(var T,C=[S],D=[];T=C.pop();)if(D.push(T),T.isExpand){var A=T.children;if(A.length)for(var L=0;L<A.length;L++)C.push(A[L])}for(;T=D.pop();)M(T,I)})(d,lG,c),h.hierNode.modifier=-d.hierNode.prelim,ru(d,uG);var p=d,f=d,g=d;ru(d,function(S){var M=S.getLayout().x;M<p.getLayout().x&&(p=S),M>f.getLayout().x&&(f=S),S.depth>g.depth&&(g=S)});var v=p===f?1:c(p,f)/2,y=v-p.getLayout().x,m=0,x=0,_=0,b=0;if(s==="radial")m=l/(f.getLayout().x+v+y),x=u/(g.depth-1||1),ru(d,function(S){_=(S.getLayout().x+y)*m,b=(S.depth-1)*x;var M=Tu(_,b);S.setLayout({x:M.x,y:M.y,rawX:_,rawY:b},!0)});else{var w=i.getOrient();w==="RL"||w==="LR"?(x=u/(f.getLayout().x+v+y),m=l/(g.depth-1||1),ru(d,function(S){b=(S.getLayout().x+y)*x,_=w==="LR"?(S.depth-1)*m:l-(S.depth-1)*m,S.setLayout({x:_,y:b},!0)})):w!=="TB"&&w!=="BT"||(m=l/(f.getLayout().x+v+y),x=u/(g.depth-1||1),ru(d,function(S){_=(S.getLayout().x+y)*m,b=w==="TB"?(S.depth-1)*x:u-(S.depth-1)*x,S.setLayout({x:_,y:b},!0)}))}}})(e,t)})}var MG=At(Ea,function(n){n.eachSeriesByType(Ea,function(t){var e=t.getData();e.tree.eachNode(function(i){var r=i.getModel().getModel("itemStyle").getItemStyle();X(e.ensureUniqueItemVisual(i.dataIndex,"style"),r)})})}),PI=["treemapZoomToNode","treemapRender","treemapMove"];function LO(n){var t=n.getData().tree,e={};t.eachNode(function(i){for(var r=i;r&&r.depth>1;)r=r.parentNode;var o=Ym(n.ecModel,r.name||r.dataIndex+"",e);i.setVisual("decal",o)})}var IG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return G(t,n),t.prototype.getInitialData=function(e,i){var r={name:e.name,children:e.data};PO(r);var o=e.levels||[],a=this.designatedVisualItemStyle={},s=new Oe({itemStyle:a},this,i);o=e.levels=(function(c,h){var d,p,f=$e(h.get("color")),g=$e(h.get(["aria","decal","decals"]));if(f){c=c||[],k(c,function(y){var m=new Oe(y),x=m.get("color"),_=m.get("decal");(m.get(["itemStyle","color"])||x&&x!=="none")&&(d=!0),(m.get(["itemStyle","decal"])||_&&_!=="none")&&(p=!0)});var v=c[0]||(c[0]={});return d||(v.color=f.slice()),!p&&g&&(v.decal=g.slice()),c}})(o,i);var l=K(o||[],function(c){return new Oe(c,s,i)},this),u=t_.createTree(r,this,function(c){c.wrapMethod("getItemModel",function(h,d){var p=u.getNodeByDataIndex(d),f=p?l[p.depth]:null;return h.parentModel=f||s,h})});return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,i,r){var o=this.getData(),a=this.getRawValue(e);return Mt("nameValue",{name:o.getName(e),value:a})},t.prototype.getDataParams=function(e){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return i.treeAncestors=jf(r,this),i.treePathInfo=i.treeAncestors,i},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},X(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var i=this._idIndexMap;i||(i=this._idIndexMap=re(),this._idIndexMapCount=0);var r=i.get(e);return r==null&&i.set(e,r=this._idIndexMapCount++),r},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var i=this.getRawData().tree.root;e&&(e===i||i.contains(e))||(this._viewRoot=i)},t.prototype.enableAriaDecal=function(){LO(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:H.size.l,top:H.size.xxxl,right:H.size.l,bottom:H.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.1024,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:H.size.m,emptyItemWidth:25,itemStyle:{color:H.color.backgroundShade,textStyle:{color:H.color.secondary}},emphasis:{itemStyle:{color:H.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:H.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:H.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t})(je);function PO(n){var t=0;k(n.children,function(i){PO(i);var r=i.value;q(r)&&(r=r[0]),t+=r});var e=n.value;q(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),q(n.value)?n.value[0]=e:n.value=e}var TG=(function(){function n(t){this.group=new he,t.add(this.group)}return n.prototype.render=function(t,e,i,r){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&i){var s=o.getModel("itemStyle"),l=o.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),h=kt(t,e).refContainer,d={left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},p={emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]},f=ot(d,h);this._prepare(i,p,u),this._renderContent(t,p,f,s,l,u,c,r),Vf(a,d,h)}},n.prototype._prepare=function(t,e,i){for(var r=t;r;r=r.parentNode){var o=Tt(r.getModel().get("name"),""),a=i.getTextRect(o),s=Math.max(a.width+16,e.emptyItemWidth);e.totalWidth+=s+8,e.renderList.push({node:r,text:o,width:s})}},n.prototype._renderContent=function(t,e,i,r,o,a,s,l){for(var u=0,c=e.emptyItemWidth,h=t.get(["breadcrumb","height"]),d=e.totalWidth,p=e.renderList,f=o.getModel("itemStyle").getItemStyle(),g=p.length-1;g>=0;g--){var v=p[g],y=v.node,m=v.width,x=v.text;d>i.width&&(d-=m-c,m=c,x=null);var _=new Jt({shape:{points:CG(u,0,m,h,g===p.length-1,g===0)},style:pe(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Be({style:Je(a,{text:x})}),textConfig:{position:"inside"},z2:1e5,onclick:Ce(l,y)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Je(s,{text:x}),_.ensureState("emphasis").style=f,at(_,o.get("focus"),o.get("blurScope"),o.get("disabled")),this.group.add(_),DG(_,t,y),u+=m+8}},n.prototype.remove=function(){this.group.removeAll()},n})();function CG(n,t,e,i,r,o){var a=[[r?n:n-5,t],[n+e,t],[n+e,t+i],[r?n:n-5,t+i]];return!o&&a.splice(2,0,[n+e+5,t+i/2]),!r&&a.push([n,t+i/2]),a}function DG(n,t,e){me(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&jf(e,t)}}var AG=(function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(t,e,i,r,o){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:i,delay:r,easing:o}),!0)},n.prototype.finished=function(t){return this._finishedCallback=t,this},n.prototype.start=function(){for(var t=this,e=this._storage.length,i=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,o=this._storage.length;r<o;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:i,aborted:i})}return this},n})(),Ac=Math.max,Qp=Math.min,n_=k,OO=["itemStyle","borderWidth"],kG=["itemStyle","gapWidth"],LG=["upperLabel","show"],PG=["upperLabel","height"],OG={seriesType:"treemap",reset:function(n,t,e,i){var r=n.option,o=kt(n,e).refContainer,a=ot(n.getBoxLayoutParams(),o),s=i&&i.type,l=ju(i,["treemapZoomToNode","treemapRootToNode"],n),u=s==="treemapRender"||s==="treemapMove"?i.rootRect:null,c=n.getViewRoot(),h=AO(c);if(s!=="treemapMove"){var d=!1,p=s==="treemapZoomToNode"?(d=!0,(function(x,_,b,w){var S,M=(_||{}).node,I=w.width,T=w.height,C=X({},w);if(!M||M===b)return C;for(var D=I*T,A=D*x.option.zoomToNodeRatio;S=M.parentNode;){for(var L=0,P=S.children,E=0,O=P.length;E<O;E++)L+=P[E].getValue();var N=M.getValue();if(N===0)return C;A*=L/N;var R=S.getModel(),z=R.get(OO);(A+=4*z*z+(3*z+Math.max(z,EO(R)))*Math.pow(A,.5))>ac&&(A=ac),M=S}A<D&&(A=D);var B=Math.pow(A/D,.5);return{width:I*B,height:T*B}})(n,l,c,a)):u?(d=!0,X({},u)):X({},a);if(d){var f=zO(a,p);f=BO(f,n),p.width=a.width*f,p.height=a.height*f}var g=r.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var v={squareRatio:r.squareRatio,sort:g,leafDepth:r.leafDepth};c.hostTree.clearLayouts();var y={x:0,y:0,width:p.width,height:p.height,area:p.width*p.height};c.setLayout(y),RO(c,v,!1,0),y=c.getLayout(),n_(h,function(x,_){var b=(h[_+1]||c).getValue();x.setLayout(X({dataExtent:[b,b],borderWidth:0,upperHeight:0},y))})}var m=n.getData().tree.root;m.setLayout((function(x,_,b){if(_)return{x:_.x,y:_.y};var w={x:0,y:0};if(!b)return w;var S=b.node,M=S.getLayout();if(!M)return w;for(var I=[M.width/2,M.height/2],T=S;T;){var C=T.getLayout();I[0]+=C.x,I[1]+=C.y,T=T.parentNode}return{x:x.width/2-I[0],y:x.height/2-I[1]}})(a,u,l),!0),n.setLayoutInfo(a),NO(m,new de(-a.x,-a.y,e.getWidth(),e.getHeight()),h,c,0)}};function RO(n,t,e,i){var r,o;if(!n.isRemoved()){var a=n.getLayout();r=a.width,o=a.height;var s=n.getModel(),l=s.get(OO),u=s.get(kG)/2,c=EO(s),h=Math.max(l,c),d=l-u,p=h-u;n.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0);var f=(r=Ac(r-2*d,0))*(o=Ac(o-d-p,0)),g=(function(I,T,C,D,A,L){var P=I.children||[],E=D.sort;E!=="asc"&&E!=="desc"&&(E=null);var O=D.leafDepth!=null&&D.leafDepth<=L;if(A&&!O)return I.viewChildren=[];P=Ye(P,function(V){return!V.isRemoved()}),(function(V,W){W&&V.sort(function(U,F){var Q=W==="asc"?U.getValue()-F.getValue():F.getValue()-U.getValue();return Q===0?W==="asc"?U.dataIndex-F.dataIndex:F.dataIndex-U.dataIndex:Q})})(P,E);var N=(function(V,W,U){for(var F=0,Q=0,Z=W.length;Q<Z;Q++)F+=W[Q].getValue();var Y,J=V.get("visualDimension");return W&&W.length?J==="value"&&U?(Y=[W[W.length-1].getValue(),W[0].getValue()],U==="asc"&&Y.reverse()):(Y=[1/0,-1/0],n_(W,function($){var j=$.getValue(J);j<Y[0]&&(Y[0]=j),j>Y[1]&&(Y[1]=j)})):Y=[NaN,NaN],{sum:F,dataExtent:Y}})(T,P,E);if(N.sum===0)return I.viewChildren=[];if(N.sum=(function(V,W,U,F,Q){if(!F)return U;for(var Z=V.get("visibleMin"),Y=Q.length,J=Y,$=Y-1;$>=0;$--){var j=Q[F==="asc"?Y-$-1:$].getValue();j/U*W<Z&&(J=$,U-=j)}return F==="asc"?Q.splice(0,Y-J):Q.splice(J,Y-J),U})(T,C,N.sum,E,P),N.sum===0)return I.viewChildren=[];for(var R=0,z=P.length;R<z;R++){var B=P[R].getValue()/N.sum*C;P[R].setLayout({area:B})}return O&&(P.length&&I.setLayout({isLeafRoot:!0},!0),P.length=0),I.viewChildren=P,I.setLayout({dataExtent:N.dataExtent},!0),P})(n,s,f,t,e,i);if(g.length){var v={x:d,y:p,width:r,height:o},y=Qp(r,o),m=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var w=g[_];x.push(w),x.area+=w.getLayout().area;var S=RG(x,y,t.squareRatio);S<=m?(_++,m=S):(x.area-=x.pop().getLayout().area,OI(x,y,v,u,!1),y=Qp(v.width,v.height),x.length=x.area=0,m=1/0)}if(x.length&&OI(x,y,v,u,!0),!e){var M=s.get("childrenVisibleMin");M!=null&&f<M&&(e=!0)}for(_=0,b=g.length;_<b;_++)RO(g[_],t,e,i+1)}}}function RG(n,t,e){for(var i=0,r=1/0,o=0,a=void 0,s=n.length;o<s;o++)(a=n[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=n.area*n.area,u=t*t*e;return l?Ac(u*i/l,l/(u*r)):1/0}function OI(n,t,e,i,r){var o=t===e.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=e[s[o]],c=t?n.area/t:0;(r||c>e[l[a]])&&(c=e[l[a]]);for(var h=0,d=n.length;h<d;h++){var p=n[h],f={},g=c?p.getLayout().area/c:0,v=f[l[a]]=Ac(c-2*i,0),y=e[s[o]]+e[l[o]]-u,m=h===d-1||y<g?y:g,x=f[l[o]]=Ac(m-2*i,0);f[s[a]]=e[s[a]]+Qp(i,v/2),f[s[o]]=u+Qp(i,x/2),u+=m,p.setLayout(f,!0)}e[s[a]]+=c,e[l[a]]-=c}function NO(n,t,e,i,r){var o=n.getLayout(),a=e[r],s=a&&a===n;if(!(a&&!s||r===e.length&&n!==i)){n.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new de(t.x-o.x,t.y-o.y,t.width,t.height);n_(n.viewChildren||[],function(u){NO(u,l,e,i,r+1)})}}function EO(n){return n.get(LG)?n.get(PG):0}function zO(n,t){return t.width/n.width||t.height/n.height||1}function BO(n,t){return Kx(n,t.get("scaleLimit",!0))}var Xv=he,RI=Ae,NI="label",EI="upperLabel",Zo=Ma([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),zI=function(n){var t=Zo(n);return t.stroke=t.fill=t.lineWidth=null,t},qh=Me(),NG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage={nodeGroup:[],background:[],content:[]},e}return G(t,n),t.prototype.render=function(e,i,r,o){if(!(be(i.findComponents({mainType:"series",subType:"treemap",query:o}),e)<0)){this.seriesModel=e,this.api=r,this.ecModel=i;var a=ju(o,["treemapZoomToNode","treemapRootToNode"],e),s=o&&o.type,l=e.layoutInfo,u=!this._oldTree,c=this._storage,h=s==="treemapRootToNode"&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:o.direction}:null,d=this._giveContainerGroup(l),p=e.get("animation"),f=this._doRender(d,e,h);!p||u||s&&s!=="treemapZoomToNode"&&s!=="treemapRootToNode"?f.renderFinally():this._doAnimation(d,f,e,h),this._resetController(r),this._renderBreadcrumb(e,r,a)}},t.prototype._giveContainerGroup=function(e){var i=this._containerGroup;return i||(i=this._containerGroup=new Xv,this._initEvents(i),this.group.add(i)),i.x=e.x,i.y=e.y,i},t.prototype._doRender=function(e,i,r){var o=i.getData().tree,a=this._oldTree,s={nodeGroup:[],background:[],content:[]},l={nodeGroup:[],background:[],content:[]},u=this._storage,c=[];function h(p,f,g,v){return(function(y,m,x,_,b,w,S,M,I,T){if(!S)return;var C=S.getLayout(),D=y.getData(),A=S.getModel();if(D.setItemGraphicEl(S.dataIndex,null),!C||!C.isInView)return;var L=C.width,P=C.height,E=C.borderWidth,O=C.invisible,N=S.getRawIndex(),R=M&&M.getRawIndex(),z=S.viewChildren,B=C.upperHeight,V=z&&z.length,W=A.getModel("itemStyle"),U=A.getModel(["emphasis","itemStyle"]),F=A.getModel(["blur","itemStyle"]),Q=A.getModel(["select","itemStyle"]),Z=W.get("borderRadius")||0,Y=Ut("nodeGroup",Xv);if(!Y)return;if(I.add(Y),Y.x=C.x||0,Y.y=C.y||0,Y.markRedraw(),qh(Y).nodeWidth=L,qh(Y).nodeHeight=P,C.isAboveViewRoot)return Y;var J=Ut("background",RI,T,20);J&&xe(Y,J,V&&C.upperLabelHeight);var $=A.getModel("emphasis"),j=$.get("focus"),ee=$.get("blurScope"),ue=$.get("disabled"),ye=j==="ancestor"?S.getAncestorsIndices():j==="descendant"?S.getDescendantIndices():j;if(V)lc(Y)&&ia(Y,!1),J&&(ia(J,!ue),D.setItemGraphicEl(S.dataIndex,J),Rm(J,ye,ee));else{var we=Ut("content",RI,T,30);we&&Ie(Y,we),J.disableMorphing=!0,J&&lc(J)&&ia(J,!1),ia(Y,!ue),D.setItemGraphicEl(S.dataIndex,Y);var ve=A.getShallow("cursor");ve&&we.attr("cursor",ve),Rm(Y,ye,ee)}return Y;function xe(We,Pe,nt){var Ke=me(Pe);if(Ke.dataIndex=S.dataIndex,Ke.seriesIndex=y.seriesIndex,Pe.setShape({x:0,y:0,width:L,height:P,r:Z}),O)Ne(Pe);else{Pe.invisible=!1;var qe=S.getVisual("style"),Lt=qe.stroke,en=zI(W);en.fill=Lt;var st=Zo(U);st.fill=U.get("borderColor");var tn=Zo(F);tn.fill=F.get("borderColor");var ze=Zo(Q);if(ze.fill=Q.get("borderColor"),nt){var kr=L-2*E;tt(Pe,Lt,qe.opacity,{x:E,y:0,width:kr,height:B})}else Pe.removeTextContent();Pe.setStyle(en),Pe.ensureState("emphasis").style=st,Pe.ensureState("blur").style=tn,Pe.ensureState("select").style=ze,Ia(Pe)}We.add(Pe)}function Ie(We,Pe){var nt=me(Pe);nt.dataIndex=S.dataIndex,nt.seriesIndex=y.seriesIndex;var Ke=Math.max(L-2*E,0),qe=Math.max(P-2*E,0);if(Pe.culling=!0,Pe.setShape({x:E,y:E,width:Ke,height:qe,r:Z}),O)Ne(Pe);else{Pe.invisible=!1;var Lt=S.getVisual("style"),en=Lt.fill,st=zI(W);st.fill=en,st.decal=Lt.decal;var tn=Zo(U),ze=Zo(F),kr=Zo(Q);tt(Pe,en,Lt.opacity,null),Pe.setStyle(st),Pe.ensureState("emphasis").style=tn,Pe.ensureState("blur").style=ze,Pe.ensureState("select").style=kr,Ia(Pe)}We.add(Pe)}function Ne(We){!We.invisible&&w.push(We)}function tt(We,Pe,nt,Ke){var qe=A.getModel(Ke?EI:NI),Lt=Tt(A.get("name"),null),en=qe.getShallow("show");Et(We,Dt(A,Ke?EI:NI),{defaultText:en?Lt:null,inheritColor:Pe,defaultOpacity:nt,labelFetcher:y,labelDataIndex:S.dataIndex});var st=We.getTextContent();if(st){var tn=st.style,ze=Ec(tn.padding||0);Ke&&(We.setTextConfig({layoutRect:Ke}),st.disableLabelLayout=!0),st.beforeUpdate=function(){var kl=Math.max((Ke?Ke.width:We.shape.width)-ze[1]-ze[3],0),Ll=Math.max((Ke?Ke.height:We.shape.height)-ze[0]-ze[2],0);tn.width===kl&&tn.height===Ll||st.setStyle({width:kl,height:Ll})},tn.truncateMinChar=2,tn.lineOverflow="truncate",ft(tn,Ke,C);var kr=st.getState("emphasis");ft(kr?kr.style:null,Ke,C)}}function ft(We,Pe,nt){var Ke=We?We.text:null;if(!Pe&&nt.isLeafRoot&&Ke!=null){var qe=y.get("drillDownIcon",!0);We.text=qe?qe+" "+Ke:Ke}}function Ut(We,Pe,nt,Ke){var qe=R!=null&&x[We][R],Lt=b[We];return qe?(x[We][R]=null,wt(Lt,qe)):O||((qe=new Pe)instanceof $n&&(qe.z2=(function(en,st){return 100*en+st})(nt,Ke)),ut(Lt,qe)),m[We][N]=qe}function wt(We,Pe){var nt=We[N]={};Pe instanceof Xv?(nt.oldX=Pe.x,nt.oldY=Pe.y):nt.oldShape=X({},Pe.shape)}function ut(We,Pe){var nt=We[N]={},Ke=S.parentNode,qe=Pe instanceof he;if(Ke&&(!_||_.direction==="drillDown")){var Lt=0,en=0,st=b.background[Ke.getRawIndex()];!_&&st&&st.oldShape&&(Lt=st.oldShape.width,en=st.oldShape.height),qe?(nt.oldX=0,nt.oldY=en):nt.oldShape={x:Lt,y:en,width:0,height:0}}nt.fadein=!qe}})(i,l,u,r,s,c,p,f,g,v)}(function p(f,g,v,y,m){y?(g=f,k(f,function(b,w){!b.isRemoved()&&_(w,w)})):new Sr(g,f,x,x).add(_).update(_).remove(Ce(_,null)).execute();function x(b){return b.getId()}function _(b,w){var S=b!=null?f[b]:null,M=w!=null?g[w]:null,I=h(S,M,v,m);I&&p(S&&S.viewChildren||[],M&&M.viewChildren||[],I,y,m+1)}})(o.root?[o.root]:[],a&&a.root?[a.root]:[],e,o===a||!a,0);var d=(function(p){var f={nodeGroup:[],background:[],content:[]};return p&&k(p,function(g,v){var y=f[v];k(g,function(m){m&&(y.push(m),qh(m).willDelete=!0)})}),f})(u);return this._oldTree=o,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:function(){k(d,function(p){k(p,function(f){f.parent&&f.parent.remove(f)})}),k(c,function(p){p.invisible=!0,p.dirty()})}}},t.prototype._doAnimation=function(e,i,r,o){var a=r.get("animationDurationUpdate"),s=r.get("animationEasing"),l=(le(a)?0:a)||0,u=(le(s)?null:s)||"cubicOut",c=new AG;k(i.willDeleteEls,function(h,d){k(h,function(p,f){if(!p.invisible){var g,v=p.parent,y=qh(v);if(o&&o.direction==="drillDown")g=v===o.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,x=0;y.willDelete||(m=y.nodeWidth/2,x=y.nodeHeight/2),g=d==="nodeGroup"?{x:m,y:x,style:{opacity:0}}:{shape:{x:m,y:x,width:0,height:0},style:{opacity:0}}}g&&c.add(p,g,l,0,u)}})}),k(this._storage,function(h,d){k(h,function(p,f){var g=i.lastsForAnimation[d][f],v={};g&&(p instanceof he?g.oldX!=null&&(v.x=p.x,v.y=p.y,p.x=g.oldX,p.y=g.oldY):(g.oldShape&&(v.shape=X({},p.shape),p.setShape(g.oldShape)),g.fadein?(p.setStyle("opacity",0),v.style={opacity:1}):p.style.opacity!==1&&(v.style={opacity:1})),c.add(p,v,l,0,u))})},this),this._state="animating",c.finished(ie(function(){this._state="ready",i.renderFinally()},this)).start()},t.prototype._resetController=function(e){var i=this,r=this.seriesModel,o=this._controller;o||((o=this._controller=new Ka(e.getZr())).on("pan",ie(this._onPan,this)),o.on("zoom",ie(this._onZoom,this))),o.enable(r.get("roam"),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(a,s,l){var u=i._containerGroup;return!!u&&u.getBoundingRect().contain(s-u.x,l-u.y)}}})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x+e.dx,y:r.y+e.dy,width:r.width,height:r.height}})}},t.prototype._onZoom=function(e){var i=e.originX,r=e.originY,o=e.scale,a=this.seriesModel;if(this._state!=="animating"){var s=a.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new de(l.x,l.y,l.width,l.height),c=a.layoutInfo,h=zO(c,l),d=h*o,p=(d=BO(d,a))/h,f=[1,0,0,1,0,0];ci(f,f,[-(i-=c.x),-(r-=c.y)]),wf(f,f,[p,p]),ci(f,f,[i,r]),u.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},t.prototype._initEvents=function(e){var i=this;e.on("click",function(r){if(i._state==="ready"){var o=i.seriesModel.get("nodeClick",!0);if(o){var a=i.findTarget(r.offsetX,r.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)i._rootToNode(a);else if(o==="zoomToNode")i._zoomToNode(a);else if(o==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&mp(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(e,i,r){var o=this;r||(r=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2))||(r={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new TG(this.group))).render(e,i,r.node,function(a){o._state!=="animating"&&(N0(e.getViewRoot(),a)?o._rootToNode({node:a}):o._zoomToNode({node:a}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,i){var r;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(o){var a=this._storage.background[o.getRawIndex()];if(a){var s=a.transformCoordToLocal(e,i),l=a.shape;if(!(l.x<=s[0]&&s[0]<=l.x+l.width&&l.y<=s[1]&&s[1]<=l.y+l.height))return!1;r={node:o,offsetX:s[0],offsetY:s[1]}}},this),r},t.type="treemap",t})(Ze),Cu=k,EG=fe,i_=-1,Nt=(function(){function n(t){var e=t.mappingMethod,i=t.type,r=this.option=se(t);this.type=i,this.mappingMethod=e,this._normalizeData=zG[e];var o=n.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[e],e==="piecewise"?(Zv(r),(function(a){var s=a.pieceList;a.hasSpecialVisual=!1,k(s,function(l,u){l.originIndex=u,l.visual!=null&&(a.hasSpecialVisual=!0)})})(r)):e==="category"?r.categories?(function(a){var s=a.categories,l=a.categoryMap={},u=a.visual;if(Cu(s,function(d,p){l[d]=p}),!q(u)){var c=[];fe(u)?Cu(u,function(d,p){var f=l[p];c[f??i_]=d}):c[-1]=u,u=VO(a,c)}for(var h=s.length-1;h>=0;h--)u[h]==null&&(delete l[s[h]],s.pop())})(r):Zv(r,!0):(Kt(e!=="linear"||r.dataExtent),Zv(r))}return n.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},n.prototype.getNormalizer=function(){return ie(this._normalizeData,this)},n.listVisualTypes=function(){return Re(n.visualHandlers)},n.isValidType=function(t){return n.visualHandlers.hasOwnProperty(t)},n.eachVisual=function(t,e,i){fe(t)?k(t,e,i):e.call(i,t)},n.mapVisual=function(t,e,i){var r,o=q(t)?[]:fe(t)?{}:(r=!0,null);return n.eachVisual(t,function(a,s){var l=e.call(i,a,s);r?o=l:o[s]=l}),o},n.retrieveVisuals=function(t){var e,i={};return t&&Cu(n.visualHandlers,function(r,o){t.hasOwnProperty(o)&&(i[o]=t[o],e=!0)}),e?i:null},n.prepareVisualTypes=function(t){if(q(t))t=t.slice();else{if(!EG(t))return[];var e=[];Cu(t,function(i,r){e.push(r)}),t=e}return t.sort(function(i,r){return r==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),t},n.dependsOn=function(t,e){return e==="color"?!(!t||t.indexOf(e)!==0):t===e},n.findPieceIndex=function(t,e,i){for(var r,o=1/0,a=0,s=e.length;a<s;a++){var l=e[a].value;if(l!=null){if(l===t||te(l)&&l===t+"")return a;i&&d(l,a)}}for(a=0,s=e.length;a<s;a++){var u=e[a],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(Kh(h[1],t,c[1]))return a}else if(c[1]===1/0){if(Kh(h[0],c[0],t))return a}else if(Kh(h[0],c[0],t)&&Kh(h[1],t,c[1]))return a;i&&d(c[0],a),i&&d(c[1],a)}}if(i)return t===1/0?e.length-1:t===-1/0?0:r;function d(p,f){var g=Math.abs(p-t);g<o&&(o=g,r=f)}},n.visualHandlers={color:{applyVisual:ou("color"),getColorMapper:function(){var t=this.option;return ie(t.mappingMethod==="category"?function(e,i){return!i&&(e=this._normalizeData(e)),Du.call(this,e)}:function(e,i,r){var o=!!r;return!i&&(e=this._normalizeData(e)),r=Bu(e,t.parsedVisual,r),o?r:Xn(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Xn(Bu(t,this.option.parsedVisual),"rgba")},category:Du,piecewise:function(t,e){var i=B0.call(this,e);return i==null&&(i=Xn(Bu(t,this.option.parsedVisual),"rgba")),i},fixed:qo}},colorHue:jh(function(t,e){return dr(t,e)}),colorSaturation:jh(function(t,e){return dr(t,null,e)}),colorLightness:jh(function(t,e){return dr(t,null,null,e)}),colorAlpha:jh(function(t,e){return tc(t,e)}),decal:{applyVisual:ou("decal"),_normalizedToVisual:{linear:null,category:Du,piecewise:null,fixed:null}},opacity:{applyVisual:ou("opacity"),_normalizedToVisual:z0([0,1])},liftZ:{applyVisual:ou("liftZ"),_normalizedToVisual:{linear:qo,category:qo,piecewise:qo,fixed:qo}},symbol:{applyVisual:function(t,e,i){i("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:BI,category:Du,piecewise:function(t,e){var i=B0.call(this,e);return i==null&&(i=BI.call(this,t)),i},fixed:qo}},symbolSize:{applyVisual:ou("symbolSize"),_normalizedToVisual:z0([0,1])}},n})();function Zv(n,t){var e=n.visual,i=[];fe(e)?Cu(e,function(r){i.push(r)}):e!=null&&i.push(e),t||i.length!==1||{color:1,symbol:1}.hasOwnProperty(n.type)||(i[1]=i[0]),VO(n,i)}function jh(n){return{applyVisual:function(t,e,i){var r=this.mapValueToVisual(t);i("color",n(e("color"),r))},_normalizedToVisual:z0([0,1])}}function BI(n){var t=this.option.visual;return t[Math.round(He(n,[0,1],[0,t.length-1],!0))]||{}}function ou(n){return function(t,e,i){i(n,this.mapValueToVisual(t))}}function Du(n){var t=this.option.visual;return t[this.option.loop&&n!==i_?n%t.length:n]}function qo(){return this.option.visual[0]}function z0(n){return{linear:function(t){return He(t,n,this.option.visual,!0)},category:Du,piecewise:function(t,e){var i=B0.call(this,e);return i==null&&(i=He(t,n,this.option.visual,!0)),i},fixed:qo}}function B0(n){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var i=e[Nt.findPieceIndex(n,e)];if(i&&i.visual)return i.visual[this.type]}}function VO(n,t){return n.visual=t,n.type==="color"&&(n.parsedVisual=K(t,function(e){var i=sn(e);return i||[0,0,0,1]})),t}var zG={linear:function(n){return He(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var t=this.option.pieceList,e=Nt.findPieceIndex(n,t,!0);if(e!=null)return He(e,[0,t.length-1],[0,1],!0)},category:function(n){var t=this.option.categories?this.option.categoryMap[n]:n;return t??i_},fixed:ct};function Kh(n,t,e){return n?t<=e:t<e}var VI=Me(),BG={seriesType:"treemap",reset:function(n){var t=n.getData().tree.root;t.isRemoved()||GO(t,{},n.getViewRoot().getAncestors(),n)}};function GO(n,t,e,i){var r=n.getModel(),o=n.getLayout(),a=n.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel("itemStyle"),u=(function(g,v,y){var m=X({},v),x=y.designatedVisualItemStyle;return k(["color","colorAlpha","colorSaturation"],function(_){x[_]=v[_];var b=g.get(_);x[_]=null,b!=null&&(m[_]=b)}),m})(l,t,i),c=a.ensureUniqueItemVisual(n.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");d!=null&&(h=(function(g,v){return v!=null?dr(v,null,null,g):null})(d,s=GI(u))),c.stroke=h;var p=n.viewChildren;if(p&&p.length){var f=(function(g,v,y,m,x,_){if(!(!_||!_.length)){var b=jv(v,"color")||x.color!=null&&x.color!=="none"&&(jv(v,"colorAlpha")||jv(v,"colorSaturation"));if(b){var w=v.get("visualMin"),S=v.get("visualMax"),M=y.dataExtent.slice();w!=null&&w<M[0]&&(M[0]=w),S!=null&&S>M[1]&&(M[1]=S);var I=v.get("colorMappingBy"),T={type:b.name,dataExtent:M,visual:b.range};T.type!=="color"||I!=="index"&&I!=="id"?T.mappingMethod="linear":(T.mappingMethod="category",T.loop=!0);var C=new Nt(T);return VI(C).drColorMappingBy=I,C}}})(0,r,o,0,u,p);k(p,function(g,v){if(g.depth>=e.length||g===e[g.depth]){var y=(function(m,x,_,b,w,S){var M=X({},x);if(w){var I=w.type,T=I==="color"&&VI(w).drColorMappingBy,C=T==="index"?b:T==="id"?S.mapIdToIndex(_.getId()):_.getValue(m.get("visualDimension"));M[I]=w.mapValueToVisual(C)}return M})(r,u,g,v,f,i);GO(g,y,e,i)}})}else s=GI(u),c.fill=s}}function GI(n){var t=qv(n,"color");if(t){var e=qv(n,"colorAlpha"),i=qv(n,"colorSaturation");return i&&(t=dr(t,null,null,i)),e&&(t=tc(t,e)),t}}function qv(n,t){var e=n[t];if(e!=null&&e!=="none")return e}function jv(n,t){var e=n.get(t);return q(e)&&e.length?{name:t,range:e}:null}function vs(n){return"_EC_"+n}var VG=(function(){function n(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var i=this._nodesMap;if(!i[vs(t)]){var r=new jo(t,e);return r.hostGraph=this,this.nodes.push(r),i[vs(t)]=r,r}},n.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},n.prototype.getNodeById=function(t){return this._nodesMap[vs(t)]},n.prototype.addEdge=function(t,e,i){var r=this._nodesMap,o=this._edgesMap;if(Ve(t)&&(t=this.nodes[t]),Ve(e)&&(e=this.nodes[e]),t instanceof jo||(t=r[vs(t)]),e instanceof jo||(e=r[vs(e)]),t&&e){var a=t.id+"-"+e.id,s=new FO(t,e,i);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),o[a]=s,s}},n.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},n.prototype.getEdge=function(t,e){t instanceof jo&&(t=t.id),e instanceof jo&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},n.prototype.eachNode=function(t,e){for(var i=this.nodes,r=i.length,o=0;o<r;o++)i[o].dataIndex>=0&&t.call(e,i[o],o)},n.prototype.eachEdge=function(t,e){for(var i=this.edges,r=i.length,o=0;o<r;o++)i[o].dataIndex>=0&&i[o].node1.dataIndex>=0&&i[o].node2.dataIndex>=0&&t.call(e,i[o],o)},n.prototype.breadthFirstTraverse=function(t,e,i,r){if(e instanceof jo||(e=this._nodesMap[vs(e)]),e){for(var o=i==="out"?"outEdges":i==="in"?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(r,e,null))for(var s=[e];s.length;){var l=s.shift(),u=l[o];for(a=0;a<u.length;a++){var c=u[a],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(t.call(r,h,l))return;s.push(h),h.__visited=!0}}}}},n.prototype.update=function(){for(var t=this.data,e=this.edgeData,i=this.nodes,r=this.edges,o=0,a=i.length;o<a;o++)i[o].dataIndex=-1;for(o=0,a=t.count();o<a;o++)i[t.getRawIndex(o)].dataIndex=o;for(e.filterSelf(function(s){var l=r[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0}),o=0,a=r.length;o<a;o++)r[o].dataIndex=-1;for(o=0,a=e.count();o<a;o++)r[e.getRawIndex(o)].dataIndex=o},n.prototype.clone=function(){for(var t=new n(this._directed),e=this.nodes,i=this.edges,r=0;r<e.length;r++)t.addNode(e[r].id,e[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},n})(),jo=(function(){function n(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length},n.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},n.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var i=this.edges[e];i.dataIndex<0||(t.edge.push(i.dataIndex),t.node.push(i.node1.dataIndex,i.node2.dataIndex))}return t},n.prototype.getTrajectoryDataIndices=function(){for(var t=re(),e=re(),i=0,r=this.edges.length;i<r;i++){var o=this.edges[i];if(!(o.dataIndex<0)){t.set(o.dataIndex,!0);for(var a=[o.node1],s=[o.node2],l=0;l<a.length;){var u=a[l];l++,e.set(u.dataIndex,!0);for(var c=u.inEdges,h=0,d=c.length,p=void 0,f=void 0;h<d;h++)(f=(p=c[h]).dataIndex)>=0&&!t.hasKey(f)&&(t.set(f,!0),a.push(p.node1))}for(l=0;l<s.length;){var g=s[l];l++,e.set(g.dataIndex,!0);for(var v=g.outEdges,y=(h=0,v.length),m=void 0,x=void 0;h<y;h++)(x=(m=v[h]).dataIndex)>=0&&!t.hasKey(x)&&(t.set(x,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},n})(),FO=(function(){function n(t,e,i){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=i??-1}return n.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},n.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},n.prototype.getTrajectoryDataIndices=function(){var t=re(),e=re();t.set(this.dataIndex,!0);for(var i=[this.node1],r=[this.node2],o=0;o<i.length;){var a=i[o];o++,e.set(a.dataIndex,!0);for(var s=0,l=a.inEdges.length,u=void 0,c=void 0;s<l;s++)(c=(u=a.inEdges[s]).dataIndex)>=0&&!t.hasKey(c)&&(t.set(c,!0),i.push(u.node1))}for(o=0;o<r.length;){var h=r[o];o++,e.set(h.dataIndex,!0),s=0,l=h.outEdges.length;for(var d=void 0,p=void 0;s<l;s++)(p=(d=h.outEdges[s]).dataIndex)>=0&&!t.hasKey(p)&&(t.set(p,!0),r.push(d.node2))}return{edge:t.keys(),node:e.keys()}},n})();function FI(n,t){return{getValue:function(e){var i=this[n][t];return i.getStore().get(i.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,i){this.dataIndex>=0&&this[n][t].setItemVisual(this.dataIndex,e,i)},getVisual:function(e){return this[n][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,i){this.dataIndex>=0&&this[n][t].setItemLayout(this.dataIndex,e,i)},getLayout:function(){return this[n][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][t].getRawIndex(this.dataIndex)}}}function r_(n,t,e,i,r){for(var o=new VG(i),a=0;a<n.length;a++)o.addNode(an(n[a].id,n[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],h=c.source,d=c.target;o.addEdge(h,d,u)&&(l.push(c),s.push(an(Tt(c.id,null),h+" > "+d)),u++)}var p,f=e.get("coordinateSystem");if(f==="cartesian2d"||f==="polar"||f==="matrix")p=Ji(n,e);else{var g=_l.get(f),v=g&&g.dimensions||[];be(v,"value")<0&&v.concat(["value"]);var y=Ml(n,{coordDimensions:v,encodeDefine:e.getEncode()}).dimensions;(p=new fn(y,e)).initData(n)}var m=new fn(["value"],e);return m.initData(l,s),r&&r(p,m),CO({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}xt(jo,FI("hostGraph","data")),xt(FO,FI("hostGraph","edgeData"));var V0="-->",ef=function(n){return n.get("autoCurveness")||null},HO=function(n,t){var e=ef(n),i=20,r=[];if(Ve(e))i=e;else if(q(e))return void(n.__curvenessList=e);t>i&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));n.__curvenessList=r},Au=function(n,t,e){var i=[n.id,n.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[e.uid,i,r].join(V0)},WO=function(n){var t=n.split(V0);return[t[0],t[2],t[1]].join(V0)},Kv=function(n,t){var e=t.__edgeMap;return e[n]?e[n].length:0};function o_(n,t,e,i){var r=ef(t),o=q(r);if(!r)return null;var a=(function(v,y){var m=Au(v.node1,v.node2,y);return y.__edgeMap[m]})(n,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===e){s=l;break}var u=(function(v,y){return Kv(Au(v.node1,v.node2,y),y)+Kv(Au(v.node2,v.node1,y),y)})(n,t);HO(t,u),n.lineStyle=n.lineStyle||{};var c=Au(n.node1,n.node2,t),h=t.__curvenessList,d=o||u%2?0:1;if(a.isForward)return h[d+s];var p=WO(c),f=Kv(p,t),g=h[s+f+d];return i?o?r&&r[0]===0?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}var mn="graph",GG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return G(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments);var i=this;function r(){return i._categoriesData}this.legendVisualProvider=new Al(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){n.prototype.mergeDefaultAndTheme.apply(this,arguments),ba(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,i){var r,o=e.edges||e.links||[],a=e.data||e.nodes||[],s=this;if(a&&o){ef(r=this)&&(r.__curvenessList=[],r.__edgeMap={},HO(r));var l=r_(a,o,this,!0,function(u,c){u.wrapMethod("getItemModel",function(f){var g=s._categoriesModels[f.getShallow("category")];return g&&(g.parentModel=f.parentModel,f.parentModel=g),f});var h=Oe.prototype.getModel;function d(f,g){var v=h.call(this,f,g);return v.resolveParentPath=p,v}function p(f){if(f&&(f[0]==="label"||f[1]==="label")){var g=f.slice();return f[0]==="label"?g[0]="edgeLabel":f[1]==="label"&&(g[1]="edgeLabel"),g}return f}c.wrapMethod("getItemModel",function(f){return f.resolveParentPath=p,f.getModel=d,f})});return k(l.edges,function(u){(function(c,h,d,p){if(ef(d)){var f=Au(c,h,d),g=d.__edgeMap,v=g[WO(f)];g[f]&&!v?g[f].isForward=!0:v&&g[f]&&(v.isForward=!0,g[f].isForward=!1),g[f]=g[f]||[],g[f].push(p)}})(u.node1,u.node2,this,u.dataIndex)},this),l.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,i,r){if(r==="edge"){var o=this.getData(),a=this.getDataParams(e,r),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Mt("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}return $k({series:this,dataIndex:e,multipleSeries:i})},t.prototype._updateCategoriesData=function(){var e=K(this.option.categories||[],function(r){return r.value!=null?r:X({value:0},r)}),i=new fn(["value"],this);i.initData(e),this._categoriesData=i,this._categoriesModels=i.mapArray(function(r){return i.getItemModel(r)})},t.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return fO(e)&&e},t.type="series."+mn,t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:H.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:H.color.primary}}},t})(je);function $h(n){return n instanceof Array||(n=[n,n]),n}var FG=At(mn,function(n){n.eachSeriesByType(mn,function(t){var e=t.getGraph(),i=t.getEdgeData(),r=$h(t.get("edgeSymbol")),o=$h(t.get("edgeSymbolSize"));i.setVisual("fromSymbol",r&&r[0]),i.setVisual("toSymbol",r&&r[1]),i.setVisual("fromSymbolSize",o&&o[0]),i.setVisual("toSymbolSize",o&&o[1]),i.setVisual("style",t.getModel("lineStyle").getLineStyle()),i.each(function(a){var s=i.getItemModel(a),l=e.getEdgeByIndex(a),u=$h(s.getShallow("symbol",!0)),c=$h(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),d=i.ensureUniqueItemVisual(a,"style");switch(X(d,h),d.stroke){case"source":var p=l.node1.getVisual("style");d.stroke=p&&p.fill;break;case"target":p=l.node2.getVisual("style"),d.stroke=p&&p.fill}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})});function UO(n){var t=n.coordinateSystem;if(!t||t.type==="view"){var e=n.getGraph();e.eachNode(function(i){var r=i.getModel();i.setLayout([+r.get("x"),+r.get("y")])}),a_(e,n)}}function a_(n,t){n.eachEdge(function(e,i){var r=wn(e.getModel().get(["lineStyle","curveness"]),-o_(e,t,i,!0),0),o=Bi(e.node1.getLayout()),a=Bi(e.node2.getLayout()),s=[o,a];+r&&s.push([(o[0]+a[0])/2-(o[1]-a[1])*r,(o[1]+a[1])/2-(a[0]-o[0])*r]),e.setLayout(s)})}var HG=At(mn,function(n,t){n.eachSeriesByType(mn,function(e){var i=e.get("layout"),r=e.coordinateSystem;if(r&&r.type!=="view"){var o=e.getData(),a=[];k(r.dimensions,function(d){a=a.concat(o.mapDimensionsAll(d))});for(var s=0;s<o.count();s++){for(var l=[],u=!1,c=0;c<a.length;c++){var h=o.get(a[c],s);isNaN(h)||(u=!0),l.push(h)}u?o.setItemLayout(s,r.dataToPoint(l)):o.setItemLayout(s,[NaN,NaN])}a_(o.graph,e)}else i&&i!=="none"||UO(e)})});function ku(n){var t=n.coordinateSystem;return fO(t)?mO(t,n):1}function Lu(n){var t=n.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var HI=Math.PI,$v=[];function s_(n,t,e,i){var r=n.coordinateSystem;if(!r||r.type==="view"){var o=r.getBoundingRect(),a=n.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(e){var d=r.pointToData(i),p=d[0],f=d[1],g=[p-l,f-u];Ga(g,g),Ru(g,g,c),e.setLayout([l+g[0],u+g[1]],!0),YO(e,n.get(["circular","rotateLabel"]),l,u)}WG[t](n,s,a,c,l,u,h),s.eachEdge(function(v,y){var m,x=wn(v.getModel().get(["lineStyle","curveness"]),o_(v,n,y),0),_=Bi(v.node1.getLayout()),b=Bi(v.node2.getLayout()),w=(_[0]+b[0])/2,S=(_[1]+b[1])/2;+x&&(m=[l*(x*=3)+w*(1-x),u*x+S*(1-x)]),v.setLayout([_,b,m])})}}}var WG={value:function(n,t,e,i,r,o,a){var s=0,l=e.getSum("value"),u=2*Math.PI/(l||a);t.eachNode(function(c){var h=c.getValue("value"),d=u*(l?h:1)/2;s+=d,c.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=d})},symbolSize:function(n,t,e,i,r,o,a){var s=0;$v.length=a;var l=ku(n);t.eachNode(function(h){var d=Lu(h);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var p=Math.asin(d/2/i);isNaN(p)&&(p=HI/2),$v[h.dataIndex]=p,s+=2*p});var u=(2*HI-s)/a/2,c=0;t.eachNode(function(h){var d=u+$v[h.dataIndex];c+=d,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=d})}};function YO(n,t,e,i){var r=n.getGraphicEl();if(r){var o=n.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(t){var s=n.getLayout(),l=Math.atan2(s[1]-i,s[0]-e);l<0&&(l=2*Math.PI+l);var u=s[0]<e;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var h=a.ensureState("emphasis");X(h.textConfig||(h.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}var UG=At(mn,function(n){n.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&s_(t,"symbolSize")})}),ys=jd,YG=At(mn,function(n){n.eachSeriesByType(mn,function(t){var e=t.coordinateSystem;if(!e||e.type==="view")if(t.get("layout")==="force"){var i=t.preservedPoints||{},r=t.getGraph(),o=r.data,a=r.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?o.each(function(x){var _=o.getId(x);o.setItemLayout(x,i[_]||[NaN,NaN])}):l&&l!=="none"?l==="circular"&&s_(t,"value"):UO(t);var u=o.getDataExtent("value"),c=a.getDataExtent("value"),h=s.get("repulsion"),d=s.get("edgeLength"),p=q(h)?h:[h,h],f=q(d)?d:[d,d];f=[f[1],f[0]];var g=o.mapArray("value",function(x,_){var b=o.getItemLayout(_),w=He(x,u,p);return isNaN(w)&&(w=(p[0]+p[1])/2),{w,rep:w,fixed:o.getItemModel(_).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),v=a.mapArray("value",function(x,_){var b=r.getEdgeByIndex(_),w=He(x,c,f);isNaN(w)&&(w=(f[0]+f[1])/2);var S=b.getModel(),M=wn(b.getModel().get(["lineStyle","curveness"]),-o_(b,t,_,!0),0);return{n1:g[b.node1.dataIndex],n2:g[b.node2.dataIndex],d:w,curveness:M,ignoreForceLayout:S.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=(function(x,_,b){for(var w=x,S=_,M=b.rect,I=M.width,T=M.height,C=[M.x+I/2,M.y+T/2],D=b.gravity==null?.1:b.gravity,A=0;A<w.length;A++){var L=w[A];L.p||(L.p=mo(I*(Math.random()-.5)+C[0],T*(Math.random()-.5)+C[1])),L.pp=Bi(L.p),L.edges=null}var P,E,O=b.friction==null?.6:b.friction,N=O;return{warmUp:function(){N=.8*O},setFixed:function(R){w[R].fixed=!0},setUnfixed:function(R){w[R].fixed=!1},beforeStep:function(R){P=R},afterStep:function(R){E=R},step:function(R){P&&P(w,S);for(var z=[],B=w.length,V=0;V<S.length;V++){var W=S[V];if(!W.ignoreForceLayout){var U=W.n1;qr(z,(Y=W.n2).p,U.p);var F=Ju(z)-W.d,Q=Y.w/(U.w+Y.w);isNaN(Q)&&(Q=0),Ga(z,z),!U.fixed&&ys(U.p,U.p,z,Q*F*N),!Y.fixed&&ys(Y.p,Y.p,z,-(1-Q)*F*N)}}for(V=0;V<B;V++)(j=w[V]).fixed||(qr(z,C,j.p),ys(j.p,j.p,z,D*N));for(V=0;V<B;V++){U=w[V];for(var Z=V+1;Z<B;Z++){var Y;qr(z,(Y=w[Z]).p,U.p),(F=Ju(z))===0&&(cr(z,Math.random()-.5,Math.random()-.5),F=1);var J=(U.rep+Y.rep)/F/F;!U.fixed&&ys(U.pp,U.pp,z,J),!Y.fixed&&ys(Y.pp,Y.pp,z,-J)}}var $=[];for(V=0;V<B;V++){var j;(j=w[V]).fixed||(qr($,j.p,j.pp),ys(j.p,j.p,$,N),Yt(j.pp,j.p))}var ee=(N*=.992)<.01;E&&E(w,S,ee),R&&R(ee)}}})(g,v,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(x,_){for(var b=0,w=x.length;b<w;b++)x[b].fixed&&Yt(x[b].p,r.getNodeByIndex(b).getLayout())}),m.afterStep(function(x,_,b){for(var w=0,S=x.length;w<S;w++)x[w].fixed||r.getNodeByIndex(w).setLayout(x[w].p),i[o.getId(w)]=x[w].p;for(w=0,S=_.length;w<S;w++){var M=_[w],I=r.getEdgeByIndex(w),T=M.n1.p,C=M.n2.p,D=I.getLayout();(D=D?D.slice():[])[0]=D[0]||[],D[1]=D[1]||[],Yt(D[0],T),Yt(D[1],C),+M.curveness&&(D[2]=[(T[0]+C[0])/2-(T[1]-C[1])*M.curveness,(T[1]+C[1])/2-(C[0]-T[0])*M.curveness]),I.setLayout(D)}}),t.forceLayout=m,t.preservedPoints=i,m.step()}else t.forceLayout=null})});function XG(n,t){var e=[];return n.eachSeriesByType("graph",function(i){Wc({targetModel:i,coordSysType:"view",coordSysProvider:function(){var r=i.getData(),o=r.mapArray(function(p){var f=r.getItemModel(p);return[+f.get("x"),+f.get("y")]}),a=[],s=[];Pf(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=(function(p,f,g){var v=kt(p,f),y=X(p.getBoxLayoutParams(),{aspect:g});return vk(p,ot(y,v.refContainer),g)})(i,t,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],d=$x(i,t,a[0],a[1],c,h,u);return e.push(d),d},isDefaultDataCoordSys:!0})}),e}var WI=_t.prototype,Jv=gl.prototype,XO=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}G(t,n)})(XO);function Qv(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}var ZO=(function(n){function t(e){var i=n.call(this,e)||this;return i.type="ec-line",i}return G(t,n),t.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new XO},t.prototype.buildPath=function(e,i){Qv(i)?WI.buildPath.call(this,e,i):Jv.buildPath.call(this,e,i)},t.prototype.pointAt=function(e){return Qv(this.shape)?WI.pointAt.call(this,e):Jv.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var i=this.shape,r=Qv(i)?[i.x2-i.x1,i.y2-i.y1]:Jv.tangentAt.call(this,e);return Ga(r,r)},t})(Le),ey=["fromSymbol","toSymbol"];function UI(n){return"_"+n+"Type"}function YI(n,t,e){var i=t.getItemVisual(e,n);if(!i||i==="none")return i;var r=t.getItemVisual(e,n+"Size"),o=t.getItemVisual(e,n+"Rotate"),a=t.getItemVisual(e,n+"Offset"),s=t.getItemVisual(e,n+"KeepAspect"),l=Sl(r);return i+l+ja(a||0,l)+(o||"")+(s||"")}function XI(n,t,e){var i=t.getItemVisual(e,n);if(i&&i!=="none"){var r=t.getItemVisual(e,n+"Size"),o=t.getItemVisual(e,n+"Rotate"),a=t.getItemVisual(e,n+"Offset"),s=t.getItemVisual(e,n+"KeepAspect"),l=Sl(r),u=ja(a||0,l),c=bt(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=n,c}}function ty(n,t){n.x1=t[0][0],n.y1=t[0][1],n.x2=t[1][0],n.y2=t[1][1],n.percent=1;var e=t[2];e?(n.cpx1=e[0],n.cpy1=e[1]):(n.cpx1=NaN,n.cpy1=NaN)}var l_=(function(n){function t(e,i,r){var o=n.call(this)||this;return o._createLine(e,i,r),o}return G(t,n),t.prototype._createLine=function(e,i,r){var o=e.hostModel,a=e.getItemLayout(i),s=e.getItemVisual(i,"z2"),l=(function(u){var c=new ZO({name:"line",subPixelOptimize:!0});return ty(c.shape,u),c})(a);l.shape.percent=0,rt(l,{z2:ae(s,0),shape:{percent:1}},o,i),this.add(l),k(ey,function(u){var c=XI(u,e,i);this.add(c),this[UI(u)]=YI(u,e,i)},this),this._updateCommonStl(e,i,r)},t.prototype.updateData=function(e,i,r){var o=e.hostModel,a=this.childOfName("line"),s=e.getItemLayout(i),l={shape:{}};ty(l.shape,s),Fe(a,l,o,i),k(ey,function(u){var c=YI(u,e,i),h=UI(u);if(this[h]!==c){this.remove(this.childOfName(u));var d=XI(u,e,i);this.add(d)}this[h]=c},this),this._updateCommonStl(e,i,r)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,i,r){var o=e.hostModel,a=this.childOfName("line"),s=r&&r.emphasisLineStyle,l=r&&r.blurLineStyle,u=r&&r.selectLineStyle,c=r&&r.labelStatesModels,h=r&&r.emphasisDisabled,d=r&&r.focus,p=r&&r.blurScope;if(!r||e.hasItemOption){var f=e.getItemModel(i),g=f.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=f.getModel(["blur","lineStyle"]).getLineStyle(),u=f.getModel(["select","lineStyle"]).getLineStyle(),h=g.get("disabled"),d=g.get("focus"),p=g.get("blurScope"),c=Dt(f)}var v=e.getItemVisual(i,"style"),y=v.stroke;a.useStyle(v),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=s,a.ensureState("blur").style=l,a.ensureState("select").style=u,k(ey,function(w){var S=this.childOfName(w);if(S){S.setColor(y),S.style.opacity=v.opacity;for(var M=0;M<yn.length;M++){var I=yn[M],T=a.getState(I);if(T){var C=T.style||{},D=S.ensureState(I),A=D.style||(D.style={});C.stroke!=null&&(A[S.__isEmptyBrush?"stroke":"fill"]=C.stroke),C.opacity!=null&&(A.opacity=C.opacity)}}S.markRedraw()}},this);var m=o.getRawValue(i);Et(this,c,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(w,S){return o.getFormattedLabel(w,S,e.dataType)}},inheritColor:y||H.color.neutral99,defaultOpacity:v.opacity,defaultText:(m==null?e.getName(i):isFinite(m)?Ge(m,10):m)+""});var x=this.getTextContent();if(x){var _=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var b=_.get("distance");q(b)||(b=[b,b]),x.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),at(this,d,p,h)},t.prototype.highlight=function(){br(this)},t.prototype.downplay=function(){wr(this)},t.prototype.updateLayout=function(e,i){this.childOfName("line").stopAnimation(),this.setLinePoints(e.getItemLayout(i))},t.prototype.setLinePoints=function(e){var i=this.childOfName("line");ty(i.shape,e),i.dirty()},t.prototype.beforeUpdate=function(){var e=this,i=e.childOfName("fromSymbol"),r=e.childOfName("toSymbol"),o=e.getTextContent();if(i||r||o&&!o.ignore){for(var a=1,s=this.parent;s;)s.scaleX&&(a/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(this.__dirty||l.__dirty){var u=l.shape.percent,c=l.pointAt(0),h=l.pointAt(u),d=qr([],h,c);if(Ga(d,d),i&&(i.setPosition(c),I(i,0),i.scaleX=i.scaleY=a*u,i.markRedraw()),r&&(r.setPosition(h),I(r,1),r.scaleX=r.scaleY=a*u,r.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var p=void 0,f=void 0,g=o.__labelDistance,v=g[0]*a,y=g[1]*a,m=u/2,x=l.tangentAt(m),_=[x[1],-x[0]],b=l.pointAt(m);_[1]>0&&(_[0]=-_[0],_[1]=-_[1]);var w=x[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var S=-Math.atan2(x[1],x[0]);h[0]<c[0]&&(S=Math.PI+S),o.rotation=S}var M=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-y,f="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=y,f="top";break;default:M=0,f="middle"}switch(o.__position){case"end":o.x=d[0]*v+h[0],o.y=d[1]*y+h[1],p=d[0]>.8?"left":d[0]<-.8?"right":"center",f=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*v+c[0],o.y=-d[1]*y+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",f=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=v*w+c[0],o.y=c[1]+M,p=x[0]<0?"right":"left",o.originX=-v*w,o.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=b[0],o.y=b[1]+M,p="center",o.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-v*w+h[0],o.y=h[1]+M,p=x[0]>=0?"right":"left",o.originX=v*w,o.originY=-M}o.scaleX=o.scaleY=a,o.setStyle({verticalAlign:o.__verticalAlign||f,align:o.__align||p})}}}function I(T,C){var D=T.__specifiedRotation;if(D==null){var A=l.tangentAt(C);T.attr("rotation",(C===1?-1:1)*Math.PI/2-Math.atan2(A[1],A[0]))}else T.attr("rotation",D)}},t})(he),u_=(function(){function n(t){this.group=new he,this._LineCtor=t||l_}return n.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var i=this,r=i.group,o=i._lineData;i._lineData=t,o||r.removeAll();var a=ZI(t);t.diff(o).add(function(s){e._doAdd(t,s,a)}).update(function(s,l){e._doUpdate(o,t,l,s,a)}).remove(function(s){r.remove(o.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ZI(t),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,i){function r(s){s.isGroup||(function(l){return l.animators&&l.animators.length>0})(s)||(s.incremental=i,s.ensureState("emphasis").hoverLayer=2)}this._progressiveEls=[];for(var o=t.start;o<t.end;o++)if(ny(e.getItemLayout(o))){var a=new this._LineCtor(e,o,this._seriesScope);a.traverse(r),this.group.add(a),e.setItemGraphicEl(o,a),this._progressiveEls.push(a)}},n.prototype.remove=function(){this.group.removeAll()},n.prototype.eachRendered=function(t){xo(this._progressiveEls||this.group,t)},n.prototype._doAdd=function(t,e,i){if(ny(t.getItemLayout(e))){var r=new this._LineCtor(t,e,i);t.setItemGraphicEl(e,r),this.group.add(r)}},n.prototype._doUpdate=function(t,e,i,r,o){var a=t.getItemGraphicEl(i);ny(e.getItemLayout(r))?(a?a.updateData(e,r,o):a=new this._LineCtor(e,r,o),e.setItemGraphicEl(r,a),this.group.add(a)):this.group.remove(a)},n})();function ZI(n){var t=n.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Dt(t)}}function qI(n){return isNaN(n[0])||isNaN(n[1])}function ny(n){return n&&!qI(n[0])&&!qI(n[1])}var iy=[],ry=[],oy=[],ms=Gt,ay=eo,jI=Math.abs;function KI(n,t,e){for(var i,r=n[0],o=n[1],a=n[2],s=1/0,l=e*e,u=.1,c=.1;c<=.9;c+=.1)iy[0]=ms(r[0],o[0],a[0],c),iy[1]=ms(r[1],o[1],a[1],c),(p=jI(ay(iy,t)-l))<s&&(s=p,i=c);for(var h=0;h<32;h++){var d=i+u;ry[0]=ms(r[0],o[0],a[0],i),ry[1]=ms(r[1],o[1],a[1],i),oy[0]=ms(r[0],o[0],a[0],d),oy[1]=ms(r[1],o[1],a[1],d);var p=ay(ry,t)-l;if(jI(p)<.01)break;var f=ay(oy,t)-l;u/=2,p<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function sy(n,t){var e=[],i=Qu,r=[[],[],[]],o=[[],[]],a=[];t/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[Bi(u[0]),Bi(u[1])],u[2]&&u.__original.push(Bi(u[2])));var d=u.__original;if(u[2]!=null){if(Yt(r[0],d[0]),Yt(r[1],d[2]),Yt(r[2],d[1]),c&&c!=="none"){var p=Lu(s.node1),f=KI(r,d[0],p*t);i(r[0][0],r[1][0],r[2][0],f,e),r[0][0]=e[3],r[1][0]=e[4],i(r[0][1],r[1][1],r[2][1],f,e),r[0][1]=e[3],r[1][1]=e[4]}h&&h!=="none"&&(p=Lu(s.node2),f=KI(r,d[1],p*t),i(r[0][0],r[1][0],r[2][0],f,e),r[1][0]=e[1],r[2][0]=e[2],i(r[0][1],r[1][1],r[2][1],f,e),r[1][1]=e[1],r[2][1]=e[2]),Yt(u[0],r[0]),Yt(u[1],r[2]),Yt(u[2],r[1])}else Yt(o[0],d[0]),Yt(o[1],d[1]),qr(a,o[1],o[0]),Ga(a,a),c&&c!=="none"&&(p=Lu(s.node1),jd(o[0],o[0],a,p*t)),h&&h!=="none"&&(p=Lu(s.node2),jd(o[1],o[1],a,-p*t)),Yt(u[0],o[0]),Yt(u[1],o[1])})}var qO=Me();function $I(n,t){n&&(qO(n).bridge=t)}var ZG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=mn,e}return G(t,n),t.prototype.init=function(e,i){var r=new jc,o=new u_,a=this.group,s=new he;this._controller=new Ka(i.getZr()),s.add(r.group),s.add(o.group),a.add(s),this._symbolDraw=r,this._lineDraw=o,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,i,r){var o=this,a=$p(e),s=!1;this._model=e,this._api=r,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(r);var c=this._symbolDraw,h=this._lineDraw;a&&fo(l,2,a,this._firstRender?null:e),sy(e.getGraph(),ku(e));var d=e.getData();c.updateData(d);var p=e.getEdgeData();h.updateData(p),this._updateNodeAndLinkScale(),a&&qf(e,r,this._controller,function(_,b,w){return e.coordinateSystem.containPoint([b,w])},null),clearTimeout(this._layoutTimeout);var f=e.forceLayout,g=e.get(["force","layoutAnimation"]);f&&(s=!0,this._startForceLayoutIteration(f,r,g));var v=e.get("layout");d.graph.eachNode(function(_){var b=_.dataIndex,w=_.getGraphicEl(),S=_.getModel();if(w){w.off("drag").off("dragend");var M=S.get("draggable");M&&w.on("drag",function(I){switch(v){case"force":f.warmUp(),!o._layouting&&o._startForceLayoutIteration(f,r,g),f.setFixed(b),d.setItemLayout(b,[w.x,w.y]);break;case"circular":d.setItemLayout(b,[w.x,w.y]),_.setLayout({fixed:!0},!0),s_(e,"symbolSize",_,[I.offsetX,I.offsetY]),o.updateLayout(e);break;default:d.setItemLayout(b,[w.x,w.y]),a_(e.getGraph(),e),o.updateLayout(e)}}).on("dragend",function(){f&&f.setUnfixed(b)}),w.setDraggable(M,!!S.get("cursor")),S.get(["emphasis","focus"])==="adjacency"&&(me(w).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var b=_.getGraphicEl(),w=_.getModel().get(["emphasis","focus"]);b&&w==="adjacency"&&(me(b).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=d.getLayout("cx"),x=d.getLayout("cy");d.graph.eachNode(function(_){YO(_,y,m,x)}),this._firstRender=!1,s||this._renderThumbnail(e,r,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,i,r){var o=this,a=!1;(function s(){e.step(function(l){o.updateLayout(o._model),!l&&a||(a=!0,o._renderThumbnail(o._model,i,o._symbolDraw,o._lineDraw)),(o._layouting=!l)&&(r?o._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype.__updateOnOwnRoam=function(e,i,r){var o=$p(i);this._active&&o&&(fo(this._mainGroup,2,o,null),bO(e)&&(this._updateNodeAndLinkScale(),sy(i.getGraph(),ku(i)),this._lineDraw.updateLayout(),r.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,i=e.getData(),r=ku(e);i.eachItemGraphicEl(function(o,a){o&&o.setSymbolScale(r)})},t.prototype.updateLayout=function(e){this._active&&(sy(e.getGraph(),ku(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,i=e.coordinateSystem;if(i.type==="view"){var r=(function(o){if(o)return qO(o).bridge})(e);if(r)return{bridge:r,coordSys:i}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(jp(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,i,r,o){var a=this._getThumbnailInfo();if(a){var s=new he,l=r.group.children(),u=o.group.children(),c=new he,h=new he;s.add(h),s.add(c);for(var d=0;d<l.length;d++){var p=(x=l[d]).children()[0],f=x.x,g=x.y,v=X(se(p.shape),{width:p.scaleX,height:p.scaleY,x:f-p.scaleX/2,y:g-p.scaleY/2}),y=se(p.style),m=new p.constructor({shape:v,style:y,z2:151});h.add(m)}for(d=0;d<u.length;d++){var x,_=(x=u[d]).children()[0],b=(y=se(_.style),v=se(_.shape),new ZO({style:y,shape:v,z2:151}));c.add(b)}a.bridge.renderContent({api:i,roamType:e.get("roam"),viewportRect:null,group:s,targetTrans:jp(null,a.coordSys)})}},t.type=mn,t})(Ze),qG=At(mn,function(n){var t=n.findComponents({mainType:"legend"});!t||!t.length||n.eachSeriesByType(mn,function(e){var i=e.getCategoriesData(),r=e.getGraph().data,o=i.mapArray(i.getName);r.filterSelf(function(a){var s=r.getItemModel(a).getShallow("category");if(s!=null){Ve(s)&&(s=o[s]);for(var l=0;l<t.length;l++)if(!t[l].isSelected(s))return!1}return!0})})}),jG=At(mn,function(n){var t={};n.eachSeriesByType(mn,function(e){var i=e.getCategoriesData(),r=e.getData(),o={};i.each(function(a){var s=i.getName(a);o["ec-"+s]=a;var l=i.getItemModel(a),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),i.setItemVisual(a,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++){var d=l.getShallow(c[h],!0);d!=null&&i.setItemVisual(a,c[h],d)}}),i.count()&&r.each(function(a){var s=r.getItemModel(a).getShallow("category");if(s!=null){te(s)&&(s=o["ec-"+s]);var l=i.getItemVisual(s,"style");X(r.ensureUniqueItemVisual(a,"style"),l);for(var u=["symbol","symbolSize","symbolKeepAspect"],c=0;c<u.length;c++)r.setItemVisual(a,u[c],i.getItemVisual(s,u[c]))}})})}),kc="chord",KG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new Al(ie(this.getData,this),ie(this.getRawData,this))},t.prototype.mergeOption=function(e){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,i){var r=e.edges||e.links||[],o=e.data||e.nodes||[];if(o&&r)return r_(o,r,this,!0,function(a,s){var l=Oe.prototype.getModel;function u(h,d){var p=l.call(this,h,d);return p.resolveParentPath=c,p}function c(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}s.wrapMethod("getItemModel",function(h){return h.resolveParentPath=c,h.getModel=u,h})}).data},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,i,r){var o=this.getDataParams(e,r);if(r==="edge"){var a=this.getData(),s=a.graph.getEdgeByIndex(e),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Mt("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}return Mt("nameValue",{name:o.name,value:o.value,noValue:o.value==null})},t.prototype.getDataParams=function(e,i){var r=n.prototype.getDataParams.call(this,e,i);if(i==="node"){var o=this.getData(),a=this.getGraph().getNodeByIndex(e);if(r.name==null&&(r.name=o.getName(e)),r.value==null){var s=a.getLayout().value;r.value=s}}return r},t.type="series."+kc,t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t})(je),JI=(function(n){function t(e,i,r){var o=n.call(this)||this;me(o).dataType="node",o.z2=2;var a=new Be;return o.setTextContent(a),o.updateData(e,i,r,!0),o}return G(t,n),t.prototype.updateData=function(e,i,r,o){var a=this,s=e.graph.getNodeByIndex(i),l=e.hostModel,u=s.getModel(),c=u.getModel("emphasis"),h=e.getItemLayout(i),d=X(zi(u.getModel("itemStyle"),h,!0),h),p=this;if(isNaN(d.startAngle))p.setShape(d);else{o?p.setShape(d):Fe(p,{shape:d},l,i);var f=X(zi(u.getModel("itemStyle"),h,!0),h);a.setShape(f),a.useStyle(e.getItemVisual(i,"style")),Ct(a,u),this._updateLabel(l,u,s),e.setItemGraphicEl(i,p),Ct(p,u,"itemStyle");var g=c.get("focus");at(this,g==="adjacency"?s.getAdjacentDataIndices():g,c.get("blurScope"),c.get("disabled"))}},t.prototype._updateLabel=function(e,i,r){var o=this.getTextContent(),a=r.getLayout(),s=(a.startAngle+a.endAngle)/2,l=Math.cos(s),u=Math.sin(s),c=i.getModel("label");o.ignore=!c.get("show");var h=Dt(i),d=r.getVisual("style");Et(o,h,{labelFetcher:{getFormattedLabel:function(m,x,_,b,w,S){return e.getFormattedLabel(m,x,"node",b,wn(w,h.normal&&h.normal.get("formatter"),i.get("name")),S)}},labelDataIndex:r.dataIndex,defaultText:r.dataIndex+"",inheritColor:d.fill,defaultOpacity:d.opacity,defaultOutsidePosition:"startArc"});var p,f=c.get("position")||"outside",g=c.get("distance")||0;p=f==="outside"?a.r+g:(a.r+a.r0)/2,this.textConfig={inside:f!=="outside"};var v=f!=="outside"?c.get("align")||"center":l>0?"left":"right",y=f!=="outside"?c.get("verticalAlign")||"middle":u>0?"top":"bottom";o.attr({x:l*p+a.cx,y:u*p+a.cy,rotation:0,style:{align:v,verticalAlign:y}})},t})($t),$G=(function(n){function t(e,i,r,o){var a=n.call(this)||this;return me(a).dataType="edge",a.updateData(e,i,r,o,!0),a}return G(t,n),t.prototype.buildPath=function(e,i){e.moveTo(i.s1[0],i.s1[1]);var r=.7,o=i.clockwise;e.arc(i.cx,i.cy,i.r,i.sStartAngle,i.sEndAngle,!o),e.bezierCurveTo((i.cx-i.s2[0])*r+i.s2[0],(i.cy-i.s2[1])*r+i.s2[1],(i.cx-i.t1[0])*r+i.t1[0],(i.cy-i.t1[1])*r+i.t1[1],i.t1[0],i.t1[1]),e.arc(i.cx,i.cy,i.r,i.tStartAngle,i.tEndAngle,!o),e.bezierCurveTo((i.cx-i.t2[0])*r+i.t2[0],(i.cy-i.t2[1])*r+i.t2[1],(i.cx-i.s1[0])*r+i.s1[0],(i.cy-i.s1[1])*r+i.s1[1],i.s1[0],i.s1[1]),e.closePath()},t.prototype.updateData=function(e,i,r,o,a){var s=e.hostModel,l=i.graph.getEdgeByIndex(r),u=l.getLayout(),c=l.node1.getModel(),h=i.getItemModel(l.dataIndex),d=h.getModel("lineStyle"),p=h.getModel("emphasis"),f=p.get("focus"),g=X(zi(c.getModel("itemStyle"),u,!0),u),v=this;isNaN(g.sStartAngle)||isNaN(g.tStartAngle)?v.setShape(g):(a?(v.setShape(g),QI(v,l,e,d)):(Jn(v),QI(v,l,e,d),Fe(v,{shape:g},s,r)),at(this,f==="adjacency"?l.getAdjacentDataIndices():f,p.get("blurScope"),p.get("disabled")),Ct(v,h,"lineStyle"),i.setItemGraphicEl(l.dataIndex,v))},t})(Le);function QI(n,t,e,i){var r=t.node1,o=t.node2,a=n.style;switch(n.setStyle(i.getLineStyle()),i.get("color")){case"source":a.fill=e.getItemVisual(r.dataIndex,"style").fill,a.decal=r.getVisual("style").decal;break;case"target":a.fill=e.getItemVisual(o.dataIndex,"style").fill,a.decal=o.getVisual("style").decal;break;case"gradient":var s=e.getItemVisual(r.dataIndex,"style").fill,l=e.getItemVisual(o.dataIndex,"style").fill;if(te(s)&&te(l)){var u=n.shape,c=(u.s1[0]+u.s2[0])/2,h=(u.s1[1]+u.s2[1])/2,d=(u.t1[0]+u.t2[0])/2,p=(u.t1[1]+u.t2[1])/2;a.fill=new Ua(c,h,d,p,[{offset:0,color:s},{offset:1,color:l}],!0)}}}var JG=Math.PI/180,QG=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=kc,e}return G(t,n),t.prototype.init=function(e,i){},t.prototype.render=function(e,i,r){var o=e.getData(),a=this._data,s=this.group,l=-e.get("startAngle")*JG;if(o.diff(a).add(function(c){if(o.getItemLayout(c)){var h=new JI(o,c,l);me(h).dataIndex=c,s.add(h)}}).update(function(c,h){var d=a.getItemGraphicEl(h);o.getItemLayout(c)?(d?d.updateData(o,c,l):d=new JI(o,c,l),s.add(d)):d&&fr(d,e,h)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&fr(h,e,c)}).execute(),!a){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=ne(u[0],r.getWidth()),this.group.originY=ne(u[1],r.getHeight()),rt(this.group,{scaleX:1,scaleY:1},e)}this._data=o,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,i){var r=e.getData(),o=e.getEdgeData(),a=this._edgeData,s=this.group;o.diff(a).add(function(l){var u=new $G(r,o,l,i);me(u).dataIndex=l,s.add(u)}).update(function(l,u){var c=a.getItemGraphicEl(u);c.updateData(r,o,l,i),s.add(c)}).remove(function(l){var u=a.getItemGraphicEl(l);u&&fr(u,e,l)}).execute(),this._edgeData=o},t.prototype.dispose=function(){},t.type=kc,t})(Ze),ly=Math.PI/180,eF=At(kc,function(n,t){n.eachSeriesByType(kc,function(e){(function(i,r){var o=i.getData(),a=o.graph,s=i.getEdgeData();if(s.count()){var l=gk(i,r),u=l.cx,c=l.cy,h=l.r,d=l.r0,p=Math.max((i.get("padAngle")||0)*ly,0),f=Math.max((i.get("minAngle")||0)*ly,0),g=-i.get("startAngle")*ly,v=g+2*Math.PI,y=i.get("clockwise"),m=y?1:-1,x=[g,v];Of(x,!y);var _=x[0],b=x[1]-_,w=o.getSum("value")===0&&s.getSum("value")===0,S=[],M=0;a.eachEdge(function(R){var z=w?1:R.getValue("value");w&&(z>0||f)&&(M+=2);var B=R.node1.dataIndex,V=R.node2.dataIndex;S[B]=(S[B]||0)+z,S[V]=(S[V]||0)+z});var I=0;if(a.eachNode(function(R){var z=R.getValue("value");isNaN(z)||(S[R.dataIndex]=Math.max(z,S[R.dataIndex]||0)),!w&&(S[R.dataIndex]>0||f)&&M++,I+=S[R.dataIndex]||0}),!(M===0||I===0)){p*M>=Math.abs(b)&&(p=Math.max(0,(Math.abs(b)-f*M)/M)),(p+f)*M>=Math.abs(b)&&(f=(Math.abs(b)-p*M)/M);var T=(b-p*M*m)/I,C=0,D=0,A=0;a.eachNode(function(R){var z=S[R.dataIndex]||0,B=T*(I?z:1)*m;Math.abs(B)<f?C+=f-Math.abs(B):(D+=Math.abs(B)-f,A+=Math.abs(B)),R.setLayout({angle:B,value:z})});var L=!1;if(C>D){var P=C/D;a.eachNode(function(R){var z=R.getLayout().angle;Math.abs(z)>=f?R.setLayout({angle:z*P,ratio:P},!0):R.setLayout({angle:f,ratio:f===0?1:z/f},!0)})}else a.eachNode(function(R){if(!L){var z=R.getLayout().angle;z-Math.min(z/A,1)*C<f&&(L=!0)}});var E=C;a.eachNode(function(R){if(!(E<=0)){var z=R.getLayout().angle;if(z>f&&f>0){var B=L?1:Math.min(z/A,1),V=z-f,W=Math.min(V,Math.min(E,C*B));E-=W,R.setLayout({angle:z-W,ratio:(z-W)/z},!0)}else f>0&&R.setLayout({angle:f,ratio:z===0?1:f/z},!0)}});var O=_,N=[];a.eachNode(function(R){var z=Math.max(R.getLayout().angle,f);R.setLayout({cx:u,cy:c,r0:d,r:h,startAngle:O,endAngle:O+z*m,clockwise:y},!0),N[R.dataIndex]=O,O+=(z+p)*m}),a.eachEdge(function(R){var z=w?1:R.getValue("value"),B=T*(I?z:1)*m,V=R.node1.dataIndex,W=N[V]||0,U=W+Math.abs((R.node1.getLayout().ratio||1)*B)*m,F=[u+d*Math.cos(W),c+d*Math.sin(W)],Q=[u+d*Math.cos(U),c+d*Math.sin(U)],Z=R.node2.dataIndex,Y=N[Z]||0,J=Y+Math.abs((R.node2.getLayout().ratio||1)*B)*m,$=[u+d*Math.cos(Y),c+d*Math.sin(Y)],j=[u+d*Math.cos(J),c+d*Math.sin(J)];R.setLayout({s1:F,s2:Q,sStartAngle:W,sEndAngle:U,t1:$,t2:j,tStartAngle:Y,tEndAngle:J,cx:u,cy:c,r:d,value:z,clockwise:y}),N[V]=U,N[Z]=J})}}})(e,t)})}),tF=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},nF=(function(n){function t(e){var i=n.call(this,e)||this;return i.type="pointer",i}return G(t,n),t.prototype.getDefaultShape=function(){return new tF},t.prototype.buildPath=function(e,i){var r=Math.cos,o=Math.sin,a=i.r,s=i.width,l=i.angle,u=i.x-r(l)*s*(s>=a/3?1:2),c=i.y-o(l)*s*(s>=a/3?1:2);l=i.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(i.x+r(l)*s,i.y+o(l)*s),e.lineTo(i.x+r(i.angle)*a,i.y+o(i.angle)*a),e.lineTo(i.x-r(l)*s,i.y-o(l)*s),e.lineTo(u,c)},t})(Le);function Jh(n,t){var e=n==null?"":n+"";return t&&(te(t)?e=t.replace("{value}",e):le(t)&&(e=t(n))),e}var iF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){this.group.removeAll();var o=e.get(["axisLine","lineStyle","color"]),a=(function(s,l){var u=s.get("center"),c=l.getWidth(),h=l.getHeight(),d=Math.min(c,h);return{cx:ne(u[0],l.getWidth()),cy:ne(u[1],l.getHeight()),r:ne(s.get("radius"),d/2)}})(e,r);this._renderMain(e,i,r,o,a),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,i,r,o,a){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,h=e.getModel("axisLine"),d=h.get("roundCap")?Hp:$t,p=h.get("show"),f=h.getModel("lineStyle"),g=f.get("width"),v=[u,c];Of(v,!l);for(var y=(c=v[1])-(u=v[0]),m=u,x=[],_=0;p&&_<o.length;_++){var b=new d({shape:{startAngle:m,endAngle:c=u+y*Math.min(Math.max(o[_][0],0),1),cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-g,r:a.r},silent:!0});b.setStyle({fill:o[_][1]}),b.setStyle(f.getLineStyle(["color","width"])),x.push(b),m=c}x.reverse(),k(x,function(S){return s.add(S)});var w=function(S){if(S<=0)return o[0][1];var M;for(M=0;M<o.length;M++)if(o[M][0]>=S&&(M===0?0:o[M-1][0])<S)return o[M][1];return o[M-1][1]};this._renderTicks(e,i,r,w,a,u,c,l,g),this._renderTitleAndDetail(e,i,r,w,a),this._renderAnchor(e,a),this._renderPointer(e,i,r,w,a,u,c,l,g)},t.prototype._renderTicks=function(e,i,r,o,a,s,l,u,c){for(var h,d,p=this.group,f=a.cx,g=a.cy,v=a.r,y=+e.get("min"),m=+e.get("max"),x=e.getModel("splitLine"),_=e.getModel("axisTick"),b=e.getModel("axisLabel"),w=e.get("splitNumber"),S=_.get("splitNumber"),M=ne(x.get("length"),v),I=ne(_.get("length"),v),T=s,C=(l-s)/w,D=C/S,A=x.getModel("lineStyle").getLineStyle(),L=_.getModel("lineStyle").getLineStyle(),P=x.get("distance"),E=0;E<=w;E++){if(h=Math.cos(T),d=Math.sin(T),x.get("show")){var O=new _t({shape:{x1:h*(v-(N=P?P+c:c))+f,y1:d*(v-N)+g,x2:h*(v-M-N)+f,y2:d*(v-M-N)+g},style:A,silent:!0});A.stroke==="auto"&&O.setStyle({stroke:o(E/w)}),p.add(O)}if(b.get("show")){var N=b.get("distance")+P,R=Jh(Ge(E*(m-y)/w+y,14),b.get("formatter")),z=o(E/w),B=h*(v-M-N)+f,V=d*(v-M-N)+g,W=b.get("rotate"),U=0;W==="radial"?(U=-T+2*Math.PI)>Math.PI/2&&(U+=Math.PI):W==="tangential"?U=-T-Math.PI/2:Ve(W)&&(U=W*Math.PI/180),U===0?p.add(new Be({style:Je(b,{text:R,x:B,y:V,verticalAlign:d<-.8?"top":d>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:z}),silent:!0})):p.add(new Be({style:Je(b,{text:R,x:B,y:V,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:B,originY:V,rotation:U}))}if(_.get("show")&&E!==w){N=(N=_.get("distance"))?N+c:c;for(var F=0;F<=S;F++){h=Math.cos(T),d=Math.sin(T);var Q=new _t({shape:{x1:h*(v-N)+f,y1:d*(v-N)+g,x2:h*(v-I-N)+f,y2:d*(v-I-N)+g},silent:!0,style:L});L.stroke==="auto"&&Q.setStyle({stroke:o((E+F/S)/w)}),p.add(Q),T+=D}T-=D}else T+=C}},t.prototype._renderPointer=function(e,i,r,o,a,s,l,u,c){var h=this.group,d=this._data,p=this._progressEls,f=[],g=e.get(["pointer","show"]),v=e.getModel("progress"),y=v.get("show"),m=e.getData(),x=m.mapDimension("value"),_=+e.get("min"),b=+e.get("max"),w=[_,b],S=[s,l];function M(T,C){var D,A=m.getItemModel(T).getModel("pointer"),L=ne(A.get("width"),a.r),P=ne(A.get("length"),a.r),E=e.get(["pointer","icon"]),O=A.get("offsetCenter"),N=ne(O[0],a.r),R=ne(O[1],a.r),z=A.get("keepAspect");return(D=E?bt(E,N-L/2,R-P,L,P,null,z):new nF({shape:{angle:-Math.PI/2,width:L,r:P,x:N,y:R}})).rotation=-(C+Math.PI/2),D.x=a.cx,D.y=a.cy,D}function I(T,C){var D=v.get("roundCap")?Hp:$t,A=v.get("overlap"),L=A?v.get("width"):c/m.count(),P=A?a.r-L:a.r-(T+1)*L,E=A?a.r:a.r-T*L,O=new D({shape:{startAngle:s,endAngle:C,cx:a.cx,cy:a.cy,clockwise:u,r0:P,r:E}});return A&&(O.z2=He(m.get(x,T),[_,b],[100,0],!0)),O}(y||g)&&(m.diff(d).add(function(T){var C=m.get(x,T);if(g){var D=M(T,s);rt(D,{rotation:-((isNaN(+C)?S[0]:He(C,w,S,!0))+Math.PI/2)},e),h.add(D),m.setItemGraphicEl(T,D)}if(y){var A=I(T,s),L=v.get("clip");rt(A,{shape:{endAngle:He(C,w,S,L)}},e),h.add(A),Pm(e.seriesIndex,m.dataType,T,A),f[T]=A}}).update(function(T,C){var D=m.get(x,T);if(g){var A=d.getItemGraphicEl(C),L=A?A.rotation:s,P=M(T,L);P.rotation=L,Fe(P,{rotation:-((isNaN(+D)?S[0]:He(D,w,S,!0))+Math.PI/2)},e),h.add(P),m.setItemGraphicEl(T,P)}if(y){var E=p[C],O=I(T,E?E.shape.endAngle:s),N=v.get("clip");Fe(O,{shape:{endAngle:He(D,w,S,N)}},e),h.add(O),Pm(e.seriesIndex,m.dataType,T,O),f[T]=O}}).execute(),m.each(function(T){var C=m.getItemModel(T),D=C.getModel("emphasis"),A=D.get("focus"),L=D.get("blurScope"),P=D.get("disabled"),E=o(He(m.get(x,T),w,[0,1],!0));if(g){var O=m.getItemGraphicEl(T),N=m.getItemVisual(T,"style"),R=N.fill;if(O instanceof zt){var z=O.style;O.useStyle(X({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},N))}else O.useStyle(N),O.type!=="pointer"&&O.setColor(R);O.setStyle(C.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",E),O.z2EmphasisLift=0,Ct(O,C),at(O,A,L,P)}if(y){var B=f[T];B.useStyle(m.getItemVisual(T,"style")),B.setStyle(C.getModel(["progress","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",E),B.z2EmphasisLift=0,Ct(B,C),at(B,A,L,P)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,i){var r=e.getModel("anchor");if(r.get("show")){var o=r.get("size"),a=r.get("icon"),s=r.get("offsetCenter"),l=r.get("keepAspect"),u=bt(a,i.cx-o/2+ne(s[0],i.r),i.cy-o/2+ne(s[1],i.r),o,o,null,l);u.z2=r.get("showAbove")?1:0,u.setStyle(r.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,i,r,o,a){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),h=+e.get("max"),d=new he,p=[],f=[],g=e.isAnimationEnabled(),v=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){p[y]=new Be({silent:!0}),f[y]=new Be({silent:!0})}).update(function(y,m){p[y]=s._titleEls[m],f[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),x=l.get(u,y),_=new he,b=o(He(x,[c,h],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var S=w.get("offsetCenter"),M=a.cx+ne(S[0],a.r),I=a.cy+ne(S[1],a.r);(O=p[y]).attr({z2:v?0:2,style:Je(w,{x:M,y:I,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(O)}var T=m.getModel("detail");if(T.get("show")){var C=T.get("offsetCenter"),D=a.cx+ne(C[0],a.r),A=a.cy+ne(C[1],a.r),L=ne(T.get("width"),a.r),P=ne(T.get("height"),a.r),E=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,O=f[y],N=T.get("formatter");O.attr({z2:v?0:2,style:Je(T,{x:D,y:A,text:Jh(x,N),width:isNaN(L)?null:L,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:E})}),YA(O,{normal:T},x,function(R){return Jh(R,N)}),g&&XA(O,y,l,e,{getFormattedLabel:function(R,z,B,V,W,U){return Jh(U?U.interpolatedValue:x,N)}}),_.add(O)}d.add(_)}),this.group.add(d),this._titleEls=p,this._detailEls=f},t.type="gauge",t})(Ze),rF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return G(t,n),t.prototype.getInitialData=function(e,i){return Dl(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,H.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:H.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:H.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:H.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:H.color.neutral00,borderWidth:0,borderColor:H.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:H.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:H.color.transparent,borderWidth:0,borderColor:H.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:H.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t})(je),ol="funnel",oF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new Al(ie(this.getData,this),ie(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,i){return Dl(this,{coordDimensions:["value"],encodeDefaulter:Ce(px,this)})},t.prototype._defaultLabelLine=function(e){ba(e,"labelLine",["show"]);var i=e.labelLine,r=e.emphasis.labelLine;i.show=i.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var i=this.getData(),r=n.prototype.getDataParams.call(this,e),o=i.mapDimension("value"),a=i.getSum(o);return r.percent=a?+(i.get(o,e)/a*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series."+ol,t.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:H.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:H.color.primary}}},t})(je),aF=["itemStyle","opacity"],sF=(function(n){function t(e,i){var r=n.call(this)||this,o=r,a=new Wt,s=new Be;return o.setTextContent(s),r.setTextGuideLine(a),r.updateData(e,i,!0),r}return G(t,n),t.prototype.updateData=function(e,i,r){var o=this,a=e.hostModel,s=e.getItemModel(i),l=e.getItemLayout(i),u=s.getModel("emphasis"),c=s.get(aF);c=c??1,r||Jn(o),o.useStyle(e.getItemVisual(i,"style")),o.style.lineJoin="round",r?(o.setShape({points:l.points}),o.style.opacity=0,rt(o,{style:{opacity:c}},a,i)):Fe(o,{style:{opacity:c},shape:{points:l.points}},a,i),Ct(o,s),this._updateLabel(e,i),at(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,i){var r=this,o=this.getTextGuideLine(),a=r.getTextContent(),s=e.hostModel,l=e.getItemModel(i),u=e.getItemLayout(i).label,c=e.getItemVisual(i,"style"),h=c.fill;Et(a,Dt(l),{labelFetcher:e.hostModel,labelDataIndex:i,defaultOpacity:c.opacity,defaultText:e.getName(i)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}});var d=l.getModel("label").get("color")==="inherit"?h:null;r.setTextConfig({local:!0,inside:!!u.inside,insideStroke:d,outsideFill:d});var p=u.linePoints;o.setShape({points:p}),r.textGuideLineConfig={anchor:p?new ge(p[0][0],p[0][1]):null},Fe(a,{style:{x:u.x,y:u.y}},s,i),a.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),zx(r,Bx(l),{stroke:h})},t})(Jt),lF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=ol,e.ignoreLabelLineUpdate=!0,e}return G(t,n),t.prototype.render=function(e,i,r){var o=e.getData(),a=this._data,s=this.group;o.diff(a).add(function(l){var u=new sF(o,l);o.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=a.getItemGraphicEl(u);c.updateData(o,l),s.add(c),o.setItemGraphicEl(l,c)}).remove(function(l){fr(a.getItemGraphicEl(l),e,l)}).execute(),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=ol,t})(Ze),uF=At(ol,function(n,t){n.eachSeriesByType(ol,function(e){var i=e.getData(),r=i.mapDimension("value"),o=e.get("sort"),a=kt(e,t),s=ot(e.getBoxLayoutParams(),a.refContainer),l=eT(e),u=s.width,c=s.height,h=(function(L,P){for(var E=L.mapDimension("value"),O=L.mapArray(E,function(V){return V}),N=[],R=P==="ascending",z=0,B=L.count();z<B;z++)N[z]=z;return le(P)?N.sort(P):P!=="none"&&N.sort(function(V,W){return R?O[V]-O[W]:O[W]-O[V]}),N})(i,o),d=s.x,p=s.y,f=l?[ne(e.get("minSize"),c),ne(e.get("maxSize"),c)]:[ne(e.get("minSize"),u),ne(e.get("maxSize"),u)],g=i.getDataExtent(r),v=e.get("min"),y=e.get("max");v==null&&(v=Math.min(g[0],0)),y==null&&(y=g[1]);var m=e.get("funnelAlign"),x=e.get("gap"),_=((l?u:c)-x*(i.count()-1))/i.count(),b=function(L,P){if(l){var E=He(i.get(r,L)||0,[v,y],f,!0),O=void 0;switch(m){case"top":O=p;break;case"center":O=p+(c-E)/2;break;case"bottom":O=p+(c-E)}return[[P,O],[P,O+E]]}var N,R=He(i.get(r,L)||0,[v,y],f,!0);switch(m){case"left":N=d;break;case"center":N=d+(u-R)/2;break;case"right":N=d+u-R}return[[N,P],[N+R,P]]};o==="ascending"&&(_=-_,x=-x,l?d+=u:p+=c,h=h.reverse());for(var w=0;w<h.length;w++){var S=h[w],M=h[w+1],I=i.getItemModel(S);if(l){var T=I.get(["itemStyle","width"]);T==null?T=_:(T=ne(T,u),o==="ascending"&&(T=-T));var C=b(S,d),D=b(M,d+T);d+=T+x,i.setItemLayout(S,{points:C.concat(D.slice().reverse())})}else{var A=I.get(["itemStyle","height"]);A==null?A=_:(A=ne(A,c),o==="ascending"&&(A=-A)),C=b(S,p),D=b(M,p+A),p+=A+x,i.setItemLayout(S,{points:C.concat(D.slice().reverse())})}}(function(L){var P=eT(L.hostModel);L.each(function(E){var O,N,R,z,B=L.getItemModel(E),V=B.getModel("label").get("position"),W=B.getModel("labelLine"),U=L.getItemLayout(E),F=U.points,Q=V==="inner"||V==="inside"||V==="center"||V==="insideLeft"||V==="insideRight";if(Q)V==="insideLeft"?(N=(F[0][0]+F[3][0])/2+5,R=(F[0][1]+F[3][1])/2,O="left"):V==="insideRight"?(N=(F[1][0]+F[2][0])/2-5,R=(F[1][1]+F[2][1])/2,O="right"):(N=(F[0][0]+F[1][0]+F[2][0]+F[3][0])/4,R=(F[0][1]+F[1][1]+F[2][1]+F[3][1])/4,O="center"),z=[[N,R],[N,R]];else{var Z=void 0,Y=void 0,J=void 0,$=void 0,j=W.get("length");te(V)&&(!P&&be(["top","bottom"],V)>-1&&(V="left"),P&&be(["left","right"],V)>-1&&(V="bottom")),V==="left"?(Z=(F[3][0]+F[0][0])/2,Y=(F[3][1]+F[0][1])/2,N=(J=Z-j)-5,O="right"):V==="right"?(Z=(F[1][0]+F[2][0])/2,Y=(F[1][1]+F[2][1])/2,N=(J=Z+j)+5,O="left"):V==="top"?(Z=(F[3][0]+F[0][0])/2,R=($=(Y=(F[3][1]+F[0][1])/2)-j)-5,O="center"):V==="bottom"?(Z=(F[1][0]+F[2][0])/2,R=($=(Y=(F[1][1]+F[2][1])/2)+j)+5,O="center"):V==="rightTop"?(Z=P?F[3][0]:F[1][0],Y=P?F[3][1]:F[1][1],P?(R=($=Y-j)-5,O="center"):(N=(J=Z+j)+5,O="top")):V==="rightBottom"?(Z=F[2][0],Y=F[2][1],P?(R=($=Y+j)+5,O="center"):(N=(J=Z+j)+5,O="bottom")):V==="leftTop"?(Z=F[0][0],Y=P?F[0][1]:F[1][1],P?(R=($=Y-j)-5,O="center"):(N=(J=Z-j)-5,O="right")):V==="leftBottom"?(Z=P?F[1][0]:F[3][0],Y=P?F[1][1]:F[2][1],P?(R=($=Y+j)+5,O="center"):(N=(J=Z-j)-5,O="right")):(Z=(F[1][0]+F[2][0])/2,Y=(F[1][1]+F[2][1])/2,P?(R=($=Y+j)+5,O="center"):(N=(J=Z+j)+5,O="left")),P?N=J=Z:R=$=Y,z=[[Z,Y],[J,$]]}U.label={linePoints:z,x:N,y:R,verticalAlign:"middle",textAlign:O,inside:Q}})})(i)})});function eT(n){return n.get("orient")==="horizontal"}var cF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new he,e._initialized=!1,e}return G(t,n),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,i,r,o){var a=this._dataGroup;this._progressiveEls=[],a.removeAll();var s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.dimensions,h=nT(e);if(s.diff(l).add(function(p){uy(tT(s,a,p,c,u),s,p,h)}).update(function(p,f){var g=l.getItemGraphicEl(f);a.add(g);var v=jO(s,p,c,u);s.setItemGraphicEl(p,g),Fe(g,{shape:{points:v}},e,p),Jn(g),uy(g,s,p,h)}).remove(function(p){var f=l.getItemGraphicEl(p);a.remove(f)}).execute(),!this._initialized){this._initialized=!0;var d=(function(p,f,g){var v=p.model,y=p.getRect(),m=new Ae({shape:{x:y.x,y:y.y,width:y.width,height:y.height}}),x=v.get("layout")==="horizontal"?"width":"height";return m.setShape(x,0),rt(m,{shape:{width:y.width,height:y.height}},f,g),m})(u,e,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(d)}this._data=s},t.prototype.incrementalPrepareRender=function(e,i,r){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,i,r){for(var o=i.getData(),a=i.coordinateSystem,s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=tT(o,this._dataGroup,l,a.dimensions,a);u.incremental=Gi(i),uy(u,o,l,nT(i)),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t})(Ze);function jO(n,t,e,i){for(var r=[],o=0;o<e.length;o++){var a=e[o],s=n.get(n.mapDimension(a),t);hF(s,i.getAxis(a).type)||r.push(i.dataToPoint(s,a))}return r}function tT(n,t,e,i,r){var o=jO(n,e,i,r),a=new Wt({shape:{points:o},z2:10});return t.add(a),n.setItemGraphicEl(e,a),a}function nT(n){var t=n.get("smooth",!0);return t===!0&&(t=.3),jt(t=Xi(t))&&(t=0),{smooth:t}}function uy(n,t,e,i){n.useStyle(t.getItemVisual(e,"style")),n.style.fill=null,n.setShape("smooth",i.smooth);var r=t.getItemModel(e),o=r.getModel("emphasis");Ct(n,r,"lineStyle"),at(n,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function hF(n,t){return t==="category"?n==null:n==null||isNaN(n)}var dF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return G(t,n),t.prototype.getInitialData=function(e,i){return Ji(null,this,{useEncodeDefaulter:ie(pF,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var i=this.coordinateSystem,r=this.getData(),o=[];return i.eachActiveState(r,function(a,s){e===a&&o.push(r.getRawIndex(s))}),o},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},t})(je);function pF(n){var t=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(t){var e={};return k(t.dimensions,function(i){var r=+i.replace("dim","");e[i]=r}),e}}var fF=["lineStyle","opacity"],gF={seriesType:"parallel",reset:function(n,t){var e=n.coordinateSystem,i={normal:n.get(["lineStyle","opacity"]),active:n.get("activeOpacity"),inactive:n.get("inactiveOpacity")};return{progress:function(r,o){e.eachActiveState(o,function(a,s){var l=i[a];if(a==="normal"&&o.hasItemOption){var u=o.getItemModel(s).get(fF,!0);u!=null&&(l=u)}o.ensureUniqueItemVisual(s,"style").opacity=l},r.start,r.end)}}}};function vF(n){(function(t){if(!t.parallel){var e=!1;k(t.series,function(i){i&&i.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}})(n),(function(t){var e=$e(t.parallelAxis);k(e,function(i){if(fe(i)){var r=i.parallelIndex||0,o=$e(t.parallel)[r];o&&o.parallelAxisDefault&&Se(i,o.parallelAxisDefault,!1)}})})(n)}var yF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){this._model=e,this._api=r,this._handlers||(this._handlers={},k(mF,function(o,a){r.getZr().on(a,this._handlers[a]=ie(o,this))},this)),bl(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,i){fc(this,"_throttledDispatchExpand"),k(this._handlers,function(r,o){i.getZr().off(o,r)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(X({type:"parallelAxisExpand"},e))},t.type="parallel",t})(et),mF={mousedown:function(n){cy(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var t=this._mouseDownPoint;if(cy(this,"click")&&t){var e=[n.offsetX,n.offsetY];if(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!this._mouseDownPoint&&cy(this,"mousemove")){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),i=e.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function cy(n,t){var e=n._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var tf="parallel",G0=tf,xF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var i=this.option;e&&Se(i,e,!0),this._initDimensions()},t.prototype.contains=function(e,i){var r=e.get("parallelIndex");return r!=null&&i.getComponent("parallel",r)===this},t.prototype.setAxisExpand=function(e){k(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){e.hasOwnProperty(i)&&(this.option[i]=e[i])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],i=this.parallelAxisIndex=[];k(Ye(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(r){return(r.get("parallelIndex")||0)===this.componentIndex},this),function(r){e.push("dim"+r.get("dim")),i.push(r.componentIndex)})},t.type=G0,t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t})(ke),_F=(function(n){function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.type=o||"value",s.axisIndex=a,s}return G(t,n),t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t})(hi);function go(n,t,e,i,r,o){n=n||0;var a=Uo(e[1],-e[0]);if(r!=null&&(r=xs(r,[0,a])),o!=null&&(o=Math.max(o,r??0)),i==="all"){var s=Math.abs(Uo(t[1],-t[0]));s=xs(s,[0,a]),r=o=xs(s,[r,o]),i=0}t[0]=xs(t[0],e),t[1]=xs(t[1],e);var l=hy(t,i);t[i]+=n;var u,c=r||0,h=e.slice();return l.sign<0?h[0]=Uo(h[0],c):h[1]=Uo(h[1],-c),t[i]=xs(t[i],h),u=hy(t,i),r!=null&&(u.sign!==l.sign||u.span<r)&&(t[1-i]=Uo(t[i],l.sign*r)),u=hy(t,i),o!=null&&u.span>o&&(t[1-i]=Uo(t[i],u.sign*o)),t}function hy(n,t){var e=n[t]-n[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function xs(n,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,n))}var bF=(function(){function n(t,e,i){this.type=tf,this._axesMap=re(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,i)}return n.prototype._init=function(t,e,i){var r=t.dimensions,o=t.parallelAxisIndex;k(r,function(a,s){var l=o[s],u=e.getComponent("parallelAxis",l),c=Xc(u),h=this._axesMap.set(a,new _F(a,Il(u,c,!1),[0,0],c,l));h.onBand=Zc(h.scale,u),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(t,e){k(this.dimensions,function(i){var r=this._axesMap.get(i);ka(r,1),nl(r)},this)},n.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),i=e.axisBase,r=e.layoutBase,o=e.pixelDimIndex,a=t[1-o],s=t[o];return a>=i&&a<=i+e.axisLength&&s>=r&&s<=r+e.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype.resize=function(t,e){var i=kt(t,e).refContainer;this._rect=ot(t.getBoxLayoutParams(),i),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var t,e=this._model,i=this._rect,r=["x","y"],o=["width","height"],a=e.get("layout"),s=a==="horizontal"?0:1,l=i[o[s]],u=[0,l],c=this.dimensions.length,h=Qh(e.get("axisExpandWidth"),u),d=Qh(e.get("axisExpandCount")||0,[0,c]),p=e.get("axisExpandable")&&c>3&&c>d&&d>1&&h>0&&l>0,f=e.get("axisExpandWindow");f?(t=Qh(f[1]-f[0],u),f[1]=f[0]+t):(t=Qh(h*(d-1),u),(f=[h*(e.get("axisExpandCenter")||Zn(c/2))-t/2])[1]=f[0]+t);var g=(l-t)/(c-d);g<3&&(g=0);var v=[Zn(Ge(f[0]/h,1))+1,ca(Ge(f[1]/h,1))-1],y=g/h*f[0];return{layout:a,pixelDimIndex:s,layoutBase:i[r[s]],layoutLength:l,axisBase:i[r[1-s]],axisLength:i[o[1-s]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:g,axisExpandWindow:f,axisCount:c,winInnerIndices:v,axisExpandWindow0Pos:y}},n.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,i=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;e.each(function(a){var s=[0,r.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),k(i,function(a,s){var l=(r.axisExpandable?SF:wF)(s,r),u={horizontal:{x:l.position,y:r.axisLength},vertical:{x:0,y:l.position}},c={horizontal:op/2,vertical:0},h=[u[o].x+t.x,u[o].y+t.y],d=c[o],p=[1,0,0,1,0,0];Cr(p,p,d),ci(p,p,h),this._axesLayout[a]={position:h,rotation:d,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(t){return this._axesMap.get(t)},n.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},n.prototype.eachActiveState=function(t,e,i,r){i==null&&(i=0),r==null&&(r=t.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];k(a,function(g){s.push(t.mapDimension(g)),l.push(o.get(g).model)});for(var u=this.hasAxisBrushed(),c=i;c<r;c++){var h=void 0;if(u){h="active";for(var d=t.getValues(s,c),p=0,f=a.length;p<f;p++)if(l[p].getActiveState(d[p])==="inactive"){h="inactive";break}}else h="normal";e(h,c)}},n.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,i=!1,r=0,o=t.length;r<o;r++)e.get(t[r]).model.getActiveState()!=="normal"&&(i=!0);return i},n.prototype.axisCoordToPoint=function(t,e){return li([t,0],this._axesLayout[e].transform)},n.prototype.getAxisLayout=function(t){return se(this._axesLayout[t])},n.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,r=e.axisExpandWindow.slice(),o=r[1]-r[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var s,l=t[i]-e.layoutBase-e.axisExpandWindow0Pos,u="slide",c=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),d=h[0]!=null;if(c)d&&c&&l<o*h[0]?(u="jump",s=l-o*h[2]):d&&c&&l>o*(1-h[0])?(u="jump",s=l-o*(1-h[2])):(s=l-o*h[1])>=0&&(s=l-o*(1-h[1]))<=0&&(s=0),(s*=e.axisExpandWidth/c)?go(s,r,a,"all"):u="none";else{var p=r[1]-r[0];(r=[De(0,a[1]*l/p-p/2)])[1]=Xe(a[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:u}},n})();function Qh(n,t){return Xe(De(n,t[0]),t[1])}function wF(n,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*n,axisNameAvailableWidth:e,axisLabelShow:!0}}function SF(n,t){var e,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return n<l[0]?(e=n*s,i=s):n<=l[1]?(e=t.axisExpandWindow0Pos+n*o-t.axisExpandWindow[0],u=o,c=!0):(e=r-(a-1-n)*s,i=s),{position:e,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var MF={create:function(n,t){var e=[];return n.eachComponent(G0,function(i,r){var o=new bF(i,n,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,e.push(o)}),n.eachSeries(function(i){if(i.get("coordinateSystem")===tf){var r=i.getReferringComponents(G0,pt).models[0],o=i.coordinateSystem=r.coordinateSystem;o&&k(o.dimensions,function(a){Aa(o.getAxis(a),i,tf)})}}),e}},F0=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return G(t,n),t.prototype.getAreaSelectStyle=function(){return Ma([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var i=this.activeIntervals=se(e);if(i)for(var r=i.length-1;r>=0;r--)Ft(i[r])},t.prototype.getActiveState=function(e){var i=this.activeIntervals;if(!i.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(i.length===1){var r=i[0];if(r[0]<=e&&e<=r[1])return"active"}else for(var o=0,a=i.length;o<a;o++)if(i[o][0]<=e&&e<=i[o][1])return"active";return"inactive"},t})(ke);xt(F0,Tl);var za=!0,Lc=Math.min,al=Math.max,IF=Math.pow,iT="globalPan",TF={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},CF={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},rT={brushStyle:{lineWidth:2,stroke:H.color.backgroundTint,fill:H.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},DF=0,c_=(function(n){function t(e){var i=n.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=e,i.group=new he,i._uid="brushController_"+DF++,k(kF,function(r,o){this._handlers[o]=ie(r,this)},i),i}return G(t,n),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var i=this._zr;this._enableGlobalPan||(function(r,o,a){O0(r)[o]=a})(i,iT,this._uid),k(this._handlers,function(r,o){i.on(o,r)}),this._brushType=e.brushType,this._brushOption=Se(se(rT),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;(function(i,r,o){var a=O0(i);a[r]===o&&(a[r]=null)})(e,iT,this._uid),k(this._handlers,function(i,r){e.off(r,i)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var i=this._panels={};k(e,function(r){i[r.panelId]=se(r)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=i.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=K(e,function(u){return Se(se(rT),u,!0)});var i=this._covers,r=this._covers=[],o=this,a=this._creatingCover;return new Sr(i,e,function(u,c){return s(u.__brushOption,c)},s).add(l).update(l).remove(function(u){i[u]!==a&&o.group.remove(i[u])}).execute(),this;function s(u,c){return(u.id!=null?u.id:"\0-brush-index-"+c)+"-"+u.brushType}function l(u,c){var h=e[u];if(c!=null&&i[c]===a)r[u]=i[c];else{var d=r[u]=c!=null?(i[c].__brushOption=h,i[c]):$O(o,KO(o,h));h_(o,d)}}},t.prototype.unmount=function(){return this.enableBrush(!1),W0(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(Qn);function KO(n,t){var e=Kf[t.brushType].createCover(n,t);return e.__brushOption=t,QO(e,t),n.group.add(e),e}function $O(n,t){var e=d_(t);return e.endCreating&&(e.endCreating(n,t),QO(t,t.__brushOption)),t}function JO(n,t){var e=t.__brushOption;d_(t).updateCoverShape(n,t,e.range,e)}function QO(n,t){var e=t.z;e==null&&(e=1e4),n.traverse(function(i){i.z=e,i.z2=e})}function h_(n,t){d_(t).updateCommon(n,t),JO(n,t)}function d_(n){return Kf[n.__brushOption.brushType]}function H0(n,t,e){var i,r=n._panels;if(!r)return za;var o=n._transform;return k(r,function(a){a.isTargetByCursor(t,e,o)&&(i=a)}),i}function eR(n,t){var e=n._panels;if(!e)return za;var i=t.__brushOption.panelId;return i!=null?e[i]:za}function W0(n){var t=n._covers,e=t.length;return k(t,function(i){n.group.remove(i)},n),t.length=0,!!e}function Ba(n,t){var e=K(n._covers,function(i){var r=i.__brushOption,o=se(r.range);return{brushType:r.brushType,panelId:r.panelId,range:o}});n.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function tR(n){var t=n.length-1;return t<0&&(t=0),[n[0],n[t]]}function nR(n,t,e,i){var r=new he;return r.add(new Ae({name:"main",style:p_(e),silent:!0,draggable:!0,cursor:"move",drift:Ce(oT,n,t,r,["n","s","w","e"]),ondragend:Ce(Ba,t,{isEnd:!0})})),k(i,function(o){r.add(new Ae({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ce(oT,n,t,r,o),ondragend:Ce(Ba,t,{isEnd:!0})}))}),r}function iR(n,t,e,i){var r=i.brushStyle.lineWidth||0,o=al(r,6),a=e[0][0],s=e[1][0],l=a-r/2,u=s-r/2,c=e[0][1],h=e[1][1],d=c-o+r/2,p=h-o+r/2,f=c-a,g=h-s,v=f+r,y=g+r;ir(n,t,"main",a,s,f,g),i.transformable&&(ir(n,t,"w",l,u,o,y),ir(n,t,"e",d,u,o,y),ir(n,t,"n",l,u,v,o),ir(n,t,"s",l,p,v,o),ir(n,t,"nw",l,u,o,o),ir(n,t,"ne",d,u,o,o),ir(n,t,"sw",l,p,o,o),ir(n,t,"se",d,p,o,o))}function U0(n,t){var e=t.__brushOption,i=e.transformable,r=t.childAt(0);r.useStyle(p_(e)),r.attr({silent:!i,cursor:i?"move":"default"}),k([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=t.childOfName(o.join("")),s=o.length===1?dy(n,o[0]):(function(l,u){var c=[dy(l,u[0]),dy(l,u[1])];return(c[0]==="e"||c[0]==="w")&&c.reverse(),c.join("")})(n,o);a&&a.attr({silent:!i,invisible:!i,cursor:i?CF[s]+"-resize":null})})}function ir(n,t,e,i,r,o,a){var s=t.childOfName(e);s&&s.setShape((function(l){var u=Lc(l[0][0],l[1][0]),c=Lc(l[0][1],l[1][1]),h=al(l[0][0],l[1][0]),d=al(l[0][1],l[1][1]);return{x:u,y:c,width:h-u,height:d-c}})(f_(n,t,[[i,r],[i+o,r+a]])))}function p_(n){return pe({strokeNoScale:!0},n.brushStyle)}function rR(n,t,e,i){var r=[Lc(n,e),Lc(t,i)],o=[al(n,e),al(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function dy(n,t){var e=Ef({w:"left",e:"right",n:"top",s:"bottom"}[t],(function(i){return pa(i.group)})(n));return{left:"w",right:"e",top:"n",bottom:"s"}[e]}function oT(n,t,e,i,r,o){var a=e.__brushOption,s=n.toRectRange(a.range),l=oR(t,r,o);k(i,function(u){var c=TF[u];s[c[0]][c[1]]+=l[c[0]]}),a.range=n.fromRectRange(rR(s[0][0],s[1][0],s[0][1],s[1][1])),h_(t,e),Ba(t,{isEnd:!1})}function AF(n,t,e,i){var r=t.__brushOption.range,o=oR(n,e,i);k(r,function(a){a[0]+=o[0],a[1]+=o[1]}),h_(n,t),Ba(n,{isEnd:!1})}function oR(n,t,e){var i=n.group,r=i.transformCoordToLocal(t,e),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function f_(n,t,e){var i=eR(n,t);return i&&i!==za?i.clipPath(e,n._transform):se(e)}function Y0(n){var t=n.event;t.preventDefault&&t.preventDefault()}function X0(n,t,e){return n.childOfName("main").contain(t,e)}function aR(n,t,e,i){var r,o=n._creatingCover,a=n._creatingPanel,s=n._brushOption;if(n._track.push(e.slice()),(function(c){var h=c._track;if(!h.length)return!1;var d=h[h.length-1],p=h[0],f=d[0]-p[0],g=d[1]-p[1];return IF(f*f+g*g,.5)>6})(n)||o){if(a&&!o){s.brushMode==="single"&&W0(n);var l=se(s);l.brushType=aT(l.brushType,a),l.panelId=a===za?null:a.panelId,o=n._creatingCover=KO(n,l),n._covers.push(o)}if(o){var u=Kf[aT(n._brushType,a)];o.__brushOption.range=u.getCreatingRange(f_(n,o,n._track)),i&&($O(n,o),u.updateCommon(n,o)),JO(n,o),r={isEnd:i}}}else i&&s.brushMode==="single"&&s.removeOnClick&&H0(n,t,e)&&W0(n)&&(r={isEnd:i,removeOnClick:!0});return r}function aT(n,t){return n==="auto"?t.defaultBrushType:n}var kF={mousedown:function(n){if(this._dragging)sT(this,n);else if(!n.target||!n.target.draggable){Y0(n);var t=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null,(this._creatingPanel=H0(this,n,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(n){var t=n.offsetX,e=n.offsetY,i=this.group.transformCoordToLocal(t,e);if((function(o,a,s){if(o._brushType&&!(function(p,f,g){var v=p._zr;return f<0||f>v.getWidth()||g<0||g>v.getHeight()})(o,a.offsetX,a.offsetY)){var l=o._zr,u=o._covers,c=H0(o,a,s);if(!o._dragging)for(var h=0;h<u.length;h++){var d=u[h].__brushOption;if(c&&(c===za||d.panelId===c.panelId)&&Kf[d.brushType].contain(u[h],s[0],s[1]))return}c&&l.setCursorStyle("crosshair")}})(this,n,i),this._dragging){Y0(n);var r=aR(this,n,i,!1);r&&Ba(this,r)}},mouseup:function(n){sT(this,n)}};function sT(n,t){if(n._dragging){Y0(t);var e=t.offsetX,i=t.offsetY,r=n.group.transformCoordToLocal(e,i),o=aR(n,t,r,!0);n._dragging=!1,n._track=[],n._creatingCover=null,o&&Ba(n,o)}}var Kf={lineX:lT(0),lineY:lT(1),rect:{createCover:function(n,t){function e(i){return i}return nR({toRectRange:e,fromRectRange:e},n,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var t=tR(n);return rR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(n,t,e,i){iR(n,t,e,i)},updateCommon:U0,contain:X0},polygon:{createCover:function(n,t){var e=new he;return e.add(new Wt({name:"main",style:p_(t),silent:!0})),e},getCreatingRange:function(n){return n},endCreating:function(n,t){t.remove(t.childAt(0)),t.add(new Jt({name:"main",draggable:!0,drift:Ce(AF,n,t),ondragend:Ce(Ba,n,{isEnd:!0})}))},updateCoverShape:function(n,t,e,i){t.childAt(0).setShape({points:f_(n,t,e)})},updateCommon:U0,contain:X0}};function lT(n){return{createCover:function(t,e){return nR({toRectRange:function(i){var r=[i,[0,100]];return n&&r.reverse(),r},fromRectRange:function(i){return i[n]}},t,e,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(t){var e=tR(t);return[Lc(e[0][n],e[1][n]),al(e[0][n],e[1][n])]},updateCoverShape:function(t,e,i,r){var o,a=eR(t,e);if(a!==za&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(n);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,o];n&&l.reverse(),iR(t,e,l,r)},updateCommon:U0,contain:X0}}function sR(n){return n=g_(n),function(t){return $1(t,n)}}function lR(n,t){return n=g_(n),function(e){var i=t??e,r=i?n.width:n.height,o=i?n.x:n.y;return[o,o+(r||0)]}}function uR(n,t,e){var i=g_(n);return function(r,o){return i.contain(o[0],o[1])&&!sO(r,t,e)}}function g_(n){return de.create(n)}var LF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e,i){n.prototype.init.apply(this,arguments),(this._brushController=new c_(i.getZr())).on("brush",ie(this._onBrush,this))},t.prototype.render=function(e,i,r,o){if(!(function(f,g,v){return v&&v.type==="axisAreaSelect"&&g.findComponents({mainType:"parallelAxis",query:v})[0]===f})(e,i,o)){this.axisModel=e,this.api=r,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new he,this.group.add(this._axisGroup),e.get("show")){var s=(function(f,g){return g.getComponent("parallel",f.get("parallelIndex"))})(e,i),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,h=e.axis.dim,d=X({strokeContainThreshold:c},l.getAxisLayout(h)),p=new gn(e,r,d);p.build(),this._axisGroup.add(p.group),this._refreshBrushController(d,u,e,s,c,r),Hc(a,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,i,r,o,a,s){var l=r.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,.1*Math.abs(u)),h=de.create({x:l[0],y:-a/2,width:u,height:a});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:sR(h),isTargetByCursor:uR(h,s,o),getLinearBrushOtherExtent:lR(h,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers((function(d){var p=d.axis;return K(d.activeIntervals,function(f){return{brushType:"lineX",panelId:"pl",range:[p.dataToCoord(f[0],!0),p.dataToCoord(f[1],!0)]}})})(r))},t.prototype._onBrush=function(e){var i=e.areas,r=this.axisModel,o=r.axis,a=K(i,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!r.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:a})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t})(et),PF={type:"axisAreaSelect",event:"axisAreaSelected"},OF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function uT(n){n.registerComponentView(yF),n.registerComponentModel(xF),n.registerCoordinateSystem("parallel",MF),n.registerPreprocessor(vF),n.registerComponentModel(F0),n.registerComponentView(LF),Fs(n,"parallel",F0,OF),(function(t){t.registerAction(PF,function(e,i){i.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,i){i.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})})(n)}var Ir="sankey",RF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.getInitialData=function(e,i){var r=e.edges||e.links||[],o=e.data||e.nodes||[],a=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<a.length;l++)a[l].depth!=null&&a[l].depth>=0&&(s[a[l].depth]=new Oe(a[l],this,i));var u=r_(o,r,this,!0,function(c,h){c.wrapMethod("getItemModel",function(d,p){var f=d.parentModel,g=f.getData().getItemLayout(p);if(g){var v=g.depth,y=f.levelModels[v];y&&(d.parentModel=y)}return d}),h.wrapMethod("getItemModel",function(d,p){var f=d.parentModel,g=f.getGraph().getEdgeByIndex(p).node1.getLayout();if(g){var v=g.depth,y=f.levelModels[v];y&&(d.parentModel=y)}return d})});return u.data},t.prototype.setNodePosition=function(e,i){var r=(this.option.data||this.option.nodes)[e];r.localX=i[0],r.localY=i[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,i,r){function o(h){return isNaN(h)||h==null}if(r==="edge"){var a=this.getDataParams(e,r),s=a.data,l=a.value;return Mt("nameValue",{name:s.source+" -- "+s.target,value:l,noValue:o(l)})}var u=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,r).data.name;return Mt("nameValue",{name:c!=null?c+"":null,value:u,noValue:o(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,i){var r=n.prototype.getDataParams.call(this,e,i);if(r.value==null&&i==="node"){var o=this.getGraph().getNodeByIndex(e).getLayout().value;r.value=o}return r},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+Ir,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:H.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:H.color.primary}},animationEasing:"linear",animationDuration:1e3},t})(je),NF=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},EF=(function(n){function t(e){return n.call(this,e)||this}return G(t,n),t.prototype.getDefaultShape=function(){return new NF},t.prototype.buildPath=function(e,i){var r=i.extent;e.moveTo(i.x1,i.y1),e.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(e.lineTo(i.x2+r,i.y2),e.bezierCurveTo(i.cpx2+r,i.cpy2,i.cpx1+r,i.cpy1,i.x1+r,i.y1)):(e.lineTo(i.x2,i.y2+r),e.bezierCurveTo(i.cpx2,i.cpy2+r,i.cpx1,i.cpy1+r,i.x1,i.y1+r)),e.closePath()},t.prototype.highlight=function(){br(this)},t.prototype.downplay=function(){wr(this)},t})(Le),zF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=Ir,e._mainGroup=new he,e}return G(t,n),t.prototype.init=function(e,i){this._controller=new Ka(i.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,i,r){var o=e.getGraph(),a=this._mainGroup,s=e.layoutInfo,l=s.width,u=s.height,c=e.getData(),h=e.getData("edge"),d=e.get("orient");a.removeAll(),a.x=s.x,a.y=s.y,this._updateViewCoordSys(e,r),qf(e,r,this._controller,xO(a),null),o.eachEdge(function(p){var f=new EF,g=me(f);g.dataIndex=p.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var v,y,m,x,_,b,w,S,M=p.getModel(),I=M.getModel("lineStyle"),T=I.get("curveness"),C=p.node1.getLayout(),D=p.node1.getModel(),A=D.get("localX"),L=D.get("localY"),P=p.node2.getLayout(),E=p.node2.getModel(),O=E.get("localX"),N=E.get("localY"),R=p.getLayout();f.shape.extent=Math.max(1,R.dy),f.shape.orient=d,d==="vertical"?(v=(A!=null?A*l:C.x)+R.sy,y=(L!=null?L*u:C.y)+C.dy,m=(O!=null?O*l:P.x)+R.ty,_=v,b=y*(1-T)+(x=N!=null?N*u:P.y)*T,w=m,S=y*T+x*(1-T)):(v=(A!=null?A*l:C.x)+C.dx,y=(L!=null?L*u:C.y)+R.sy,_=v*(1-T)+(m=O!=null?O*l:P.x)*T,b=y,w=v*T+m*(1-T),S=x=(N!=null?N*u:P.y)+R.ty),f.setShape({x1:v,y1:y,x2:m,y2:x,cpx1:_,cpy1:b,cpx2:w,cpy2:S}),f.useStyle(I.getItemStyle()),cT(f.style,d,p);var z=""+M.get("value"),B=Dt(M,"edgeLabel");Et(f,B,{labelFetcher:{getFormattedLabel:function(U,F,Q,Z,Y,J){return e.getFormattedLabel(U,F,"edge",Z,wn(Y,B.normal&&B.normal.get("formatter"),z),J)}},labelDataIndex:p.dataIndex,defaultText:z}),f.setTextConfig({position:"inside"});var V=M.getModel("emphasis");Ct(f,M,"lineStyle",function(U){var F=U.getItemStyle();return cT(F,d,p),F}),a.add(f),h.setItemGraphicEl(p.dataIndex,f);var W=V.get("focus");at(f,W==="adjacency"?p.getAdjacentDataIndices():W==="trajectory"?p.getTrajectoryDataIndices():W,V.get("blurScope"),V.get("disabled"))}),o.eachNode(function(p){var f=p.getLayout(),g=p.getModel(),v=g.get("localX"),y=g.get("localY"),m=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,_=new Ae({shape:{x:v!=null?v*l:f.x,y:y!=null?y*u:f.y,width:f.dx,height:f.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});Et(_,Dt(g),{labelFetcher:{getFormattedLabel:function(w,S){return e.getFormattedLabel(w,S,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),_.disableLabelAnimation=!0,_.setStyle("fill",p.getVisual("color")),_.setStyle("decal",p.getVisual("style").decal),Ct(_,g),a.add(_),c.setItemGraphicEl(p.dataIndex,_),me(_).dataType="node";var b=m.get("focus");at(_,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,m.get("blurScope"),m.get("disabled"))}),c.eachItemGraphicEl(function(p,f){c.getItemModel(f).get("draggable")&&(p.drift=function(g,v){this.shape.x+=g,this.shape.y+=v,this.dirty(),r.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(f),localX:this.shape.x/l,localY:this.shape.y/u})},p.draggable=!0,p.cursor="move")}),!this._data&&e.isAnimationEnabled()&&a.setClipPath((function(p,f,g){var v=new Ae({shape:{x:p.x-10,y:p.y-10,width:0,height:p.height+20}});return rt(v,{shape:{width:p.width+20}},f,g),v})(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,i,r){fo(this.group,2,i.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,i){var r=e.layoutInfo,o=e.coordinateSystem=$x(e,i,r.x,r.y,r.width,r.height);fo(this.group,2,o,this._firstRender?null:e)},t.type=Ir,t})(Ze);function cT(n,t,e){switch(n.fill){case"source":n.fill=e.node1.getVisual("color"),n.decal=e.node1.getVisual("style").decal;break;case"target":n.fill=e.node2.getVisual("color"),n.decal=e.node2.getVisual("style").decal;break;case"gradient":var i=e.node1.getVisual("color"),r=e.node2.getVisual("color");te(i)&&te(r)&&(n.fill=new Ua(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:i,offset:0},{color:r,offset:1}]))}}var BF=At(Ir,function(n,t){n.eachSeriesByType(Ir,function(e){var i=e.get("nodeWidth"),r=e.get("nodeGap"),o=kt(e,t).refContainer,a=ot(e.getBoxLayoutParams(),o);e.layoutInfo=a;var s=a.width,l=a.height,u=e.getGraph(),c=u.nodes,h=u.edges;(function(d){k(d,function(p){var f=lo(p.outEdges,nf),g=lo(p.inEdges,nf),v=p.getValue()||0,y=Math.max(f,g,v);p.setLayout({value:y},!0)})})(c),(function(d,p,f,g,v,y,m,x,_){(function(b,w,S,M,I,T,C){for(var D=[],A=[],L=[],P=[],E=0,O=0;O<w.length;O++)D[O]=1;for(O=0;O<b.length;O++)A[O]=b[O].inEdges.length,A[O]===0&&L.push(b[O]);for(var N=-1;L.length;){for(var R=0;R<L.length;R++){var z=L[R],B=z.hostGraph.data.getRawDataItem(z.dataIndex),V=B.depth!=null&&B.depth>=0;V&&B.depth>N&&(N=B.depth),z.setLayout({depth:V?B.depth:E},!0),T==="vertical"?z.setLayout({dy:S},!0):z.setLayout({dx:S},!0);for(var W=0;W<z.outEdges.length;W++){var U=z.outEdges[W];D[be(w,U)]=0;var F=U.node2;--A[be(b,F)]===0&&be(P,F)<0&&P.push(F)}}++E,L=P,P=[]}for(O=0;O<D.length;O++)if(D[O]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Q=N>E-1?N:E-1;C&&C!=="left"&&(function(Y,J,$,j){if(J==="right"){for(var ee=[],ue=Y,ye=0;ue.length;){for(var we=0;we<ue.length;we++){var ve=ue[we];ve.setLayout({skNodeHeight:ye},!0);for(var xe=0;xe<ve.inEdges.length;xe++){var Ie=ve.inEdges[xe];be(ee,Ie.node1)<0&&ee.push(Ie.node1)}}ue=ee,ee=[],++ye}k(Y,function(Ne){hT(Ne)||Ne.setLayout({depth:Math.max(0,j-Ne.getLayout().skNodeHeight)},!0)})}else J==="justify"&&(function(Ne,tt){k(Ne,function(ft){hT(ft)||ft.outEdges.length||ft.setLayout({depth:tt},!0)})})(Y,j)})(b,C,0,Q);var Z=T==="vertical"?(I-S)/Q:(M-S)/Q;(function(Y,J,$){k(Y,function(j){var ee=j.getLayout().depth*J;$==="vertical"?j.setLayout({y:ee},!0):j.setLayout({x:ee},!0)})})(b,Z,T)})(d,p,f,v,y,x,_),(function(b,w,S,M,I,T,C){var D=(function(L,P){var E=[],O=P==="vertical"?"y":"x",N=Im(L,function(R){return R.getLayout()[O]});return Ft(N.keys),k(N.keys,function(R){E.push(N.buckets.get(R))}),E})(b,C);(function(L,P,E,O,N,R){var z=1/0;k(L,function(B){var V=B.length,W=0;k(B,function(F){W+=F.getLayout().value});var U=R==="vertical"?(O-(V-1)*N)/W:(E-(V-1)*N)/W;U<z&&(z=U)}),k(L,function(B){k(B,function(V,W){var U=V.getLayout().value*z;R==="vertical"?(V.setLayout({x:W},!0),V.setLayout({dx:U},!0)):(V.setLayout({y:W},!0),V.setLayout({dy:U},!0))})}),k(P,function(B){var V=+B.getValue()*z;B.setLayout({dy:V},!0)})})(D,w,S,M,I,C),py(D,I,S,M,C);for(var A=1;T>0;T--)VF(D,A*=.99,C),py(D,I,S,M,C),UF(D,A,C),py(D,I,S,M,C)})(d,p,y,v,g,m,x),(function(b,w){var S=w==="vertical"?"x":"y";k(b,function(M){M.outEdges.sort(function(I,T){return I.node2.getLayout()[S]-T.node2.getLayout()[S]}),M.inEdges.sort(function(I,T){return I.node1.getLayout()[S]-T.node1.getLayout()[S]})}),k(b,function(M){var I=0,T=0;k(M.outEdges,function(C){C.setLayout({sy:I},!0),I+=C.getLayout().dy}),k(M.inEdges,function(C){C.setLayout({ty:T},!0),T+=C.getLayout().dy})})})(d,x)})(c,h,i,r,s,l,Ye(c,function(d){return d.getLayout().value===0}).length!==0?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))})});function hT(n){var t=n.hostGraph.data.getRawDataItem(n.dataIndex);return t.depth!=null&&t.depth>=0}function py(n,t,e,i,r){var o=r==="vertical"?"x":"y";k(n,function(a){var s,l,u;a.sort(function(f,g){return f.getLayout()[o]-g.getLayout()[o]});for(var c=0,h=a.length,d=r==="vertical"?"dx":"dy",p=0;p<h;p++)(u=c-(l=a[p]).getLayout()[o])>0&&(s=l.getLayout()[o]+u,r==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]+l.getLayout()[d]+t;if((u=c-t-(r==="vertical"?i:e))>0)for(s=l.getLayout()[o]-u,r==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s,p=h-2;p>=0;--p)(u=(l=a[p]).getLayout()[o]+l.getLayout()[d]+t-c)>0&&(s=l.getLayout()[o]-u,r==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]})}function VF(n,t,e){k(n.slice().reverse(),function(i){k(i,function(r){if(r.outEdges.length){var o=lo(r.outEdges,GF,e)/lo(r.outEdges,nf);if(isNaN(o)){var a=r.outEdges.length;o=a?lo(r.outEdges,FF,e)/a:0}if(e==="vertical"){var s=r.getLayout().x+(o-vo(r,e))*t;r.setLayout({x:s},!0)}else{var l=r.getLayout().y+(o-vo(r,e))*t;r.setLayout({y:l},!0)}}})})}function GF(n,t){return vo(n.node2,t)*n.getValue()}function FF(n,t){return vo(n.node2,t)}function HF(n,t){return vo(n.node1,t)*n.getValue()}function WF(n,t){return vo(n.node1,t)}function vo(n,t){return t==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function nf(n){return n.getValue()}function lo(n,t,e){for(var i=0,r=n.length,o=-1;++o<r;){var a=+t(n[o],e);isNaN(a)||(i+=a)}return i}function UF(n,t,e){k(n,function(i){k(i,function(r){if(r.inEdges.length){var o=lo(r.inEdges,HF,e)/lo(r.inEdges,nf);if(isNaN(o)){var a=r.inEdges.length;o=a?lo(r.inEdges,WF,e)/a:0}if(e==="vertical"){var s=r.getLayout().x+(o-vo(r,e))*t;r.setLayout({x:s},!0)}else{var l=r.getLayout().y+(o-vo(r,e))*t;r.setLayout({y:l},!0)}}})})}var YF=At(Ir,function(n){n.eachSeriesByType(Ir,function(t){var e=t.getGraph(),i=e.nodes,r=e.edges;if(i.length){var o=1/0,a=-1/0;k(i,function(s){var l=s.getLayout().value;l<o&&(o=l),l>a&&(a=l)}),k(i,function(s){var l=new Nt({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}).mapValueToVisual(s.getLayout().value),u=s.getModel().get(["itemStyle","color"]);u!=null?(s.setVisual("color",u),s.setVisual("style",{fill:u})):(s.setVisual("color",l),s.setVisual("style",{fill:l}))})}r.length&&k(r,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}),cR=(function(){function n(){}return n.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},n.prototype.getInitialData=function(t,e){var i,r,o=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),s=o.get("type"),l=a.get("type"),u=t.layout;s==="category"?(u="horizontal",i=o.getOrdinalMeta(),r=!this._hasEncodeRule("x")):l==="category"&&(u="vertical",i=a.getOrdinalMeta(),r=!this._hasEncodeRule("y")),u||(u=l==="time"?"vertical":"horizontal"),this._layout=u;var c=["x","y"],h=u==="horizontal"?0:1,d=this._baseAxisDim=c[h],p=c[1-h],f=[o,a],g=f[h].get("type"),v=f[1-h].get("type"),y=t.data;if(y&&r){var m=[];k(y,function(b,w){var S;q(b)?(S=b.slice(),b.unshift(w)):q(b.value)?((S=X({},b)).value=S.value.slice(),b.value.unshift(w)):S=b,m.push(S)}),t.data=m}var x=this.defaultValueDimensions,_=[{name:d,type:Dp(g),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:Dp(v),dimsDef:x.slice()}];return Dl(this,{coordDimensions:_,dimensionsCount:x.length+1,encodeDefaulter:Ce(Sk,_,this)})},n.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},n.prototype.getWhiskerBoxesLayout=function(){return this._layout},n})();function rf(n,t){for(var e=t.ends.length,i=0,r=0;r<e;r++)n.contain(t.ends[r][0],t.ends[r][1])&&i++;return i?i<e?1:0:2}var ki="boxplot",hR=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return G(t,n),t.type="series."+ki,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:H.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:H.color.shadow}},animationDuration:800},t})(je);xt(hR,cR,!0);var XF=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=ki,e}return G(t,n),t.prototype.render=function(e,i,r){var o=e.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=e.getWhiskerBoxesLayout()==="horizontal"?1:0,u=e.get("clip",!0),c=e.coordinateSystem,h=c.getArea&&c.getArea(),d=u&&La(c,!1,e);o.diff(s).add(function(p){if(o.hasValue(p)){var f=o.getItemLayout(p),g=u?rf(h,f):0;if(g===2)return;var v=dT(f,o,p,l,!0);Os(g===1,v,d),o.setItemGraphicEl(p,v),a.add(v)}}).update(function(p,f){var g=s.getItemGraphicEl(f);if(o.hasValue(p)){var v=o.getItemLayout(p),y=u?rf(h,v):0;y!==2?(g?(Jn(g),dR(v,g,o,p)):g=dT(v,o,p,l),Os(y===1,g,d),a.add(g),o.setItemGraphicEl(p,g)):a.remove(g)}else a.remove(g)}).remove(function(p){var f=s.getItemGraphicEl(p);f&&a.remove(f)}).execute(),this._data=o},t.prototype.remove=function(e){var i=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl(function(o){o&&i.remove(o)})},t.type=ki,t})(Ze),ZF=function(){},qF=(function(n){function t(e){var i=n.call(this,e)||this;return i.type="boxplotBoxPath",i}return G(t,n),t.prototype.getDefaultShape=function(){return new ZF},t.prototype.buildPath=function(e,i){var r=i.points,o=0;for(e.moveTo(r[o][0],r[o][1]),o++;o<4;o++)e.lineTo(r[o][0],r[o][1]);for(e.closePath();o<r.length;o++)e.moveTo(r[o][0],r[o][1]),o++,e.lineTo(r[o][0],r[o][1])},t})(Le);function dT(n,t,e,i,r){var o=n.ends,a=new qF({shape:{points:r?jF(o,i,n):o}});return dR(n,a,t,e,r),a}function dR(n,t,e,i,r){var o=e.hostModel;(0,Ya[r?"initProps":"updateProps"])(t,{shape:{points:n.ends}},o,i),t.useStyle(e.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var a=e.getItemModel(i),s=a.getModel("emphasis");Ct(t,a),at(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function jF(n,t,e){return K(n,function(i){return(i=i.slice())[t]=e.initBaseline,i})}var KF=dl(),$F=At(ki,function(n){var t=sa(ki);Nx(n,t,function(e){var i=(function(o,a){var s=Rx(o,a);if(!s||!s.sers.length)return 0;var l=0;return Hf(o.model.ecModel,s.sers,function(){l++}),l})(e,t);if(i){var r=(function(o,a){var s=[],l=[],u=[],c=Qt(o,{fromStat:{key:sa(ki)},min:1}).w;ya(o,sa(ki),function(g){var v=g.get("boxWidth");q(v)||(v=[v,v]),u[g.seriesIndex]=[ne(v[0],c)||0,ne(v[1],c)||0]});var h=.8*c-2,d=h/a*.3,p=(h-d*(a-1))/a,f=p/2-h/2;return ya(o,sa(ki),function(g){var v=g.seriesIndex;l[v]=f,f+=d+p,s[v]=Xe(De(p,u[v][0]),u[v][1])}),{boxOffsetList:l,boxWidthList:s}})(e,i);ya(e,t,function(o){var a=o.seriesIndex;(function(s,l,u){var c=s.coordinateSystem,h=s.getData(),d=u/2,p=s.getWhiskerBoxesLayout()==="horizontal"?0:1,f=1-p,g=["x","y"],v=h.mapDimension(g[p]),y=h.mapDimensionsAll(g[f]);if(v==null||y.length<5)return;for(var m=0;m<h.count();m++){var x=h.get(v,m),_=T(x,y[2],m),b=T(x,y[0],m),w=T(x,y[1],m),S=T(x,y[3],m),M=T(x,y[4],m),I=[];C(I,w,!1),C(I,S,!0),I.push(b,w,M,S),D(I,b),D(I,M),D(I,_),h.setItemLayout(m,{initBaseline:_[f],ends:I})}function T(A,L,P){var E,O=h.get(L,P),N=[];return N[p]=A,N[f]=O,isNaN(A)||isNaN(O)?E=[NaN,NaN]:(E=c.dataToPoint(N))[p]+=l,E}function C(A,L,P){var E=L.slice(),O=L.slice();E[p]+=d,O[p]-=d,P?A.push(E,O):A.push(O,E)}function D(A,L){var P=L.slice(),E=L.slice();P[p]-=d,E[p]+=d,A.push(P,E)}})(o,r.boxOffsetList[a],r.boxWidthList[a])})}})}),JF={type:"echarts:boxplot",transform:function(n){var t=n.upstream;if(t.sourceFormat!==Ht){var e="";Ue(e)}var i=(function(r,o){for(var a=[],s=[],l=(o=o||{}).boundIQR,u=l==="none"||l===0,c=0;c<r.length;c++){var h=Ft(r[c].slice()),d=Td(h,.25),p=Td(h,.5),f=Td(h,.75),g=h[0],v=h[h.length-1],y=(l??1.5)*(f-d),m=u?g:Math.max(g,d-y),x=u?v:Math.min(v,f+y),_=o.itemNameFormatter,b=le(_)?_({value:c}):te(_)?_.replace("{value}",c+""):c+"";a.push([b,m,d,p,f,x]);for(var w=0;w<h.length;w++){var S=h[w];if(S<m||S>x){var M=[b,S];s.push(M)}}}return{boxData:a,outliers:s}})(t.getRawData(),n.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}},yo="candlestick",pR=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return G(t,n),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,i,r){var o=i.getItemLayout(e);return o&&r.rect(o.brushRect)},t.type="series."+yo,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t})(je);xt(pR,cR,!0);var QF=["itemStyle","borderColor"],e4=["itemStyle","borderColor0"],t4=["itemStyle","borderColorDoji"],n4=["itemStyle","color"],i4=["itemStyle","color0"];function v_(n,t){return t.get(n>0?n4:i4)}function y_(n,t){return t.get(n===0?t4:n>0?QF:e4)}var r4={seriesType:yo,plan:qa(),performRawSeries:!0,reset:function(n,t){if(!t.isSeriesFiltered(n))return!n.pipelineContext.large&&{progress:function(e,i){for(var r;(r=e.next())!=null;){var o=i.getItemModel(r),a=i.getItemLayout(r).sign,s=o.getItemStyle();s.fill=v_(a,o),s.stroke=y_(a,o)||s.fill,X(i.ensureUniqueItemVisual(r,"style"),s)}}}}},o4=["color","borderColor"],a4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,i,r){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,i,r,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,i):this._incrementalRenderNormal(e,i)},t.prototype.eachRendered=function(e){xo(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;this._isLargeDraw!=null&&i===this._isLargeDraw||(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e){var i=e.getData(),r=this._data,o=this.group,a=i.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea(),c=s&&La(l,!1,e);this._data||o.removeAll();var h=pT(e);i.diff(r).add(function(d){if(i.hasValue(d)){var p=i.getItemLayout(d),f=s?rf(u,p):0;if(f===2)return;var g=fy(p,d,h,!0);rt(g,{shape:{points:p.ends}},e,d),Os(f===1,g,c),gy(g,i,d,a),o.add(g),i.setItemGraphicEl(d,g)}}).update(function(d,p){var f=r.getItemGraphicEl(p);if(i.hasValue(d)){var g=i.getItemLayout(d),v=s?rf(u,g):0;v!==2?(f?(Fe(f,{shape:{points:g.ends}},e,d),Jn(f)):f=fy(g,d,h),gy(f,i,d,a),Os(v===1,f,c),o.add(f),i.setItemGraphicEl(d,f)):o.remove(f)}else o.remove(f)}).remove(function(d){var p=r.getItemGraphicEl(d);p&&o.remove(p)}).execute(),this._data=i},t.prototype._renderLarge=function(e){this._clear(),fT(e,this.group);var i=e.get("clip",!0)?La(e.coordinateSystem,!1,e):null;Os(!!i,this.group,i)},t.prototype._incrementalRenderNormal=function(e,i){for(var r,o=i.getData(),a=o.getLayout("isSimpleBox"),s=pT(i);(r=e.next())!=null;){var l=fy(o.getItemLayout(r),r,s);gy(l,o,r,a),l.incremental=Gi(i),this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,i){fT(i,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),Os(!1,this.group,null),this._data=null},t.type=yo,t})(Ze),s4=function(){},l4=(function(n){function t(e){var i=n.call(this,e)||this;return i.type="normalCandlestickBox",i}return G(t,n),t.prototype.getDefaultShape=function(){return new s4},t.prototype.buildPath=function(e,i){var r=i.points;this.__simpleBox?(e.moveTo(r[4][0],r[4][1]),e.lineTo(r[6][0],r[6][1])):(e.moveTo(r[0][0],r[0][1]),e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]),e.lineTo(r[3][0],r[3][1]),e.closePath(),e.moveTo(r[4][0],r[4][1]),e.lineTo(r[5][0],r[5][1]),e.moveTo(r[6][0],r[6][1]),e.lineTo(r[7][0],r[7][1]))},t})(Le);function fy(n,t,e,i){var r=n.ends;return new l4({shape:{points:i?u4(r,e,n):r},z2:100})}function gy(n,t,e,i){var r=t.getItemModel(e);n.useStyle(t.getItemVisual(e,"style")),n.style.strokeNoScale=!0;var o=r.getShallow("cursor");o&&n.attr("cursor",o),n.__simpleBox=i,Ct(n,r);var a=t.getItemLayout(e).sign;k(n.states,function(l,u){var c=r.getModel(u),h=v_(a,c),d=y_(a,c)||h,p=l.style||(l.style={});h&&(p.fill=h),d&&(p.stroke=d)});var s=r.getModel("emphasis");at(n,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function u4(n,t,e){return K(n,function(i){return(i=i.slice())[t]=e.initBaseline,i})}function pT(n){return n.getWhiskerBoxesLayout()==="horizontal"?1:0}var c4=function(){},vy=(function(n){function t(e){var i=n.call(this,e)||this;return i.type="largeCandlestickBox",i}return G(t,n),t.prototype.getDefaultShape=function(){return new c4},t.prototype.buildPath=function(e,i){for(var r=i.points,o=0;o<r.length;)if(this.__sign===r[o++]){var a=r[o++];e.moveTo(a,r[o++]),e.lineTo(a,r[o++])}else o+=3},t})(Le);function fT(n,t,e,i){var r=n.getData().getLayout("largePoints"),o=new vy({shape:{points:r},__sign:1,ignoreCoarsePointer:!0});t.add(o);var a=new vy({shape:{points:r},__sign:-1,ignoreCoarsePointer:!0});t.add(a);var s=new vy({shape:{points:r},__sign:0,ignoreCoarsePointer:!0});t.add(s),yy(1,o,n),yy(-1,a,n),yy(0,s,n),i&&(o.incremental=Gi(n),a.incremental=Gi(n),s.incremental=Gi(n)),e&&e.push(o,a,s)}function yy(n,t,e,i){var r=y_(n,e)||v_(n,e),o=e.getModel("itemStyle").getItemStyle(o4);t.useStyle(o),t.style.fill=null,t.style.stroke=r;var a=e.get("cursor");a&&t.attr("cursor",a)}function h4(n){n&&q(n.series)&&k(n.series,function(t){fe(t)&&t.type==="k"&&(t.type=yo)})}var d4=dl(),p4={seriesType:yo,plan:qa(),reset:function(n){var t=n.coordinateSystem,e=n.getData(),i=(function(p){var f=p.getBaseAxis(),g=Qt(f,{fromStat:{key:sa(yo)},min:1}).w,v=ne(ae(p.get("barMaxWidth"),g),g),y=ne(ae(p.get("barMinWidth"),1),g),m=p.get("barWidth");return m!=null?ne(m,g):De(Xe(g/2,v),y)})(n),r=n.getWhiskerBoxesLayout()==="horizontal"?0:1,o=1-r,a=["x","y"],s=e.getDimensionIndex(e.mapDimension(a[r])),l=K(e.mapDimensionsAll(a[o]),e.getDimensionIndex,e),u=l[0],c=l[1],h=l[2],d=l[3];if(e.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:n.pipelineContext.large?function(p,f){for(var g,v,y=Ai(4*p.count),m=0,x=[],_=[],b=f.getStore(),w=!!n.get(["itemStyle","borderColorDoji"]);(v=p.next())!=null;){var S=b.get(s,v),M=b.get(u,v),I=b.get(c,v),T=b.get(h,v),C=b.get(d,v);isNaN(S)||isNaN(T)||isNaN(C)?(y[m++]=NaN,m+=3):(y[m++]=gT(b,v,M,I,c,w),x[r]=S,x[o]=T,g=t.dataToPoint(x,null,_),y[m++]=g?g[0]:NaN,y[m++]=g?g[1]:NaN,x[o]=C,g=t.dataToPoint(x,null,_),y[m++]=g?g[1]:NaN)}f.setLayout("largePoints",y)}:function(p,f){for(var g,v=f.getStore();(g=p.next())!=null;){var y=v.get(s,g),m=v.get(u,g),x=v.get(c,g),_=v.get(h,g),b=v.get(d,g),w=Xe(m,x),S=De(m,x),M=L(w,y),I=L(S,y),T=L(_,y),C=L(b,y),D=[];P(D,I,0),P(D,M,1),D.push(O(C),O(I),O(T),O(M));var A=!!f.getItemModel(g).get(["itemStyle","borderColorDoji"]);f.setItemLayout(g,{sign:gT(v,g,m,x,c,A),initBaseline:m>x?I[o]:M[o],ends:D,brushRect:E(_,b,y)})}function L(N,R){var z=[];return z[r]=R,z[o]=N,isNaN(R)||isNaN(N)?[NaN,NaN]:t.dataToPoint(z)}function P(N,R,z){var B=R.slice(),V=R.slice();B[r]=Ad(B[r]+i/2,1,!1),V[r]=Ad(V[r]-i/2,1,!0),z?N.push(B,V):N.push(V,B)}function E(N,R,z){var B=L(N,z),V=L(R,z);return B[r]-=i/2,V[r]-=i/2,{x:B[0],y:B[1],width:o?i:V[0]-B[0],height:o?V[1]-B[1]:i}}function O(N){return N[r]=Ad(N[r],1),N}}}}};function gT(n,t,e,i,r,o){return e>i?-1:e<i?1:o?0:t>0?n.get(r,t-1)<=i?1:-1:1}function vT(n,t){var e=t.rippleEffectColor||t.color;n.eachChild(function(i){i.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var f4=(function(n){function t(e,i){var r=n.call(this)||this,o=new qc(e,i),a=new he;return r.add(o),r.add(a),r.updateData(e,i),r}return G(t,n),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var i=e.symbolType,r=e.color,o=e.rippleNumber,a=this.childAt(1),s=0;s<o;s++){var l=bt(i,-1,-1,2,2,r);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/o*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),a.add(l)}vT(a,e)},t.prototype.updateEffectAnimation=function(e){for(var i=this._effectCfg,r=this.childAt(1),o=["symbolType","period","rippleScale","rippleNumber"],a=0;a<o.length;a++){var s=o[a];if(i[s]!==e[s])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}vT(r,e)},t.prototype.highlight=function(){br(this)},t.prototype.downplay=function(){wr(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,i){var r=this,o=e.hostModel;this.childAt(0).updateData(e,i);var a=this.childAt(1),s=e.getItemModel(i),l=e.getItemVisual(i,"symbol"),u=Sl(e.getItemVisual(i,"symbolSize")),c=e.getItemVisual(i,"style"),h=c&&c.fill,d=s.getModel("emphasis");a.setScale(u),a.traverse(function(v){v.setStyle("fill",h)});var p=ja(e.getItemVisual(i,"symbolOffset"),u);p&&(a.x=p[0],a.y=p[1]);var f=e.getItemVisual(i,"symbolRotate");a.rotation=(f||0)*Math.PI/180||0;var g={};g.showEffectOn=o.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=1e3*s.get(["rippleEffect","period"]),g.effectOffset=i/e.count(),g.z=o.getShallow("z")||0,g.zlevel=o.getShallow("zlevel")||0,g.symbolType=l,g.color=h,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(v){v==="emphasis"?g.showEffectOn!=="render"&&r.startEffectAnimation(g):v==="normal"&&g.showEffectOn!=="render"&&r.stopEffectAnimation()}),this._effectCfg=g,at(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t})(he),g4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(){this._symbolDraw=new jc(f4)},t.prototype.render=function(e,i,r){var o=e.getData(),a=this._symbolDraw;a.updateData(o,yT(e)),this.group.add(a.group)},t.prototype.updateTransform=function(e,i,r){var o=e.getData();this.group.dirty();var a=Xu("").reset(e,i,r);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(yT(e))},t.prototype._updateGroupTransform=function(e){var i=e.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=fD(i.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,i){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t})(Ze);function yT(n){return{clipShape:DP(n)}}var v4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return G(t,n),t.prototype.getInitialData=function(e,i){return Ji(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,i,r){return r.point(i.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t})(je),fR=(function(n){function t(e,i,r){var o=n.call(this)||this;return o.add(o.createLine(e,i,r)),o._updateEffectSymbol(e,i),o}return G(t,n),t.prototype.createLine=function(e,i,r){return new l_(e,i,r)},t.prototype._updateEffectSymbol=function(e,i){var r=e.getItemModel(i).getModel("effect"),o=r.get("symbolSize"),a=r.get("symbol");q(o)||(o=[o,o]);var s=e.getItemVisual(i,"style"),l=r.get("color")||s&&s.stroke,u=this.childAt(1);this._symbolType!==a&&(this.remove(u),(u=bt(a,-.5,-.5,1,1,l)).z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(r.getItemStyle(["color"])),u.scaleX=o[0],u.scaleY=o[1],u.setColor(l),this._symbolType=a,this._symbolScale=o,this._updateEffectAnimation(e,r,i))},t.prototype._updateEffectAnimation=function(e,i,r){var o=this.childAt(1);if(o){var a=e.getItemLayout(r),s=1e3*i.get("period"),l=i.get("loop"),u=i.get("roundTrip"),c=i.get("constantSpeed"),h=an(i.get("delay"),function(p){return p/e.count()*s/3});if(o.ignore=!0,this._updateAnimationPoints(o,a),c>0&&(s=this._getLineLength(o)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){o.stopAnimation();var d=void 0;d=le(h)?h(r):h,o.__t>0&&(d=-s*o.__t),this._animateSymbol(o,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,i,r,o,a){if(i>0){e.__t=0;var s=this,l=e.animate("",o).when(a?2*i:i,{__t:a?2:1}).delay(r).during(function(){s._updateSymbolPosition(e)});o||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return sr(e.__p1,e.__cp1)+sr(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,i){e.__p1=i[0],e.__p2=i[1],e.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},t.prototype.updateData=function(e,i,r){this.childAt(0).updateData(e,i,r),this._updateEffectSymbol(e,i)},t.prototype._updateSymbolPosition=function(e){var i=e.__p1,r=e.__p2,o=e.__cp1,a=e.__t<=1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Gt,c=dm;s[0]=u(i[0],o[0],r[0],a),s[1]=u(i[1],o[1],r[1],a);var h=e.__t<=1?c(i[0],o[0],r[0],a):c(r[0],o[0],i[0],1-a),d=e.__t<=1?c(i[1],o[1],r[1],a):c(r[1],o[1],i[1],1-a);e.rotation=-Math.atan2(d,h)-Math.PI/2,this._symbolType!=="line"&&this._symbolType!=="rect"&&this._symbolType!=="roundRect"||(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=1.05*sr(l,s),a===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*sr(i,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,i){this.childAt(0).updateLayout(e,i);var r=e.getItemModel(i).getModel("effect");this._updateEffectAnimation(e,r,i)},t})(he),gR=(function(n){function t(e,i,r){var o=n.call(this)||this;return o._createPolyline(e,i,r),o}return G(t,n),t.prototype._createPolyline=function(e,i,r){var o=e.getItemLayout(i),a=new Wt({shape:{points:o}});this.add(a),this._updateCommonStl(e,i,r)},t.prototype.updateData=function(e,i,r){var o=e.hostModel;Fe(this.childAt(0),{shape:{points:e.getItemLayout(i)}},o,i),this._updateCommonStl(e,i,r)},t.prototype._updateCommonStl=function(e,i,r){var o=this.childAt(0),a=e.getItemModel(i),s=r&&r.emphasisLineStyle,l=r&&r.focus,u=r&&r.blurScope,c=r&&r.emphasisDisabled;if(!r||e.hasItemOption){var h=a.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),c=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}o.useStyle(e.getItemVisual(i,"style")),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,at(this,l,u,c)},t.prototype.updateLayout=function(e,i){var r=this.childAt(0);r.stopAnimation(),r.setShape("points",e.getItemLayout(i))},t})(he),y4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return G(t,n),t.prototype.createLine=function(e,i,r){return new gR(e,i,r)},t.prototype._updateAnimationPoints=function(e,i){this._points=i;for(var r=[0],o=0,a=1;a<i.length;a++){var s=i[a-1],l=i[a];o+=sr(s,l),r.push(o)}if(o!==0){for(a=0;a<r.length;a++)r[a]/=o;this._offsets=r,this._length=o}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var i=e.__t<=1?e.__t:2-e.__t,r=this._points,o=this._offsets,a=r.length;if(o){var s,l=this._lastFrame;if(i<this._lastFramePercent){for(s=Math.min(l+1,a-1);s>=0&&!(o[s]<=i);s--);s=Math.min(s,a-2)}else{for(s=l;s<a&&!(o[s]>i);s++);s=Math.min(s-1,a-2)}var u=(i-o[s])/(o[s+1]-o[s]),c=r[s],h=r[s+1];e.x=c[0]*(1-u)+u*h[0],e.y=c[1]*(1-u)+u*h[1];var d=e.__t<=1?h[0]-c[0]:c[0]-h[0],p=e.__t<=1?h[1]-c[1]:c[1]-h[1];e.rotation=-Math.atan2(p,d)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=i,e.ignore=!1}},t})(fR),m4=function(){this.polyline=!1,this.curveness=0,this.segs=[]},x4=(function(n){function t(e){var i=n.call(this,e)||this;return i._off=0,i.hoverDataIdx=-1,i}return G(t,n),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new m4},t.prototype.buildPath=function(e,i){var r,o=i.segs,a=i.curveness;if(i.polyline)for(r=this._off;r<o.length;){var s=o[r++];if(s>0){e.moveTo(o[r++],o[r++]);for(var l=1;l<s;l++)e.lineTo(o[r++],o[r++])}}else for(r=this._off;r<o.length;){var u=o[r++],c=o[r++],h=o[r++],d=o[r++];if(e.moveTo(u,c),a>0){var p=(u+h)/2-(c-d)*a,f=(c+d)/2-(h-u)*a;e.quadraticCurveTo(p,f,h,d)}else e.lineTo(h,d)}this.incremental&&(this._off=r,this.notClear=!0)},t.prototype.findDataIndex=function(e,i){var r=this.shape,o=r.segs,a=r.curveness,s=this.style.lineWidth;if(r.polyline)for(var l=0,u=0;u<o.length;){var c=o[u++];if(c>0){for(var h=o[u++],d=o[u++],p=1;p<c;p++)if(Yr(h,d,f=o[u++],g=o[u++],s,e,i))return l}l++}else for(l=0,u=0;u<o.length;){h=o[u++],d=o[u++];var f=o[u++],g=o[u++];if(a>0){if(uA(h,d,(h+f)/2-(d-g)*a,(d+g)/2-(f-h)*a,f,g,s,e,i))return l}else if(Yr(h,d,f,g,s,e,i))return l;l++}return-1},t.prototype.contain=function(e,i){var r=this.transformCoordToLocal(e,i),o=this.getBoundingRect();return e=r[0],i=r[1],o.contain(e,i)?(this.hoverDataIdx=this.findDataIndex(e,i))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var i=this.shape.segs,r=1/0,o=1/0,a=-1/0,s=-1/0,l=0;l<i.length;){var u=i[l++],c=i[l++];r=Math.min(u,r),a=Math.max(u,a),o=Math.min(c,o),s=Math.max(c,s)}e=this._rect=new de(r,o,a,s)}return e},t})(Le),_4=(function(){function n(){this.group=new he}return n.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},n.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},n.prototype.incrementalUpdate=function(t,e,i){var r=this._newAdded[0],o=e.getLayout("linesPoints"),a=r&&r.shape.segs;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),r.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=i,u.setShape({segs:o}),this._setCommon(u,e),u.__startIndex=t.start}},n.prototype.remove=function(){this._clear()},n.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},n.prototype._create=function(){var t=new x4({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},n.prototype._setCommon=function(t,e,i){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var o=e.getVisual("style");o&&o.stroke&&t.setStyle("stroke",o.stroke),t.setStyle("fill",null);var a=me(t);a.seriesIndex=r.seriesIndex,t.on("mousemove",function(s){a.dataIndex=null;var l=t.hoverDataIdx;l>0&&(a.dataIndex=l+t.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n})(),vR={seriesType:"lines",plan:qa(),reset:function(n){var t=n.coordinateSystem;if(t){var e=n.get("polyline"),i=n.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(e){for(var u=0,c=r.start;c<r.end;c++)u+=n.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var p=n.getLineCoords(c,a);e&&(s[h++]=p);for(var f=0;f<p;f++)d=t.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),v=(p=n.getLineCoords(c,a),[]);if(e)for(var y=0;y<p;y++)v.push(t.dataToPoint(a[y]));else{v[0]=t.dataToPoint(a[0]),v[1]=t.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*m,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*m])}o.setItemLayout(c,v)}}}}}},b4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){var o=e.getData(),a=this._updateLineDraw(o,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=r.getZr(),c=!!Bm(r);c&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&c&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),a.updateData(o);var h=e.get("clip",!0)&&La(e.coordinateSystem,!1,e);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,i,r){var o=e.getData();this._updateLineDraw(o,e).incrementalPrepareUpdate(o),this._clearLayer(r),this._finished=!1},t.prototype.incrementalRender=function(e,i,r){this._lineDraw.incrementalUpdate(e,i.getData(),Gi(i)),this._finished=e.end===i.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,i,r){var o=e.getData(),a=this._lineDraw;if(!(this._finished&&a&&a.updateLayout))return{update:!0};var s=vR.reset(e,i,r);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),a.updateLayout(),this._clearLayer(r)},t.prototype._updateLineDraw=function(e,i){var r=this._lineDraw,o=this._showEffect(i),a=!!i.get("polyline"),s=i.pipelineContext.large;return r&&o===this._hasEffet&&a===this._isPolyline&&s===this._isLargeDraw||(r&&r.remove(),r=this._lineDraw=s?new _4:new u_(a?o?y4:gR:o?fR:l_),this._hasEffet=o,this._isPolyline=a,this._isLargeDraw=s),this.group.add(r.group),r},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var i=Bm(e);i&&this._lastZlevel!=null&&i.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},t.prototype.dispose=function(e,i){this.remove(e,i)},t.type="lines",t})(Ze),w4=typeof Uint32Array>"u"?Array:Uint32Array,S4=typeof Float64Array>"u"?Array:Float64Array;function mT(n){var t=n.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(n.data=K(t,function(e){var i={coords:[e[0].coord,e[1].coord]};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),_f([i,e[0],e[1]])}))}var M4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return G(t,n),t.prototype.init=function(e){e.data=e.data||[],mT(e);var i=this._processFlatCoordsArray(e.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(e.data=new Float32Array(i.count)),n.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(mT(e),e.data){var i=this._processFlatCoordsArray(e.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(e.data=new Float32Array(i.count))}n.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var i=this._processFlatCoordsArray(e.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=Us(this._flatCoords,i.flatCoords),this._flatCoordsOffset=Us(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),e.data=new Float32Array(i.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var i=this.getData().getItemModel(e),r=i.option instanceof Array?i.option:i.getShallow("coords");return r},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,i){if(this._flatCoordsOffset){for(var r=this._flatCoordsOffset[2*e],o=this._flatCoordsOffset[2*e+1],a=0;a<o;a++)i[a]=i[a]||[],i[a][0]=this._flatCoords[r+2*a],i[a][1]=this._flatCoords[r+2*a+1];return o}var s=this._getCoordsFromItemModel(e);for(a=0;a<s.length;a++)i[a]=i[a]||[],i[a][0]=s[a][0],i[a][1]=s[a][1];return s.length},t.prototype._processFlatCoordsArray=function(e){var i=0;if(this._flatCoords&&(i=this._flatCoords.length),Ve(e[0])){for(var r=e.length,o=new w4(r),a=new S4(r),s=0,l=0,u=0,c=0;c<r;){u++;var h=e[c++];o[l++]=s+i,o[l++]=h;for(var d=0;d<h;d++){var p=e[c++],f=e[c++];a[s++]=p,a[s++]=f}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,l),flatCoords:a,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,i){var r=new fn(["value"],this);return r.hasItemOption=!1,r.initData(e.data,[],function(o,a,s,l){if(o instanceof Array)return NaN;r.hasItemOption=!0;var u=o.value;return u!=null?u instanceof Array?u[l]:u:void 0}),r},t.prototype.formatTooltip=function(e,i,r){var o=this.getData(),a=this.getRawValue(e),s=o.getItemModel(e),l=s.get("name");if(!l){var u=s.get("fromName"),c=s.get("toName"),h=[];u!=null&&h.push(u),c!=null&&h.push(c),l=h.join(" > ")}return Mt("nameValue",{name:l,value:a,noValue:a==null||isNaN(a)})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),i=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&i>0?i+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t})(je);function ed(n){return n instanceof Array||(n=[n,n]),n}var I4={seriesType:"lines",reset:function(n){var t=ed(n.get("symbol")),e=ed(n.get("symbolSize")),i=n.getData();return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",e&&e[0]),i.setVisual("toSymbolSize",e&&e[1]),{dataEach:i.hasItemOption?function(r,o){var a=r.getItemModel(o),s=ed(a.getShallow("symbol",!0)),l=ed(a.getShallow("symbolSize",!0));s[0]&&r.setItemVisual(o,"fromSymbol",s[0]),s[1]&&r.setItemVisual(o,"toSymbol",s[1]),l[0]&&r.setItemVisual(o,"fromSymbolSize",l[0]),l[1]&&r.setItemVisual(o,"toSymbolSize",l[1])}:null}}},T4=(function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Rt.createCanvas();this.canvas=t}return n.prototype.update=function(t,e,i,r,o,a){var s=this._getBrush(),l=this._getGradient(o,"inRange"),u=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),p=t.length;h.width=e,h.height=i;for(var f=0;f<p;++f){var g=t[f],v=g[0],y=g[1],m=r(g[2]);d.globalAlpha=m,d.drawImage(s,v-c,y-c)}if(!h.width||!h.height)return h;for(var x=d.getImageData(0,0,h.width,h.height),_=x.data,b=0,w=_.length,S=this.minOpacity,M=this.maxOpacity-S;b<w;){m=_[b+3]/256;var I=4*Math.floor(255*m);if(m>0){var T=a(m)?l:u;m>0&&(m=m*M+S),_[b++]=T[I],_[b++]=T[I+1],_[b++]=T[I+2],_[b++]=T[I+3]*m*256}else b+=4}return d.putImageData(x,0,0),h},n.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Rt.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var r=t.getContext("2d");return r.clearRect(0,0,i,i),r.shadowOffsetX=i,r.shadowBlur=this.blurSize,r.shadowColor=H.color.neutral99,r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},n.prototype._getGradient=function(t,e){for(var i=this._gradientPixels,r=i[e]||(i[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)t[e](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r},n})(),C4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){var o;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(o=s)})}),this._progressiveEls=null,this.group.removeAll();var a=e.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"||a.type==="matrix"?this._renderOnGridLike(e,r,0,e.getData().count()):sM(a)&&this._renderOnGeo(a,e,o,r)},t.prototype.incrementalPrepareRender=function(e,i,r){this.group.removeAll()},t.prototype.incrementalRender=function(e,i,r,o){var a=i.coordinateSystem;a&&(sM(a)?this.render(i,r,o):(this._progressiveEls=[],this._renderOnGridLike(i,o,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){xo(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,i,r,o,a){var s,l,u,c,h=e.coordinateSystem,d=Pa(h,"cartesian2d"),p=Pa(h,"matrix");if(d){var f=h.getAxis("x"),g=h.getAxis("y");s=Qt(f).w+.5,l=Qt(g).w+.5,u=f.scale.getExtent(),c=g.scale.getExtent()}for(var v=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),x=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),w=Dt(e),S=e.getModel("emphasis"),M=S.get("focus"),I=S.get("blurScope"),T=S.get("disabled"),C=d||p?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],D=r;D<o;D++){var A=void 0,L=y.getItemVisual(D,"style");if(d){var P=y.get(C[0],D),E=y.get(C[1],D);if(isNaN(y.get(C[2],D))||isNaN(P)||isNaN(E)||P<u[0]||P>u[1]||E<c[0]||E>c[1])continue;var O=h.dataToPoint([P,E]);A=new Ae({shape:{x:O[0]-s/2,y:O[1]-l/2,width:s,height:l},style:L})}else if(p){if(jt((N=h.dataToLayout([y.get(C[0],D),y.get(C[1],D)]).rect).x))continue;A=new Ae({z2:1,shape:N,style:L})}else{if(isNaN(y.get(C[1],D)))continue;var N,R=h.dataToLayout([y.get(C[0],D)]);if(jt((N=R.contentRect||R.rect).x)||jt(N.y))continue;A=new Ae({z2:1,shape:N,style:L})}if(y.hasItemOption){var z=y.getItemModel(D),B=z.getModel("emphasis");m=B.getModel("itemStyle").getItemStyle(),x=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),b=z.get(["itemStyle","borderRadius"]),M=B.get("focus"),I=B.get("blurScope"),T=B.get("disabled"),w=Dt(z)}A.shape.r=b;var V=e.getRawValue(D),W="-";V&&V[2]!=null&&(W=V[2]+""),Et(A,w,{labelFetcher:e,labelDataIndex:D,defaultOpacity:L.opacity,defaultText:W}),A.ensureState("emphasis").style=m,A.ensureState("blur").style=x,A.ensureState("select").style=_,at(A,M,I,T),A.incremental=Gi(e,a),a&&(A.states.emphasis.hoverLayer=2),v.add(A),y.setItemGraphicEl(D,A),this._progressiveEls&&this._progressiveEls.push(A)}},t.prototype._renderOnGeo=function(e,i,r,o){var a=r.targetVisuals.inRange,s=r.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new T4;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var c=e.getViewRect().clone(),h=e.getRoamTransform();c.applyTransform(h);var d=Math.max(c.x,0),p=Math.max(c.y,0),f=Math.min(c.width+c.x,o.getWidth()),g=Math.min(c.height+c.y,o.getHeight()),v=f-d,y=g-p,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(m,function(S,M,I){var T=e.dataToPoint([S,M]);return T[0]-=d,T[1]-=p,T.push(I),T}),_=r.getExtent(),b=r.type==="visualMap.continuous"?(function(S,M){var I=S[1]-S[0];return M=[(M[0]-S[0])/I,(M[1]-S[0])/I],function(T){return T>=M[0]&&T<=M[1]}})(_,r.option.range):(function(S,M,I){var T=S[1]-S[0],C=(M=K(M,function(A){return{interval:[(A.interval[0]-S[0])/T,(A.interval[1]-S[0])/T]}})).length,D=0;return function(A){var L;for(L=D;L<C;L++)if((P=M[L].interval)[0]<=A&&A<=P[1]){D=L;break}if(L===C)for(L=D-1;L>=0;L--){var P;if((P=M[L].interval)[0]<=A&&A<=P[1]){D=L;break}}return L>=0&&L<C&&I[L]}})(_,r.getPieceList(),r.option.selected);u.update(x,v,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var w=new zt({style:{width:v,height:y,x:d,y:p,image:u.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t})(Ze),D4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.getInitialData=function(e,i){return Ji(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=_l.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:H.color.primary}}},t})(je),A4=["itemStyle","borderWidth"],xT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],my=new $i,k4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=Sc,e}return G(t,n),t.prototype.render=function(e,i,r){var o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis().isHorizontal(),c=l.master.getRect(),h={ecSize:{width:r.getWidth(),height:r.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:u,valueDim:xT[+u],categoryDim:xT[1-+u]};a.diff(s).add(function(p){if(a.hasValue(p)){var f=bT(a,p),g=_T(a,p,f,h),v=wT(a,h,g);a.setItemGraphicEl(p,v),o.add(v),MT(v,h,g)}}).update(function(p,f){var g=s.getItemGraphicEl(f);if(a.hasValue(p)){var v=bT(a,p),y=_T(a,p,v,h),m=wR(a,y);g&&m!==g.__pictorialShapeStr&&(o.remove(g),a.setItemGraphicEl(p,null),g=null),g?(function(x,_,b){var w=b.animationModel,S=b.dataIndex,M=x.__pictorialBundle;Fe(M,{x:b.bundlePosition[0],y:b.bundlePosition[1]},w,S),b.symbolRepeat?mR(x,_,b,!0):xR(x,_,b,!0),_R(x,b,!0),bR(x,_,b,!0)})(g,h,y):g=wT(a,h,y,!0),a.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=y,o.add(g),MT(g,h,y)}else o.remove(g)}).remove(function(p){var f=s.getItemGraphicEl(p);f&&ST(s,p,f.__pictorialSymbolMeta.animationModel,f)}).execute();var d=e.get("clip",!0)?La(e.coordinateSystem,!1,e):null;return d?o.setClipPath(d):o.removeClipPath(),this._data=a,this.group},t.prototype.remove=function(e,i){var r=this.group,o=this._data;e.get("animation")?o&&o.eachItemGraphicEl(function(a){ST(o,me(a).dataIndex,e,a)}):r.removeAll()},t.type=Sc,t})(Ze);function _T(n,t,e,i){var r=n.getItemLayout(t),o=e.get("symbolRepeat"),a=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=(e.get("symbolRotate")||0)*Math.PI/180||0,u=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),h={dataIndex:t,layout:r,itemModel:e,symbolType:n.getItemVisual(t,"symbol")||"circle",style:n.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};(function(f,g,v,y,m){var x,_=y.valueDim,b=f.get("symbolBoundingData"),w=y.coordSys.getOtherAxis(y.coordSys.getBaseAxis()),S=w.toGlobalCoord(w.dataToCoord(0)),M=1-+(v[_.wh]<=0);if(q(b)){var I=[xy(w,b[0])-S,xy(w,b[1])-S];I[1]<I[0]&&I.reverse(),x=I[M]}else x=b!=null?xy(w,b)-S:g?y.coordSysExtent[_.index][M]-S:v[_.wh];m.boundingLength=x,g&&(m.repeatCutLength=v[_.wh]);var T=_.xy==="x",C=w.inverse;m.pxSign=T&&!C||!T&&C?x>=0?1:-1:x>0?1:-1})(e,o,r,i,h),(function(f,g,v,y,m,x,_,b,w,S){var M,I=w.valueDim,T=w.categoryDim,C=Math.abs(v[T.wh]),D=f.getItemVisual(g,"symbolSize");M=q(D)?D.slice():D==null?["100%","100%"]:[D,D],M[T.index]=ne(M[T.index],C),M[I.index]=ne(M[I.index],y?C:Math.abs(x)),S.symbolSize=M;var A=S.symbolScale=[M[0]/b,M[1]/b];A[I.index]*=(w.isHorizontal?-1:1)*_})(n,t,r,o,0,h.boundingLength,h.pxSign,u,i,h),(function(f,g,v,y,m){var x=f.get(A4)||0;x&&(my.attr({scaleX:g[0],scaleY:g[1],rotation:v}),my.updateTransform(),x/=my.getLineScale(),x*=g[y.valueDim.index]),m.valueLineWidth=x||0})(e,h.symbolScale,l,i,h);var d=h.symbolSize,p=ja(e.get("symbolOffset"),d);return(function(f,g,v,y,m,x,_,b,w,S,M,I){var T=M.categoryDim,C=M.valueDim,D=I.pxSign,A=Math.max(g[C.index]+b,0),L=A;if(y){var P=Math.abs(w),E=an(f.get("symbolMargin"),"15%")+"",O=!1;E.lastIndexOf("!")===E.length-1&&(O=!0,E=E.slice(0,E.length-1));var N=ne(E,g[C.index]),R=Math.max(A+2*N,0),z=O?0:2*N,B=E1(y),V=B?y:IT((P+z)/R);R=A+2*(N=(P-V*A)/2/(O?V:Math.max(V-1,1))),z=O?0:2*N,B||y==="fixed"||(V=S?IT((Math.abs(S)+z)/R):0),L=V*R-z,I.repeatTimes=V,I.symbolMargin=N}var W=D*(L/2),U=I.pathPosition=[];U[T.index]=v[T.wh]/2,U[C.index]=_==="start"?W:_==="end"?w-W:w/2,x&&(U[0]+=x[0],U[1]+=x[1]);var F=I.bundlePosition=[];F[T.index]=v[T.xy],F[C.index]=v[C.xy];var Q=I.barRectShape=X({},v);Q[C.wh]=D*Math.max(Math.abs(v[C.wh]),Math.abs(U[C.index]+W)),Q[T.wh]=v[T.wh];var Z=I.clipShape={};Z[T.xy]=-v[T.xy],Z[T.wh]=M.ecSize[T.wh],Z[C.xy]=0,Z[C.wh]=v[C.wh]})(e,d,r,o,0,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function xy(n,t){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(t)))}function yR(n){var t=n.symbolPatternSize,e=bt(n.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function mR(n,t,e,i){var r=n.__pictorialBundle,o=e.symbolSize,a=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,h=o[t.valueDim.index]+a+2*e.symbolMargin;for(m_(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?Ws(g,null,f(c),e,i):Ws(g,null,{scaleX:0,scaleY:0},e,i,function(){r.remove(g)}),c++});c<u;c++){var d=yR(e);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var p=f(c);Ws(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},e,i)}function f(g){var v=s.slice(),y=e.pxSign,m=g;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-g),v[l.index]=h*(m-u/2+.5)+s[l.index],{x:v[0],y:v[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function xR(n,t,e,i){var r=n.__pictorialBundle,o=n.__pictorialMainPath;o?Ws(o,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,i):(o=n.__pictorialMainPath=yR(e),r.add(o),Ws(o,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,i))}function _R(n,t,e){var i=X({},t.barRectShape),r=n.__pictorialBarRect;r?Ws(r,null,{shape:i},t,e):((r=n.__pictorialBarRect=new Ae({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,n.add(r))}function bR(n,t,e,i){if(e.symbolClip){var r=n.__pictorialClipPath,o=X({},e.clipShape),a=t.valueDim,s=e.animationModel,l=e.dataIndex;if(r)Fe(r,{shape:o},s,l);else{o[a.wh]=0,r=new Ae({shape:o}),n.__pictorialBundle.setClipPath(r),n.__pictorialClipPath=r;var u={};u[a.wh]=e.clipShape[a.wh],Ya[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function bT(n,t){var e=n.getItemModel(t);return e.getAnimationDelayParams=L4,e.isAnimationEnabled=P4,e}function L4(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function P4(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function wT(n,t,e,i){var r=new he,o=new he;return r.add(o),r.__pictorialBundle=o,o.x=e.bundlePosition[0],o.y=e.bundlePosition[1],e.symbolRepeat?mR(r,t,e):xR(r,0,e),_R(r,e,i),bR(r,t,e,i),r.__pictorialShapeStr=wR(n,e),r.__pictorialSymbolMeta=e,r}function ST(n,t,e,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];m_(i,function(a){o.push(a)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(e=null),k(o,function(a){po(a,{scaleX:0,scaleY:0},e,t,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(t,null)}function wR(n,t){return[n.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function m_(n,t,e){k(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&t.call(e,i)})}function Ws(n,t,e,i,r,o){t&&n.attr(t),i.symbolClip&&!r?e&&n.attr(e):e&&Ya[r?"updateProps":"initProps"](n,e,i.animationModel,i.dataIndex,o)}function MT(n,t,e){var i=e.dataIndex,r=e.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");m_(n,function(g){if(g instanceof zt){var v=g.style;g.useStyle(X({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},e.style))}else g.useStyle(e.style);var y=g.ensureState("emphasis");y.style=a,d&&(y.scaleX=1.1*g.scaleX,y.scaleY=1.1*g.scaleY),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=e.z2});var p=t.valueDim.posDesc[+(e.boundingLength>0)],f=n.__pictorialBarRect;f.ignoreClip=!0,Et(f,Dt(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:rl(t.seriesModel.getData(),i),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:p}),at(n,c,h,o.get("disabled"))}function IT(n){var t=Math.round(n);return Math.abs(n-t)<1e-4?t:Math.ceil(n)}var O4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return G(t,n),t.prototype.getInitialData=function(e){return e.stack=null,n.prototype.getInitialData.apply(this,arguments)},t.type="series."+Sc,t.dependencies=["grid"],t.defaultOption=_o(Mc.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:H.color.primary}}}),t})(Mc),sl="themeRiver",R4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new Al(ie(this.getData,this),ie(this.getRawData,this))},t.prototype.fixData=function(e){var i=e.length,r={},o=Im(e,function(d){return r.hasOwnProperty(d[0]+"")||(r[d[0]+""]=-1),d[2]}),a=[];o.buckets.each(function(d,p){a.push({name:p,dataList:d})});for(var s=a.length,l=0;l<s;++l){for(var u=a[l].name,c=0;c<a[l].dataList.length;++c){var h=a[l].dataList[c][0]+"";r[h]=l}for(var h in r)r.hasOwnProperty(h)&&r[h]!==l&&(r[h]=l,e[i]=[h,0,u],i++)}return e},t.prototype.getInitialData=function(e,i){for(var r=this.getReferringComponents("singleAxis",pt).models[0].get("type"),o=Ye(e.data,function(p){return p[2]!==void 0}),a=this.fixData(o||[]),s=[],l=this.nameMap=re(),u=0,c=0;c<a.length;++c)s.push(a[c][2]),l.get(a[c][2])||(l.set(a[c][2],u),u++);var h=Ml(a,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Dp(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new fn(h,this);return d.initData(a),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),i=e.count(),r=[],o=0;o<i;++o)r[o]=o;var a=e.mapDimension("single"),s=Im(r,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(h,d){return e.get(a,h)-e.get(a,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,i,r){q(e)||(e=e?[e]:[]);for(var o,a=this.getData(),s=this.getLayerSeries(),l=[],u=s.length,c=0;c<u;++c){for(var h=Number.MAX_VALUE,d=-1,p=s[c].indices.length,f=0;f<p;++f){var g=a.get(e[0],s[c].indices[f]),v=Math.abs(g-i);v<=h&&(o=g,h=v,d=s[c].indices[f])}l.push(d)}return{dataIndices:l,nestestValue:o}},t.prototype.formatTooltip=function(e,i,r){var o=this.getData();return Mt("nameValue",{name:o.getName(e),value:o.get(o.mapDimension("value"),e)})},t.type="series."+sl,t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t})(je),N4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=sl,e._layers=[],e}return G(t,n),t.prototype.render=function(e,i,r){var o=e.getData(),a=this,s=this.group,l=e.getLayerSeries(),u=o.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;function d(v){return v.name}s.x=0,s.y=c.y+h[0];var p=new Sr(this._layersSeries||[],l,d,d),f=[];function g(v,y,m){var x=a._layers;if(v!=="remove"){for(var _,b,w=[],S=[],M=l[y].indices,I=0;I<M.length;I++){var T=o.getItemLayout(M[I]),C=T.x,D=T.y0,A=T.y;w.push(C,D),S.push(C,D+A),_=o.getItemVisual(M[I],"style")}var L=o.getItemLayout(M[0]),P=e.getModel("label").get("margin"),E=e.getModel("emphasis");if(v==="add"){var O=f[y]=new he;b=new IP({shape:{points:w,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(b),s.add(O),e.isAnimationEnabled()&&b.setClipPath((function(R,z,B){var V=new Ae({shape:{x:R.x-10,y:R.y-10,width:0,height:R.height+20}});return rt(V,{shape:{x:R.x-50,width:R.width+100,height:R.height+20}},z,B),V})(b.getBoundingRect(),e,function(){b.removeClipPath()}))}else O=x[m],b=O.childAt(0),s.add(O),f[y]=O,Fe(b,{shape:{points:w,stackedOnPoints:S}},e),Jn(b);Et(b,Dt(e),{labelDataIndex:M[I-1],defaultText:o.getName(M[I-1]),inheritColor:_.fill},{normal:{verticalAlign:"middle"}}),b.setTextConfig({position:null,local:!0});var N=b.getTextContent();N&&(N.x=L.x-P,N.y=L.y0+L.y/2),b.useStyle(_),o.setItemGraphicEl(y,b),Ct(b,e),at(b,E.get("focus"),E.get("blurScope"),E.get("disabled"))}else s.remove(x[y])}p.add(ie(g,this,"add")).update(ie(g,this,"update")).remove(ie(g,this,"remove")).execute(),this._layersSeries=l,this._layers=f},t.type=sl,t})(Ze),E4=At(sl,function(n,t){n.eachSeriesByType(sl,function(e){var i=e.getData(),r=e.coordinateSystem,o={},a=r.getRect();o.rect=a;var s=e.get("boundaryGap"),l=r.getAxis();o.boundaryGap=s,l.orient==="horizontal"?(s[0]=ne(s[0],a.height),s[1]=ne(s[1],a.height),TT(i,e,a.height-s[0]-s[1])):(s[0]=ne(s[0],a.width),s[1]=ne(s[1],a.width),TT(i,e,a.width-s[0]-s[1])),i.setLayout("layoutInfo",o)})});function TT(n,t,e){if(n.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),a=n.mapDimension("single"),s=n.mapDimension("value"),l=K(o,function(v){return K(v.indices,function(y){var m=r.dataToPoint(n.get(a,y));return m[1]=n.get(s,y),m})}),u=(function(v){for(var y=v.length,m=v[0].length,x=[],_=[],b=0,w=0;w<m;++w){for(var S=0,M=0;M<y;++M)S+=v[M][w][1];S>b&&(b=S),x.push(S)}for(var I=0;I<m;++I)_[I]=(b-x[I])/2;b=0;for(var T=0;T<m;++T){var C=x[T]+_[T];C>b&&(b=C)}return{y0:_,max:b}})(l),c=u.y0,h=e/u.max,d=o.length,p=o[0].indices.length,f=0;f<p;++f){i=c[f]*h,n.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*h});for(var g=1;g<d;++g)i+=l[g-1][f][1]*h,n.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*h})}}var CT=(function(n){function t(e,i,r,o){var a=n.call(this)||this;a.z2=2,a.textConfig={inside:!0},me(a).seriesIndex=i.seriesIndex;var s=new Be({z2:4,silent:e.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,e,i,r,o),a}return G(t,n),t.prototype.updateData=function(e,i,r,o,a){this.node=i,i.piece=this,r=r||this._seriesModel,o=o||this._ecModel;var s=this;me(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),c=i.getLayout(),h=X({},c);h.label=null;var d=i.getVisual("style");d.lineJoin="bevel";var p=i.getVisual("decal");p&&(d.decal=Js(p,a));var f=zi(l.getModel("itemStyle"),h,!0);X(h,f),k(yn,function(y){var m=s.ensureState(y),x=l.getModel([y,"itemStyle"]);m.style=x.getItemStyle();var _=zi(x,h);_&&(m.shape=_)}),e?(s.setShape(h),s.shape.r=c.r0,rt(s,{shape:{r:c.r}},r,i.dataIndex)):(Fe(s,{shape:h},r),Jn(s)),s.useStyle(d),this._updateLabel(r);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=r||this._seriesModel,this._ecModel=o||this._ecModel;var v=u.get("focus");at(this,v==="relative"?Us(i.getAncestorsIndices(),i.getDescendantIndices()):v==="ancestor"?i.getAncestorsIndices():v==="descendant"?i.getDescendantIndices():v,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var i=this,r=this.node.getModel(),o=r.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,u=Math.cos(l),c=Math.sin(l),h=this,d=h.getTextContent(),p=this.node.dataIndex,f=o.get("minAngle")/180*Math.PI,g=o.get("show")&&!(f!=null&&Math.abs(s)<f);function v(y,m){var x=y.get(m);return x??o.get(m)}d.ignore=!g,k(sc,function(y){var m=y==="normal"?r.getModel("label"):r.getModel([y,"label"]),x=y==="normal",_=x?d:d.ensureState(y),b=e.getFormattedLabel(p,y);x&&(b=b||i.node.name),_.style=Je(m,{},null,y!=="normal",!0),b&&(_.style.text=b);var w=m.get("show");w==null||x||(_.ignore=!w);var S,M=v(m,"position"),I=x?h:h.states[y],T=I.style.fill;I.textConfig={outsideFill:m.get("color")==="inherit"?T:null,inside:M!=="outside"};var C=v(m,"distance")||0,D=v(m,"align"),A=v(m,"rotate"),L=.5*Math.PI,P=1.5*Math.PI,E=Dn(A==="tangential"?Math.PI/2-l:l),O=E>L&&!_a(E-L)&&E<P;M==="outside"?(S=a.r+C,D=O?"right":"left"):D&&D!=="center"?D==="left"?(S=a.r0+C,D=O?"right":"left"):D==="right"&&(S=a.r-C,D=O?"left":"right"):(S=a.r0===0&&_a(s-2*Math.PI)?0:(a.r+a.r0)/2,D="center"),_.style.align=D,_.style.verticalAlign=v(m,"verticalAlign")||"middle",_.x=S*u+a.cx,_.y=S*c+a.cy;var N=0;A==="radial"?N=Dn(-l)+(O?Math.PI:0):A==="tangential"?N=Dn(Math.PI/2-l)+(O?Math.PI:0):Ve(A)&&(N=A*Math.PI/180),_.rotation=Dn(N)}),d.dirtyStyle()},t})($t),Va="sunburst",z4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return G(t,n),t.prototype.getInitialData=function(e,i){var r={name:e.name,children:e.data};SR(r);var o=this._levelModels=K(e.levels||[],function(s){return new Oe(s,this,i)},this),a=t_.createTree(r,this,function(s){s.wrapMethod("getItemModel",function(l,u){var c=a.getNodeByDataIndex(u),h=o[c.depth];return h&&(l.parentModel=h),l})});return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return i.treePathInfo=jf(r,this),i},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var i=this.getRawData().tree.root;e&&(e===i||i.contains(e))||(this._viewRoot=i)},t.prototype.enableAriaDecal=function(){LO(this)},t.type="series."+Va,t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t})(je);function SR(n){var t=0;k(n.children,function(i){SR(i);var r=i.value;q(r)&&(r=r[0]),t+=r});var e=n.value;q(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),q(n.value)?n.value[0]=e:n.value=e}var Z0="sunburstRootToNode",DT="sunburstHighlight",B4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=Va,e}return G(t,n),t.prototype.render=function(e,i,r,o){var a=this;this.seriesModel=e,this.api=r,this.ecModel=i;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),c=this.group,h=e.get("renderLabelForZeroData"),d=[];u.eachNode(function(f){d.push(f)});var p=this._oldChildren||[];(function(f,g){if(f.length===0&&g.length===0)return;function v(m){return m.getId()}function y(m,x){(function(_,b){if(h||!_||_.getValue()||(_=null),_!==l&&b!==l){if(b&&b.piece)_?(b.piece.updateData(!1,_,e,i,r),s.setItemGraphicEl(_.dataIndex,b.piece)):(function(S){S&&S.piece&&(c.remove(S.piece),S.piece=null)})(b);else if(_){var w=new CT(_,e,i,r);c.add(w),s.setItemGraphicEl(_.dataIndex,w)}}})(m==null?null:f[m],x==null?null:g[x])}new Sr(g,f,v,v).add(y).update(y).remove(Ce(y,null)).execute()})(d,p),(function(f,g){g.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,f,e,i,r):(a.virtualPiece=new CT(f,e,i,r),c.add(a.virtualPiece)),g.piece.off("click"),a.virtualPiece.on("click",function(v){a._rootToNode(g.parentNode)})):a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)})(l,u),this._initEvents(),this._oldChildren=d},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(i){var r=!1;e.seriesModel.getViewRoot().eachNode(function(o){if(!r&&o.piece&&o.piece===i.target){var a=o.getModel().get("nodeClick");if(a==="rootToNode")e._rootToNode(o);else if(a==="link"){var s=o.getModel(),l=s.get("link");l&&mp(l,s.get("target",!0)||"_blank")}r=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Z0,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,i){var r=i.getData().getItemLayout(0);if(r){var o=e[0]-r.cx,a=e[1]-r.cy,s=Math.sqrt(o*o+a*a);return s<=r.r&&s>=r.r0}},t.type=Va,t})(Ze),V4=At(Va,function(n){var t={};n.eachSeriesByType(Va,function(e){var i=e.getData(),r=i.tree;r.eachNode(function(o){var a=o.getModel().getModel("itemStyle").getItemStyle();a.fill||(a.fill=(function(s,l,u){if(s.depth===0)return H.color.neutral50;for(var c=s;c&&c.depth>1;)c=c.parentNode;var h=l.getColorFromPalette(c.name||c.dataIndex+"",t);return s.depth>1&&te(h)&&(h=Qd(h,(s.depth-1)/(u-1)*.5)),h})(o,e,r.root.height)),X(i.ensureUniqueItemVisual(o.dataIndex,"style"),a)})})}),AT=Math.PI/180,G4=At(Va,function(n,t){n.eachSeriesByType(Va,function(e){var i=e.get("center"),r=e.get("radius");q(r)||(r=[0,r]),q(i)||(i=[i,i]);var o=t.getWidth(),a=t.getHeight(),s=Math.min(o,a),l=ne(i[0],o),u=ne(i[1],a),c=ne(r[0],s/2),h=ne(r[1],s/2),d=-e.get("startAngle")*AT,p=e.get("minAngle")*AT,f=e.getData().tree.root,g=e.getViewRoot(),v=g.depth,y=e.get("sort");y!=null&&MR(g,y);var m=0;k(g.children,function(P){!isNaN(P.getValue())&&m++});var x=g.getValue(),_=Math.PI/(x||m)*2,b=g.depth>0,w=g.height-(b?-1:1),S=(h-c)/(w||1),M=e.get("clockwise"),I=e.get("stillShowZeroSum"),T=M?1:-1,C=function(P,E){if(P){var O=E;if(P!==f){var N=P.getValue(),R=x===0&&I?_:N*_;R<p&&(R=p),O=E+T*R;var z=P.depth-v-(b?-1:1),B=c+S*z,V=c+S*(z+1),W=e.getLevelModel(P);if(W){var U=W.get("r0",!0),F=W.get("r",!0),Q=W.get("radius",!0);Q!=null&&(U=Q[0],F=Q[1]),U!=null&&(B=ne(U,s/2)),F!=null&&(V=ne(F,s/2))}P.setLayout({angle:R,startAngle:E,endAngle:O,clockwise:M,cx:l,cy:u,r0:B,r:V})}if(P.children&&P.children.length){var Z=0;k(P.children,function(Y){Z+=C(Y,E+Z)})}return O-E}};if(b){var D=c,A=c+S,L=2*Math.PI;f.setLayout({angle:L,startAngle:d,endAngle:d+L,clockwise:M,cx:l,cy:u,r0:D,r:A})}C(g,d)})});function MR(n,t){var e=n.children||[];n.children=(function(i,r){if(le(r)){var o=K(i,function(s,l){var u=s.getValue();return{params:{depth:s.depth,height:s.height,dataIndex:s.dataIndex,getValue:function(){return u}},index:l}});return o.sort(function(s,l){return r(s.params,l.params)}),K(o,function(s){return i[s.index]})}var a=r==="asc";return i.sort(function(s,l){var u=(s.getValue()-l.getValue())*(a?1:-1);return u===0?(s.dataIndex-l.dataIndex)*(a?-1:1):u})})(e,t),e.length&&k(n.children,function(i){MR(i,t)})}var kT={color:"fill",borderColor:"stroke"},F4={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},gr=Me(),H4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,i){return Ji(null,this)},t.prototype.getDataParams=function(e,i,r){var o=n.prototype.getDataParams.call(this,e,i);return r&&(o.info=gr(r).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(je);function W4(n,t){return t=t||[0,0],K(["x","y"],function(e,i){var r=this.getAxis(e),o=t[i],a=n[i]/2;return r.type==="category"?Qt(r).w:Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function U4(n,t){return t=t||[0,0],K([0,1],function(e){var i=t[e],r=n[e]/2,o=[],a=[];return o[e]=i-r,a[e]=i+r,o[1-e]=a[1-e]=t[1-e],Math.abs(this.dataToPoint(o)[e]-this.dataToPoint(a)[e])},this)}function Y4(n,t){var e=this.getAxis(),i=t instanceof Array?t[0]:t,r=(n instanceof Array?n[0]:n)/2;return e.type==="category"?Qt(e).w:Math.abs(e.dataToCoord(i-r)-e.dataToCoord(i+r))}function X4(n,t){return t=t||[0,0],K(["Radius","Angle"],function(e,i){var r=this["get"+e+"Axis"](),o=t[i],a=n[i]/2,s=r.type==="category"?Qt(r).w:Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return e==="Angle"&&(s=s*Math.PI/180),s},this)}var IR={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LT=Re(IR),of=(Kn(pr,function(n,t){return n[t]=1,n},{}),pr.join(", "),["","style","shape","extra"]),ll=Me();function q0(n,t,e,i,r){var o=n+"Animation",a=vl(n,i,r)||{},s=ll(t).userDuring;return a.duration>0&&(a.during=s?ie(q4,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=n),X(a,e[o]),a}function Ud(n,t,e,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=e.isAnimationEnabled(),l=ll(n),u=t.style;l.userDuring=t.during;var c={},h={};if((function(y,m,x){for(var _=0;_<LT.length;_++){var b=LT[_],w=IR[b],S=m[b];S&&(x[w[0]]=S[0],x[w[1]]=S[1])}for(_=0;_<pr.length;_++){var M=pr[_];m[M]!=null&&(x[M]=m[M])}})(0,t,h),n.type==="compound")for(var d=n.shape.paths,p=t.shape.paths,f=0;f<p.length;f++)_y("shape",p[f],d[f]);else _y("shape",t,h),_y("extra",t,h);if(!o&&s&&((function(y,m,x){for(var _=m.transition,b=la(_)?pr:$e(_||[]),w=0;w<b.length;w++){var S=b[w];if(S!=="style"&&S!=="shape"&&S!=="extra"){var M=y[S];x[S]=M}}})(n,t,c),PT("shape",n,t,c),PT("extra",n,t,c),(function(y,m,x,_){if(x){var b,w=y.style;if(w){var S=x.transition,M=m.transition;if(S&&!la(S)){var I=$e(S);!b&&(b=_.style={});for(var T=0;T<I.length;T++){var C=w[P=I[T]];b[P]=C}}else if(y.getAnimationStyleProps&&(la(M)||la(S)||be(M,"style")>=0)){var D=y.getAnimationStyleProps(),A=D?D.style:null;if(A){!b&&(b=_.style={});var L=Re(x);for(T=0;T<L.length;T++){var P;A[P=L[T]]&&(C=w[P],b[P]=C)}}}}}})(n,t,u,c)),h.style=u,(function(y,m,x){var _=m.style;if(!y.isGroup&&_){if(x){y.useStyle({});for(var b=y.animators,w=0;w<b.length;w++){var S=b[w];S.targetName==="style"&&S.changeTarget(y.style)}}y.setStyle(_)}m&&(m.style=null,m&&y.attr(m),m.style=_)})(n,h,a),(function(y,m){oe(m,"silent")&&(y.silent=m.silent),oe(m,"ignore")&&(y.ignore=m.ignore),y instanceof $n&&oe(m,"invisible")&&(y.invisible=m.invisible),y instanceof Le&&oe(m,"autoBatch")&&(y.autoBatch=m.autoBatch)})(n,t),s)if(o){var g={};k(of,function(y){var m=y?t[y]:t;m&&m.enterFrom&&(y&&(g[y]=g[y]||{}),X(y?g[y]:g,m.enterFrom))});var v=q0("enter",n,t,e,r);v.duration>0&&n.animateFrom(g,v)}else(function(y,m,x,_,b){if(b){var w=q0("update",y,m,_,x);w.duration>0&&y.animateFrom(b,w)}})(n,t,r||0,e,c);TR(n,t),u?n.dirty():n.markRedraw()}function TR(n,t){for(var e=ll(n).leaveToProps,i=0;i<of.length;i++){var r=of[i],o=r?t[r]:t;o&&o.leaveTo&&(e||(e=ll(n).leaveToProps={}),r&&(e[r]=e[r]||{}),X(r?e[r]:e,o.leaveTo))}}function $f(n,t,e,i){if(n){var r=n.parent,o=ll(n).leaveToProps;if(o){var a=q0("update",n,t,e,0);a.done=function(){r&&r.remove(n),i&&i()},n.animateTo(o,a)}else r&&r.remove(n),i&&i()}}function la(n){return n==="all"}var wi={},Z4={setTransform:function(n,t){return wi.el[n]=t,this},getTransform:function(n){return wi.el[n]},setShape:function(n,t){var e=wi.el;return(e.shape||(e.shape={}))[n]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(n){var t=wi.el.shape;if(t)return t[n]},setStyle:function(n,t){var e=wi.el,i=e.style;return i&&(i[n]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(n){var t=wi.el.style;if(t)return t[n]},setExtra:function(n,t){return(wi.el.extra||(wi.el.extra={}))[n]=t,this},getExtra:function(n){var t=wi.el.extra;if(t)return t[n]}};function q4(){var n=this,t=n.el;if(t){var e=ll(t).userDuring,i=n.userDuring;e===i?(wi.el=t,i(Z4)):n.el=n.userDuring=null}}function PT(n,t,e,i){var r=e[n];if(r){var o,a=t[n];if(a){var s=e.transition,l=r.transition;if(l)if(!o&&(o=i[n]={}),la(l))X(o,a);else for(var u=$e(l),c=0;c<u.length;c++){var h=a[p=u[c]];o[p]=h}else if(la(s)||be(s,n)>=0){!o&&(o=i[n]={});var d=Re(a);for(c=0;c<d.length;c++){var p;h=a[p=d[c]],j4(r[p],h)&&(o[p]=h)}}}}}function _y(n,t,e){var i=t[n];if(i)for(var r=e[n]={},o=Re(i),a=0;a<o.length;a++){var s=o[a];r[s]=Vu(i[s])}}function j4(n,t){return qt(n)?n!==t:n!=null&&isFinite(n)}var CR=Me(),K4=["percent","easing","shape","style","extra"];function DR(n){n.stopAnimation("keyframe"),n.attr(CR(n))}function af(n,t,e){if(e.isAnimationEnabled()&&t)if(q(t))k(t,function(s){af(n,s,e)});else{var i=t.keyframes,r=t.duration;if(e&&r==null){var o=vl("enter",e,0);r=o&&o.duration}if(i&&r){var a=CR(n);k(of,function(s){if(!s||n[s]){var l;i.sort(function(u,c){return u.percent-c.percent}),k(i,function(u){var c=n.animators,h=s?u[s]:u;if(h){var d=Re(h);if(s||(d=Ye(d,function(g){return be(K4,g)<0})),d.length){l||((l=n.animate(s,t.loop,!0)).scope="keyframe");for(var p=0;p<c.length;p++)c[p]!==l&&c[p].targetName===l.targetName&&c[p].stopTracks(d);s&&(a[s]=a[s]||{});var f=s?a[s]:a;k(d,function(g){f[g]=((s?n[s]:n)||{})[g]}),l.whenWithKeys(r*u.percent,h,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(r).start(t.easing)}})}}}var vr="emphasis",Jr="normal",x_="blur",__="select",Xr=[Jr,vr,x_,__],by={normal:["itemStyle"],emphasis:[vr,"itemStyle"],blur:[x_,"itemStyle"],select:[__,"itemStyle"]},wy={normal:["label"],emphasis:[vr,"label"],blur:[x_,"label"],select:[__,"label"]},$4=["x","y"],zn={normal:{},emphasis:{},blur:{},select:{}},J4={cartesian2d:function(n){var t=n.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return n.dataToPoint(e)},size:ie(W4,n)}}},geo:function(n){var t=n.view,e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:Z3(t)},api:{coord:function(i){return n.dataToPoint(i)},size:ie(U4,n)}}},single:function(n){var t=n.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return n.dataToPoint(e)},size:ie(Y4,n)}}},polar:function(n){var t=n.getRadiusAxis(),e=n.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:i[1],r0:i[0]},api:{coord:function(r){var o=t.dataToRadius(r[0]),a=e.dataToAngle(r[1]),s=n.coordToPoint([o,a]);return s.push(o,a*Math.PI/180),s},size:ie(X4,n)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(i,r){return n.dataToPoint(i,r)},layout:function(i,r){return n.dataToLayout(i,r)}}}},matrix:function(n){var t=n.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,i){return n.dataToPoint(e,i)},layout:function(e,i){return n.dataToLayout(e,i)}}}}};function j0(n){return n instanceof Le}function K0(n){return n instanceof $n}var Q4=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r,o){this._progressiveEls=null;var a=this._data,s=e.getData(),l=this.group,u=RT(e,s,i,r);a||l.removeAll(),s.diff(a).add(function(h){Iy(r,null,h,u(h,o),e,l,s)}).remove(function(h){var d=a.getItemGraphicEl(h);d&&$f(d,gr(d).option,e)}).update(function(h,d){var p=a.getItemGraphicEl(d);Iy(r,p,h,u(h,o),e,l,s)}).execute();var c=e.get("clip",!0)?La(e.coordinateSystem,!1,e):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,i,r){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,i,r,o,a){var s=i.getData(),l=RT(i,s,r,o),u=this._progressiveEls=[];function c(p){p.isGroup||(p.incremental=Gi(i),p.ensureState("emphasis").hoverLayer=2)}for(var h=e.start;h<e.end;h++){var d=Iy(null,null,h,l(h,a),i,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(e){xo(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,i,r,o){var a=i.element;if(a==null||r.name===a)return!0;for(;(r=r.__hostTarget||r.parent)&&r!==this.group;)if(r.name===a)return!0;return!1},t.type="custom",t})(Ze);function Sy(n){var t,e=n.type;if(e==="path"){var i=(o=n.shape).width!=null&&o.height!=null?{x:o.x||0,y:o.y||0,width:o.width,height:o.height}:null,r=AR(o);t=js(r,null,i,o.layout||"center"),gr(t).customPathData=r}else if(e==="image")t=new zt({}),gr(t).customImagePath=n.style.image;else if(e==="text")t=new Be({});else if(e==="group")t=new he;else if(e==="compoundPath"){var o;(!(o=n.shape)||!o.paths)&&Ue("");var a=K(o.paths,function(l){if(l.type==="path")return js(l.shape.pathData,l,null);var u=uc(l.type);if(!u){var c="";Ue(c)}return new u});t=new Fc({shape:{paths:a}})}else{var s=uc(e);s||Ue(""),t=new s}return gr(t).customGraphicType=e,t.name=n.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function My(n,t,e,i,r,o,a){DR(t);var s=r&&r.normal.cfg;s&&t.setTextConfig(s),i&&i.transition==null&&(i.transition=$4);var l=i&&i.style;if(l){if(t.type==="text"){var u=l;oe(u,"textFill")&&(u.fill=u.textFill),oe(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=j0(t)?l.decal:null;n&&h&&(h.dirty=!0,c=Js(h,n)),l.__decalPattern=c}K0(t)&&l&&(c=l.__decalPattern)&&(l.decal=c),Ud(t,i,o,{dataIndex:e,isInit:a,clearStyle:!0}),af(t,i.keyframeAnimation,o)}function OT(n,t,e,i,r){var o=t.isGroup?null:t,a=r&&r[n].cfg;if(o){var s=o.ensureState(n);if(i===!1){var l=o.getState(n);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),Ia(o)}}function eH(n,t,e){var i=e===Jr,r=i?t:sf(t,e),o=r?r.z2:null;o!=null&&((i?n:n.ensureState(e)).z2=o||0)}function RT(n,t,e,i){var r=n.get("renderItem");if(typeof r=="string"){var o=lL[r];o&&(r=o)}var a=n.coordinateSystem,s={};a&&(s=a.prepareCustoms?a.prepareCustoms(a):J4[a.type](a));for(var l,u,c=pe({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(S,M){return M==null&&(M=l),t.getStore().get(t.getDimensionIndex(S||0),M)},style:function(S,M){M==null&&(M=l);var I=t.getItemVisual(M,"style"),T=I&&I.fill,C=I&&I.opacity,D=x(M,Jr).getItemStyle();T!=null&&(D.fill=T),C!=null&&(D.opacity=C);var A={inheritColor:te(T)?T:H.color.neutral99},L=_(M,Jr),P=Je(L,null,A,!1,!0);P.text=L.getShallow("show")?ae(n.getFormattedLabel(M,Jr),rl(t,M)):null;var E=pp(L,A,!1);return w(S,D),D=uM(D,P,E),S&&b(D,S),D.legacy=!0,D},ordinalRawValue:function(S,M){M==null&&(M=l),S=S||0;var I=t.getDimensionInfo(S);if(!I){var T=t.getDimensionIndex(S);return T>=0?t.getStore().get(T,M):void 0}var C=t.get(I.name,M),D=I&&I.ordinalMeta;return D?D.categories[C]:C},styleEmphasis:function(S,M){M==null&&(M=l);var I=x(M,vr).getItemStyle(),T=_(M,vr),C=Je(T,null,null,!0,!0);C.text=T.getShallow("show")?wn(n.getFormattedLabel(M,vr),n.getFormattedLabel(M,Jr),rl(t,M)):null;var D=pp(T,null,!0);return w(S,I),I=uM(I,C,D),S&&b(I,S),I.legacy=!0,I},visual:function(S,M){if(M==null&&(M=l),oe(kT,S)){var I=t.getItemVisual(M,"style");return I?I[kT[S]]:null}if(oe(F4,S))return t.getItemVisual(M,S)},barLayout:function(S){if(a.type==="cartesian2d")return(function(M){if(ln(M.axis.scale)){for(var I=Qt(M.axis),T=[],C=0;C<M.count;C++)T.push(pe({stackId:I0+C},M));var D=YP({bandWidthResult:I,seriesInfo:T}),A=[];for(C=0;C<M.count;C++){var L=D[I0+C];L.offsetCenter=L.offset+L.width/2,A.push(L)}return A}})(pe({axis:a.getBaseAxis()},S))},currentSeriesIndices:function(){return e.getCurrentSeriesIndices()},font:function(S){return tx(S,e)}},s.api||{}),h={context:{},seriesId:n.id,seriesName:n.name,seriesIndex:n.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:tH(n.getData()),itemPayload:n.get("itemPayload")||{}},d={},p={},f={},g={},v=0;v<Xr.length;v++){var y=Xr[v];f[y]=n.getModel(by[y]),g[y]=n.getModel(wy[y])}function m(S){return S===l?u||(u=t.getItemModel(S)):t.getItemModel(S)}function x(S,M){return t.hasItemOption?S===l?d[M]||(d[M]=m(S).getModel(by[M])):m(S).getModel(by[M]):f[M]}function _(S,M){return t.hasItemOption?S===l?p[M]||(p[M]=m(S).getModel(wy[M])):m(S).getModel(wy[M]):g[M]}return function(S,M){return l=S,u=null,d={},p={},r&&r(pe({dataIndexInside:S,dataIndex:t.getRawIndex(S),actionType:M?M.type:null},h),c)};function b(S,M){for(var I in M)oe(M,I)&&(S[I]=M[I])}function w(S,M){S&&(S.textFill&&(M.textFill=S.textFill),S.textPosition&&(M.textPosition=S.textPosition))}}function tH(n){var t={};return k(n.dimensions,function(e){var i=n.getDimensionInfo(e);if(!i.isExtraCoord){var r=i.coordDim;(t[r]=t[r]||[])[i.coordDimIndex]=n.getDimensionIndex(e)}}),t}function Iy(n,t,e,i,r,o,a){if(i){var s=b_(n,t,e,i,r,o);return s&&a.setItemGraphicEl(e,s),s&&at(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function b_(n,t,e,i,r,o){var a=-1,s=t;t&&NT(t,i,r)&&(a=be(o.childrenRef(),t),t=null);var l,u,c=!t,h=t;h?h.clearStates():(h=Sy(i),s&&(l=s,(u=h).copyTransform(l),K0(u)&&K0(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,j0(u)&&j0(l)&&u.setShape(l.shape)))),i.morph===!1?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),i.tooltipDisabled&&(h.tooltipDisabled=!0),zn.normal.cfg=zn.normal.conOpt=zn.emphasis.cfg=zn.emphasis.conOpt=zn.blur.cfg=zn.blur.conOpt=zn.select.cfg=zn.select.conOpt=null,zn.isLegacy=!1,(function(g,v,y,m,x,_){if(!(g.isGroup||g.type==="compoundPath")){ET(y,null,_),ET(y,vr,_);var b=_.normal.conOpt,w=_.emphasis.conOpt,S=_.blur.conOpt,M=_.select.conOpt;if(b!=null||w!=null||M!=null||S!=null){var I=g.getTextContent();if(b===!1)I&&g.removeTextContent();else{b=_.normal.conOpt=b||{type:"text"},I?I.clearStates():(I=Sy(b),g.setTextContent(I)),My(null,I,v,b,null,m,x);for(var T=b&&b.style,C=0;C<Xr.length;C++){var D=Xr[C];if(D!==Jr){var A=_[D].conOpt;OT(D,I,0,$0(b,A,D),null)}}T?I.dirty():I.markRedraw()}}}})(h,e,i,r,c,zn),(function(g,v,y,m,x){var _=y.clipPath;if(_===!1)g&&g.getClipPath()&&g.removeClipPath();else if(_){var b=g.getClipPath();b&&NT(b,_,m)&&(b=null),b||(b=Sy(_),g.setClipPath(b)),My(null,b,v,_,null,m,x)}})(h,e,i,r,c),My(n,h,e,i,zn,r,c),oe(i,"info")&&(gr(h).info=i.info);for(var d=0;d<Xr.length;d++){var p=Xr[d];if(p!==Jr){var f=sf(i,p);OT(p,h,0,$0(i,f,p),zn)}}return(function(g,v,y){if(!g.isGroup){var m=g,x=y.currentZ,_=y.currentZLevel;m.z=x,m.zlevel=_;var b=v.z2;b!=null&&(m.z2=b||0);for(var w=0;w<Xr.length;w++)eH(m,v,Xr[w])}})(h,i,r),i.type==="group"&&(function(g,v,y,m,x){var _=m.children,b=_?_.length:0,w=m.$mergeChildren,S=w==="byName"||m.diffChildrenByName,M=w===!1;if(!(!b&&!S&&!M)){if(S)return I={api:g,oldChildren:v.children()||[],newChildren:_||[],dataIndex:y,seriesModel:x,group:v},void new Sr(I.oldChildren,I.newChildren,zT,zT,I).add(BT).update(BT).remove(iH).execute();var I;M&&v.removeAll();for(var T=0;T<b;T++){var C=_[T],D=v.childAt(T);C?(C.ignore==null&&(C.ignore=!1),b_(g,D,y,C,x,v)):D.ignore=!0}for(var A=v.childCount()-1;A>=T;A--){var L=v.childAt(A);nH(v,L,x)}}})(n,h,e,i,r),a>=0?o.replaceAt(h,a):o.add(h),h}function NT(n,t,e){var i,r=gr(n),o=t.type,a=t.shape,s=t.style;return e.isUniversalTransitionEnabled()||o!=null&&o!==r.customGraphicType||o==="path"&&(i=a)&&(oe(i,"pathData")||oe(i,"d"))&&AR(a)!==r.customPathData||o==="image"&&oe(s,"image")&&s.image!==r.customImagePath}function ET(n,t,e){var i=t?sf(n,t):n,r=t?$0(n,i,vr):n.style,o=n.type,a=i?i.textConfig:null,s=n.textContent,l=s?t?sf(s,t):s:null;if(r&&(e.isLegacy||AP(r,o,!!a,!!l))){e.isLegacy=!0;var u=kP(r,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var h=t?e[t]:e.normal;h.cfg=a,h.conOpt=l}function sf(n,t){return t?n?n[t]:null:n}function $0(n,t,e){var i=t&&t.style;return i==null&&e===vr&&n&&(i=n.styleEmphasis),i}function nH(n,t,e){t&&$f(t,gr(n).option,e)}function zT(n,t){var e=n&&n.name;return e??"e\0\0"+t}function BT(n,t){var e=this.context,i=n!=null?e.newChildren[n]:null,r=t!=null?e.oldChildren[t]:null;b_(e.api,r,e.dataIndex,i,e.seriesModel,e.group)}function iH(n){var t=this.context,e=t.oldChildren[n];e&&$f(e,gr(e).option,t.seriesModel)}function AR(n){return n&&(n.pathData||n.d)}var ea=Me(),VT=se,Ty=ie,w_=(function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(t,e,i,r){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,r||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide")return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,e,i);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(t,e);if(s){var d=Ce(GT,e,h);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,e)}else s=this._group=new he,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);HT(s,e,!0),this._renderHandle(o)}},n.prototype.remove=function(t){this.clear(t)},n.prototype.dispose=function(t){this.clear(t)},n.prototype.determineAnimation=function(t,e){var i=e.get("animation"),r=t.axis,o=r.type==="category",a=e.get("snap");if(!a&&!o)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(o&&Qt(r).w>s)return!0;if(a){var l=A0(t).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(t,e,i,r,o){},n.prototype.createPointerEl=function(t,e,i,r){var o=e.pointer;if(o){var a=ea(t).pointerEl=new Ya[o.type](VT(e.pointer));t.add(a)}},n.prototype.createLabelEl=function(t,e,i,r){if(e.label){var o=ea(t).labelEl=new Be(VT(e.label));t.add(o),FT(o,r)}},n.prototype.updatePointerEl=function(t,e,i){var r=ea(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),i(r,{shape:e.pointer.shape}))},n.prototype.updateLabelEl=function(t,e,i,r){var o=ea(t).labelEl;o&&(o.setStyle(e.label.style),i(o,{x:e.label.x,y:e.label.y}),FT(o,r))},n.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,r=this._api.getZr(),o=this._handle,a=i.getModel("handle"),s=i.get("status");if(!a.get("show")||!s||s==="hide")return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=yl(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){xr(u.event)},onmousedown:Ty(this._onHandleDragMove,this,0,0),drift:Ty(this._onHandleDragMove,this),ondragend:Ty(this._onHandleDragEnd,this)}),r.add(o)),HT(o,i,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,bl(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},n.prototype._moveHandleToValue=function(t,e){GT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Cy(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var r=this.updateHandleTransform(Cy(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,i.stopAnimation(),i.attr(Cy(r)),ea(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,r=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),fc(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},n})();function GT(n,t,e,i){kR(ea(e).lastProp,i)||(ea(e).lastProp=i,t?Fe(e,i,n):(e.stopAnimation(),e.attr(i)))}function kR(n,t){if(fe(n)&&fe(t)){var e=!0;return k(t,function(i,r){e=e&&kR(n[r],i)}),!!e}return n===t}function FT(n,t){n[t.get(["label","show"])?"show":"hide"]()}function Cy(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function HT(n,t,e){var i=t.get("z"),r=t.get("zlevel");n&&n.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),r!=null&&(o.zlevel=r),o.silent=e)})}function S_(n){var t,e=n.get("type"),i=n.getModel(e+"Style");return e==="line"?(t=i.getLineStyle()).fill=null:e==="shadow"&&((t=i.getAreaStyle()).stroke=null),t}function LR(n,t,e,i,r){var o=PR(e.get("value"),t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),a=e.getModel("label"),s=xl(a.get("padding")||0),l=a.getFont(),u=If(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=r.align;p==="right"&&(c[0]-=h),p==="center"&&(c[0]-=h/2);var f=r.verticalAlign;f==="bottom"&&(c[1]-=d),f==="middle"&&(c[1]-=d/2),(function(v,y,m,x){var _=x.getWidth(),b=x.getHeight();v[0]=Math.min(v[0]+y,_)-y,v[1]=Math.min(v[1]+m,b)-m,v[0]=Math.max(v[0],0),v[1]=Math.max(v[1],0)})(c,h,d,i);var g=a.get("backgroundColor");g&&g!=="auto"||(g=t.get(["axisLine","lineStyle","color"])),n.label={x:c[0],y:c[1],style:Je(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function PR(n,t,e,i,r){n=t.scale.parse(n);var o=t.scale.getLabel({value:n},{precision:r.precision}),a=r.formatter;if(a){var s={value:Pp(t,{value:n}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),te(a)?o=a.replace("{value}",o):le(a)&&(o=a(s))}return o}function M_(n,t,e){var i=[1,0,0,1,0,0];return Cr(i,i,e.rotation),ci(i,i,e.position),li([n.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function OR(n,t,e,i,r,o){var a=gn.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=r.get(["label","margin"]),LR(t,i,r,o,{position:M_(i.axis,n,e),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function I_(n,t,e){return{x1:n[e=e||0],y1:n[1-e],x2:t[e],y2:t[1-e]}}function RR(n,t,e){return{x:n[e=e||0],y:n[1-e],width:t[e],height:t[1-e]}}function WT(n,t,e,i,r,o){return{cx:n,cy:t,r0:e,r:i,startAngle:r,endAngle:o,clockwise:!0}}function T_(n,t,e){return Qt(n,{fromStat:{sers:K(t,function(i){return e.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function C_(n,t,e){return[De(Xe(t[0],t[1]),n-e/2),Xe(n+e/2,De(t[0],t[1]))]}var rH=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis,l=s.grid,u=o.get("type"),c=s.getGlobalExtent(),h=UT(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=S_(o),f=oH[u](s,d,c,h,o.get("seriesDataIndices"),o.ecModel);f.style=p,e.graphicKey=f.type,e.pointer=f}OR(i,e,Gp(l.getRect(),r),r,o,a)},t.prototype.getHandleTransform=function(e,i,r){var o=Gp(i.axis.grid.getRect(),i,{labelInside:!1});o.labelMargin=r.get(["handle","margin"]);var a=M_(i.axis,e,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,r,o){var a=r.axis,s=a.grid,l=a.getGlobalExtent(!0),u=UT(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,h=[e.x,e.y];h[c]+=i[c],h[c]=Xe(l[1],h[c]),h[c]=De(l[0],h[c]);var d=(u[1]+u[0])/2,p=[d,d];return p[c]=h[c],{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:p,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][c]}},t})(w_);function UT(n,t){var e={};return e[t.dim+"AxisIndex"]=t.index,n.getCartesian(e)}var oH={line:function(n,t,e,i){return{type:"Line",subPixelOptimize:!0,shape:I_([t,i[0]],[t,i[1]],YT(n))}},shadow:function(n,t,e,i,r,o){var a=T_(n,r,o),s=i[1]-i[0],l=C_(t,e,a),u=l[0],c=l[1];return{type:"Rect",shape:RR([u,i[0]],[c-u,s],YT(n))}}};function YT(n){return n.dim==="x"?0:1}var aH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:H.color.border,width:1,type:"dashed"},shadowStyle:{color:H.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:H.color.neutral00,padding:[5,7,5,7],backgroundColor:H.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:H.color.accent40,throttle:40}},t})(ke),ar=Me(),sH=k;function NR(n,t,e){if(!Ee.node){var i=t.getZr();ar(i).records||(ar(i).records={}),(function(r,o){if(ar(r).initialized)return;function a(s,l){r.on(s,function(u){var c=(function(h){var d={showTip:[],hideTip:[]},p=function(f){var g=d[f.type];g?g.push(f):(f.dispatchAction=p,h.dispatchAction(f))};return{dispatchAction:p,pendings:d}})(o);sH(ar(r).records,function(h){h&&l(h,u,c.dispatchAction)}),(function(h,d){var p,f=h.showTip.length,g=h.hideTip.length;f?p=h.showTip[f-1]:g&&(p=h.hideTip[g-1]),p&&(p.dispatchAction=null,d.dispatchAction(p))})(c.pendings,o)})}ar(r).initialized=!0,a("click",Ce(Dy,"click")),a("mousemove",Ce(Dy,"mousemove")),a("mousewheel",Ce(Dy,"mousewheel")),a("globalout",lH)})(i,t),(ar(i).records[n]||(ar(i).records[n]={})).handler=e}}function lH(n,t,e){n.handler("leave",null,e)}function Dy(n,t,e,i){t.handler(n,e,i)}function J0(n,t){if(!Ee.node){var e=t.getZr();(ar(e).records||{})[n]&&(ar(e).records[n]=null)}}var uH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){var o=i.getComponent("tooltip"),a=e.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click|mousewheel";NR("axisPointer",r,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){J0("axisPointer",i)},t.prototype.dispose=function(e,i){J0("axisPointer",i)},t.type="axisPointer",t})(et);function ER(n,t){var e,i=[],r=n.seriesIndex;if(r==null||!(e=t.getSeriesByIndex(r)))return{point:[]};var o=e.getData(),a=wa(o,n);if(a==null||a<0||q(a))return{point:[]};var s=o.getItemGraphicEl(a),l=e.coordinateSystem;if(e.getTooltipPosition)i=e.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d=c==="x"||c==="radius"?1:0,p=o.mapDimension(h),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(K(l.dimensions,function(v){return o.mapDimension(v)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var XT=Me();function cH(n,t,e){var i=n.currTrigger,r=[n.x,n.y],o=n,a=n.dispatchAction||ie(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){td(r)&&(r=ER({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=td(r),u=o.axesInfo,c=s.axesInfo,h=i==="leave"||td(r),d={},p={},f={list:[],map:{}},g={showPointer:Ce(hH,p),showTooltip:Ce(dH,f)};k(s.coordSysMap,function(y,m){var x=l||y.containPoint(r);k(s.coordSysAxesInfo[m],function(_,b){var w=_.axis,S=(function(I,T){for(var C=0;C<(I||[]).length;C++){var D=I[C];if(T.axis.dim===D.axisDim&&T.axis.model.componentIndex===D.axisIndex)return D}})(u,_);if(!h&&x&&(!u||S)){var M=S&&S.value;M!=null||l||(M=w.pointToData(r)),M!=null&&ZT(_,M,g,!1,d)}})});var v={};return k(c,function(y,m){var x=y.linkGroup;x&&!p[m]&&k(x.axesInfo,function(_,b){var w=p[b];if(_!==y&&w){var S=w.value;x.mapper&&(S=y.axis.scale.parse(x.mapper(S,qT(_),qT(y)))),v[y.key]=S}})}),k(v,function(y,m){ZT(c[m],y,g,!0,d)}),(function(y,m,x){var _=x.axesInfo=[];k(m,function(b,w){var S=b.axisPointerModel.option,M=y[w];M?(!b.useHandle&&(S.status="show"),S.value=M.value,S.seriesDataIndices=(M.payloadBatch||[]).slice()):!b.useHandle&&(S.status="hide"),S.status==="show"&&_.push({axisDim:b.axis.dim,axisIndex:b.axis.model.componentIndex,value:S.value})})})(p,c,d),(function(y,m,x,_){if(td(m)||!y.list.length)return void _({type:"hideTip"});var b=((y.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};_({type:"showTip",escapeConnect:!0,x:m[0],y:m[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:y.list})})(f,r,n,a),(function(y,m,x){var _=x.getZr(),b="axisPointerLastHighlights",w=XT(_)[b]||{},S=XT(_)[b]={};k(y,function(C,D){var A=C.axisPointerModel.option;A.status==="show"&&C.triggerEmphasis&&k(A.seriesDataIndices,function(L){S[L.seriesIndex+"|"+L.dataIndex]=L})});var M=[],I=[];function T(C){return{seriesIndex:C.seriesIndex,dataIndex:C.dataIndex}}k(w,function(C,D){!S[D]&&I.push(T(C))}),k(S,function(C,D){!w[D]&&M.push(T(C))}),I.length&&x.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:I}),M.length&&x.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:M})})(c,0,e),d}}function ZT(n,t,e,i,r){var o=n.axis;if(!o.scale.isBlank()&&o.containData(t))if(n.involveSeries){var a=(function(u,c){var h=c.axis,d=h.dim,p=u,f=[],g=Number.MAX_VALUE,v=-1;return k(c.seriesModels,function(y,m){var x,_,b=y.getData().mapDimensionsAll(d);if(y.getAxisTooltipData){var w=y.getAxisTooltipData(b,u,h);_=w.dataIndices,x=w.nestestValue}else{if(!(_=y.indicesOfNearest(d,b[0],u,h.type==="category"?.5:null)).length)return;x=y.getData().get(b[0],_[0])}if(Yn(x)){var S=u-x,M=Math.abs(S);M<=g&&((M<g||S>=0&&v<0)&&(g=M,v=S,p=x,f.length=0),k(_,function(I){f.push({seriesIndex:y.seriesIndex,dataIndexInside:I,dataIndex:y.getData().getRawIndex(I)})}))}}),{payloadBatch:f,snapToValue:p}})(t,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&r.seriesIndex==null&&X(r,s[0]),!i&&n.snap&&o.containData(l)&&l!=null&&(t=l),e.showPointer(n,t,s),e.showTooltip(n,a,l)}else e.showPointer(n,t)}function hH(n,t,e,i){n[t.key]={value:e,payloadBatch:i}}function dH(n,t,e,i){var r=e.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=Zu(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function qT(n){var t=n.axis.model,e={},i=e.axisDim=n.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function td(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function au(n){Ra.registerAxisPointerClass("CartesianAxisPointer",rH),n.registerComponentModel(aH),n.registerComponentView(uH),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!q(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=g3(t,e)}}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},cH)}var pH=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),c=l.getOtherAxis(s).getExtent(),h=s.dataToCoord(i),d=o.get("type");if(d&&d!=="none"){var p=S_(o),f=fH[d](s,l,h,u,c,o.get("seriesDataIndices"),o.ecModel);f.style=p,e.graphicKey=f.type,e.pointer=f}var g=(function(v,y,m,x,_){var b=y.axis,w=b.dataToCoord(v),S=x.getAngleAxis().getExtent()[0];S=S/180*Math.PI;var M,I,T,C=x.getRadiusAxis().getExtent();if(b.dim==="radius"){var D=[1,0,0,1,0,0];Cr(D,D,S),ci(D,D,[x.cx,x.cy]),M=li([w,-_],D);var A=y.getModel("axisLabel").get("rotate")||0,L=gn.innerTextLayout(S,A*Math.PI/180,-1);I=L.textAlign,T=L.textVerticalAlign}else{var P=C[1];M=x.coordToPoint([P+_,w]);var E=x.cx,O=x.cy;I=Math.abs(M[0]-E)/P<.3?"center":M[0]>E?"left":"right",T=Math.abs(M[1]-O)/P<.3?"middle":M[1]>O?"top":"bottom"}return{position:M,align:I,verticalAlign:T}})(i,r,0,l,o.get(["label","margin"]));LR(e,r,o,a,g)},t})(w_),fH={line:function(n,t,e,i,r){return n.dim==="angle"?{type:"Line",shape:I_(t.coordToPoint([r[0],e]),t.coordToPoint([r[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(n,t,e,i,r,o,a){var s,l=Math.PI/180,u=T_(n,o,a);if(n.dim==="angle")s=WT(t.cx,t.cy,r[0],r[1],(-e-u/2)*l,(u/2-e)*l);else{var c=C_(e,i,u),h=c[0],d=c[1];s=WT(t.cx,t.cy,h,d,0,2*Math.PI)}return{type:"Sector",shape:s}}},Fi="polar",jT=Fi,gH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.findAxisModel=function(e){var i;return this.ecModel.eachComponent(e,function(r){r.getCoordSysModel()===this&&(i=r)},this),i},t.type=Fi,t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t})(ke),D_=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",pt).models[0]},t.type="polarAxis",t})(ke);xt(D_,Tl);var vH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="angleAxis",t})(D_),yH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="radiusAxis",t})(D_),Q0=(function(n){function t(e,i){return n.call(this,"radius",e,i)||this}return G(t,n),t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t})(hi);Q0.prototype.dataToRadius=hi.prototype.dataToCoord,Q0.prototype.radiusToData=hi.prototype.coordToData;var mH=Me(),e1=(function(n){function t(e,i){return n.call(this,"angle",e,i||[0,360])||this}return G(t,n),t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,i=e.getLabelModel(),r=e.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=If(s==null?"":s+"",i.getFont(),"center","top"),h=Math.max(c.height,7)/u;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),p=mH(e.model),f=p.lastAutoInterval,g=p.lastTickCount;return f!=null&&g!=null&&Math.abs(f-d)<=1&&Math.abs(g-a)<=1&&f>d?d=f:(p.lastTickCount=a,p.lastAutoInterval=d),d},t})(hi);e1.prototype.dataToAngle=hi.prototype.dataToCoord,e1.prototype.angleToData=hi.prototype.coordToData;var zR=["radius","angle"],xH=(function(){function n(t){this.dimensions=zR,this.type=Fi,this.cx=0,this.cy=0,this._radiusAxis=new Q0,this._angleAxis=new e1,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},n.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},n.prototype.getAxis=function(t){return this["_"+t+"Axis"]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(t){var e=[],i=this._angleAxis,r=this._radiusAxis;return i.scale.type===t&&e.push(i),r.scale.type===t&&e.push(r),e},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},n.prototype.dataToPoint=function(t,e,i){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],i)},n.prototype.pointToData=function(t,e,i){i=i||[];var r=this.pointToCoord(t);return i[0]=this._radiusAxis.radiusToData(r[0],e),i[1]=this._angleAxis.angleToData(r[1],e),i},n.prototype.pointToCoord=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,r=this.getAngleAxis(),o=r.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);r.inverse?a=s-360:s=a+360;var l=Math.sqrt(e*e+i*i);e/=l,i/=l;for(var u=Math.atan2(-i,e)/Math.PI*180,c=u<a?1:-1;u<a||u>s;)u+=360*c;return[l,u]},n.prototype.coordToPoint=function(t,e){e=e||[];var i=t[0],r=t[1]/180*Math.PI;return e[0]=Math.cos(r)*i+this.cx,e[1]=-Math.sin(r)*i+this.cy,e},n.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var i=t.getExtent(),r=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(a,s){var l=a-this.cx,u=s-this.cy,c=l*l+u*u,h=this.r,d=this.r0;return h!==d&&c-o<=h*h&&c+o>=d*d},x:this.cx-e[1],y:this.cy-e[1],width:2*e[1],height:2*e[1]}},n.prototype.convertToPixel=function(t,e,i){return KT(e)===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(t,e,i){return KT(e)===this?this.pointToData(i):null},n})();function KT(n){var t=n.seriesModel,e=n.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function _H(n,t){var e=this.getAngleAxis(),i=this.getRadiusAxis();if(ka(e,1),ka(i,1),nl(e),nl(i),e.type==="category"&&!e.onBand){var r=e.getExtent(),o=360/e.scale.count();e.inverse?r[1]+=o:r[1]-=o,e.setExtent(r[0],r[1])}}function $T(n,t){var e;if(n.type=Xc(t),n.scale=Il(t,n.type,!1),n.onBand=Zc(n.scale,t),n.inverse=t.get("inverse"),(function(o){return o.mainType==="angleAxis"})(t)){n.inverse=n.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=(e=t.get("endAngle"))!==null&&e!==void 0?e:i+(n.inverse?-360:360);n.setExtent(i,r)}t.axis=n,n.model=t}var bH={dimensions:zR,create:function(n,t){var e=[];return n.eachComponent(jT,function(i,r){var o=new xH(r+"");o.update=_H;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");$T(a,l),$T(s,u),(function(c,h,d){var p=h.get("center"),f=kt(h,d).refContainer;c.cx=ne(p[0],f.width)+f.x,c.cy=ne(p[1],f.height)+f.y;var g=c.getRadiusAxis(),v=Math.min(f.width,f.height)/2,y=h.get("radius");y==null?y=[0,"100%"]:q(y)||(y=[0,y]);var m=[ne(y[0],v),ne(y[1],v)];g.inverse?g.setExtent(m[1],m[0]):g.setExtent(m[0],m[1])})(o,i,t),e.push(o),i.coordinateSystem=o,o.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")===Fi){var r=i.getReferringComponents(jT,pt).models[0],o=i.coordinateSystem=r.coordinateSystem;o&&(Aa(o.getRadiusAxis(),i,Fi),Aa(o.getAngleAxis(),i,Fi))}}),e}},wH=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function nd(n,t,e){t[1]>t[0]&&(t=t.slice().reverse());var i=n.coordToPoint([t[0],e]),r=n.coordToPoint([t[1],e]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function id(n){return n.getRadiusAxis().inverse?0:1}function JT(n){var t=n[0],e=n[n.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&n.pop()}var SH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return G(t,n),t.prototype.render=function(e,i){if(this.group.removeAll(),e.get("show")){var r=e.axis,o=r.polar,a=o.getRadiusAxis().getExtent(),s=r.getTicksCoords({breakTicks:"none"}),l=r.getMinorTicksCoords(),u=[];k(r.getViewLabels(),function(c){if(!c.tick.offInterval){c=se(c);var h=r.scale;c.coord=r.dataToCoord(tl(h,c.tick)),u.push(c)}}),JT(u),JT(s),k(wH,function(c){!e.get([c,"show"])||r.scale.isBlank()&&c!=="axisLine"||MH[c](this.group,e,o,s,l,a,u)},this)}},t.type="angleAxis",t})(Ra),MH={axisLine:function(n,t,e,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=e.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),h=id(e),d=h?0:1,p=Math.abs(c[1]-c[0])===360?"Circle":"Arc";(a=o[d]===0?new Ya[p]({shape:{cx:e.cx,cy:e.cy,r:o[h],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new fl({shape:{cx:e.cx,cy:e.cy,r:o[h],r0:o[d]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,n.add(a)},axisTick:function(n,t,e,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[id(e)],u=K(i,function(c){return new _t({shape:nd(e,[l,l+s],c.coord)})});n.add(Tn(u,{style:pe(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,t,e,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[id(e)],c=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)c.push(new _t({shape:nd(e,[u,u+l],r[h][d].coord)}));n.add(Tn(c,{style:pe(s.getModel("lineStyle").getLineStyle(),pe(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,t,e,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");k(a,function(h,d){var p=l,f=h.tick.value,g=o[id(e)],v=e.coordToPoint([g+u,h.coord]),y=e.cx,m=e.cy,x=Math.abs(v[0]-y)/g<.3?"center":v[0]>y?"left":"right",_=Math.abs(v[1]-m)/g<.3?"middle":v[1]>m?"top":"bottom";if(s&&s[f]){var b=s[f];fe(b)&&b.textStyle&&(p=new Oe(b.textStyle,l,l.ecModel))}var w=new Be({silent:gn.isLabelSilent(t),style:Je(p,{x:v[0],y:v[1],fill:p.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:x,verticalAlign:_})});if(n.add(w),Ar({el:w,componentModel:t,itemName:h.formattedLabel,formatterParamsExtra:{isTruncated:function(){return w.isTruncated},value:h.rawLabel,tickIndex:d}}),c){var S=gn.makeAxisEventDataBase(t);S.targetType="axisLabel",S.value=h.rawLabel,me(w).eventData=S}},this)},splitLine:function(n,t,e,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<i.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new _t({shape:nd(e,o,i[c].coord)}))}for(c=0;c<u.length;c++)n.add(Tn(u[c],{style:pe({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(n,t,e,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new _t({shape:nd(e,o,r[l][u].coord)}));n.add(Tn(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(n,t,e,i,r,o){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-i[0].coord*c,d=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),f=t.get("clockwise"),g=1,v=i.length;g<=v;g++){var y=g===v?i[0].coord:i[g].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new $t({shape:{cx:e.cx,cy:e.cy,r0:d,r:p,startAngle:h,endAngle:-y*c,clockwise:f},silent:!0})),h=-y*c}for(g=0;g<u.length;g++)n.add(Tn(u[g],{style:pe({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},IH=["splitLine","splitArea","minorSplitLine"],TH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return G(t,n),t.prototype.render=function(e,i,r){if(this.group.removeAll(),e.get("show")){var o=this._axisGroup,a=this._axisGroup=new he;this.group.add(a);var s=e.axis,l=s.polar,u=l.getAngleAxis(),c=s.getTicksCoords(),h=s.getMinorTicksCoords(),d=u.getExtent()[0],p=s.getExtent(),f=(function(v,y,m){return{position:[v.cx,v.cy],rotation:m/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:y.getModel("axisLabel").get("rotate"),z2:1}})(l,e,d),g=new gn(e,r,f);g.build(),a.add(g.group),Hc(o,a,e),k(IH,function(v){e.get([v,"show"])&&!s.scale.isBlank()&&CH[v](this.group,e,l,d,p,c,h)},this)}},t.type="radiusAxis",t})(Ra),CH={splitLine:function(n,t,e,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=e.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),d=Math.abs(h[1]-h[0])===360?"Circle":"Arc";s=s instanceof Array?s:[s];for(var p=[],f=0;f<o.length;f++){var g=l++%s.length;p[g]=p[g]||[],p[g].push(new Ya[d]({shape:{cx:e.cx,cy:e.cy,r:Math.max(o[f].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse}}))}for(f=0;f<p.length;f++)n.add(Tn(p[f],{style:pe({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(n,t,e,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new $i({shape:{cx:e.cx,cy:e.cy,r:a[u][c].coord}}));n.add(Tn(l,{style:pe({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(n,t,e,i,r,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new $t({shape:{cx:e.cx,cy:e.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(h=0;h<u.length;h++)n.add(Tn(u[h],{style:pe({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}},DH=dl();function QT(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}var AH=At(Ei,function(n){var t=Oa(Ei,Fi);Nx(n,t,function(e){var i=(function(o,a){var s=Oa(a,Fi),l=Qt(o,{fromStat:{key:s},min:1}).w,u=l,c=0,h="20%",d="30%",p={};ya(o,s,function(b){var w=QT(b);p[w]||c++,p[w]=p[w]||{width:0,maxWidth:0};var S=ne(b.get("barWidth"),l),M=ne(b.get("barMaxWidth"),l),I=b.get("barGap"),T=b.get("barCategoryGap");S&&!p[w].width&&(S=Xe(u,S),p[w].width=S,u-=S),M&&(p[w].maxWidth=M),I!=null&&(d=I),T!=null&&(h=T)});var f={},g=ne(h,l),v=ne(d,1),y=(u-g)/(c+(c-1)*v);y=De(y,0),k(p,function(b,w){var S=b.maxWidth;S&&S<y&&(S=Xe(S,u),b.width&&(S=Xe(S,b.width)),u-=S,b.width=S,c--)}),y=De(y=(u-g)/(c+(c-1)*v),0);var m,x=0;k(p,function(b,w){b.width||(b.width=y),m=b,x+=b.width*(1+v)}),m&&(x-=m.width*v);var _=-x/2;return k(p,function(b,w){f[w]=f[w]||{offset:_,width:b.width},_+=b.width*(1+v)}),f})(e,Ei),r={};ya(e,t,function(o){(function(a,s,l,u){var c=s.getData(),h=QT(s),d=l[h],p=d.offset,f=d.width,g=s.coordinateSystem,v=g.getOtherAxis(a),y=g.cx,m=g.cy,x=s.get("barMinHeight")||0,_=s.get("barMinAngle")||0;u[h]=u[h]||[];for(var b=c.mapDimension(v.dim),w=c.mapDimension(a.dim),S=Mr(c,b),M=a.dim!=="radius"||!s.get("roundCap",!0),I=v.dataToCoord(HP(v)),T=0,C=c.count();T<C;T++){var D=c.get(b,T),A=c.get(w,T),L=D>=0?"p":"n",P=I;S&&(u[h][A]||(u[h][A]={p:I,n:I}),P=u[h][A][L]);var E=void 0,O=void 0,N=void 0,R=void 0;if(v.dim==="radius"){var z=v.dataToCoord(D)-I,B=a.dataToCoord(A);ht(z)<x&&(z=(z<0?-1:1)*x),E=P,O=P+z,R=(N=B-p)-f,S&&(u[h][A][L]=O)}else{var V=v.dataToCoord(D,M)-I,W=a.dataToCoord(A);ht(V)<_&&(V=(V<0?-1:1)*_),O=(E=W+p)+f,N=P,R=P+V,S&&(u[h][A][L]=R)}c.setItemLayout(T,{cx:y,cy:m,r0:E,r:O,startAngle:-N*op/180,endAngle:-R*op/180,clockwise:N>=R})}})(e,o,i,r)})})}),kH={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},LH={splitNumber:5},PH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="polar",t})(et);function t1(n,t){t=t||{};var e=n.coordinateSystem,i=n.axis,r={},o=i.position,a=i.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=[a==="vertical"?u.vertical[o]:l[0],a==="horizontal"?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],n.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),an(t.labelInside,n.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=n.get(["axisLabel","rotate"]);return r.labelRotate=o==="top"?-c:c,r.z2=1,r}var OH=["splitArea","splitLine","breakArea"],RH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return G(t,n),t.prototype.render=function(e,i,r,o){var a=this.group;a.removeAll();var s=this._axisGroup;this._axisGroup=new he;var l=t1(e),u=new gn(e,r,l);u.build(),a.add(this._axisGroup),a.add(u.group),k(OH,function(c){e.get([c,"show"])&&NH[c](this,this.group,this._axisGroup,e,r)},this),Hc(s,this._axisGroup,e),n.prototype.render.call(this,e,i,r,o)},t.prototype.remove=function(){iO(this)},t.type="singleAxis",t})(Ra),NH={splitLine:function(n,t,e,i,r){var o=i.axis;if(!o.scale.isBlank()){var a=i.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),c=i.coordinateSystem.getRect(),h=o.isHorizontal(),d=[],p=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],y=0;y<f.length;++y){var m=o.toGlobalCoord(f[y].coord);h?(g[0]=m,g[1]=c.y,v[0]=m,v[1]=c.y+c.height):(g[0]=c.x,g[1]=m,v[0]=c.x+c.width,v[1]=m);var x=new _t({shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},silent:!0});Ks(x.shape,u);var _=p++%l.length;d[_]=d[_]||[],d[_].push(x)}var b=s.getLineStyle(["color"]);for(y=0;y<d.length;++y)t.add(Tn(d[y],{style:pe({stroke:l[y%l.length]},b),silent:!0}))}},splitArea:function(n,t,e,i,r){nO(n,e,i,i)},breakArea:function(n,t,e,i,r){var o=Kc(),a=i.axis.scale;o&&a.type!=="ordinal"&&o.rectCoordBuildBreakAxis(t,n,i,i.coordinateSystem.getRect(),r)}},EH=(function(n){function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.type=o||"value",s.position=a||"bottom",s}return G(t,n),t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,i){return this.coordinateSystem.pointToData(e)[0]},t})(hi),BR=["single"],zH=(function(){function n(t,e,i){this.type=Wp,this.dimension="single",this.dimensions=BR,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,i)}return n.prototype._init=function(t,e,i){var r=this.dimension,o=Xc(t),a=new EH(r,Il(t,o,!0),[0,0],o,t.get("position"));a.onBand=Zc(a.scale,t),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},n.prototype.update=function(t,e){var i=this._axis;ka(i,1),nl(i)},n.prototype.resize=function(t,e){var i=kt(t,e).refContainer;this._rect=ot(t.getBoxLayoutParams(),i),this._adjustAxis()},n.prototype.getRect=function(){return this._rect},n.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),r=i?[0,t.width]:[0,t.height],o=e.inverse?1:0;e.setExtent(r[o],r[1-o]),this._updateAxisTransform(e,i?t.x:t.y)},n.prototype._updateAxisTransform=function(t,e){var i=t.getExtent(),r=i[0]+i[1],o=t.isHorizontal();t.toGlobalCoord=o?function(a){return a+e}:function(a){return r-a+e},t.toLocalCoord=o?function(a){return a-e}:function(a){return r-a+e}},n.prototype.getAxis=function(){return this._axis},n.prototype.getBaseAxis=function(){return this._axis},n.prototype.getAxes=function(){return[this._axis]},n.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},n.prototype.containPoint=function(t){var e=this.getRect(),i=this.getAxis();return i.orient==="horizontal"?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},n.prototype.pointToData=function(t,e,i){i=i||[];var r=this.getAxis();return i[0]=r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1])),i},n.prototype.dataToPoint=function(t,e,i){var r=this.getAxis(),o=this.getRect();i=i||[];var a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?o.y+o.height/2:o.x+o.width/2,i},n.prototype.convertToPixel=function(t,e,i){return e2(e)===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(t,e,i){return e2(e)===this?this.pointToData(i):null},n})();function e2(n){var t=n.seriesModel,e=n.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}var BH={create:function(n,t){var e=[];return n.eachComponent(P0,function(i,r){var o=new zH(i,n,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,e.push(o)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="singleAxis"){var r=i.getReferringComponents(P0,pt).models[0],o=i.coordinateSystem=r&&r.coordinateSystem;o&&Aa(o.getAxis(),i,Wp)}}),e},dimensions:BR},t2=["x","y"],VH=["width","height"],GH=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis,l=s.coordinateSystem,u=lf(s),c=rd(l,u),h=rd(l,1-u),d=l.dataToPoint(i)[0],p=o.get("type");if(p&&p!=="none"){var f=S_(o),g=FH[p](s,d,c,h,o.get("seriesDataIndices"),o.ecModel);g.style=f,e.graphicKey=g.type,e.pointer=g}OR(i,e,t1(r),r,o,a)},t.prototype.getHandleTransform=function(e,i,r){var o=t1(i,{labelInside:!1});o.labelMargin=r.get(["handle","margin"]);var a=M_(i.axis,e,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,r,o){var a=r.axis,s=a.coordinateSystem,l=lf(a),u=rd(s,l),c=[e.x,e.y];c[l]+=i[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=rd(s,1-l),d=(h[1]+h[0])/2,p=[d,d];return p[l]=c[l],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},t})(w_),FH={line:function(n,t,e,i){return{type:"Line",subPixelOptimize:!0,shape:I_([t,i[0]],[t,i[1]],lf(n))}},shadow:function(n,t,e,i,r,o){var a=T_(n,r,o),s=i[1]-i[0],l=C_(t,e,a),u=l[0],c=l[1];return{type:"Rect",shape:RR([u,i[0]],[c-u,s],lf(n))}}};function lf(n){return n.isHorizontal()?0:1}function rd(n,t){var e=n.getRect();return[e[t2[t]],e[t2[t]]+e[VH[t]]]}var HH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="single",t})(et),WH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e,i,r){var o=Za(e);n.prototype.init.apply(this,arguments),n2(e,o)},t.prototype.mergeOption=function(e){n.prototype.mergeOption.apply(this,arguments),n2(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:H.color.axisLine,width:1,type:"solid"}},itemStyle:{color:H.color.neutral00,borderWidth:1,borderColor:H.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:H.size.s,color:H.color.secondary},monthLabel:{show:!0,position:"start",margin:H.size.s,align:"center",formatter:null,color:H.color.secondary},yearLabel:{show:!0,position:null,margin:H.size.xl,formatter:null,color:H.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(ke);function n2(n,t){var e,i=n.cellSize;(e=q(i)?i:n.cellSize=[i,i]).length===1&&(e[1]=e[0]);var r=K([0,1],function(o){return(function(a,s){return a[ra[s][0]]!=null||a[ra[s][1]]!=null&&a[ra[s][2]]!=null})(t,o)&&(e[o]="auto"),e[o]!=null&&e[o]!=="auto"});qi(n,t,{type:"box",ignoreSize:r})}var UH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){var o=this.group;o.removeAll();var a=e.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),u=i.getLocaleModel();this._renderDayRect(e,s,o),this._renderLines(e,s,l,o),this._renderYearText(e,s,l,o),this._renderMonthText(e,u,l,o),this._renderWeekText(e,u,s,l,o)},t.prototype._renderDayRect=function(e,i,r){for(var o=e.coordinateSystem,a=e.getModel("itemStyle").getItemStyle(),s=o.getCellWidth(),l=o.getCellHeight(),u=i.start.time;u<=i.end.time;u=o.getNextNDay(u,1).time){var c=o.dataToCalendarLayout([u],!1).tl,h=new Ae({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:a});r.add(h)}},t.prototype._renderLines=function(e,i,r,o){var a=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,d=0;h.time<=i.end.time;d++){f(h.formatedDate),d===0&&(h=s.getDateInfo(i.start.y+"-"+i.start.m));var p=h.date;p.setMonth(p.getMonth()+1),h=s.getDateInfo(p)}function f(g){a._firstDayOfMonth.push(s.getDateInfo(g)),a._firstDayPoints.push(s.dataToCalendarLayout([g],!1).tl);var v=a._getLinePointsOfOneWeek(e,g,r);a._tlpoints.push(v[0]),a._blpoints.push(v[v.length-1]),u&&a._drawSplitline(v,l,o)}f(s.getNextNDay(i.end.time,1).formatedDate),u&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,c,r),l,o),u&&this._drawSplitline(a._getEdgesPoints(a._blpoints,c,r),l,o)},t.prototype._getEdgesPoints=function(e,i,r){var o=[e[0].slice(),e[e.length-1].slice()],a=r==="horizontal"?0:1;return o[0][a]=o[0][a]-i/2,o[1][a]=o[1][a]+i/2,o},t.prototype._drawSplitline=function(e,i,r){var o=new Wt({z2:20,shape:{points:e},style:i});r.add(o)},t.prototype._getLinePointsOfOneWeek=function(e,i,r){for(var o=e.coordinateSystem,a=o.getDateInfo(i),s=[],l=0;l<7;l++){var u=o.getNextNDay(a.time,l),c=o.dataToCalendarLayout([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[r==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,i){return te(e)&&e?sk(e,i):le(e)?e(i):i.nameMap},t.prototype._yearTextPositionControl=function(e,i,r,o,a){var s=i[0],l=i[1],u=["center","bottom"];o==="bottom"?(l+=a,u=["center","top"]):o==="left"?s-=a:o==="right"?(s+=a,u=["center","top"]):l-=a;var c=0;return o!=="left"&&o!=="right"||(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,i,r,o){var a=e.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=r!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,d=r==="horizontal"?0:1,p={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],h],right:[u[d][0],h]},f=i.start.y;+i.end.y>+i.start.y&&(f=f+"-"+i.end.y);var g=a.get("formatter"),v={start:i.start.y,end:i.end.y,nameMap:f},y=this._formatterLabel(g,v),m=new Be({z2:30,style:Je(a,{text:y}),silent:a.get("silent")});m.attr(this._yearTextPositionControl(m,p[l],r,l,s)),o.add(m)}},t.prototype._monthTextPositionControl=function(e,i,r,o,a){var s="left",l="top",u=e[0],c=e[1];return r==="horizontal"?(c+=a,i&&(s="center"),o==="start"&&(l="bottom")):(u+=a,i&&(l="middle"),o==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,i,r,o){var a=e.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),c=a.get("align"),h=[this._tlpoints,this._blpoints];s&&!te(s)||(s&&(i=Gm(s)||i),s=i.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=r==="horizontal"?0:1;l=u==="start"?-l:l;for(var f=c==="center",g=a.get("silent"),v=0;v<h[d].length-1;v++){var y=h[d][v].slice(),m=this._firstDayOfMonth[v];if(f){var x=this._firstDayPoints[v];y[p]=(x[p]+h[0][v+1][p])/2}var _=a.get("formatter"),b=s[+m.m-1],w={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},S=this._formatterLabel(_,w),M=new Be({z2:30,style:X(Je(a,{text:S}),this._monthTextPositionControl(y,f,r,u,l)),silent:g});o.add(M)}}},t.prototype._weekTextPositionControl=function(e,i,r,o,a){var s="center",l="middle",u=e[0],c=e[1],h=r==="start";return i==="horizontal"?(u=u+o+(h?1:-1)*a[0]/2,s=h?"right":"left"):(c=c+o+(h?1:-1)*a[1]/2,l=h?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,i,r,o,a){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),h=s.get("margin"),d=l.getFirstDayOfWeek();(!c||te(c))&&(c&&(i=Gm(c)||i),c=i.get(["time","dayOfWeekShort"])||K(i.get(["time","dayOfWeekAbbr"]),function(b){return b[0]}));var p=l.getNextNDay(r.end.time,7-r.lweek).time,f=[l.getCellWidth(),l.getCellHeight()];h=ne(h,Math.min(f[1],f[0])),u==="start"&&(p=l.getNextNDay(r.start.time,-(7+r.fweek)).time,h=-h);for(var g=s.get("silent"),v=0;v<7;v++){var y,m=l.getNextNDay(p,v),x=l.dataToCalendarLayout([m.time],!1).center;y=Math.abs((v+d)%7);var _=new Be({z2:30,style:X(Je(s,{text:c[y]}),this._weekTextPositionControl(x,o,u,h,f)),silent:g});a.add(_)}}},t.type="calendar",t})(et),Ay=864e5,YH=(function(){function n(t,e,i){this.type="calendar",this.dimensions=n.dimensions,this.getDimensionsInfo=n.getDimensionsInfo,this._model=t,this._update(e,i)}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(t){var e=(t=Ki(t)).getFullYear(),i=t.getMonth()+1,r=i<10?"0"+i:""+i,o=t.getDate(),a=o<10?"0"+o:""+o,s=t.getDay();return{y:e+"",m:r,d:a,day:s=Math.abs((s+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+r+"-"+a,date:t}},n.prototype.getNextNDay=function(t,e){return(e=e||0)===0||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},n.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];k([0,1],function(h){c(o,h)&&(a[r[h]]=o[h]*s[h])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ot(a,l);function c(h,d){return h[d]!=null&&h[d]!=="auto"}k([0,1],function(h){c(o,h)||(o[h]=u[r[h]]/s[h])}),this._sw=o[0],this._sh=o[1]},n.prototype.dataToPoint=function(t,e,i){i=i||[],q(t)&&(t=t[0]),e==null&&(e=!0);var r=this.getDateInfo(t),o=this._rangeInfo,a=r.formatedDate;if(e&&!(r.time>=o.start.time&&r.time<o.end.time+Ay))return i[0]=i[1]=NaN,i;var s=r.day,l=this._getRangeInfo([o.start.time,a]).nthWeek;return this._orient==="vertical"?(i[0]=this._rect.x+s*this._sw+this._sw/2,i[1]=this._rect.y+l*this._sh+this._sh/2):(i[0]=this._rect.x+l*this._sw+this._sw/2,i[1]=this._rect.y+s*this._sh+this._sh/2),i},n.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},n.prototype.dataToLayout=function(t,e,i){var r=(i=i||{}).rect=i.rect||{},o=i.contentRect=i.contentRect||{},a=this.dataToPoint(t,e);return r.x=a[0]-this._sw/2,r.y=a[1]-this._sh/2,r.width=this._sw,r.height=this._sh,de.copy(o,r),Ta(o,this._lineWidth/2,!0,!0),i},n.prototype.dataToCalendarLayout=function(t,e){var i=this.dataToPoint(t,e);return{center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},n.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,e-1,r):this._getDateByWeeksAndDay(e,i-1,r)},n.prototype.convertToPixel=function(t,e,i){var r=ky(e);return r===this?r.dataToPoint(i):null},n.prototype.convertToLayout=function(t,e,i){var r=ky(e);return r===this?r.dataToLayout(i):null},n.prototype.convertFromPixel=function(t,e,i){var r=ky(e);return r===this?r.pointToData(i):null},n.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},n.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(q(e)&&e.length===1&&(e=e[0]),q(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var r=this.getDateInfo(i),o=r.date;o.setMonth(o.getMonth()+1);var a=this.getNextNDay(o,-1);t=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(t){var e,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];i[0].time>i[1].time&&(e=!0,i.reverse());var r=Math.floor(i[1].time/Ay)-Math.floor(i[0].time/Ay)+1,o=new Date(i[0].time),a=o.getDate(),s=i[1].date.getDate();o.setDate(a+r-1);var l=o.getDate();if(l!==s)for(var u=o.getTime()-i[1].time>0?1:-1;(l=o.getDate())!==s&&(o.getTime()-i[1].time)*u>0;)r-=u,o.setDate(l-u);var c=Math.floor((r+i[0].day+6)/7),h=e?1-c:c-1;return e&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:r,weeks:c,nthWeek:h,fweek:i[0].day,lweek:i[1].day}},n.prototype._getDateByWeeksAndDay=function(t,e,i){var r=this._getRangeInfo(i);if(t>r.weeks||t===0&&e<r.fweek||t===r.weeks&&e>r.lweek)return null;var o=7*(t-1)-r.fweek+e,a=new Date(r.start.time);return a.setDate(+r.start.d+o),this.getDateInfo(a)},n.create=function(t,e){var i=[];return t.eachComponent("calendar",function(r){var o=new n(r,t,e);i.push(o),r.coordinateSystem=o}),t.eachComponent(function(r,o){Wc({targetModel:o,coordSysType:"calendar",coordSysProvider:dk})}),i},n.dimensions=["time","value"],n})();function ky(n){var t=n.calendarModel,e=n.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem:null}var i2=1,uf=2,A_=3,yr={none:0,all:1,body:2,corner:3};function n1(n,t,e){var i=t[_e[e]].getCell(n);return!i&&Ve(n)&&n<0&&(i=t[_e[1-e]].getUnitLayoutInfo(e,Math.round(n))),i}function VR(n){var t=n||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function GR(n,t,e,i,r){r2(n[0],t,r,e,i,0),r2(n[1],t,r,e,i,1)}function r2(n,t,e,i,r,o){n[0]=1/0,n[1]=-1/0;var a=i[o],s=q(a)?a:[a],l=s.length,u=!!e;if(l>=1?(o2(n,t,s,u,r,o,0),l>1&&o2(n,t,s,u,r,o,l-1)):n[0]=n[1]=NaN,u){var c=-r[_e[1-o]].getLocatorCount(o),h=r[_e[o]].getLocatorCount(o)-1;e===yr.body?c=De(0,c):e===yr.corner&&(h=Xe(-1,h)),h<c&&(c=h=NaN),jt(n[0])&&(n[0]=c),jt(n[1])&&(n[1]=h),n[0]=De(Xe(n[0],h),c),n[1]=De(Xe(n[1],h),c)}}function o2(n,t,e,i,r,o,a){var s=n1(e[a],r,o);if(s){var l,u=s.id[_e[o]],c=u,h=!(l=s)||l.type!==uf&&l.type!==A_?null:l;h&&(c+=h.span[_e[o]]-1),n[0]=Xe(n[0],u,c),n[1]=De(n[1],u,c)}else n[0]=n[1]=NaN}function od(n,t){return jt(n[t][0])||jt(n[t][1])}function a2(n,t,e,i){t=t||XH;for(var r=0;r<i;r++)t[r]=!1;for(;;){var o=!1;for(r=0;r<i;r++){var a=e[r];!t[r]&&a.cellMergeOwner&&ZH(n,a.locatorRange)&&(t[r]=!0,o=!0)}if(!o)break}}var XH=[];function ZH(n,t){return!(!s2(n[0],t[0])||!s2(n[1],t[1]))&&(n[0][0]=Xe(n[0][0],t[0][0]),n[0][1]=De(n[0][1],t[0][1]),n[1][0]=Xe(n[1][0],t[1][0]),n[1][1]=De(n[1][1],t[1][1]),!0)}function s2(n,t){return n[1]>=t[0]&&n[0]<=t[1]}function l2(n,t){n.id.set(t[0][0],t[1][0]),n.span.set(t[0][1]-n.id.x+1,t[1][1]-n.id.y+1)}function u2(n,t,e,i){var r=n1(t[i][0],e,i),o=n1(t[i][1],e,i);n[_e[i]]=n[gt[i]]=NaN,r&&o&&(n[_e[i]]=r.xy,n[gt[i]]=o.xy+o.wh-r.xy)}function su(n,t,e,i){return n[_e[t]]=e,n[_e[1-t]]=i,n}var c2=(function(){function n(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=(function(a){var s=a.toUpperCase(),l=new RegExp("^"+s+"([0-9]+)$"),u=0;function c(p){var f;p!=null&&(f=p.match(l))&&(u=De(u,+f[1]+1))}function h(){return""+s+u++}function d(p,f){for(var g=re(),v=0;v<p.length;v++){var y=p[v];y!=null&&g.get(y)==null||(p[v]=y=h(),f[v].option=pe({value:y},f[v].option)),g.set(y,!0)}}return{calcDupBase:c,ensureValueUnique:d}})(t);var i=e.get("data",!0),r=e.get("length",!0);if(i==null||q(i)||(i=[]),i)this._initByDimModelData(i);else if(r!=null){i=Array(r);for(var o=0;o<r;o++)i[o]=null;this._initByDimModelData(i)}else this._initBySeriesData()}return n.prototype._initByDimModelData=function(t){var e=this,i=e._cells,r=e._levels,o=[],a=0;return e._leavesCount=(function s(l,u,c){var h=0;return l&&k(l,function(d,p){var f;te(d)?f={value:d}:fe(d)?(f=d,d.value==null||te(d.value)||(f={value:null})):f={value:null};var g={type:A_,ordinal:NaN,level:c,firstLeafLocator:u,id:new ge,span:su(new ge,e.dimIdx,1,1),option:f,xy:NaN,wh:NaN,dim:e,rect:{x:NaN,y:NaN,width:NaN,height:NaN}};a++,(o[u]||(o[u]=[])).push(g),r[c]||(r[c]={type:i2,xy:NaN,wh:NaN,option:null,id:new ge,dim:e});var v=s(f.children,u,c+1),y=Math.max(1,v);g.span[_e[e.dimIdx]]=y,h+=y,u+=y}),h})(t,0,0),void(function(){for(var s=[];i.length<a;)for(var l=0;l<o.length;l++){var u=o[l].pop();if(u){u.ordinal=s.length;var c=u.option.value;s.push(c),i.push(u),e._uniqueValueGen.calcDupBase(c)}}e._uniqueValueGen.ensureValueUnique(s,i);var h=e._ordinalMeta=new gc({categories:s,needCollect:!1,deduplication:!1});e._scale=new mc({ordinalMeta:h});for(var d=0;d<e._leavesCount;d++){var p=e._cells[d];p.type=uf,p.span[_e[1-e.dimIdx]]=e._levels.length-p.level}e._initCellsId(),e._initLevelIdOptions()})()},n.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:i2,xy:NaN,wh:NaN,option:null,id:new ge,dim:t}],t._initLevelIdOptions();var e=t._ordinalMeta=new gc({needCollect:!0,deduplication:!0,onCollect:function(i,r){var o=t._cells[r]={type:uf,ordinal:r,level:0,firstLeafLocator:r,id:new ge,span:su(new ge,t.dimIdx,1,1),option:{value:i+""},xy:NaN,wh:NaN,dim:t,rect:{x:NaN,y:NaN,width:NaN,height:NaN}};t._leavesCount++,t._setCellId(o)}});t._scale=new mc({ordinalMeta:e})},n.prototype._setCellId=function(t){var e=this._levels.length,i=this.dimIdx;su(t.id,i,t.firstLeafLocator,t.level-e)},n.prototype._initCellsId=function(){var t=this._levels.length,e=this.dimIdx;k(this._cells,function(i){su(i.id,e,i.firstLeafLocator,i.level-t)})},n.prototype._initLevelIdOptions=function(){var t=this._levels.length,e=this.dimIdx,i=this._model.get("levels",!0);i=q(i)?i:[],k(this._levels,function(r,o){su(r.id,e,0,o-t),r.option=i[o]})},n.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},n.prototype.resetLayoutIterator=function(t,e,i,r){if(t=t||new no,e===this.dimIdx){var o=this._leavesCount,a=i!=null?Math.max(0,i):0;r=r!=null?Math.min(r,o):o,t.reset(this._cells,a,a+r)}else o=this._levels.length,a=i!=null?Math.max(0,i+o):0,r=r!=null?Math.min(r,o):o,t.reset(this._levels,a,a+r);return t},n.prototype.resetCellIterator=function(t){return(t||new no).reset(this._cells,0)},n.prototype.resetLevelIterator=function(t){return(t||new no).reset(this._levels,0)},n.prototype.getLayout=function(t,e,i){var r=this.getUnitLayoutInfo(e,i);t[_e[e]]=r?r.xy:NaN,t[gt[e]]=r?r.wh:NaN},n.prototype.getUnitLayoutInfo=function(t,e){return t===this.dimIdx?e<this._leavesCount?this._cells[e]:void 0:this._levels[e+this._levels.length]},n.prototype.getCell=function(t){var e=this._scale.parse(t);return jt(e)?void 0:this._cells[e]},n.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n})(),h2=(function(){function n(t,e,i){this._model=e,this._dims=i,this._kind=t,this._cellMergeOwnerList=[]}return n.prototype._ensureCellMap=function(){var t=this,e=t._cellMap;return e||(e=t._cellMap=re(),(function(){var r=[],o=t._model.getShallow("data");o&&!q(o)&&(o=null),k(o,function(p,f){if(fe(p)&&q(p.coord)){var g=VR([]),v=null;if(GR(g,v,p.coord,t._dims,p.coordClamp?yr[t._kind]:yr.none),!od(g,0)&&!od(g,1)){var y=p&&p.mergeCells,m={id:new ge,span:new ge,locatorRange:g,option:p,cellMergeOwner:y};l2(m,g),r.push(m)}}});for(var a=[],s=0;s<r.length;s++){var l=r[s];if(l.cellMergeOwner){var u=l.locatorRange;a2(u,a,r,s);for(var c=0;c<s;c++)a[c]&&(r[c].cellMergeOwner=!1);if(u[0][0]!==l.id.x||u[1][0]!==l.id.y){l.cellMergeOwner=!1;var h=X({},l.option);h.coord=null;var d={id:new ge,span:new ge,locatorRange:u,option:h,cellMergeOwner:!0};l2(d,u),r.push(d)}}}k(r,function(p){var f=i(p.id.x,p.id.y);if(p.cellMergeOwner&&(f.cellMergeOwner=!0,f.span=p.span,f.locatorRange=p.locatorRange,f.spanRect={x:NaN,y:NaN,width:NaN,height:NaN},t._cellMergeOwnerList.push(f)),p.cellMergeOwner||p.option)for(var g=0;g<p.span.y;g++)for(var v=0;v<p.span.x;v++){var y=i(p.id.x+v,p.id.y+g);y.option=p.option,p.cellMergeOwner&&(y.inSpanOf=f)}})})()),e;function i(r,o){var a=d2(r,o),s=e.get(a);return s||(s=e.set(a,{id:new ge(r,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),s}},n.prototype.getCell=function(t){return this._ensureCellMap().get(d2(t[0],t[1]))},n.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},n.prototype.expandRangeByCellMerge=function(t){if(!od(t,0)&&!od(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){Ly[0]=t[0][0],Ly[1]=t[1][0];var e=this.getCell(Ly),i=e&&e.inSpanOf;if(i)return void(function(o,a){o[0][0]=a[0][0],o[0][1]=a[0][1],o[1][0]=a[1][0],o[1][1]=a[1][1]})(t,i.locatorRange)}var r=this._cellMergeOwnerList;a2(t,null,r,r.length)},n})(),Ly=[];function d2(n,t){return n+"|"+t}var i1={show:!0,color:H.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function r1(n){return{color:"none",borderWidth:1,borderColor:n?"none":H.color.borderTint}}var p2={show:!0,label:i1,itemStyle:r1(!1),silent:void 0,dividerLineStyle:{width:1,color:H.color.border}},qH={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:p2,y:p2,body:{label:i1,itemStyle:r1(!1),silent:void 0},corner:{label:i1,itemStyle:r1(!0),silent:void 0},backgroundStyle:{color:"none",borderColor:H.color.axisLine,borderWidth:1},triggerEvent:!1},jH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.optionUpdated=function(){var e=this._dimModels={x:new f2(this.get("x",!0)||{}),y:new f2(this.get("y",!0)||{})};e.x.option.type=e.y.option.type="category";var i={x:e.x.dim=new c2("x",e.x),y:e.y.dim=new c2("y",e.y)};this._body=new h2("body",new Oe(this.getShallow("body")),i),this._corner=new h2("corner",new Oe(this.getShallow("corner")),i)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=qH,t})(ke),f2=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t})(Oe),ad=Math.round,KH={normal:25,special:100},$H={normal:50,special:125},JH=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i){this.group.removeAll();var r=this.group,o=e.coordinateSystem.getRect(),a=e.getDimensionModel("x"),s=e.getDimensionModel("y"),l=a.dim,u=s.dim;(function(m,x,_){function b(w){var S=x.getDimensionModel(_e[w]),M=S.dim;if(M.shouldShow())for(var I=S.getModel("itemStyle"),T=S.getModel("label"),C=x.getShallow("tooltip",!0),D=[],A=M.resetCellIterator();A.next();){var L=A.item,P={};de.copy(P,L.rect),cr(D,L.id.x,L.id.y),g2(D,x,m,_,L.option,I,T,S,P,L.option.value,$H,C,w===0?"x":"y")}}b(0),b(1)})(r,e,i),(function(m,x,_,b,w){S("body",x.getBody(),_,b),_.shouldShow()&&b.shouldShow()&&S("corner",x.getCorner(),b,_);function S(M,I,T,C){var D=new Oe(x.getShallow(M,!0)),A=D.getModel("itemStyle"),L=D.getModel("label"),P=new no,E=new no,O=[],N=x.getShallow("tooltip",!0);for(C.resetLayoutIterator(E,1);E.next();)for(T.resetLayoutIterator(P,0);P.next();){var R=P.item,z=E.item;cr(O,R.id.x,z.id.y);var B=I.getCell(O);if(!B||!B.inSpanOf||B.inSpanOf===B){var V={};B&&B.span?de.copy(V,B.spanRect):(R.dim.getLayout(V,0,O[0]),z.dim.getLayout(V,1,O[1]));var W=B?B.option:null;g2(O,x,m,w,W,A,L,D,V,W?W.value:null,KH,N,M)}}}})(r,e,l,u,i);var c=ae(e.getShallow("borderZ2",!0),99),h=c-1,d=e.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=e.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var f=o1(o.clone(),d,0),g=o1(o.clone(),p,c);f.silent=!0,g.silent=!0,r.add(f),r.add(g);var v=l.getUnitLayoutInfo(0,0),y=u.getUnitLayoutInfo(1,0);v&&y&&(l.shouldShow()&&r.add(v2({x1:o.x,y1:y.xy,x2:o.x+o.width,y2:y.xy},a.getModel("dividerLineStyle").getLineStyle(),h)),u.shouldShow()&&r.add(v2({x1:v.xy,y1:o.y,x2:v.xy,y2:o.y+o.height},s.getModel("dividerLineStyle").getLineStyle(),h)))},t.type="matrix",t})(et);function g2(n,t,e,i,r,o,a,s,l,u,c,h,d){var p;sd.option=r?r.itemStyle:null,sd.parentModel=o,_s.option=r,_s.parentModel=s;var f=ae(_s.getShallow("z2"),r&&r.itemStyle?c.special:c.normal),g=h&&h.show,v=o1(l,sd.getItemStyle(),f);e.add(v);var y,m=_s.get("cursor");if(m!=null&&v.attr("cursor",m),u!=null){var x=u+"";Wo.option=r?r.label:null,Wo.parentModel=a,Wo.ecModel=i;var _=Wo.getShallow("formatter");if(_){var b={componentType:"matrix",componentIndex:t.componentIndex,name:x,value:u,coord:n.slice(),$vars:["name","value","coord"]};if(te(_))x=sk(_,b);else if(le(_)){var w=_(b);w!=null&&(x=w+"")}}if(Et(v,{normal:Wo},{defaultText:x,autoOverflowArea:!0,layoutRect:se(v.shape)}),y=v.getTextContent()){y.z2=f+1;var S=y.style;if(S&&S.overflow&&S.overflow!=="none"&&S.lineOverflow){var M={};de.copy(M,l),Ta(M,(((p=v.style)===null||p===void 0?void 0:p.lineWidth)||0)/2,!0,!0),v.updateInnerText(),y.getLocalTransform(ld),Ln(ld,ld),de.applyTransform(M,M,ld),y.setClipPath(new Ae({shape:M}))}}Ar({el:v,componentModel:t,itemName:x,itemTooltipOption:h,formatterParamsExtra:{xyLocator:n.slice()}})}var I=t.get("triggerEvent",!0);if(y){var T=Wo.get("silent");T==null&&(T=!(I||g)),y.silent=T,y.ignoreHostSilent=!0}var C=_s.get("silent");if(C==null&&(C=!v.style||v.style.fill==="none"||!v.style.fill),v.silent=C,I&&v){var D={componentType:"matrix",componentIndex:t.componentIndex,matrixIndex:t.componentIndex,targetType:d,name:y&&y.style?y.style.text:void 0,value:u,coord:n.slice()};me(v).eventData=D}bg(_s),bg(sd),bg(Wo)}var _s=new Oe,sd=new Oe,Wo=new Oe,ld=[];function o1(n,t,e){var i=t.lineWidth;if(i){var r=n.x+n.width,o=n.y+n.height;n.x=An(n.x,i,!0),n.y=An(n.y,i,!0),n.width=An(r,i,!0)-n.x,n.height=An(o,i,!0)-n.y}return new Ae({shape:n,style:t,z2:e})}function v2(n,t,e){var i=t.lineWidth;return i&&(ad(2*n.x1)===ad(2*n.x2)&&(n.x1=n.x2=An(n.x1,i,!0)),ad(2*n.y1)===ad(2*n.y2)&&(n.y1=n.y2=An(n.y1,i,!0))),new _t({shape:n,style:t,silent:!0,z2:e})}var QH=(function(){function n(t,e,i){this.dimensions=n.dimensions,this.type="matrix",this._model=t;var r=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:r.x.dim,y:r.y.dim},this._resize(t,i)}return n.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},n.create=function(t,e){var i=[];return t.eachComponent("matrix",function(r){var o=new n(r,t,e);i.push(o),r.coordinateSystem=o}),t.eachComponent(function(r,o){Wc({targetModel:o,coordSysType:"matrix",coordSysProvider:dk})}),i},n.prototype.getRect=function(){return this._rect},n.prototype._resize=function(t,e){var i=this._dims,r=this._dimModels,o=this._rect=ot(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});y2(r,i,o,0),y2(r,i,o,1),m2(0,i),m2(1,i),x2(this._model.getBody(),i),x2(this._model.getCorner(),i)},n.prototype.dataToPoint=function(t,e,i){return i=i||[],this.dataToLayout(t,e,lu),i[0]=lu.rect.x+lu.rect.width/2,i[1]=lu.rect.y+lu.rect.height/2,i},n.prototype.dataToLayout=function(t,e,i){var r=this._dims,o=(i=i||{}).rect=i.rect||{};o.x=o.y=o.width=o.height=NaN;var a=i.matrixXYLocatorRange=VR(i.matrixXYLocatorRange);return q(t)&&(GR(a,null,t,r,ae(e&&e.clamp,yr.none)),e&&e.ignoreMergeCells||(e&&e.clamp===yr.corner||this._model.getBody().expandRangeByCellMerge(a),e&&e.clamp===yr.body||this._model.getCorner().expandRangeByCellMerge(a)),u2(o,a,r,0),u2(o,a,r,1)),i},n.prototype.pointToData=function(t,e,i){var r=this._dims;return _2(xi,0,r,t,e&&e.clamp),_2(xi,1,r,t,e&&e.clamp),(i=i||[])[0]=i[1]=NaN,xi.y===Xt.inCorner&&xi.x===Xt.inBody?b2(xi,i,0,r):xi.x===Xt.inCorner&&xi.y===Xt.inBody?b2(xi,i,1,r):(w2(xi,i,0,r),w2(xi,i,1,r)),i},n.prototype.convertToPixel=function(t,e,i,r){var o=Ry(e);return o===this?o.dataToPoint(i,r):void 0},n.prototype.convertToLayout=function(t,e,i,r){var o=Ry(e);return o===this?o.dataToLayout(i,r):void 0},n.prototype.convertFromPixel=function(t,e,i,r){var o=Ry(e);return o===this?o.pointToData(i,r):void 0},n.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},n.dimensions=["x","y","value"],n})(),lu={rect:{x:NaN,y:NaN,width:NaN,height:NaN}},ud=new no,Py=new no;function y2(n,t,e,i){for(var r=1-i,o=t[_e[i]],a=t[_e[r]],s=a.shouldShow(),l=o.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=a.resetLayoutIterator(null,i);u.next();)u.item.wh=u.item.xy=NaN;for(var c=e[gt[i]],h=o.getLocatorCount(i)+a.getLocatorCount(i),d=new Oe,p=a.resetLevelIterator();p.next();)d.option=p.item.option,d.parentModel=n[_e[r]],v(p.item,s?d.get("levelSize"):0);for(var f=new Oe,g=o.resetCellIterator();g.next();)g.item.type===uf&&(f.option=g.item.option,f.parentModel=void 0,v(g.item,f.get("size")));function v(S,M){var I=(function(T,C,D){var A=ap(T,D[gt[C]]);return Oy(A,D[gt[C]])})(M,i,e);jt(I)||(S.wh=Oy(I,c),c=Oy(c-S.wh),h--)}var y=h?c/h:0,m=!h&&c>=1,x=e[_e[i]],_=o.getLocatorCount(i)-1,b=new no;for(a.resetLayoutIterator(b,i);b.next();)w(b.item);for(o.resetLayoutIterator(b,i);b.next();)w(b.item);function w(S){jt(S.wh)&&(S.wh=y),S.xy=x,S.id[_e[i]]!==_||m||(S.wh=e[_e[i]]+e[gt[i]]-S.xy),x+=S.wh}}function m2(n,t){for(var e=t[_e[n]].resetCellIterator();e.next();){var i=e.item;cf(i.rect,n,i.id,i.span,t),cf(i.rect,1-n,i.id,i.span,t),i.type===A_&&(i.xy=i.rect[_e[n]],i.wh=i.rect[gt[n]])}}function x2(n,t){n.travelExistingCells(function(e){var i=e.span;if(i){var r=e.spanRect,o=e.id;cf(r,0,o,i,t),cf(r,1,o,i,t)}})}function cf(n,t,e,i,r){n[gt[t]]=0;var o=e[_e[t]]<0?r[_e[1-t]]:r[_e[t]],a=o.getUnitLayoutInfo(t,e[_e[t]]);if(n[_e[t]]=a.xy,n[gt[t]]=a.wh,i[_e[t]]>1){var s=o.getUnitLayoutInfo(t,e[_e[t]]+i[_e[t]]-1);n[gt[t]]=s.xy+s.wh-a.xy}}function Oy(n,t){return Math.max(Math.min(n,ae(t,1/0)),0)}function Ry(n){var t=n.matrixModel,e=n.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem:null}var Xt={inBody:1,inCorner:2,outside:3},xi={x:null,y:null,point:[]};function _2(n,t,e,i,r){var o=e[_e[t]],a=e[_e[1-t]],s=o.getUnitLayoutInfo(t,o.getLocatorCount(t)-1),l=o.getUnitLayoutInfo(t,0),u=a.getUnitLayoutInfo(t,-a.getLocatorCount(t)),c=a.shouldShow()?a.getUnitLayoutInfo(t,-1):null,h=n.point[t]=i[t];if(l||c)if(r!==yr.body)if(r!==yr.corner){var d=l?l.xy:c?c.xy+c.wh:NaN,p=u?u.xy:d,f=s?s.xy+s.wh:d;if(h<p){if(!r)return void(n[_e[t]]=Xt.outside);h=p}else if(h>f){if(!r)return void(n[_e[t]]=Xt.outside);h=f}n.point[t]=h,n[_e[t]]=d<=h&&h<=f?Xt.inBody:p<=h&&h<=d?Xt.inCorner:Xt.outside}else c?(n[_e[t]]=Xt.inCorner,h=Xe(c.xy+c.wh,De(u.xy,h)),n.point[t]=h):n[_e[t]]=Xt.outside;else l?(n[_e[t]]=Xt.inBody,h=Xe(s.xy+s.wh,De(l.xy,h)),n.point[t]=h):n[_e[t]]=Xt.outside;else n[_e[t]]=Xt.outside}function b2(n,t,e,i){var r=1-e;if(n[_e[e]]!==Xt.outside)for(i[_e[e]].resetCellIterator(Py);Py.next();){var o=Py.item;if(S2(n.point[e],o.rect,e)&&S2(n.point[r],o.rect,r))return t[e]=o.ordinal,void(t[r]=o.id[_e[r]])}}function w2(n,t,e,i){if(n[_e[e]]!==Xt.outside){for((n[_e[e]]===Xt.inCorner?i[_e[1-e]]:i[_e[e]]).resetLayoutIterator(ud,e);ud.next();)if(eW(n.point[e],ud.item))return void(t[e]=ud.item.id[_e[e]])}}function eW(n,t){return t.xy<=n&&n<=t.xy+t.wh}function S2(n,t,e){return t[_e[e]]<=n&&n<=t[_e[e]]+t[gt[e]]}function M2(n,t){var e;return k(t,function(i){n[i]!=null&&n[i]!=="auto"&&(e=!0)}),e}var FR=["transition","enterFrom","leaveTo"],tW=FR.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function cd(n,t,e){if(e&&(!n[e]&&t[e]&&(n[e]={}),n=n[e],t=t[e]),n&&t)for(var i=e?FR:tW,r=0;r<i.length;r++){var o=i[r];n[o]==null&&t[o]!=null&&(n[o]=t[o])}}var nW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return G(t,n),t.prototype.mergeOption=function(e,i){var r=this.option.elements;this.option.elements=null,n.prototype.mergeOption.call(this,e,i),this.option.elements=r},t.prototype.optionUpdated=function(e,i){var r=this.option,o=(i?r:e).elements,a=r.elements=i?[]:r.elements,s=[];this._flatten(o,s,null);var l=KD(a,s,"normalMerge"),u=this._elOptionsToUpdate=[];k(l,function(c,h){var d=c.newOption;d&&(u.push(d),(function(p,f){var g=p.existing;if(f.id=p.keyInfo.id,!f.type&&g&&(f.type=g.type),f.parentId==null){var v=f.parentOption;v?f.parentId=v.id:g&&(f.parentId=g.parentId)}f.parentOption=null})(c,d),(function(p,f,g){var v=X({},g),y=p[f],m=g.$action||"merge";m==="merge"?y?(Se(y,v,!0),qi(y,v,{ignoreSize:!0}),yk(g,y),cd(g,y),cd(g,y,"shape"),cd(g,y,"style"),cd(g,y,"extra"),g.clipPath=y.clipPath):p[f]=v:m==="replace"?p[f]=v:m==="remove"&&y&&(p[f]=null)})(a,h,d),(function(p,f){if(p&&(p.hv=f.hv=[M2(f,["left","right"]),M2(f,["top","bottom"])],p.type==="group")){var g=p,v=f;g.width==null&&(g.width=v.width=0),g.height==null&&(g.height=v.height=0)}})(a[h],d))},this),r.elements=Ye(a,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(e,i,r){k(e,function(o){if(o){r&&(o.parentOption=r),i.push(o);var a=o.children;a&&a.length&&this._flatten(a,i,o),delete o.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t})(ke),I2={path:null,compoundPath:null,group:he,image:zt,text:Be},Wn=Me(),iW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(){this._elMap=re()},t.prototype.render=function(e,i,r){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,r)},t.prototype._updateElements=function(e){var i=e.useElOptionsToUpdate();if(i){var r=this._elMap,o=this.group,a=e.get("z"),s=e.get("zlevel");k(i,function(l){var u=Tt(l.id,null),c=u!=null?r.get(u):null,h=Tt(l.parentId,null),d=h!=null?r.get(h):o,p=l.type,f=l.style;p==="text"&&f&&l.hv&&l.hv[1]&&(f.textVerticalAlign=f.textBaseline=f.verticalAlign=f.align=null);var g=l.textContent,v=l.textConfig;if(f&&AP(f,p,!!v,!!g)){var y=kP(f,p,!0);!v&&y.textConfig&&(v=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var m=(function(E){return E=X({},E),k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(pk),function(O){delete E[O]}),E})(l),x=l.$action||"merge",_=x==="merge",b=x==="replace";if(_){var w=c;(A=!c)?w=T2(u,d,l.type,r):(w&&(Wn(w).isNew=!1),DR(w)),w&&(Ud(w,m,e,{isInit:A}),C2(w,l,a,s))}else if(b){Yd(c,l,r,e);var S=T2(u,d,l.type,r);S&&(Ud(S,m,e,{isInit:!0}),C2(S,l,a,s))}else x==="remove"&&(TR(c,l),Yd(c,l,r,e));var M=r.get(u);if(M&&g)if(_){var I=M.getTextContent();I?I.attr(g):M.setTextContent(new Be(g))}else b&&M.setTextContent(new Be(g));if(M){var T=l.clipPath;if(T){var C=T.type,D=void 0,A=!1;if(_){var L=M.getClipPath();D=(A=!L||Wn(L).type!==C)?a1(C):L}else b&&(A=!0,D=a1(C));M.setClipPath(D),Ud(D,T,e,{isInit:A}),af(D,T.keyframeAnimation,e)}var P=Wn(M);M.setTextConfig(v),P.option=l,(function(E,O,N){var R=me(E).eventData;E.silent||E.ignore||R||(R=me(E).eventData={componentType:"graphic",componentIndex:O.componentIndex,name:E.name}),R&&(R.info=N.info)})(M,e,l),Ar({el:M,componentModel:e,itemName:M.name,itemTooltipOption:l.tooltip}),af(M,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,i){for(var r=e.option.elements,o=this.group,a=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],c=0;c<r.length;c++)if((v=(g=Tt((f=r[c]).id,null))!=null?a.get(g):null)&&v.isGroup){var h=(y=v.parent)===o,d=Wn(v),p=Wn(y);d.width=ne(d.option.width,h?s:p.width)||0,d.height=ne(d.option.height,h?l:p.height)||0}for(c=r.length-1;c>=0;c--){var f,g,v;if(v=(g=Tt((f=r[c]).id,null))!=null?a.get(g):null){var y=v.parent,m=(p=Wn(y),{}),x=Vf(v,f,y===o?{width:s,height:l}:{width:p.width,height:p.height},null,{hv:f.hv,boundingMode:f.bounding},m);if(!Wn(v).isNew&&x){for(var _=f.transition,b={},w=0;w<u.length;w++){var S=u[w],M=m[S];_&&(la(_)||be(_,S)>=0)?b[S]=M:v[S]=M}Fe(v,b,e,0)}else v.attr(m)}}},t.prototype._clear=function(){var e=this,i=this._elMap;i.each(function(r){Yd(r,Wn(r).option,i,e._lastGraphicModel)}),this._elMap=re()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(et);function a1(n){var t=oe(I2,n)?I2[n]:uc(n),e=new t({});return Wn(e).type=n,e}function T2(n,t,e,i){var r=a1(e);return t.add(r),i.set(n,r),Wn(r).id=n,Wn(r).isNew=!0,r}function Yd(n,t,e,i){n&&n.parent&&(n.type==="group"&&n.traverse(function(r){Yd(r,t,e,i)}),$f(n,t,i),e.removeKey(Wn(n).id))}function C2(n,t,e,i){n.isGroup||k([["cursor",$n.prototype.cursor],["zlevel",i||0],["z",e||0],["z2",0]],function(r){var o=r[0];oe(t,o)?n[o]=ae(t[o],r[1]):n[o]==null&&(n[o]=r[1])}),k(Re(t),function(r){if(r.indexOf("on")===0){var o=t[r];n[r]=le(o)?o:null}}),oe(t,"draggable")&&(n.draggable=t.draggable),t.name!=null&&(n.name=t.name),t.id!=null&&(n.id=t.id)}var D2=["x","y","radius","angle","single"],rW=Me(),oW=["cartesian2d","polar","singleAxis"];function Qr(n){return n+"Axis"}function aW(n,t){var e,i=re(),r=[],o=re();n.eachComponent({mainType:"dataZoom",query:t},function(l){o.get(l.uid)||s(l)});do e=!1,n.eachComponent("dataZoom",a);while(e);function a(l){!o.get(l.uid)&&(function(u){var c=!1;return u.eachTargetAxis(function(h,d){var p=i.get(h);p&&p[d]&&(c=!0)}),c})(l)&&(s(l),e=!0)}function s(l){o.set(l.uid,!0),r.push(l),l.eachTargetAxis(function(u,c){(i.get(u)||i.set(u,[]))[c]=!0})}return r}function HR(n){var t=n.ecModel,e={infoList:[],infoMap:re()};return n.eachTargetAxis(function(i,r){var o=t.getComponent(Qr(i),r);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=e.infoMap.get(s);l||(l={model:a,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(o)}}}),e}function WR(n){var t=rW(cL(n));return t.axisProxyMap||(t.axisProxyMap=re())}function hf(n){if(n)return WR(n.ecModel).get(n.uid)}function UR(n,t){var e=t.getAxisModel().axis.__alignTo;return e&&n.getAxisProxy(e.dim,e.model.componentIndex)?hf(e.model):null}var Ny=(function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},n})(),Pc=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return G(t,n),t.prototype.init=function(e,i,r){var o=A2(e);this.settledOption=o,this.mergeDefaultAndTheme(e,r),this._doInit(o)},t.prototype.mergeOption=function(e){var i=A2(e);Se(this.option,e,!0),Se(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var r=this.settledOption;k([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(i[o[0]]=r[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=re();this._fillSpecifiedTargetAxis(i)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(r){r.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return k(D2,function(r){var o=this.getReferringComponents(Qr(r),SE);if(o.specified){i=!0;var a=new Ny;k(o.models,function(s){a.add(s.componentIndex)}),e.set(r,a)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var r=this.ecModel,o=!0;if(o){var a=i==="vertical"?"y":"x";s(r.findComponents({mainType:a+"Axis"}),a)}o&&s(r.findComponents({mainType:"singleAxis",filter:function(l){return l.get("orient",!0)===i}}),"single");function s(l,u){var c=l[0];if(c){var h=new Ny;if(h.add(c.componentIndex),e.set(u,h),o=!1,u==="x"||u==="y"){var d=c.getReferringComponents("grid",pt).models[0];d&&k(l,function(p){c.componentIndex!==p.componentIndex&&d===p.getReferringComponents("grid",pt).models[0]&&h.add(p.componentIndex)})}}}o&&k(D2,function(l){if(o){var u=r.findComponents({mainType:Qr(l),filter:function(h){return h.get("type",!0)==="category"}});if(u[0]){var c=new Ny;c.add(u[0].componentIndex),e.set(l,c),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,r=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(o,a){var s=e[o[0]]!=null,l=e[o[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":r?i[a]=r[a]:s&&(i[a]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,r){e==null&&(e=this.ecModel.getComponent(Qr(i),r))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(r,o){k(r.indexList,function(a){e.call(i,o,a)})})},t.prototype.getAxisProxy=function(e,i){return hf(this.getAxisModel(e,i))},t.prototype.getAxisModel=function(e,i){var r=this._targetAxisInfoMap.get(e);if(r&&r.indexMap[i])return this.ecModel.getComponent(Qr(e),i)},t.prototype.setRawRange=function(e){var i=this.option,r=this.settledOption;k([["start","startValue"],["end","endValue"]],function(o){e[o[0]]==null&&e[o[1]]==null||(i[o[0]]=r[o[0]]=e[o[0]],i[o[1]]=r[o[1]]=e[o[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;k(["start","startValue","end","endValue"],function(r){i[r]=e[r]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,i){if(e!=null||i!=null)return this.getAxisProxy(e,i).getWindow().value;var r=this.findRepresentativeAxisProxy();return r?r.getWindow().value:void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return hf(e);for(var i,r=this._targetAxisInfoMap.keys(),o=0;o<r.length;o++)for(var a=r[o],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(a,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(ke);function A2(n){var t={};return k(["start","end","startValue","endValue","throttle"],function(e){n.hasOwnProperty(e)&&(t[e]=n[e])}),t}var sW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="dataZoom.select",t})(Pc),k_=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r,o){this.dataZoomModel=e,this.ecModel=i,this.api=r},t.type="dataZoom",t})(et),lW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="dataZoom.select",t})(k_),uW=(function(){function n(t,e,i,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=i}return n.prototype.hostedBy=function(t){return this._dataZoomModel===t},n.prototype.getWindow=function(){return se(this._window)},n.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if((function(o){var a=o.get("coordinateSystem");return be(oW,a)>=0})(e)){var i=Qr(this._dimName),r=e.getReferringComponents(i,pt).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}},this),t},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return se(this._minMaxSpan)},n.prototype.calculateDataWindow=function(t){var e,i=this._extent,r=this.getAxisModel().axis,o=r.scale,a=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[],c=[!1,!1];k(["start","end"],function(m,x){var _=t[m],b=t[m+"Value"];a[x]==="percent"?(_==null&&(_=s[x]),b=He(_,s,i),c[x]=!0):(e=!0,b==null?b=i[x]:(b=o.parse(b),o.sanitize&&(b=o.sanitize(b,i))),_=He(b,i,s)),u[x]=b==null||isNaN(b)?i[x]:b,l[x]=_==null||isNaN(_)?s[x]:_}),Ft(u),Ft(l);var h=this._minMaxSpan;function d(m,x,_,b,w){var S=w?"Span":"ValueSpan";go(0,m,_,"all",h["min"+S],h["max"+S]);for(var M=0;M<2;M++)x[M]=He(m[M],_,b,!0),w&&(x[M]=x[M],c[M]=!0);Cd(x)}e?d(u,l,i,s,!1):d(l,u,s,i,!0);var p=ln(o)||Yc(o),f=r.getExtent(),g=ht(f[1]-f[0]),v=p?0:O1(u,g,.5);k([[0,ca],[1,Zn]],function(m){var x=m[0],_=m[1];c[x]&&isFinite(v)&&(u[x]=Ge(u[x],v),u[x]=Xe(i[1],De(i[0],u[x])),l[x]===s[x]&&(u[x]=i[x],p&&(u[x]=_(u[x]))))}),Cd(u);var y=[He(u[0],i,s,!0),He(u[1],i,s,!0)];return Cd(y),{value:u,percent:l,percentInverted:y,valuePrecision:v}},n.prototype.reset=function(t,e){if(this.hostedBy(t)){var i=this.getAxisModel().axis;ka(i,2);var r=i.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var o=t.settledOption;e&&(o=pe({start:e[0],end:e[1]},o));var a=this._window=this.calculateDataWindow(o),s=a.percent,l=a.value;s[0]!==0&&r.setZoomMM(0,l[0]),s[1]!==100&&r.setZoomMM(1,l[1])}},n.prototype.filterData=function(t,e){if(this.hostedBy(t)){var i=this._dimName,r=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._window.value;o!=="none"&&k(r,function(s){var l=s.getData(),u=l.mapDimensionsAll(i);if(u.length){if(o==="weakFilter"){var c=l.getStore(),h=K(u,function(d){return l.getDimensionIndex(d)},l);l.filterSelf(function(d){for(var p,f,g,v=0;v<u.length;v++){var y=c.get(h[v],d),m=!isNaN(y),x=y<a[0],_=y>a[1];if(m&&!x&&!_)return!0;m&&(g=!0),x&&(p=!0),_&&(f=!0)}return g&&p&&f})}else k(u,function(d){if(o==="empty")s.setData(l=l.map(d,function(f){return(function(g){return g>=a[0]&&g<=a[1]})(f)?f:NaN}));else{var p={};p[d]=a,l.selectRange(p)}});k(u,function(d){l.setApproximateExtent(a,d)})}})}},n.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._extent;k(["min","max"],function(r){var o=e.get(r+"Span"),a=e.get(r+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=He(i[0]+a,i,[0,100],!0):o!=null&&(a=He(o,[0,100],i,!0)-i[0]),t[r+"Span"]=o,t[r+"ValueSpan"]=a},this)},n})(),cW={dirtyOnOverallProgress:!0,getTargetSeries:function(n){var t,e=[];t=function(r,o,a,s){if(!hf(a)){var l=new uW(r,o,s,n);e.push(l),(function(u,c){WR(u.ecModel).set(u.uid,c)})(a,l)}},n.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(o,a){var s=n.getComponent(Qr(o),a);t(o,a,s,r)})});var i=re();return k(e,function(r){k(r.getTargetSeriesModels(),function(o){i.set(o.uid,o)})}),i},overallReset:function(n,t){n.eachComponent("dataZoom",function(e){var i=[];e.eachTargetAxis(function(r,o){var a=e.getAxisProxy(r,o),s=UR(e,a);s?i.push([a,s]):a.reset(e,null)}),k(i,function(r){r[0].reset(e,r[1].getWindow().percentInverted)}),e.eachTargetAxis(function(r,o){e.getAxisProxy(r,o).filterData(e,t)})}),n.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var r=i.getWindow(),o=r.percent,a=r.value;e.setCalculatedRange({start:o[0],end:o[1],startValue:a[0],endValue:a[1]})}})}},hW=dl();function L_(n){hW(n,function(){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,cW),(function(t){t.registerAction("dataZoom",function(e,i){k(aW(i,e),function(r){r.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})})(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function dW(n){n.registerComponentModel(sW),n.registerComponentView(lW),L_(n)}var Hi=function(){},YR={};function bs(n,t){YR[n]=t}function XR(n){return YR[n]}var pW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e,i,r){var o=r.getTheme().get("toolbox"),a=o?o.feature:null;a&&(this._themeFeatureOption=X({},a),o.feature={}),n.prototype.init.call(this,e,i,r),a&&(o.feature=a)},t.prototype.optionUpdated=function(){k(this.option.feature,function(e,i){var r=this._themeFeatureOption,o=XR(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(this.ecModel)),r&&r[i]&&(Se(e,r[i]),r[i]=null),Se(e,o.defaultOption))},this)},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:H.size.m,itemSize:15,itemGap:H.size.s,showTitle:!0,iconStyle:{borderColor:H.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:H.color.accent70}},tooltip:{show:!1,position:"bottom"}},t})(ke);function ZR(n,t){var e=xl(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),new Ae({shape:{x:n.x-e[3],y:n.y-e[0],width:n.width+e[1]+e[3],height:n.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}var fW=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.render=function(e,i,r,o){var a=this.group;if(a.removeAll(),e.get("show")){var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features=re()),h=[];k(u,function(y,m){h.push(m)}),new Sr(this._featureNames||[],h).add(v).update(v).remove(Ce(v,null)).execute(),this._featureNames=Ye(h,function(y){return c.hasKey(y)});var d=kt(e,r).refContainer,p=e.getBoxLayoutParams(),f=e.get("padding"),g=ot(p,d,f);fa(e.get("orient"),a,e.get("itemGap"),g.width,g.height),Vf(a,p,d,f),a.add(ZR(a.getBoundingRect(),e)),l||a.eachChild(function(y){var m=y.__title,x=y.ensureState("emphasis"),_=x.textConfig||(x.textConfig={}),b=y.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!le(w)&&m){var S=w.style||(w.style={}),M=If(m,Be.makeFont(S)),I=y.x+a.x,T=!1;y.y+a.y+s+M.height>r.getHeight()&&(_.position="top",T=!0);var C=T?-5-M.height:s+10;I+M.width/2>r.getWidth()?(_.position=["100%",C],S.align="right"):I-M.width/2<0&&(_.position=[0,C],S.align="left")}})}function v(y,m){var x,_=y!=null&&m==null,b=y!=null&&m!=null,w=y==null,S=_||b?h[y]:h[m],M=u[S],I=_||b?new Oe(M,e,i):null,T=I&&I.get("show");if(_){if(!T)return;if((function(D){return D.indexOf("my")===0})(S))x={onclick:I.option.onclick,featureName:S};else{var C=XR(S);if(!C)return;x=new C}c.set(S,x)}else x=c.get(S);if(w||!T)return k2(x)&&x.dispose&&x.dispose(i,r),void c.removeKey(S);o&&o.newTitle!=null&&o.featureName===S&&(M.title=o.newTitle),_&&(x.uid=Xa("toolbox-feature")),x.model=I,x.ecModel=i,x.api=r,(function(D,A,L){var P,E,O=D.getModel("iconStyle"),N=D.getModel(["emphasis","iconStyle"]),R=A instanceof Hi&&A.getIcons?A.getIcons():D.get("icon"),z=D.get("title")||{};te(R)?(P={})[L]=R:P=R,te(z)?(E={})[L]=z:E=z;var B=D.iconPaths={};k(P,function(V,W){var U=yl(V,{},{x:-s/2,y:-s/2,width:s,height:s});U.setStyle(O.getItemStyle()),U.ensureState("emphasis").style=N.getItemStyle();var F=new Be({style:{text:E[W],align:N.get("textAlign"),borderRadius:N.get("textBorderRadius"),padding:N.get("textPadding"),fill:null,font:tx({fontStyle:N.get("textFontStyle"),fontFamily:N.get("textFontFamily"),fontSize:N.get("textFontSize"),fontWeight:N.get("textFontWeight")},i)},ignore:!0});U.setTextContent(F),Ar({el:U,componentModel:e,itemName:W,formatterParamsExtra:{title:E[W]}}),U.__title=E[W],U.on("mouseover",function(){var Q=N.getItemStyle(),Z=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";F.setStyle({fill:N.get("textFill")||Q.fill||Q.stroke||H.color.neutral99,backgroundColor:N.get("textBackgroundColor")}),U.setTextConfig({position:N.get("textPosition")||Z}),F.ignore=!e.get("showTitle"),r.enterEmphasis(this)}).on("mouseout",function(){D.get(["iconStatus",W])!=="emphasis"&&r.leaveEmphasis(this),F.hide()}),(D.get(["iconStatus",W])==="emphasis"?br:wr)(U),a.add(U),U.on("click",ie(A.onclick,A,i,r,W)),B[W]=U})})(I,x,S),I.setIconStatus=function(D,A){var L=this.option,P=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=A,P[D]&&(A==="emphasis"?br:wr)(P[D])},k2(x)&&x.render&&x.render(I,i,r,o)}},t.prototype.updateView=function(e,i,r,o){k(this._features,function(a){a&&a instanceof Hi&&a.updateView&&a.updateView(a.model,i,r,o)})},t.prototype.dispose=function(e,i){k(this._features,function(r){r&&r instanceof Hi&&r.dispose&&r.dispose(e,i)})},t.type="toolbox",t})(et);function k2(n){return n instanceof Hi}var gW=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.onclick=function(e,i){var r=this.model,o=r.get("name")||e.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":r.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:r.get("backgroundColor",!0)||e.get("backgroundColor")||H.color.neutral00,connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")}),u=Ee.browser;if(typeof MouseEvent!="function"||!u.newEdge&&(u.ie||u.edge))if(window.navigator.msSaveOrOpenBlob||a){var c=l.split(","),h=c[0].indexOf("base64")>-1,d=a?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var p=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var f=d.length,g=new Uint8Array(f);f--;)g[f]=d.charCodeAt(f);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,p)}else{var y=document.createElement("iframe");document.body.appendChild(y);var m=y.contentWindow,x=m.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),m.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(y)}}else{var _=r.get("lang"),b='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',w=window.open();w.document.write(b),w.document.title=o}else{var S=document.createElement("a");S.download=o+"."+s,S.target="_blank",S.href=l;var M=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});S.dispatchEvent(M)}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:H.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t})(Hi),L2="__ec_magicType_stack__",vW=[["line","bar"],["stack"]],yW=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.getIcons=function(){var e=this.model,i=e.get("icon"),r={};return k(e.get("type"),function(o){i[o]&&(r[o]=i[o])}),r},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,i,r){var o=this.model,a=o.get(["seriesIndex",r]);if(P2[r]){var s,l={series:[]};k(vW,function(c){be(c,r)>=0&&k(c,function(h){o.setIconStatus(h,"normal")})}),o.setIconStatus(r,"emphasis"),e.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},function(c){var h=c.subType,d=c.id,p=P2[r](h,d,c,o);p&&(pe(p,c.option),l.series.push(p));var f=c.coordinateSystem;if(f&&f.type==="cartesian2d"&&(r==="line"||r==="bar")){var g=f.getAxesByScale("ordinal")[0];if(g){var v=g.dim+"Axis",y=c.getReferringComponents(v,pt).models[0].componentIndex;l[v]=l[v]||[];for(var m=0;m<=y;m++)l[v][y]=l[v][y]||{};l[v][y].boundaryGap=r==="bar"}}});var u=r;r==="stack"&&(s=Se({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",r])!=="emphasis"&&(u="tiled")),i.dispatchAction({type:"changeMagicType",currentType:u,newOption:l,newTitle:s,featureName:"magicType"})}},t})(Hi),P2={line:function(n,t,e,i){if(n==="bar")return Se({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,t,e,i){if(n==="line")return Se({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,t,e,i){var r=e.get("stack")===L2;if(n==="line"||n==="bar")return i.setIconStatus("stack",r?"normal":"emphasis"),Se({id:t,stack:r?"":L2},i.get(["option","stack"])||{},!0)}};Ci({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,t){t.mergeOption(n.newOption)});var Xd=new Array(60).join("-"),Pu=" ";function hd(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Ey=new RegExp("[ ]+","g");function mW(n,t){var e=n.split(new RegExp(`
41
+ *`+Xd+`
42
+ *`,"g")),i={series:[]};return k(e,function(r,o){if((function(u){if(u.slice(0,u.indexOf(`
43
+ `)).indexOf(Pu)>=0)return!0})(r)){var a=(function(u){for(var c=u.split(/\n+/g),h=[],d=K(hd(c.shift()).split(Ey),function(v){return{name:v,data:[]}}),p=0;p<c.length;p++){var f=hd(c[p]).split(Ey);h.push(f.shift());for(var g=0;g<f.length;g++)d[g]&&(d[g].data[p]=f[g])}return{series:d,categories:h}})(r),s=t[o],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else a=(function(u){for(var c=u.split(/\n+/g),h=hd(c.shift()),d=[],p=0;p<c.length;p++){var f=hd(c[p]);if(f){var g=f.split(Ey),v="",y=void 0,m=!1;isNaN(g[0])?(m=!0,v=g[0],g=g.slice(1),d[p]={name:v,value:[]},y=d[p].value):y=d[p]=[];for(var x=0;x<g.length;x++)y.push(+g[x]);y.length===1&&(m?d[p].value=y[0]:d[p]=y[0])}}return{name:h,data:d}})(r),i.series.push(a)}),i}var xW=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.onclick=function(e,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var r=i.getDom(),o=this.model;this._dom&&r.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=o.get("backgroundColor")||H.color.neutral00;var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=o.get("optionToContent"),d=o.get("contentToOption"),p=(function(S){var M,I,T,C=(function(D){var A={},L=[],P=[];return D.eachRawSeries(function(E){var O,N=E.coordinateSystem;if(!N||N.type!=="cartesian2d"&&N.type!=="polar")L.push(E);else{var R=N.getBaseAxis();if(R.type==="category"){var z=(O=R).dim+"_"+O.index;A[z]||(A[z]={categoryAxis:R,valueAxis:N.getOtherAxis(R),series:[]},P.push({axisDim:R.dim,axisIndex:R.index})),A[z].series.push(E)}else L.push(E)}}),{seriesGroupByCategoryAxis:A,other:L,meta:P}})(S);return{value:Ye([(I=C.seriesGroupByCategoryAxis,T=[],k(I,function(D,A){var L=D.categoryAxis,P=D.valueAxis.dim,E=[" "].concat(K(D.series,function(V){return V.name})),O=[L.model.getCategories()];k(D.series,function(V){var W=V.getRawData();O.push(V.getRawData().mapArray(W.mapDimension(P),function(U){return U}))});for(var N=[E.join(Pu)],R=0;R<O[0].length;R++){for(var z=[],B=0;B<O.length;B++)z.push(O[B][R]);N.push(z.join(Pu))}T.push(N.join(`
44
+ `))}),T.join(`
45
+
46
+ `+Xd+`
47
+
48
+ `)),(M=C.other,K(M,function(D){var A=D.getRawData(),L=[D.name],P=[];return A.each(A.dimensions,function(){for(var E=arguments.length,O=arguments[E-1],N=A.getName(O),R=0;R<E-1;R++)P[R]=arguments[R];L.push((N?N+Pu:"")+P.join(Pu))}),L.join(`
49
+ `)}).join(`
50
+
51
+ `+Xd+`
52
+
53
+ `))],function(D){return!!D.replace(/[\n\t\s]/g,"")}).join(`
54
+
55
+ `+Xd+`
56
+
57
+ `),meta:C.meta}})(e);if(le(h)){var f=h(i.getOption());te(f)?u.innerHTML=f:ma(f)&&u.appendChild(f)}else{c.readOnly=o.get("readOnly");var g=c.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=o.get("textColor"),g.borderColor=o.get("textareaBorderColor"),g.backgroundColor=o.get("textareaColor"),c.value=p.value,u.appendChild(c)}var v=p.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),_=document.createElement("div");m+=";background-color:"+o.get("buttonColor"),m+=";color:"+o.get("buttonTextColor");var b=this;function w(){r.removeChild(a),b._dom=null}lm(x,"click",w),lm(_,"click",function(){if(d==null&&h!=null||d!=null&&h==null)w();else{var S;try{S=le(d)?d(u,i.getOption()):mW(c.value,v)}catch(M){throw w(),new Error("Data view format error "+M)}S&&i.dispatchAction({type:"changeDataView",newOption:S}),w()}}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=m,!o.get("readOnly")&&y.appendChild(_),y.appendChild(x),a.appendChild(s),a.appendChild(u),a.appendChild(y),u.style.height=r.clientHeight-80+"px",r.appendChild(a),this._dom=a},t.prototype.dispose=function(e,i){this._dom&&i.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:H.color.background,textColor:H.color.primary,textareaColor:H.color.background,textareaBorderColor:H.color.border,buttonColor:H.color.accent50,buttonTextColor:H.color.neutral00}},t})(Hi);function _W(n,t){return K(n,function(e,i){var r=t&&t[i];if(fe(r)&&!q(r)){fe(e)&&!q(e)||(e={value:e});var o=r.name!=null&&e.name==null;return e=pe(e,r),o&&delete e.name,e}return e})}Ci({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,t){var e=[];k(n.newOption.series,function(i){var r=t.getSeriesByName(i.name)[0];if(r){var o=r.get("data");e.push({name:i.name,data:_W(i.data,o)})}else e.push(X({type:"scatter"},i))}),t.mergeOption(pe({series:e},n.newOption))});var qR=k,jR=Me();function s1(n){var t=jR(n);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var bW=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.onclick=function(e,i){(function(r){jR(r).snapshots=null})(e),i.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t})(Hi);Ci({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,t){t.resetOption("recreate")});var wW=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],l1=(function(){function n(t,e,i){var r=this;this._targetInfoList=[];var o=O2(e,t);k(SW,function(a,s){(!i||!i.include||be(i.include,s)>=0)&&a(o,r._targetInfoList)})}return n.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(i,r,o){if((i.coordRanges||(i.coordRanges=[])).push(r),!i.coordRange){i.coordRange=r;var a=zy[i.brushType](0,o,r);i.__rangeOffset={offset:z2[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),t},n.prototype.matchOutputRanges=function(t,e,i){k(t,function(r){var o=this.findTargetInfo(r,e);o&&o!==!0&&k(o.coordSyses,function(a){var s=zy[r.brushType](1,a,r.range,!0);i(r,s.values,a,e)})},this)},n.prototype.setInputRanges=function(t,e){k(t,function(i){var r,o,a,s,l,u=this.findTargetInfo(i,e);if(i.range=i.range||[],u&&u!==!0){i.panelId=u.panelId;var c=zy[i.brushType](0,u.coordSys,i.coordRange),h=i.__rangeOffset;i.range=h?z2[i.brushType](c.values,h.offset,(r=c.xyMinMax,o=h.xyMinMax,a=V2(r),s=V2(o),l=[a[0]/s[0],a[1]/s[1]],isNaN(l[0])&&(l[0]=1),isNaN(l[1])&&(l[1]=1),l)):c.values}},this)},n.prototype.makePanelOpts=function(t,e){return K(this._targetInfoList,function(i){var r=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:sR(r),isTargetByCursor:uR(r,t,i.coordSysModel),getLinearBrushOtherExtent:lR(r)}})},n.prototype.controlSeries=function(t,e,i){var r=this.findTargetInfo(t,i);return r===!0||r&&be(r.coordSyses,e.coordinateSystem)>=0},n.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,r=O2(e,t),o=0;o<i.length;o++){var a=i[o],s=t.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<R2.length;l++)if(R2[l](r,a))return a}return!0},n})();function u1(n){return n[0]>n[1]&&n.reverse(),n}function O2(n,t){return Bs(n,t,{includeMainTypes:wW})}var SW={grid:function(n,t){var e=n.xAxisModels,i=n.yAxisModels,r=n.gridModels,o=re(),a={},s={};(e||i||r)&&(k(e,function(l){var u=l.axis.grid.model;o.set(u.id,u),a[u.id]=!0}),k(i,function(l){var u=l.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),k(r,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var u=l.coordinateSystem,c=[];k(u.getCartesians(),function(h,d){(be(e,h.getAxis("x").model)>=0||be(i,h.getAxis("y").model)>=0)&&c.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:N2.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,t){k(n.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:N2.geo})})}},R2=[function(n,t){var e=n.xAxisModel,i=n.yAxisModel,r=n.gridModel;return!r&&e&&(r=e.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(n,t){var e=n.geoModel;return e&&e===t.geoModel}],N2={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys.view,t=hO(null,n);return vD(t,t,jp(null,n)),t}},zy={lineX:Ce(E2,0),lineY:Ce(E2,1),rect:function(n,t,e,i){var r=n?t.pointToData([e[0][0],e[1][0]],i):t.dataToPoint([e[0][0],e[1][0]],i),o=n?t.pointToData([e[0][1],e[1][1]],i):t.dataToPoint([e[0][1],e[1][1]],i),a=[u1([r[0],o[0]]),u1([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(n,t,e,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:K(e,function(o){var a=n?t.pointToData(o,i):t.dataToPoint(o,i);return r[0][0]=Math.min(r[0][0],a[0]),r[1][0]=Math.min(r[1][0],a[1]),r[0][1]=Math.max(r[0][1],a[0]),r[1][1]=Math.max(r[1][1],a[1]),a}),xyMinMax:r}}};function E2(n,t,e,i){var r=e.getAxis(["x","y"][n]),o=u1(K([0,1],function(s){return t?r.coordToData(r.toLocalCoord(i[s]),!0):r.toGlobalCoord(r.dataToCoord(i[s]))})),a=[];return a[n]=o,a[1-n]=[NaN,NaN],{values:o,xyMinMax:a}}var z2={lineX:Ce(B2,0),lineY:Ce(B2,1),rect:function(n,t,e){return[[n[0][0]-e[0]*t[0][0],n[0][1]-e[0]*t[0][1]],[n[1][0]-e[1]*t[1][0],n[1][1]-e[1]*t[1][1]]]},polygon:function(n,t,e){return K(n,function(i,r){return[i[0]-e[0]*t[r][0],i[1]-e[1]*t[r][1]]})}};function B2(n,t,e,i){return[t[0]-i[n]*e[0],t[1]-i[n]*e[1]]}function V2(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}var By,Vy,c1=k,MW=jD+"toolbox-dataZoom_",IW={x:"width",y:"height"},TW=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.render=function(e,i,r,o){this._brushController||(this._brushController=new c_(r.getZr()),this._brushController.on("brush",ie(this._onBrush,this)).mount()),(function(a,s,l,u,c){var h=l._isZoomActive;u&&u.type==="takeGlobalCursor"&&(h=u.key==="dataZoomSelect"&&u.dataZoomSelectActive),l._isZoomActive=h,a.setIconStatus("zoom",h?"emphasis":"normal");var d=new l1(h1(a),s,{include:["grid"]}),p=d.makePanelOpts(c,function(f){return f.xAxisDeclared&&!f.yAxisDeclared?"lineX":!f.xAxisDeclared&&f.yAxisDeclared?"lineY":"rect"});l._brushController.setPanels(p).enableBrush(!(!h||!p.length)&&{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()})})(e,i,this,o,r),(function(a,s){a.setIconStatus("back",(function(l){return s1(l).length})(s)>1?"emphasis":"normal")})(e,i)},t.prototype.onclick=function(e,i,r){CW[r].call(this)},t.prototype.dispose=function(e,i){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var i=e.areas;if(e.isEnd&&i.length){var r={},o=this.ecModel;this._brushController.updateCovers([]),new l1(h1(this.model),o,{include:["grid"]}).matchOutputRanges(i,o,function(s,l,u){if(u.type==="cartesian2d"){var c=u.master.getRect().clone(),h=s.brushType;h==="rect"?(a("x",u,c,l[0]),a("y",u,c,l[1])):a({lineX:"x",lineY:"y"}[h],u,c,l)}}),(function(s,l){var u=s1(s);qR(l,function(c,h){for(var d=u.length-1;d>=0&&!u[d][h];d--);if(d<0){var p=s.queryComponents({mainType:"dataZoom",subType:"select",id:h})[0];if(p){var f=p.getPercentRange();u[0][h]={dataZoomId:h,start:f[0],end:f[1]}}}}),u.push(l)})(o,r),this._dispatchZoomAction(r)}function a(s,l,u,c){var h=l.getAxis(s),d=h.model,p=(function(y,m,x){var _;return x.eachComponent({mainType:"dataZoom",subType:"select"},function(b){b.getAxisModel(y,m.componentIndex)&&(_=b)}),_})(s,d,o),f=p.findRepresentativeAxisProxy(d).getMinMaxSpan(),g=h.scale.getExtent();f.minValueSpan==null&&f.maxValueSpan==null||(c=go(0,c.slice(),g,0,f.minValueSpan,f.maxValueSpan));var v=O1(g,u[IW[s]],.5);p&&(r[p.id]={dataZoomId:p.id,startValue:isFinite(v)?Ge(c[0],v):c[0],endValue:isFinite(v)?Ge(c[1],v):c[1]})}},t.prototype._dispatchZoomAction=function(e){var i=[];c1(e,function(r,o){i.push(se(r))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:H.color.backgroundTint}}},t})(Hi),CW={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction((function(n){var t=s1(n),e=t[t.length-1];t.length>1&&t.pop();var i={};return qR(e,function(r,o){for(var a=t.length-1;a>=0;a--)if(r=t[a][o]){i[o]=r;break}}),i})(this.ecModel))}};function h1(n){var t={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}By="dataZoom",Vy=function(n){var t=n.getComponent("toolbox",0),e=["feature","dataZoom"];if(t&&t.get(e)!=null){var i=t.getModel(e),r=[],o=Bs(n,h1(i));return c1(o.xAxisModels,function(s){return a(s,"xAxis","xAxisIndex")}),c1(o.yAxisModels,function(s){return a(s,"yAxis","yAxisIndex")}),r}function a(s,l,u){var c=s.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:MW+l+c};h[u]=c,r.push(h)}},Kt(Um.get(By)==null&&Vy),Um.set(By,Vy);var DW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="tooltip",t.dependencies=["axisPointer"],t.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:H.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:H.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:H.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:H.color.tertiary,fontSize:14}},t})(ke);function KR(n){var t=n.get("confine");return t!=null?!!t:n.get("renderMode")==="richText"}function $R(n){if(Ee.domSupported){for(var t=document.documentElement.style,e=0,i=n.length;e<i;e++)if(n[e]in t)return n[e]}}var JR=$R(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function QR(n,t){if(!n)return t;t=hx(t,!0);var e=n.indexOf(t);return(n=e===-1?t:"-"+n.slice(0,e)+"-"+t).toLowerCase()}var AW=QR($R(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),P_=QR(JR,"transform"),kW="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ee.transform3dSupported?"will-change:transform;":"");function G2(n,t,e){var i=n.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!Ee.transformSupported)return e?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=Ee.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return e?"top:0;left:0;"+P_+":"+a+";":[["top",0],["left",0],[JR,a]]}function LW(n,t,e,i){var r=[],o=n.get("transitionDuration"),a=n.get("backgroundColor"),s=n.get("shadowBlur"),l=n.get("shadowColor"),u=n.get("shadowOffsetX"),c=n.get("shadowOffsetY"),h=n.getModel("textStyle"),d=Kk(n,"html"),p=u+"px "+c+"px "+s+"px "+l;return r.push("box-shadow:"+p),t&&o>0&&r.push((function(f,g,v){var y="cubic-bezier(0.23,1,0.32,1)",m="",x="";return v&&(x="opacity"+(m=" "+f/2+"s "+y)+",visibility"+m),g||(m=" "+f+"s "+y,x+=(x.length?",":"")+(Ee.transformSupported?""+P_+m:",left"+m+",top"+m)),AW+":"+x})(o,e,i)),a&&r.push("background-color:"+a),k(["width","color","radius"],function(f){var g="border-"+f,v=hx(g),y=n.get(v);y!=null&&r.push(g+":"+y+(f==="color"?"":"px"))}),r.push((function(f){var g=[],v=f.get("fontSize"),y=f.getTextColor();y&&g.push("color:"+y),g.push("font:"+f.getFont());var m=ae(f.get("lineHeight"),Math.round(3*v/2));v&&g.push("line-height:"+m+"px");var x=f.get("textShadowColor"),_=f.get("textShadowBlur")||0,b=f.get("textShadowOffsetX")||0,w=f.get("textShadowOffsetY")||0;return x&&_&&g.push("text-shadow:"+b+"px "+w+"px "+_+"px "+x),k(["decoration","align"],function(S){var M=f.get(S);M&&g.push("text-"+S+":"+M)}),g.join(";")})(h)),d!=null&&r.push("padding:"+xl(d).join("px ")+"px"),r.join(";")+";"}function F2(n,t,e,i,r){var o=t&&t.painter;if(e){var a=o&&o.getViewportRoot();a&&(function(l,u,c,h,d){am(Qf,u,h,d,!0)&&am(l,c,Qf[0],Qf[1])})(n,a,e,i,r)}else{n[0]=i,n[1]=r;var s=o&&o.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}var PW=(function(){function n(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ee.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=e.appendTo,a=o&&(te(o)?document.querySelector(o):ma(o)?o:le(o)&&o(t.getDom()));F2(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(i),this._api=t,this._container=a;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=r.handler;Fn(r.painter.getViewportRoot(),l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=(a="position",(s=(o=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(o))?a?s[a]:s:null),r=e.style;r.position!=="absolute"&&i!=="absolute"&&(r.position="relative")}var o,a,s,l=t.get("alwaysShowContent");l&&this._moveIfResized(),this._alwaysShowContent=l,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},n.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,r=i.style,o=this._styleCoord;i.innerHTML?r.cssText=kW+LW(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+G2(o[0],o[1],!0)+"border-color:"+Da(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(t,e,i,r,o){var a=this.el;if(t!=null){var s="";if(te(o)&&i.get("trigger")==="item"&&!KR(i)&&(s=(function(c,h,d){if(!te(d)||d==="inside")return"";var p=c.get("backgroundColor"),f=c.get("borderWidth");h=Da(h);var g,v,y=(g=d)==="left"?"right":g==="right"?"left":g==="top"?"bottom":"top",m=Math.max(1.5*Math.round(f),6),x="",_=P_+":";be(["left","right"],y)>-1?(x+="top:50%",_+="translateY(-50%) rotate("+(v=y==="left"?-225:-45)+"deg)"):(x+="left:50%",_+="translateX(-50%) rotate("+(v=y==="top"?225:45)+"deg)");var b=v*Math.PI/180,w=m+f,S=w*Math.abs(Math.cos(b))+w*Math.abs(Math.sin(b)),M=h+" solid "+f+"px;";return'<div style="'+["position:absolute;width:"+m+"px;height:"+m+"px;z-index:-1;",(x+=";"+y+":-"+Math.round(100*((S-Math.SQRT2*f)/2+Math.SQRT2*f-(S-w)/2))/100+"px")+";"+_+";","border-bottom:"+M,"border-right:"+M,"background-color:"+p+";"].join("")+'"></div>'})(i,r,o)),te(t))a.innerHTML=t+s;else if(t){a.innerHTML="",q(t)||(t=[t]);for(var l=0;l<t.length;l++)ma(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}}else a.innerHTML=""},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},n.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(F2(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var r=this.el.style;k(G2(i[0],i[1]),function(o){r[o[0]]=o[1]})}}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",Ee.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},n.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ie(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;(function(r,o){function a(s){var l=s[$d];l&&(l.clearMarkers&&l.clearMarkers(),delete s[$d])}r&&a(r),o&&a(o)})(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var i=e.parentNode;i&&i.removeChild(e)}this.el=this._container=null},n})(),OW=(function(){function n(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),W2(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return n.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(t,e,i,r,o){var a=this;fe(t)&&Ue(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Be({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Kk(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=i.get(u)}),k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=H2(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},n.prototype.moveTo=function(t,e){var i=this.el;if(i){var r=this._styleCoord;W2(r,this._zr,t,e),t=r[0],e=r[1];var o=i.style,a=Ur(o.borderWidth||0),s=H2(o);i.x=t+a+s.left,i.y=e+a+s.top,i.markRedraw()}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ie(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n})();function Ur(n){return Math.max(0,n)}function H2(n){var t=Ur(n.shadowBlur||0),e=Ur(n.shadowOffsetX||0),i=Ur(n.shadowOffsetY||0);return{left:Ur(t-e),right:Ur(t+e),top:Ur(t-i),bottom:Ur(t+i)}}function W2(n,t,e,i){n[0]=e,n[1]=i,n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}var RW=new Ae({shape:{x:-1,y:-1,width:2,height:2}}),NW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e,i){if(!Ee.node&&i.getDom()){var r,o=e.getComponent("tooltip"),a=this._renderMode=(r=o.get("renderMode"))==="auto"?Ee.domSupported?"html":"richText":r||"html";this._tooltipContent=a==="richText"?new OW(i):new PW(i,{appendTo:o.get("appendToBody",!0)?"body":o.get("appendTo",!0)})}},t.prototype.render=function(e,i,r){if(!Ee.node&&r.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=r;var o=this._tooltipContent;o.update(e),o.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?bl(this,"_updatePosition",50,"fixRate"):fc(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");NR("itemTooltip",this._api,ie(function(i,r,o){e!=="none"&&(e.indexOf(i)>=0?this._tryShow(r,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,r=this._api,o=e.get("triggerOn");if(e.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&a.manuallyShowTip(e,i,r,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,r,o){if(o.from!==this.uid&&!Ee.node&&r.getDom()){var a=U2(o,r);this._ticket="";var s=o.dataByCoordSys,l=(function(f,g,v){var y=V1(f).queryOptionMap,m=y.keys()[0];if(!(!m||m==="series")){var x=hl(g,m,y.get(m),{useDefault:!1,enableAll:!1,enableNone:!1}),_=x.models[0];if(_){var b,w=v.getViewOfComponentModel(_);if(w.group.traverse(function(S){var M=me(S).tooltipConfig;if(M&&M.name===f.name)return b=S,!0}),b)return{componentMainType:m,componentIndex:_.componentIndex,el:b}}}})(o,i,r);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=RW;c.x=o.x,c.y=o.y,c.update(),me(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,r,o))return;var h=ER(o,i),d=h.point[0],p=h.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:h.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(r.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:r.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(e,i,r,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,o.from!==this.uid&&this._hide(U2(o,r))},t.prototype._manuallyAxisShowTip=function(e,i,r,o){var a=o.seriesIndex,s=o.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(a!=null&&s!=null&&l!=null){var u=i.getSeriesByIndex(a);if(u&&uu([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger")==="axis")return r.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}},t.prototype._tryShow=function(e,i){var r=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(r){var a,s;if(me(r).ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null,oa(r,function(l){if(l.tooltipDisabled)return a=s=null,!0;a||s||(me(l).dataIndex!=null?a=l:me(l).tooltipConfig!=null&&(s=l))},!0),a?this._showSeriesItemTooltip(e,a,i):s?this._showComponentItemTooltip(e,s,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var r=e.get("showDelay");i=ie(i,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(i,r):i()},t.prototype._showAxisTooltip=function(e,i){var r=this._ecModel,o=this._tooltipModel,a=[i.offsetX,i.offsetY],s=uu([i.tooltipOption],o),l=this._renderMode,u=[],c=Mt("section",{blocks:[],noHeader:!0}),h=[],d=new tv;k(e,function(m){k(m.dataByAxis,function(x){var _=r.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value,w=_.axis,S=w.scale.parse(b);if(_&&b!=null){var M=PR(b,w,r,x.seriesDataIndices,x.valueLabelOpt),I=Mt("section",{header:M,noHeader:!Cn(M),sortBlocks:!0,blocks:[]});c.blocks.push(I),k(x.seriesDataIndices,function(T){var C=r.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,A=C.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=x.axisDim,A.axisIndex=x.axisIndex,A.axisType=x.axisType,A.axisId=x.axisId,A.axisValue=Pp(_.axis,{value:S}),A.axisValueLabel=M,A.marker=d.makeTooltipMarker("item",Da(A.color),l);var L=Cw(C.formatTooltip(D,!0,null)),P=L.frag;if(P){var E=uu([C],o).get("valueFormatter");I.blocks.push(E?X({valueFormatter:E},P):P)}L.text&&h.push(L.text),u.push(A)}})}})}),c.blocks.reverse(),h.reverse();var p=i.position,f=s.get("order"),g=Ow(c,d,l,f,r.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var v=l==="richText"?`
58
+
59
+ `:"<br/>",y=h.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,p,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],p,null,d)})},t.prototype._showSeriesItemTooltip=function(e,i,r){var o=this._ecModel,a=me(i),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,h=a.dataType,d=u.getData(h),p=this._renderMode,f=e.positionDefault,g=uu([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=g.get("trigger");if(v==null||v==="item"){var y=u.getDataParams(c,h),m=new tv;y.marker=m.makeTooltipMarker("item",Da(y.color),p);var x=Cw(u.formatTooltip(c,!1,h)),_=g.get("order"),b=g.get("valueFormatter"),w=x.frag,S=w?Ow(b?X({valueFormatter:b},w):w,m,p,_,o.get("useUTC"),g.get("textStyle")):x.text,M="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,S,y,M,e.offsetX,e.offsetY,e.position,e.target,m)}),r({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,r){var o=this._renderMode==="html",a=me(i),s=a.tooltipConfig.option||{},l=s.encodeHTMLContent;te(s)&&(s={content:s,formatter:s},l=!0),l&&o&&s.content&&((s=se(s)).content=Zt(s.content));var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var h=e.positionDefault,d=uu(u,this._tooltipModel,h?{position:h}:null),p=d.get("content"),f=Math.random()+"",g=new tv;this._showOrMove(d,function(){var v=se(d.get("formatterParams")||{});this._showTooltipContent(d,p,v,f,e.offsetX,e.offsetY,e.position,i,g)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,r,o,a,s,l,u,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var d=e.get("formatter");l=l||e.get("position");var p=i,f=this._getNearestPoint([a,s],r,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)).color;if(d)if(te(d)){var g=e.ecModel.get("useUTC"),v=q(r)?r[0]:r;p=d,v&&v.axisType&&v.axisType.indexOf("time")>=0&&(p=dc(v.axisValue,p,g)),p=dx(p,r,!0)}else if(le(d)){var y=ie(function(m,x){m===this._ticket&&(h.setContent(x,c,e,f,l),this._updatePosition(e,l,a,s,h,r,u))},this);this._ticket=o,p=d(r,o,y)}else p=d;h.setContent(p,c,e,f,l),h.show(e,f),this._updatePosition(e,l,a,s,h,r,u)}},t.prototype._getNearestPoint=function(e,i,r,o,a){return r==="axis"||q(i)?{color:o||a}:q(i)?void 0:{color:o||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,r,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();i=i||e.get("position");var h=a.getSize(),d=e.get("align"),p=e.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),le(i)&&(i=i([r,o],s,a.el,f,{viewSize:[u,c],contentSize:h.slice()})),q(i))r=ne(i[0],u),o=ne(i[1],c);else if(fe(i)){var g=i;g.width=h[0],g.height=h[1];var v=ot(g,{width:u,height:c});r=v.x,o=v.y,d=null,p=null}else if(te(i)&&l){var y=(function(m,x,_,b){var w=_[0],S=_[1],M=Math.ceil(Math.SQRT2*b)+8,I=0,T=0,C=x.width,D=x.height;switch(m){case"inside":I=x.x+C/2-w/2,T=x.y+D/2-S/2;break;case"top":I=x.x+C/2-w/2,T=x.y-S-M;break;case"bottom":I=x.x+C/2-w/2,T=x.y+D+M;break;case"left":I=x.x-w-M,T=x.y+D/2-S/2;break;case"right":I=x.x+C+M,T=x.y+D/2-S/2}return[I,T]})(i,f,h,e.get("borderWidth"));r=y[0],o=y[1]}else y=(function(m,x,_,b,w,S,M){var I=_.getSize(),T=I[0],C=I[1];return S!=null&&(m+T+S+2>b?m-=T+S:m+=S),M!=null&&(x+C+M>w?x-=C+M:x+=M),[m,x]})(r,o,a,u,c,d?null:20,p?null:20),r=y[0],o=y[1];d&&(r-=Y2(d)?h[0]/2:d==="right"?h[0]:0),p&&(o-=Y2(p)?h[1]/2:p==="bottom"?h[1]:0),KR(e)&&(y=(function(m,x,_,b,w){var S=_.getSize(),M=S[0],I=S[1];return m=Math.min(m+M,b)-M,x=Math.min(x+I,w)-I,m=Math.max(m,0),x=Math.max(x,0),[m,x]})(r,o,a,u,c),r=y[0],o=y[1]),a.moveTo(r,o)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var r=this._lastDataByCoordSys,o=this._cbParamsList,a=!!r&&r.length===e.length;return a&&k(r,function(s,l){var u=s.dataByAxis||[],c=(e[l]||{}).dataByAxis||[];(a=a&&u.length===c.length)&&k(u,function(h,d){var p=c[d]||{},f=h.seriesDataIndices||[],g=p.seriesDataIndices||[];(a=a&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&f.length===g.length)&&k(f,function(v,y){var m=g[y];a=a&&v.seriesIndex===m.seriesIndex&&v.dataIndex===m.dataIndex}),o&&k(h.seriesDataIndices,function(v){var y=v.seriesIndex,m=i[y],x=o[y];m&&x&&x.data!==m.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){!Ee.node&&i.getDom()&&(fc(this,"_updatePosition"),this._tooltipContent.dispose(),J0("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t})(et);function uu(n,t,e){var i,r=t.ecModel;e?(i=new Oe(e,r,r),i=new Oe(t.option,i,r)):i=t;for(var o=n.length-1;o>=0;o--){var a=n[o];a&&(a instanceof Oe&&(a=a.get("tooltip",!0)),te(a)&&(a={formatter:a}),a&&(i=new Oe(a,i,r)))}return i}function U2(n,t){return n.dispatchAction||ie(t.dispatchAction,t)}function Y2(n){return n==="center"||n==="middle"}var EW=["rect","polygon","keep","clear"];function zW(n,t){var e=$e(n?n.brush:[]);if(e.length){var i=[];k(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var r=n&&n.toolbox;q(r)&&(r=r[0]),r||(r={feature:{}},n.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),Df(s,function(l){return l+""},null),t&&!s.length&&s.push.apply(s,EW)}}var X2=k;function Z2(n){if(n){for(var t in n)if(n.hasOwnProperty(t))return!0}}function d1(n,t,e){var i={};return X2(t,function(r){var o,a=i[r]=((o=function(){}).prototype.__hidden=o.prototype,new o);X2(n[r],function(s,l){if(Nt.isValidType(l)){var u={type:l,visual:s};e&&e(u,r),a[l]=new Nt(u),l==="opacity"&&((u=se(u)).type="colorAlpha",a.__hidden.__alphaForOpacity=new Nt(u))}})}),i}function eN(n,t,e){var i;k(e,function(r){t.hasOwnProperty(r)&&Z2(t[r])&&(i=!0)}),i&&k(e,function(r){t.hasOwnProperty(r)&&Z2(t[r])?n[r]=se(t[r]):delete n[r]})}var q2={lineX:j2(0),lineY:j2(1),rect:{point:function(n,t,e){return n&&e.boundingRect.contain(n[0],n[1])},rect:function(n,t,e){return n&&e.boundingRect.intersect(n)}},polygon:{point:function(n,t,e){return n&&e.boundingRect.contain(n[0],n[1])&&Jo(e.range,n[0],n[1])},rect:function(n,t,e){var i=e.range;if(!n||i.length<=1)return!1;var r=n.x,o=n.y,a=n.width,s=n.height,l=i[0];return!!(Jo(i,r,o)||Jo(i,r+a,o)||Jo(i,r,o+s)||Jo(i,r+a,o+s)||de.create(n).contain(l[0],l[1])||mu(r,o,r+a,o,i)||mu(r,o,r,o+s,i)||mu(r+a,o,r+a,o+s,i)||mu(r,o+s,r+a,o+s,i))||void 0}}};function j2(n){var t=["x","y"],e=["width","height"];return{point:function(i,r,o){if(i){var a=o.range;return cu(i[n],a)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[t[n]],i[t[n]]+i[e[n]]];return s[1]<s[0]&&s.reverse(),cu(s[0],a)||cu(s[1],a)||cu(a[0],s)||cu(a[1],s)}}}}function cu(n,t){return t[0]<=n&&n<=t[1]}var K2=["inBrush","outOfBrush"],Gy="__ecBrushSelect",p1="__ecInBrushSelectEvent";function tN(n){n.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new l1(t.option,n)).setInputRanges(t.areas,n)})}var BW=Bc(function(n,t,e){var i,r,o=[];n.eachComponent({mainType:"brush"},function(a){e&&e.type==="takeGlobalCursor"&&a.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),tN(n),n.eachComponent({mainType:"brush"},function(a,s){var l={brushId:a.id,brushIndex:s,brushName:a.name,areas:se(a.areas),selected:[]};o.push(l);var u=a.option,c=u.brushLink,h=[],d=[],p=[],f=!1;s||(i=u.throttleType,r=u.throttleDelay);var g=K(a.areas,function(x){var _=GW[x.brushType],b=pe({boundingRect:_?_(x):void 0},x);return b.selectors=(function(w){var S=w.brushType,M={point:function(I){return q2[S].point(I,M,w)},rect:function(I){return q2[S].rect(I,M,w)}};return M})(b),b}),v=d1(a.option,K2,function(x){x.mappingMethod="fixed"});function y(x){return c==="all"||!!h[x]}function m(x){return!!x.length}q(c)&&k(c,function(x){h[x]=1}),n.eachSeries(function(x,_){var b=p[_]=[];x.subType==="parallel"?(function(w,S){var M=w.coordinateSystem;f=f||M.hasAxisBrushed(),y(S)&&M.eachActiveState(w.getData(),function(I,T){I==="active"&&(d[T]=1)})})(x,_):(function(w,S,M){if(!(!w.brushSelector||(function(T,C){var D=T.option.seriesIndex;return D!=null&&D!=="all"&&(q(D)?be(D,C)<0:C!==D)})(a,S))&&(k(g,function(T){a.brushTargetManager.controlSeries(T,w,n)&&M.push(T),f=f||m(M)}),y(S)&&m(M))){var I=w.getData();I.each(function(T){$2(w,M,I,T)&&(d[T]=1)})}})(x,_,b)}),n.eachSeries(function(x,_){var b={seriesId:x.id,seriesIndex:_,seriesName:x.name,dataIndex:[]};l.selected.push(b);var w=p[_],S=x.getData(),M=y(_)?function(I){return d[I]?(b.dataIndex.push(S.getRawIndex(I)),"inBrush"):"outOfBrush"}:function(I){return $2(x,w,S,I)?(b.dataIndex.push(S.getRawIndex(I)),"inBrush"):"outOfBrush"};(y(_)?f:m(w))&&(function(I,T,C,D,A,L){var P,E={};function O(z){return Sx(C,P,z)}function N(z,B){oL(C,P,z,B)}function R(z,B){P=L==null?z:B;var V=C.getRawDataItem(P);if(!V||V.visualMap!==!1)for(var W=D.call(A,z),U=T[W],F=E[W],Q=0,Z=F.length;Q<Z;Q++){var Y=F[Q];U[Y]&&U[Y].applyVisual(z,O,N)}}k(I,function(z){var B=Nt.prepareVisualTypes(T[z]);E[z]=B}),L==null?C.each(R):C.each([L],R)})(K2,v,S,M)})}),(function(a,s,l,u,c){if(c){var h=a.getZr();if(!h[p1]){h[Gy]||(h[Gy]=VW);var d=bl(h,Gy,l,s);d(a,u)}}})(t,i,r,o,e)});function VW(n,t){if(!n.isDisposed()){var e=n.getZr();e[p1]=!0,n.dispatchAction({type:"brushSelect",batch:t}),e[p1]=!1}}function $2(n,t,e,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(n.brushSelector(i,e,a.selectors,a))return!0}}var GW={rect:function(n){return J2(n.range)},polygon:function(n){for(var t,e=n.range,i=0,r=e.length;i<r;i++){t=t||[sp(),sp()];var o=e[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&J2(t)}};function J2(n){return new de(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var FW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e,i){this.ecModel=e,this.api=i,this.model,(this._brushController=new c_(i.getZr())).on("brush",ie(this._onBrush,this)).mount()},t.prototype.render=function(e,i,r,o){this.model=e,this._updateController(e,i,r,o)},t.prototype.updateTransform=function(e,i,r,o){tN(i),this._updateController(e,i,r,o)},t.prototype.updateVisual=function(e,i,r,o){this.updateTransform(e,i,r,o)},t.prototype.updateView=function(e,i,r,o){this._updateController(e,i,r,o)},t.prototype._updateController=function(e,i,r,o){(!o||o.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(r)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var i=this.model.id,r=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:se(r),$from:i}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:se(r),$from:i})},t.type="brush",t})(et),HW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return G(t,n),t.prototype.optionUpdated=function(e,i){var r=this.option;!i&&eN(r,e,["inBrush","outOfBrush"]);var o=r.inBrush=r.inBrush||{};r.outOfBrush=r.outOfBrush||{color:this.option.defaultOutOfBrushColor},o.hasOwnProperty("liftZ")||(o.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=K(e,function(i){return Q2(this.option,i)},this))},t.prototype.setBrushOption=function(e){this.brushOption=Q2(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:H.color.backgroundTint,borderColor:H.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:H.color.disabled},t})(ke);function Q2(n,t){return Se({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Oe(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},t,!0)}var WW=["rect","polygon","lineX","lineY","keep","clear"],UW=(function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return G(t,n),t.prototype.render=function(e,i,r){var o,a,s;i.eachComponent({mainType:"brush"},function(l){o=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=o,this._brushMode=a,k(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===o)?"emphasis":"normal")})},t.prototype.updateView=function(e,i,r){this.render(e,i,r)},t.prototype.getIcons=function(){var e=this.model,i=e.get("icon",!0),r={};return k(e.get("type",!0),function(o){i[o]&&(r[o]=i[o])}),r},t.prototype.onclick=function(e,i,r){var o=this._brushType,a=this._brushMode;r==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:r==="keep"?o:o!==r&&r,brushMode:r==="keep"?a==="multiple"?"single":"multiple":a}})},t.getDefaultOption=function(e){return{show:!0,type:WW.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])}},t})(Hi),YW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return G(t,n),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:H.size.m,backgroundColor:H.color.transparent,borderColor:H.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:H.color.primary},subtextStyle:{fontSize:12,color:H.color.quaternary}},t})(ke),XW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){if(this.group.removeAll(),e.get("show")){var o=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ae(e.get("textBaseline"),e.get("textVerticalAlign")),c=new Be({style:Je(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),d=e.get("subtext"),p=new Be({style:Je(s,{text:d,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),g=e.get("sublink"),v=e.get("triggerEvent",!0);c.silent=!f&&!v,p.silent=!g&&!v,f&&c.on("click",function(){mp(f,"_"+e.get("target"))}),g&&p.on("click",function(){mp(g,"_"+e.get("subtarget"))}),me(c).eventData=me(p).eventData=v?{componentType:"title",componentIndex:e.componentIndex}:null,o.add(c),d&&o.add(p);var y=o.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var x=ot(m,kt(e,r).refContainer,e.get("padding"));l||((l=e.get("left")||e.get("right"))==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||((u=e.get("top")||e.get("bottom"))==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),o.x=x.x,o.y=x.y,o.markRedraw();var _={align:l,verticalAlign:u};c.setStyle(_),p.setStyle(_),y=o.getBoundingRect();var b=x.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var S=new Ae({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});o.add(S)}},t.type="title",t})(et),eC=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return G(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r),this._initData()},t.prototype.mergeOption=function(e){n.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var i=this._data.count();this.option.loop?e=(e%i+i)%i:(e>=i&&(e=i-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,i=this.option,r=i.data||[],o=i.axisType,a=this._names=[];o==="category"?(e=[],k(r,function(l,u){var c,h=Tt(cl(l),"");fe(l)?(c=se(l)).value=u:c=u,e.push(c),a.push(h)})):e=r;var s={category:"ordinal",time:"time",value:"number"}[o]||"number";(this._data=new fn([{name:"value",type:s}],this)).initData(e,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:H.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:H.color.secondary},data:[]},t})(ke),nN=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="timeline.slider",t.defaultOption=_o(eC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:H.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:H.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:H.color.tertiary},itemStyle:{color:H.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:H.color.accent50,borderColor:H.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:H.color.accent50,borderColor:H.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:H.color.accent60},itemStyle:{color:H.color.accent60,borderColor:H.color.accent60},controlStyle:{color:H.color.accent70,borderColor:H.color.accent70}},progress:{lineStyle:{color:H.color.accent30},itemStyle:{color:H.color.accent40}},data:[]}),t})(eC);xt(nN,Ff.prototype);var ZW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="timeline",t})(et),qW=(function(n){function t(e,i,r,o){var a=n.call(this,e,i,r)||this;return a.type=o||"value",a}return G(t,n),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t})(hi),Fy=Math.PI,tC=Me(),jW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(e,i){this.api=i},t.prototype.render=function(e,i,r){if(this.model=e,this.api=r,this.ecModel=i,this.group.removeAll(),e.get("show",!0)){var o=this._layout(e,r),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,e);e.formatTooltip=function(u){return Mt("nameValue",{noName:!0,value:l.scale.getLabel({value:u})})},k(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](o,a,l,e)},this),this._renderAxisLabel(o,s,l,e),this._position(o,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,i){var r,o,a,s,l=e.get(["label","position"]),u=e.get("orient"),c=(function(D,A){return ot(D.getBoxLayoutParams(),kt(D,A).refContainer,D.get("padding"))})(e,i),h={horizontal:"center",vertical:(r=l==null||l==="auto"?u==="horizontal"?c.y+c.height/2<i.getHeight()/2?"-":"+":c.x+c.width/2<i.getWidth()/2?"+":"-":te(l)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[u][l]:l)>=0||r==="+"?"left":"right"},d={horizontal:r>=0||r==="+"?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:Fy/2},f=u==="vertical"?c.height:c.width,g=e.getModel("controlStyle"),v=g.get("show",!0),y=v?g.get("itemSize"):0,m=v?g.get("itemGap"):0,x=y+m,_=e.get(["label","rotate"])||0;_=_*Fy/180;var b=g.get("position",!0),w=v&&g.get("showPlayBtn",!0),S=v&&g.get("showPrevBtn",!0),M=v&&g.get("showNextBtn",!0),I=0,T=f;b==="left"||b==="bottom"?(w&&(o=[0,0],I+=x),S&&(a=[I,0],I+=x),M&&(s=[T-y,0],T-=x)):(w&&(o=[T-y,0],T-=x),S&&(a=[0,0],I+=x),M&&(s=[T-y,0],T-=x));var C=[I,T];return e.get("inverse")&&C.reverse(),{viewRect:c,mainLength:f,orient:u,rotation:p[u],labelRotation:_,labelPosOpt:r,labelAlign:e.get(["label","align"])||h[u],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||d[u],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:C,controlSize:y,controlGap:m}},t.prototype._position=function(e,i){var r=this._mainGroup,o=this._labelGroup,a=e.viewRect;if(e.orient==="vertical"){var s=[1,0,0,1,0,0],l=a.x,u=a.y+a.height;ci(s,s,[-l,-u]),Cr(s,s,-Fy/2),ci(s,s,[l,u]),(a=a.clone()).applyTransform(s)}var c=m(a),h=m(r.getBoundingRect()),d=m(o.getBoundingRect()),p=[r.x,r.y],f=[o.x,o.y];f[0]=p[0]=c[0][0];var g,v=e.labelPosOpt;v==null||te(v)?(x(p,h,c,1,g=v==="+"?0:1),x(f,d,c,1,1-g)):(x(p,h,c,1,g=v>=0?0:1),f[1]=p[1]+v);function y(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function m(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,b,w,S,M){_[S]+=w[S][M]-b[S][M]}r.setPosition(p),o.setPosition(f),r.rotation=o.rotation=e.rotation,y(r),y(o)},t.prototype._createAxis=function(e,i){var r=i.getData(),o=i.get("axisType")||i.get("type");o!=="category"&&o!=="time"&&(o="value");var a=Il(i,o,!1);a.getTicks=function(){return r.mapArray(["value"],function(u){return{value:u}})};var s=r.getDataExtent("value");a.setExtent(s[0],s[1]),ZL(a,{fixMinMax:[!0,!0]});var l=new qW("value",a,e.axisExtent,o);return l.model=i,l},t.prototype._createGroup=function(e){var i=this[e]=new he;return this.group.add(i),i},t.prototype._renderAxisLine=function(e,i,r,o){var a=r.getExtent();if(o.get(["lineStyle","show"])){var s=new _t({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:X({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new _t({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:pe({lineCap:"round",lineWidth:s.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},t.prototype._renderAxisTick=function(e,i,r,o){var a=this,s=o.getData(),l=r.scale.getTicks();this._tickSymbols=[],k(l,function(u){var c=r.dataToCoord(u.value),h=s.getItemModel(u.value),d=h.getModel("itemStyle"),p=h.getModel(["emphasis","itemStyle"]),f=h.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:ie(a._changeTimeline,a,u.value)},v=nC(h,d,i,g);v.ensureState("emphasis").style=p.getItemStyle(),v.ensureState("progress").style=f.getItemStyle(),ro(v);var y=me(v);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=o):y.dataIndex=y.dataModel=null,a._tickSymbols.push(v)})},t.prototype._renderAxisLabel=function(e,i,r,o){var a=this;if(r.getLabelModel().get("show")){var s=o.getData(),l=r.getViewLabels();this._tickLabels=[],k(l,function(u){if(!u.tick.offInterval){var c=u.tick.value,h=s.getItemModel(c),d=h.getModel("label"),p=h.getModel(["emphasis","label"]),f=h.getModel(["progress","label"]),g=r.dataToCoord(c),v=new Be({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:ie(a._changeTimeline,a,c),silent:!1,style:Je(d,{text:u.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});v.ensureState("emphasis").style=Je(p),v.ensureState("progress").style=Je(f),i.add(v),ro(v),tC(v).dataIndex=c,a._tickLabels.push(v)}})}},t.prototype._renderControl=function(e,i,r,o){var a=e.controlSize,s=e.rotation,l=o.getModel("controlStyle").getItemStyle(),u=o.getModel(["emphasis","controlStyle"]).getItemStyle(),c=o.getPlayState(),h=o.get("inverse",!0);function d(p,f,g,v){if(p){var y=Ui(ae(o.get(["controlStyle",f+"BtnSize"]),a),a),m=(function(x,_,b,w){var S=w.style,M=yl(x.get(["controlStyle",_]),w||{},new de(b[0],b[1],b[2],b[3]));return S&&M.setStyle(S),M})(o,f+"Icon",[0,-y/2,y,y],{x:p[0],y:p[1],originX:a/2,originY:0,rotation:v?-s:0,rectHover:!0,style:l,onclick:g});m.ensureState("emphasis").style=u,i.add(m),ro(m)}}d(e.nextBtnPosition,"next",ie(this._changeTimeline,this,h?"-":"+")),d(e.prevBtnPosition,"prev",ie(this._changeTimeline,this,h?"+":"-")),d(e.playPosition,c?"stop":"play",ie(this._handlePlayClick,this,!c),!0)},t.prototype._renderCurrentPointer=function(e,i,r,o){var a=o.getData(),s=o.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=ie(u._handlePointerDrag,u),h.ondragend=ie(u._handlePointerDragend,u),iC(h,u._progressLine,s,r,o,!0)},onUpdate:function(h){iC(h,u._progressLine,s,r,o)}};this._currentPointer=nC(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,i,r){this._clearTimer(),this._pointerChangeTimeline([r.offsetX,r.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,i){var r=this._toAxisCoord(e)[0],o=Ft(this._axis.getExtent().slice());r>o[1]&&(r=o[1]),r<o[0]&&(r=o[0]),this._currentPointer.x=r,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=r,a.dirty());var s=this._findNearestTick(r),l=this.model;(i||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=e.model;e._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return li(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var i,r=this.model.getData(),o=1/0,a=this._axis;return r.each(["value"],function(s,l){var u=a.dataToCoord(s),c=Math.abs(u-e);c<o&&(o=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var i=this.model.getCurrentIndex();e==="+"?e=i+1:e==="-"&&(e=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),i=this._tickSymbols,r=this._tickLabels;if(i)for(var o=0;o<i.length;o++)i&&i[o]&&i[o].toggleState("progress",o<e);if(r)for(o=0;o<r.length;o++)r&&r[o]&&r[o].toggleState("progress",tC(r[o]).dataIndex<=e)},t.type="timeline.slider",t})(ZW);function nC(n,t,e,i,r,o){var a=t.get("color");r?(r.setColor(a),e.add(r),o&&o.onUpdate(r)):((r=bt(n.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),e.add(r),o&&o.onCreate(r));var s=t.getItemStyle(["color"]);r.setStyle(s),i=Se({rectHover:!0,z2:100},i,!0);var l=Sl(n.get("symbolSize"));i.scaleX=l[0]/2,i.scaleY=l[1]/2;var u=ja(n.get("symbolOffset"),l);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var c=n.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function iC(n,t,e,i,r,o){if(!n.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",e));if(o||!a.get("animation",!0))n.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};n.stopAnimation(null,!0),n.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function KW(n){var t=n&&n.timeline;q(t)||(t=t?[t]:[]),k(t,function(e){e&&(function(i){var r=i.type,o={number:"value",time:"time"};if(o[r]&&(i.axisType=o[r],delete i.type),rC(i),ta(i,"controlPosition")){var a=i.controlStyle||(i.controlStyle={});ta(a,"position")||(a.position=i.controlPosition),a.position!=="none"||ta(a,"show")||(a.show=!1,delete a.position),delete i.controlPosition}k(i.data||[],function(s){fe(s)&&!q(s)&&(!ta(s,"value")&&ta(s,"name")&&(s.value=s.name),rC(s))})})(e)})}function rC(n){var t=n.itemStyle||(n.itemStyle={}),e=t.emphasis||(t.emphasis={}),i=n.label||n.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};k(i,function(a,s){o[s]||ta(r,s)||(r[s]=a)}),e.label&&!ta(i,"emphasis")&&(i.emphasis=e.label,delete e.label)}function ta(n,t){return n.hasOwnProperty(t)}function Hy(n,t){if(!n)return!1;for(var e=q(n)?n:[n],i=0;i<e.length;i++)if(e[i]&&e[i][t])return!0;return!1}function dd(n){ba(n,"label",["show"])}var pd=Me(),Wi=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e.preventAutoZ=!0,e}return G(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r),this._mergeOption(e,r,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Ee.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,i){this._mergeOption(e,i,!1,!1)},t.prototype._mergeOption=function(e,i,r,o){var a=this.mainType;r||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=pd(s)[a];l&&l.data?(u?u._mergeOption(l,i,!0):(o&&dd(l),k(l.data,function(c){c instanceof Array?(dd(c[0]),dd(c[1])):dd(c)}),X(u=this.createMarkerModelFromSeries(l,this,i),{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),pd(s)[a]=u):pd(s)[a]=null},this)},t.prototype.formatTooltip=function(e,i,r){var o=this.getData(),a=this.getRawValue(e),s=o.getName(e);return Mt("section",{header:this.name,blocks:[Mt("nameValue",{name:s,value:a,noName:!s,noValue:a==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,i){var r=Ff.prototype.getDataParams.call(this,e,i),o=this.__hostSeries;return o&&(r.seriesId=o.id,r.seriesName=o.name,r.seriesType=o.subType),r},t.getMarkerModelFromSeries=function(e,i){return pd(e)[i]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(ke);xt(Wi,Ff.prototype);var $W=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.createMarkerModelFromSeries=function(e,i,r){return new t(e,i,r)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t})(Wi);function f1(n){return!(isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y)))}function fd(n,t,e,i,r,o,a){var s=[],l=Mr(t,r)?t.getCalculationInfo("stackResultDimension"):r,u=df(t,l,n),c=t.hostModel.indicesOfNearest(e,l,u)[0];s[o]=t.get(i,c),s[a]=t.get(l,c);var h=t.get(r,c),d=Oi(t.get(r,c));return(d=Math.min(d,20))>=0&&(s[a]=+s[a].toFixed(d)),[s,h]}var gd={min:Ce(fd,"min"),max:Ce(fd,"max"),average:Ce(fd,"average"),median:Ce(fd,"median")};function Oc(n,t){if(t){var e=n.getData(),i=n.coordinateSystem,r=i&&i.dimensions;if(!(function(p){return!isNaN(parseFloat(p.x))&&!isNaN(parseFloat(p.y))})(t)&&!q(t.coord)&&q(r)){var o=iN(t,e,i,n);if((t=se(t)).type&&gd[t.type]&&o.baseAxis&&o.valueAxis){var a=be(r,o.baseAxis.dim),s=be(r,o.valueAxis.dim),l=gd[t.type](e,o.valueAxis.dim,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord!=null&&q(r))for(var u=t.coord,c=0;c<2;c++)gd[u[c]]&&(u[c]=df(e,e.mapDimension(r[c]),u[c]));else{t.coord=[];var h=n.getBaseAxis();if(h&&t.type&&gd[t.type]){var d=i.getOtherAxis(h);d&&(t.value=df(e,e.mapDimension(d.dim),t.type))}}return t}}function iN(n,t,e,i){var r={};return n.valueIndex!=null||n.valueDim!=null?(r.valueDataDim=n.valueIndex!=null?t.getDimension(n.valueIndex):n.valueDim,r.valueAxis=e.getAxis((function(o,a){var s=o.getData().getDimensionInfo(a);return s&&s.coordDim})(i,r.valueDataDim)),r.baseAxis=e.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=e.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function Rc(n,t){return!(n&&n.containData&&t.coord&&!f1(t))||n.containData(t.coord)}function rN(n,t){return n?function(e,i,r,o){return oo(o<2?e.coord&&e.coord[o]:e.value,t[o])}:function(e,i,r,o){return oo(e.value,t[o])}}function df(n,t,e){if(e==="average"){var i=0,r=0;return n.each(t,function(o,a){isNaN(o)||(i+=o,r++)}),i/r}return e==="median"?n.getMedian(t):n.getDataExtent(t)[e==="max"?1:0]}var Wy=Me(),O_=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.init=function(){this.markerGroupMap=re()},t.prototype.render=function(e,i,r){var o=this,a=this.markerGroupMap;a.each(function(s){Wy(s).keep=!1}),i.eachSeries(function(s){var l=Wi.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,i,r)}),a.each(function(s){!Wy(s).keep&&o.group.remove(s.group)}),(function(s,l,u){s.eachSeries(function(c){var h=Wi.getMarkerModelFromSeries(c,u),d=l.get(c.id);if(h&&d&&d.group){var p=Ca(h),f=p.z,g=p.zlevel;zf(d.group,f,g)}})})(i,a,this.type)},t.prototype.markKeep=function(e){Wy(e).keep=!0},t.prototype.toggleBlurSeries=function(e,i){var r=this;k(e,function(o){var a=Wi.getMarkerModelFromSeries(o,r.type);a&&a.getData().eachItemGraphicEl(function(s){s&&(i?wA(s):Y1(s))})})},t.type="marker",t})(et);function oC(n,t,e){var i=t.coordinateSystem,r=e.getWidth(),o=e.getHeight(),a=i&&i.getArea&&i.getArea();n.each(function(s){var l,u=n.getItemModel(s),c=u.get("relativeTo")==="coordinate",h=c?a?a.width:0:r,d=c?a?a.height:0:o,p=c&&a?a.x:0,f=c&&a?a.y:0,g=ne(u.get("x"),h)+p,v=ne(u.get("y"),d)+f;if(isNaN(g)||isNaN(v)){if(t.getMarkerPosition)l=t.getMarkerPosition(n.getValues(n.dimensions,s));else if(i){var y=n.get(i.dimensions[0],s),m=n.get(i.dimensions[1],s);l=i.dataToPoint([y,m])}}else l=[g,v];isNaN(g)||(l[0]=g),isNaN(v)||(l[1]=v),n.setItemLayout(s,l)})}var JW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.updateTransform=function(e,i,r){i.eachSeries(function(o){var a=Wi.getMarkerModelFromSeries(o,"markPoint");a&&(oC(a.getData(),o,r),this.markerGroupMap.get(o.id).updateLayout())},this)},t.prototype.renderSeries=function(e,i,r,o){var a=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new jc),h=(function(d,p,f){var g;g=d?K(d&&d.dimensions,function(x){var _=p.getData();return X(X({},_.getDimensionInfo(_.mapDimension(x))||{}),{name:x,ordinalMeta:null})}):[{name:"value",type:"float"}];var v=new fn(g,f),y=K(f.get("data"),Ce(Oc,p));d&&(y=Ye(y,Ce(Rc,d)));var m=rN(!!d,g);return v.initData(y,null,m),v})(a,e,i);i.setData(h),oC(i.getData(),e,o),h.each(function(d){var p=h.getItemModel(d),f=p.getShallow("symbol"),g=p.getShallow("symbolSize"),v=p.getShallow("symbolRotate"),y=p.getShallow("symbolOffset"),m=p.getShallow("symbolKeepAspect");if(le(f)||le(g)||le(v)||le(y)){var x=i.getRawValue(d),_=i.getDataParams(d);le(f)&&(f=f(x,_)),le(g)&&(g=g(x,_)),le(v)&&(v=v(x,_)),le(y)&&(y=y(x,_))}var b=p.getModel("itemStyle").getItemStyle(),w=p.get("z2"),S=Uc(l,"color");b.fill||(b.fill=S),h.setItemVisual(d,{z2:ae(w,0),symbol:f,symbolSize:g,symbolRotate:v,symbolOffset:y,symbolKeepAspect:m,style:b})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(d){d.traverse(function(p){me(p).dataModel=i})}),this.markKeep(c),c.group.silent=i.get("silent")||e.get("silent")},t.type="markPoint",t})(O_),QW=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.createMarkerModelFromSeries=function(e,i,r){return new t(e,i,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(Wi),vd=Me(),e8=function(n,t,e,i){var r,o=n.getData();if(q(i))r=i;else{var a=i.type;if(a==="min"||a==="max"||a==="average"||a==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=t.getAxis(i.yAxis!=null?"y":"x"),l=an(i.yAxis,i.xAxis);else{var u=iN(i,o,t,n);s=u.valueAxis,l=df(o,Dx(o,u.valueDataDim),a)}var c=s.dim==="x"?0:1,h=1-c,d=se(i),p={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,p.coord[h]=1/0;var f=e.get("precision");f>=0&&Ve(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[c]=p.coord[c]=l,r=[d,p,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[Oc(n,r[0]),Oc(n,r[1]),X({},r[2])];return g[2].type=g[2].type||null,Se(g[2],g[0]),Se(g[2],g[1]),g};function pf(n){return!isNaN(n)&&!isFinite(n)}function aC(n,t,e,i){var r=1-n,o=i.dimensions[n];return pf(t[r])&&pf(e[r])&&t[n]===e[n]&&i.getAxis(o).containData(t[n])}function t8(n,t){if(n.type==="cartesian2d"){var e=t[0].coord,i=t[1].coord;if(e&&i&&(aC(1,e,i,n)||aC(0,e,i,n)))return!0}return Rc(n,t[0])&&Rc(n,t[1])}function Uy(n,t,e,i,r){var o,a=i.coordinateSystem,s=n.getItemModel(t),l=ne(s.get("x"),r.getWidth()),u=ne(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(n.getValues(n.dimensions,t));else{var c=a.dimensions,h=n.get(c[0],t),d=n.get(c[1],t);o=a.dataToPoint([h,d])}if(Pa(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions,pf(n.get(c[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[e?0:1]):pf(n.get(c[1],t))&&(o[1]=f.toGlobalCoord(f.getExtent()[e?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];n.setItemLayout(t,o)}var n8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.updateTransform=function(e,i,r){i.eachSeries(function(o){var a=Wi.getMarkerModelFromSeries(o,"markLine");if(a){var s=a.getData(),l=vd(a).from,u=vd(a).to;l.each(function(c){Uy(l,c,!0,o,r),Uy(u,c,!1,o,r)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,i,r,o){var a=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new u_);this.group.add(c.group);var h=(function(_,b,w){var S;S=_?K(_&&_.dimensions,function(A){var L=b.getData();return X(X({},L.getDimensionInfo(L.mapDimension(A))||{}),{name:A,ordinalMeta:null})}):[{name:"value",type:"float"}];var M=new fn(S,w),I=new fn(S,w),T=new fn([],w),C=K(w.get("data"),Ce(e8,b,_,w));_&&(C=Ye(C,Ce(t8,_)));var D=rN(!!_,S);return M.initData(K(C,function(A){return A[0]}),null,D),I.initData(K(C,function(A){return A[1]}),null,D),T.initData(K(C,function(A){return A[2]})),T.hasItemOption=!0,{from:M,to:I,line:T}})(a,e,i),d=h.from,p=h.to,f=h.line;vd(i).from=d,vd(i).to=p,i.setData(f);var g=i.get("symbol"),v=i.get("symbolSize"),y=i.get("symbolRotate"),m=i.get("symbolOffset");function x(_,b,w){var S=_.getItemModel(b);Uy(_,b,w,e,o);var M=S.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=Uc(l,"color")),_.setItemVisual(b,{symbolKeepAspect:S.get("symbolKeepAspect"),symbolOffset:ae(S.get("symbolOffset",!0),m[w?0:1]),symbolRotate:ae(S.get("symbolRotate",!0),y[w?0:1]),symbolSize:ae(S.get("symbolSize"),v[w?0:1]),symbol:ae(S.get("symbol",!0),g[w?0:1]),style:M})}q(g)||(g=[g,g]),q(v)||(v=[v,v]),q(y)||(y=[y,y]),q(m)||(m=[m,m]),h.from.each(function(_){x(d,_,!0),x(p,_,!1)}),f.each(function(_){var b=f.getItemModel(_),w=b.getModel("lineStyle").getLineStyle();f.setItemLayout(_,[d.getItemLayout(_),p.getItemLayout(_)]);var S=b.get("z2");w.stroke==null&&(w.stroke=d.getItemVisual(_,"style").fill),f.setItemVisual(_,{z2:ae(S,0),fromSymbolKeepAspect:d.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(_,"symbolOffset"),fromSymbolRotate:d.getItemVisual(_,"symbolRotate"),fromSymbolSize:d.getItemVisual(_,"symbolSize"),fromSymbol:d.getItemVisual(_,"symbol"),toSymbolKeepAspect:p.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(_,"symbolOffset"),toSymbolRotate:p.getItemVisual(_,"symbolRotate"),toSymbolSize:p.getItemVisual(_,"symbolSize"),toSymbol:p.getItemVisual(_,"symbol"),style:w})}),c.updateData(f),h.line.eachItemGraphicEl(function(_){me(_).dataModel=i,_.traverse(function(b){me(b).dataModel=i})}),this.markKeep(c),c.group.silent=i.get("silent")||e.get("silent")},t.type="markLine",t})(O_),i8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.createMarkerModelFromSeries=function(e,i,r){return new t(e,i,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t})(Wi),yd=Me(),r8=function(n,t,e,i){var r=i[0],o=i[1];if(r&&o){var a=Oc(n,r),s=Oc(n,o),l=a.coord,u=s.coord;l[0]=an(l[0],-1/0),l[1]=an(l[1],-1/0),u[0]=an(u[0],1/0),u[1]=an(u[1],1/0);var c=_f([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function ff(n){return!isNaN(n)&&!isFinite(n)}function sC(n,t,e,i){var r=1-n;return ff(t[r])&&ff(e[r])}function o8(n,t){var e=t.coord[0],i=t.coord[1],r={coord:e,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return Pa(n,"cartesian2d")?!(!e||!i||!sC(1,e,i)&&!sC(0,e,i))||(function(a,s,l){return!(a&&a.containZone&&s.coord&&l.coord&&!f1(s)&&!f1(l))||a.containZone(s.coord,l.coord)})(n,r,o):Rc(n,r)||Rc(n,o)}function lC(n,t,e,i,r){var o,a=i.coordinateSystem,s=n.getItemModel(t),l=ne(s.get(e[0]),r.getWidth()),u=ne(s.get(e[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=n.getValues(["x0","y0"],t),h=n.getValues(["x1","y1"],t),d=a.clampData(c),p=a.clampData(h),f=[];e[0]==="x0"?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],e[1]==="y0"?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],o=i.getMarkerPosition(f,e,!0)}else{var g=[m=n.get(e[0],t),x=n.get(e[1],t)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(Pa(a,"cartesian2d")){var v=a.getAxis("x"),y=a.getAxis("y"),m=n.get(e[0],t),x=n.get(e[1],t);ff(m)?o[0]=v.toGlobalCoord(v.getExtent()[e[0]==="x0"?0:1]):ff(x)&&(o[1]=y.toGlobalCoord(y.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var uC=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],a8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.updateTransform=function(e,i,r){i.eachSeries(function(o){var a=Wi.getMarkerModelFromSeries(o,"markArea");if(a){var s=a.getData();s.each(function(l){var u=K(uC,function(c){return lC(s,l,c,o,r)});s.setItemLayout(l,u),s.getItemGraphicEl(l).setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,i,r,o){var a=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new he});this.group.add(c.group),this.markKeep(c);var h=(function(d,p,f){var g,v,y=["x0","y0","x1","y1"];if(d){var m=K(d&&d.dimensions,function(b){var w=p.getData();return X(X({},w.getDimensionInfo(w.mapDimension(b))||{}),{name:b,ordinalMeta:null})});v=K(y,function(b,w){return{name:b,type:m[w%2].type}}),g=new fn(v,f)}else g=new fn(v=[{name:"value",type:"float"}],f);var x=K(f.get("data"),Ce(r8,p,d,f));d&&(x=Ye(x,Ce(o8,d)));var _=d?function(b,w,S,M){return oo(b.coord[Math.floor(M/2)][M%2],v[M])}:function(b,w,S,M){return oo(b.value,v[M])};return g.initData(x,null,_),g.hasItemOption=!0,g})(a,e,i);i.setData(h),h.each(function(d){var p=K(uC,function(I){return lC(h,d,I,e,o)}),f=a.getAxis("x").scale,g=a.getAxis("y").scale,v=f.getExtent(),y=g.getExtent(),m=[f.parse(h.get("x0",d)),f.parse(h.get("x1",d))],x=[g.parse(h.get("y0",d)),g.parse(h.get("y1",d))];Ft(m),Ft(x);var _=v[0]>m[1]||v[1]<m[0]||y[0]>x[1]||y[1]<x[0];h.setItemLayout(d,{points:p,allClipped:_});var b=h.getItemModel(d),w=b.getModel("itemStyle").getItemStyle(),S=b.get("z2"),M=Uc(l,"color");w.fill||(w.fill=M,te(w.fill)&&(w.fill=tc(w.fill,.4))),w.stroke||(w.stroke=M),h.setItemVisual(d,"style",w),h.setItemVisual(d,"z2",ae(S,0))}),h.diff(yd(c).data).add(function(d){var p=h.getItemLayout(d),f=h.getItemVisual(d,"z2");if(!p.allClipped){var g=new Jt({z2:ae(f,0),shape:{points:p.points}});h.setItemGraphicEl(d,g),c.group.add(g)}}).update(function(d,p){var f=yd(c).data.getItemGraphicEl(p),g=h.getItemLayout(d),v=h.getItemVisual(d,"z2");g.allClipped?f&&c.group.remove(f):(f?Fe(f,{z2:ae(v,0),shape:{points:g.points}},i,d):f=new Jt({shape:{points:g.points}}),h.setItemGraphicEl(d,f),c.group.add(f))}).remove(function(d){var p=yd(c).data.getItemGraphicEl(d);c.group.remove(p)}).execute(),h.eachItemGraphicEl(function(d,p){var f=h.getItemModel(p),g=h.getItemVisual(p,"style");d.useStyle(h.getItemVisual(p,"style")),Et(d,Dt(f),{labelFetcher:i,labelDataIndex:p,defaultText:h.getName(p)||"",inheritColor:te(g.fill)?tc(g.fill,1):H.color.neutral99}),Ct(d,f),at(d,null,null,f.get(["emphasis","disabled"])),me(d).dataModel=i}),yd(c).data=h,c.group.silent=i.get("silent")||e.get("silent")},t.type="markArea",t})(O_),g1=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return G(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,r=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),q(i)&&k(i,function(o,a){te(o)&&(o={type:o}),i[a]=Se(o,(function(s,l){return l==="all"?{type:"all",title:s.getLocaleModel().get(["legend","selector","all"])}:l==="inverse"?{type:"inverse",title:s.getLocaleModel().get(["legend","selector","inverse"])}:void 0})(r,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,r=0;r<e.length;r++){var o=e[r].get("name");if(this.isSelected(o)){this.select(o),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],r=[];e.eachRawSeries(function(l){var u,c=l.name;if(r.push(c),l.legendVisualProvider){var h=l.legendVisualProvider.getAllNames();e.isSeriesFiltered(l)||(r=r.concat(h)),h.length?i=i.concat(h):u=!0}else u=!0;u&&B1(l)&&i.push(l.name)}),this._availableNames=r;var o=this.get("data")||i,a=re(),s=K(o,function(l){return(te(l)||Ve(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new Oe(l,this,this.ecModel))},this);this._data=Ye(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected;this.get("selectedMode")==="single"&&k(this._data,function(r){i[r.get("name")]=!1}),i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;k(e,function(r){i[r.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;k(e,function(r){var o=r.get("name",!0);i.hasOwnProperty(o)||(i[o]=!0),i[o]=!i[o]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&be(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:H.size.m,align:"auto",backgroundColor:H.color.transparent,borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:H.color.disabled,inactiveBorderColor:H.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:H.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:H.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:H.color.tertiary,borderWidth:1,borderColor:H.color.border},emphasis:{selectorLabel:{show:!0,color:H.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(ke),ws=Ce,Yy=k,md=he,oN=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return G(t,n),t.prototype.init=function(){this.group.add(this._contentGroup=new md),this.group.add(this._selectorGroup=new md),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,r){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var a=e.get("align"),s=e.get("orient");a&&a!=="auto"||(a=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);!l||u&&u!=="auto"||(u=s==="horizontal"?"end":"start"),this.renderInner(a,e,i,r,l,s,u);var c=kt(e,r).refContainer,h=e.getBoxLayoutParams(),d=e.get("padding"),p=ot(h,c,d),f=this.layoutInner(e,a,p,o,l,u),g=ot(pe({width:f.width,height:f.height},h),c,d);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ZR(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,r,o,a,s,l){var u=this.getContentGroup(),c=re(),h=i.get("selectedMode"),d=i.get("triggerEvent"),p=[];r.eachRawSeries(function(f){!f.get("legendHoverLink")&&p.push(f.id)}),Yy(i.getData(),function(f,g){var v=this,y=f.get("name");if(!this.newlineDisabled&&(y===""||y===`
60
+ `)){var m=new md;return m.newline=!0,void u.add(m)}var x=r.getSeriesByName(y)[0];if(!c.get(y))if(x){var _=x.getData(),b=_.getVisual("legendLineStyle")||{},w=_.getVisual("legendIcon"),S=_.getVisual("style"),M=this._createItem(x,y,g,f,i,e,b,S,w,h,o);M.on("click",ws(cC,y,null,o,p)).on("mouseover",ws(v1,x.name,null,o,p)).on("mouseout",ws(y1,x.name,null,o,p)),r.ssr&&M.eachChild(function(I){var T=me(I);T.seriesIndex=x.seriesIndex,T.dataIndex=g,T.ssrType="legend"}),d&&M.eachChild(function(I){v.packEventData(I,i,x,g,y)}),c.set(y,!0)}else r.eachRawSeries(function(I){var T=this;if(!c.get(y)&&I.legendVisualProvider){var C=I.legendVisualProvider;if(!C.containName(y))return;var D=C.indexOfName(y),A=C.getItemVisual(D,"style"),L=C.getItemVisual(D,"legendIcon"),P=sn(A.fill);P&&P[3]===0&&(P[3]=.2,A=X(X({},A),{fill:Xn(P,"rgba")}));var E=this._createItem(I,y,g,f,i,e,{},A,L,h,o);E.on("click",ws(cC,null,y,o,p)).on("mouseover",ws(v1,null,y,o,p)).on("mouseout",ws(y1,null,y,o,p)),r.ssr&&E.eachChild(function(O){var N=me(O);N.seriesIndex=I.seriesIndex,N.dataIndex=g,N.ssrType="legend"}),d&&E.eachChild(function(O){T.packEventData(O,i,I,g,y)}),c.set(y,!0)}},this)},this),a&&this._createSelector(a,i,o,s,l)},t.prototype.packEventData=function(e,i,r,o,a){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:o,value:a,seriesIndex:r.seriesIndex};me(e).eventData=s},t.prototype._createSelector=function(e,i,r,o,a){var s=this.getSelectorGroup();Yy(e,function(l){var u=l.type,c=new Be({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c),Et(c,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:l.title}),ro(c)})},t.prototype._createItem=function(e,i,r,o,a,s,l,u,c,h,d){var p=e.visualDrawType,f=a.get("itemWidth"),g=a.get("itemHeight"),v=a.isSelected(i),y=o.get("symbolRotate"),m=o.get("symbolKeepAspect"),x=o.get("icon"),_=(function(P,E,O,N,R,z,B){function V(j,ee){j.lineWidth==="auto"&&(j.lineWidth=ee.lineWidth>0?2:0),Yy(j,function(ue,ye){j[ye]==="inherit"&&(j[ye]=ee[ye])})}var W=E.getModel("itemStyle"),U=W.getItemStyle(),F=P.lastIndexOf("empty",0)===0?"fill":"stroke",Q=W.getShallow("decal");U.decal=Q&&Q!=="inherit"?Js(Q,B):N.decal,U.fill==="inherit"&&(U.fill=N[R]),U.stroke==="inherit"&&(U.stroke=N[F]),U.opacity==="inherit"&&(U.opacity=(R==="fill"?N:O).opacity),V(U,N);var Z=E.getModel("lineStyle"),Y=Z.getLineStyle();if(V(Y,O),U.fill==="auto"&&(U.fill=N.fill),U.stroke==="auto"&&(U.stroke=N.fill),Y.stroke==="auto"&&(Y.stroke=N.fill),!z){var J=E.get("inactiveBorderWidth"),$=U[F];U.lineWidth=J==="auto"?N.lineWidth>0&&$?2:0:U.lineWidth,U.fill=E.get("inactiveColor"),U.stroke=E.get("inactiveBorderColor"),Y.stroke=Z.get("inactiveColor"),Y.lineWidth=Z.get("inactiveWidth")}return{itemStyle:U,lineStyle:Y}})(c=x||c||"roundRect",o,l,u,p,v,d),b=new md,w=o.getModel("textStyle");if(!le(e.getLegendIcon)||x&&x!=="inherit"){var S=x==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add((function(P){var E=P.icon||"roundRect",O=bt(E,0,0,P.itemWidth,P.itemHeight,P.itemStyle.fill,P.symbolKeepAspect);return O.setStyle(P.itemStyle),O.rotation=(P.iconRotate||0)*Math.PI/180,O.setOrigin([P.itemWidth/2,P.itemHeight/2]),E.indexOf("empty")>-1&&(O.style.stroke=O.style.fill,O.style.fill=H.color.neutral00,O.style.lineWidth=2),O})({itemWidth:f,itemHeight:g,icon:c,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}else b.add(e.getLegendIcon({itemWidth:f,itemHeight:g,icon:c,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));var M=s==="left"?f+5:-5,I=s,T=a.get("formatter"),C=i;te(T)&&T?C=T.replace("{name}",i??""):le(T)&&(C=T(i));var D=v?w.getTextColor():o.get("inactiveColor");b.add(new Be({style:Je(w,{text:C,x:M,y:g/2,fill:D,align:I,verticalAlign:"middle"},{inheritColor:D})}));var A=new Ae({shape:b.getBoundingRect(),style:{fill:"transparent"}}),L=o.getModel("tooltip");return L.get("show")&&Ar({el:A,componentModel:a,itemName:i,itemTooltipOption:L.option}),b.add(A),b.eachChild(function(P){P.silent=!0}),A.silent=!h,this.getContentGroup().add(b),ro(b),b.__legendDataIndex=r,b},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();fa(e.get("orient"),l,e.get("itemGap"),r.width,r.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){fa("horizontal",u,e.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],f=e.get("selectorButtonGap",!0),g=e.getOrient().index,v=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?p[g]+=c[v]+f:h[g]+=d[v]+f,p[1-g]+=c[y]/2-d[y]/2,u.x=p[0],u.y=p[1],l.x=h[0],l.y=h[1];var x={x:0,y:0};return x[v]=c[v]+f+d[v],x[y]=Math.max(c[y],d[y]),x[m]=Math.min(0,d[m]+p[1-g]),x}return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(et);function cC(n,t,e,i){y1(n,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:n??t}),v1(n,t,e,i)}function v1(n,t,e,i){e.usingTHL()||e.dispatchAction({type:"highlight",seriesName:n,name:t,excludeSeriesId:i})}function y1(n,t,e,i){e.usingTHL()||e.dispatchAction({type:"downplay",seriesName:n,name:t,excludeSeriesId:i})}function hu(n,t,e){var i=n==="allSelect"||n==="inverseSelect",r={},o=[];e.eachComponent({mainType:"legend",query:t},function(s){i?s[n]():s[n](t.name),hC(s,r),o.push(s.componentIndex)});var a={};return e.eachComponent("legend",function(s){k(r,function(l,u){s[l?"select":"unSelect"](u)}),hC(s,a)}),i?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function hC(n,t){var e=t||{};return k(n.getData(),function(i){var r=i.get("name");if(r!==`
61
+ `&&r!==""){var o=n.isSelected(r);oe(e,r)?e[r]=e[r]&&o:e[r]=o}}),e}var s8=Bc(function(n){var t=n.findComponents({mainType:"legend"});t&&t.length&&n.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})});function aN(n){n.registerComponentModel(g1),n.registerComponentView(oN),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,s8),n.registerSubTypeDefaulter("legend",function(){return"plain"}),(function(t){t.registerAction("legendToggleSelect","legendselectchanged",Ce(hu,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ce(hu,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ce(hu,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ce(hu,"select")),t.registerAction("legendUnSelect","legendunselected",Ce(hu,"unSelect"))})(n)}var l8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,r){var o=Za(e);n.prototype.init.call(this,e,i,r),dC(this,e,o)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),dC(this,this.option,e)},t.type="legend.scroll",t.defaultOption=_o(g1.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:H.color.accent50,pageIconInactiveColor:H.color.accent10,pageIconSize:15,pageTextStyle:{color:H.color.tertiary},animationDurationUpdate:800}),t})(g1);function dC(n,t,e){var i=[1,1];i[n.getOrient().index]=0,qi(t,e,{type:"box",ignoreSize:!!i})}var pC=he,Xy=["width","height"],Zy=["x","y"],u8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return G(t,n),t.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new pC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pC)},t.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,r,o,a,s,l){var u=this;n.prototype.renderInner.call(this,e,i,r,o,a,s,l);var c=this._controllerGroup,h=i.get("pageIconSize",!0),d=q(h)?h:[h,h];f("pagePrev",0);var p=i.getModel("pageTextStyle");function f(g,v){var y=g+"DataIndex",m=yl(i.get("pageIcons",!0)[i.getOrient().name][v],{onclick:ie(u._pageGo,u,y,i,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});m.name=g,c.add(m)}c.add(new Be({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=Xy[u],h=Zy[u],d=Xy[1-u],p=Zy[1-u];a&&fa("horizontal",l,e.get("selectorItemGap",!0));var f=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),v=[-g.x,-g.y],y=se(r);a&&(y[c]=r[c]-g[c]-f);var m=this._layoutContentAndController(e,o,y,u,c,d,p,h);if(a){if(s==="end")v[u]+=m[c]+f;else{var x=g[c]+f;v[u]-=x,m[h]-=x}m[c]+=g[c]+f,v[1-u]+=m[p]+m[d]/2-g[d]/2,m[d]=Math.max(m[d],g[d]),m[p]=Math.min(m[p],g[p]+v[1-u]),l.x=v[0],l.y=v[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,r,o,a,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;fa(e.get("orient"),c,e.get("itemGap"),o?r.width:null,o?null:r.height),fa("horizontal",d,e.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[a]>r[a],v=[-p.x,-p.y];i||(v[o]=c[u]);var y=[0,0],m=[-f.x,-f.y],x=ae(e.get("pageButtonGap",!0),e.get("itemGap",!0));g&&(e.get("pageButtonPosition",!0)==="end"?m[o]+=r[a]-f[a]:y[o]+=f[a]+x),m[1-o]+=p[s]/2-f[s]/2,c.setPosition(v),h.setPosition(y),d.setPosition(m);var _={x:0,y:0};if(_[a]=g?r[a]:p[a],_[s]=Math.max(p[s],f[s]),_[l]=Math.min(0,f[l]+m[1-o]),h.__rectSize=r[a],g){var b={x:0,y:0};b[a]=Math.max(r[a]-f[a]-x,0),b[s]=_[s],h.setClipPath(new Ae({shape:b})),h.__rectSize=b[a]}else d.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Fe(c,{x:w.contentPosition[0],y:w.contentPosition[1]},g?e:null),this._updatePageInfoView(e,w),_},t.prototype._pageGo=function(e,i,r){var o=this._getPageInfo(i)[e];o!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var r=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var h=i[c+"DataIndex"]!=null,d=r.childOfName(c);d&&(d.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var o=r.childOfName("pageText"),a=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;o&&a&&o.setStyle("text",te(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=e.getOrient().index,s=Xy[a],l=Zy[a],u=this._findTargetItemIndex(i),c=r.children(),h=c[u],d=c.length,p=d?1:0,f={contentPosition:[r.x,r.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var g=_(h);f.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,x=null;v<=d;++v)(!(x=_(c[v]))&&m.e>y.s+o||x&&!b(x,y.s))&&(y=m.i>y.i?m:x)&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=y.i),++f.pageCount),m=x;for(v=u-1,y=g,m=g,x=null;v>=-1;--v)(x=_(c[v]))&&b(m,x.s)||!(y.i<m.i)||(m=y,f.pagePrevDataIndex==null&&(f.pagePrevDataIndex=y.i),++f.pageCount,++f.pageIndex),y=x;return f;function _(w){if(w){var S=w.getBoundingRect(),M=S[l]+w[l];return{s:M,e:M+S[s],i:w.__legendDataIndex}}}function b(w,S){return w.e>=S&&w.s<=S+o}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(o,a){var s=o.__legendDataIndex;r==null&&s!=null&&(r=a),s===e&&(i=a)}),i??r):0;var i,r},t.type="legend.scroll",t})(oN);function c8(n){Te(aN),n.registerComponentModel(l8),n.registerComponentView(u8),(function(t){t.registerAction("legendScroll","legendscroll",function(e,i){var r=e.scrollDataIndex;r!=null&&i.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(r)})})})(n)}var h8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="dataZoom.inside",t.defaultOption=_o(Pc.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(Pc),m1=Me();function sN(n,t){if(t){n.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function d8(n,t){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function p8(n,t,e,i){return n.coordinateSystem.containPoint([e,i])}function f8(n){n.registerUpdateLifecycle("coordsys:aftercreate",function(t,e){var i=m1(e),r=i.coordSysRecordMap||(i.coordSysRecordMap=re());r.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){k(HR(o).infoList,function(a){var s=a.model.uid,l=r.get(s)||r.set(s,(function(u,c){var h={model:c,containsPoint:Ce(p8,c),dispatchAction:Ce(d8,u),dataZoomInfoMap:null,controller:null},d=h.controller=new Ka(u.getZr());return k(["pan","zoom","scrollMove"],function(p){d.on(p,function(f){var g=[];h.dataZoomInfoMap.each(function(v){if(f.isAvailableBehavior(v.model.option)){var y=(v.getRange||{})[p],m=y&&y(v.dzReferCoordSysInfo,h.model.mainType,h.controller,f);!v.model.get("disabled",!0)&&m&&g.push({dataZoomId:v.model.id,start:m[0],end:m[1]})}}),g.length&&h.dispatchAction(g)})}),h})(e,a.model));(l.dataZoomInfoMap||(l.dataZoomInfoMap=re())).set(o.uid,{dzReferCoordSysInfo:a,model:o,getRange:null})})}),r.each(function(o){var a,s=o.controller,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(a=l.get(u))}if(a){var c=(function(h,d,p){var f,g,v,y="type_",m={type_true:2,type_move:1,type_false:0,type_undefined:-1},x=!0;return h.each(function(_){var b=_.model,w=!b.get("disabled",!0)&&(!b.get("zoomLock",!0)||"move");m[y+w]>m[y+f]&&(f=w),x=x&&b.get("preventDefaultMouseMove",!0),g=ae(b.get("cursorGrab",!0),g),v=ae(b.get("cursorGrabbing",!0),v)}),{controlType:f,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!x,api:p,zInfo:{component:d.model},triggerInfo:{roamTrigger:null,isInSelf:d.containsPoint},cursorGrab:g,cursorGrabbing:v}}})(l,o,e);s.enable(c.controlType,c.opt),bl(o,"dispatchAction",a.model.get("throttle",!0),"fixRate")}else sN(r,o)})})}var g8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return G(t,n),t.prototype.render=function(e,i,r){n.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),(function(o,a,s){m1(o).coordSysRecordMap.each(function(l){var u=l.dataZoomInfoMap.get(a.uid);u&&(u.getRange=s)})})(r,e,{pan:ie(qy.pan,this),zoom:ie(qy.zoom,this),scrollMove:ie(qy.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){(function(e,i){for(var r=m1(e).coordSysRecordMap,o=r.keys(),a=0;a<o.length;a++){var s=o[a],l=r.get(s),u=l.dataZoomInfoMap;if(u){var c=i.uid;u.get(c)&&(u.removeKey(c),u.keys().length||sN(r,l))}}})(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(k_),qy={zoom:function(n,t,e,i){var r=this.range,o=r.slice(),a=n.axisModels[0];if(a){var s=jy[t](null,[i.originX,i.originY],a,e,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return go(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:fC(function(n,t,e,i,r,o){var a=jy[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,e);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:fC(function(n,t,e,i,r,o){return jy[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,e).signal*(n[1]-n[0])*o.scrollDelta})};function fC(n){return function(t,e,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s)return go(n(a,s,t,e,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var jy={grid:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem.getRect();return n=n||[0,0],o.dim==="x"?(a.pixel=t[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(a.pixel=t[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(n,t,e,i,r){var o=e.axis,a=r.model.coordinateSystem.getRect(),s={};return n=n||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function gC(n){L_(n),n.registerComponentModel(h8),n.registerComponentView(g8),f8(n)}var v8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=_o(Pc.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:H.color.accent10,borderRadius:0,backgroundColor:H.color.transparent,dataBackground:{lineStyle:{color:H.color.accent30,width:.5},areaStyle:{color:H.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:H.color.accent40,width:.5},areaStyle:{color:H.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:H.color.neutral00,borderColor:H.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:H.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:H.color.tertiary},brushSelect:!0,brushStyle:{color:H.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:H.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t})(Pc),du=Ae,pu="horizontal",vC="vertical",y8=["line","bar","candlestick","scatter"],m8={easing:"cubicOut",duration:100,delay:0},x8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return G(t,n),t.prototype.init=function(e,i){this.api=i,this._onBrush=ie(this._onBrush,this),this._onBrushEnd=ie(this._onBrushEnd,this)},t.prototype.render=function(e,i,r,o){if(n.prototype.render.apply(this,arguments),bl(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")!==!1){if(e.noTarget())return this._clear(),void this.group.removeAll();o&&o.type==="dataZoom"&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){fc(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new he;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,r=e.get("brushSelect")?7:0,o=kt(e,i).refContainer,a=this._findCoordRect(),s=e.get("defaultLocationEdgeGap",!0)||0,l=this._orient===pu?{right:o.width-a.x-a.width,top:o.height-30-s-r,width:a.width,height:30}:{right:s,top:a.y,width:30,height:a.height},u=Za(e.option);k(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=ot(u,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===vC&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,r=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(r!==pu||a?r===pu&&a?{scaleY:l?1:-1,scaleX:-1}:r!==vC||a?{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?1:-1,scaleX:1});var u=e.getBoundingRect([s]),c=isNaN(u.x)?0:u.x,h=isNaN(u.y)?0:u.y;e.x=i.x-c,e.y=i.y-h,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,r=this._displayables.sliderGroup,o=e.get("brushSelect");r.add(new du({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new du({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:ie(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),r.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var i=this._size,r=this._shadowSize||[],o=e.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():e.otherDim;if(l!=null){var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==r[0]||i[1]!==r[1]){var h=a.getDataExtent(e.thisDim),d=a.getDataExtent(l),p=.3*(d[1]-d[0]);d=[d[0]-p,d[1]+p];var f,g=[0,i[1]],v=[0,i[0]],y=[[i[0],0],[0,0]],m=[],x=v[1]/Math.max(1,a.count()-1),_=i[0]/(h[1]-h[0]),b=e.thisAxis.type==="time",w=-x,S=Math.round(a.count()/i[0]);a.each([e.thisDim,l],function(D,A,L){if(S>0&&L%S)b||(w+=x);else{w=b?(+D-h[0])*_:w+x;var P=A==null||isNaN(A)||A==="",E=P?0:He(A,d,g,!0);P&&!f&&L?(y.push([y[y.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&f&&(y.push([w,0]),m.push([w,0])),P||(y.push([w,E]),m.push([w,E])),f=P}}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=m}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];for(var M=this.dataZoomModel,I=0;I<3;I++){var T=C(I===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}}}function C(D){var A=M.getModel(D?"selectedDataBackground":"dataBackground"),L=new he,P=new Jt({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new Wt({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return L.add(P),L.add(E),L}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var r,o=this.ecModel;return e.eachTargetAxis(function(a,s){k(e.getAxisProxy(a,s).getTargetSeriesModels(),function(l){if(!(r||i!==!0&&be(y8,l.get("type"))<0)){var u,c=o.getComponent(Qr(a),s).axis,h=(function(f){var g={x:"y",y:"x",radius:"angle",angle:"radius"};return g[f]})(a),d=l.coordinateSystem;h!=null&&d.getOtherAxis&&(u=d.getOtherAxis(c).inverse),h=l.getData().mapDimension(h);var p=l.getData().mapDimension(a);r={thisAxis:c,series:l,thisDim:p,otherDim:h,otherAxisInverse:u}}},this)},this),r}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,r=i.handles=[null,null],o=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),d=i.filler=new du({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(d),a.add(new du({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:H.color.transparent}})),k([0,1],function(x){var _=l.get("handleIcon");!Sp[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var b,w=bt(_,-1,0,2,2,null,!0);w.attr({cursor:(b=this._orient,b==="vertical"?"ns-resize":"ew-resize"),draggable:!0,drift:ie(this._onDragMove,this,x),ondragend:ie(this._onDragEnd,this),onmouseover:ie(this._onOverDataInfoTriggerArea,this,!0),onmouseout:ie(this._onOverDataInfoTriggerArea,this,!1),z2:5});var S=w.getBoundingRect(),M=l.get("handleSize");this._handleHeight=ne(M,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ro(w);var I=l.get("handleColor");I!=null&&(w.style.fill=I),a.add(r[x]=w);var T=l.getModel("textStyle"),C=(l.get("handleLabel")||{}).show||!1;e.add(o[x]=new Be({silent:!0,invisible:!C,style:Je(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var p=d;if(h){var f=ne(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new Ae({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:f}}),v=.8*f,y=i.moveHandleIcon=bt(l.get("moveHandleIcon"),-v/2,-v/2,v,v,H.color.neutral00,!0);y.silent=!0,y.y=s[1]+f/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(f,10));(p=i.moveZone=new Ae({invisible:!0,shape:{y:s[1]-m,height:f+m}})).on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(y),a.add(p)}p.attr({draggable:!0,cursor:"grab",drift:ie(this._onActualMoveZoneDrift,this),ondragstart:ie(this._onActualMoveZoneDragStart,this),ondragend:ie(this._onActualMoveZoneDragEnd,this),onmouseover:ie(this._onOverDataInfoTriggerArea,this,!0),onmouseout:ie(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[He(e[0],[0,100],i,!0),He(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var r=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=r.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];go(i,o,a,r.get("zoomLock")?"all":e,s.minSpan!=null?He(s.minSpan,l,a,!0):null,s.maxSpan!=null?He(s.maxSpan,l,a,!0):null);var u=this._range,c=this._range=Ft([He(o[0],a,l,!0),He(o[1],a,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(e){var i=this._displayables,r=this._handleEnds,o=Ft(r.slice()),a=this._size;k([0,1],function(p){var f=i.handles[p],g=this._handleHeight;f.attr({scaleX:g/2,scaleY:g/2,x:r[p]+(p?-1:1),y:a[1]/2-g/2})},this),i.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,o[0],o[1],a[0]],c=0;c<l.length;c++){var h=l[c],d=h.getClipPath();d||(d=new Ae,h.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:a[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,r=this._displayables,o=r.handleLabels,a=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var c,h=this._range;if(e){var d={start:h[0],end:h[1]},p=UR(i,l);if(p){var f=p.calculateDataWindow(d).percentInverted;d={start:f[0],end:f[1]}}c=l.calculateDataWindow(d)}else c=l.getWindow();s=[yC(i,0,c,u),yC(i,1,c,u)]}}var g=Ft(this._handleEnds.slice());function v(y){var m=pa(r.handles[y].parent,this.group),x=Ef(y===0?"right":"left",m),_=this._handleWidth/2+5,b=li([g[y]+(y===0?-_:_),this._size[1]/2],m);o[y].setStyle({x:b[0],y:b[1],verticalAlign:a===pu?"middle":x,align:a===pu?x:"center",text:s[y]})}v.call(this,0),v.call(this,1)},t.prototype._onOverDataInfoTriggerArea=function(e){this._isOverDataInfoTriggerArea=e,this._showDataInfo(e)},t.prototype._showDataInfo=function(e){var i=(this.dataZoomModel.get("handleLabel")||{}).show||!1,r=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,o=e||this._dragging?r:i,a=this._displayables,s=a.handleLabels;s[0].attr("invisible",!o),s[1].attr("invisible",!o),a.moveHandle&&this.api[o?"enterEmphasis":"leaveEmphasis"](a.moveHandle,1)},t.prototype._onActualMoveZoneDrift=function(e,i,r){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",e,i,r)},t.prototype._onActualMoveZoneDragStart=function(e){e.target.attr("cursor","grabbing"),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(e){e.target.attr("cursor","grab"),this._onDragEnd()},t.prototype._onDragMove=function(e,i,r,o){this._dragging=!0,xr(o.event);var a=li([i,r],this._displayables.sliderGroup.getLocalTransform(),!0),s=this._updateInterval(e,a[0]),l=this.dataZoomModel.get("realtime");this._updateView(!l),s&&l&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,r=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(r[0]<0||r[0]>i[0]||r[1]<0||r[1]>i[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",r[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,r=e.offsetY;this._brushStart=new ge(i,r),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,i){i.attr("ignore",!0);var r=i.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(r.width)<5)){var o=this._getViewExtent(),a=[0,100],s=this._handleEnds=[r.x,r.x+r.width],l=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();go(0,s,o,0,l.minSpan!=null?He(l.minSpan,a,o,!0):null,l.maxSpan!=null?He(l.maxSpan,a,o,!0):null),this._range=Ft([He(s[0],o,a,!0),He(s[1],o,a,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(xr(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var r=this._displayables,o=this.dataZoomModel,a=r.brushRect;a||(a=r.brushRect=new du({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,i),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),a.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?m8:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=HR(this.dataZoomModel).infoList;if(!e&&i.length){var r=i[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var o=this.api.getWidth(),a=this.api.getHeight();e={x:.2*o,y:.2*a,width:.6*o,height:.6*a}}return e},t.type="dataZoom.slider",t})(k_);function yC(n,t,e,i){var r=n.get("labelFormatter"),o=n.get("labelPrecision");o!=null&&o!=="auto"||(o=e.valuePrecision);var a=e.value[t],s=a==null||isNaN(a)?"":ln(i)||Yc(i)?i.getLabel({value:Math.round(a)}):isFinite(o)?Ge(a,o,!0):a+"";return le(r)?r(a,s):te(r)?r.replace("{value}",s):s}function mC(n){n.registerComponentModel(v8),n.registerComponentView(x8),L_(n)}var lN=function(n,t,e){var i=se((_8[n]||{})[t]);return e&&q(i)?i[i.length-1]:i},_8={color:{active:["#006edd","#e0ffff"],inactive:[H.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},xC=Nt.mapVisual,b8=Nt.eachVisual,w8=q,Ky=k,S8=Ft,M8=He,gf=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return G(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r)},t.prototype.optionUpdated=function(e,i){var r=this.option;!i&&eN(r,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var i=this.stateList;e=ie(e,this),this.controllerVisuals=d1(this.option.controller,i,e),this.targetVisuals=d1(this.option.target,i,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,i=this.option.seriesTargets;if(i){var r=[];return Ky(i,function(s){if(s.seriesIndex!=null)r.push(s.seriesIndex);else if(s.seriesId!=null){var l;e.ecModel.eachSeries(function(u){u.id===s.seriesId&&(l=u)}),l&&r.push(l.componentIndex)}}),r}var o=this.option.seriesId,a=this.option.seriesIndex;return a==null&&o==null&&(a="all"),K(hl(this.ecModel,"series",{index:a,id:o},{useDefault:!1,enableAll:!0,enableNone:!1}).models,function(s){return s.componentIndex})},t.prototype.eachTargetSeries=function(e,i){k(this.getTargetSeriesIndices(),function(r){var o=this.ecModel.getSeriesByIndex(r);o&&e.call(i,o)},this)},t.prototype.isTargetSeries=function(e){var i=!1;return this.eachTargetSeries(function(r){r===e&&(i=!0)}),i},t.prototype.formatValueText=function(e,i,r){var o,a=this.option,s=a.precision,l=this.dataBound,u=a.formatter;r=r||["<",">"],q(e)&&(e=e.slice(),o=!0);var c=i?e:o?[h(e[0]),h(e[1])]:h(e);return te(u)?u.replace("{value}",o?c[0]:c).replace("{value2}",o?c[1]:c):le(u)?o?u(e[0],e[1]):u(e):o?e[0]===l[0]?r[0]+" "+c[1]:e[1]===l[1]?r[1]+" "+c[0]:c[0]+" - "+c[1]:c;function h(d){return d===l[0]?"min":d===l[1]?"max":(+d).toFixed(Math.min(s,20))}},t.prototype.resetExtent=function(){var e=this.option,i=S8([e.min,e.max]);this._dataExtent=i},t.prototype.getDimension=function(e){var i=this,r=this.option.seriesTargets;if(r){var o=Tr(r,function(a){return a.seriesIndex!=null&&a.seriesIndex===e||a.seriesId!=null&&a.seriesId===i.ecModel.getSeriesByIndex(e).id});if(o)return o.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var i=e.hostModel.seriesIndex,r=this.getDimension(i);if(r!=null)return e.getDimensionIndex(r);for(var o=e.dimensions,a=o.length-1;a>=0;a--){var s=o[a],l=e.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,i=this.option,r={inRange:i.inRange,outOfRange:i.outOfRange},o=i.target||(i.target={}),a=i.controller||(i.controller={});Se(o,r),Se(a,r);var s=this.isCategory();function l(u){w8(i.color)&&!u.inRange&&(u.inRange={color:i.color.slice().reverse()}),u.inRange=u.inRange||{color:e.get("gradientColor")}}l.call(this,o),l.call(this,a),function(u,c,h){var d=u[c],p=u[h];d&&!p&&(p=u[h]={},Ky(d,function(f,g){if(Nt.isValidType(g)){var v=lN(g,"inactive",s);v!=null&&(p[g]=v,g!=="color"||p.hasOwnProperty("opacity")||p.hasOwnProperty("colorAlpha")||(p.opacity=[0,0]))}}))}.call(this,o,"inRange","outOfRange"),function(u){var c=(u.inRange||{}).symbol||(u.outOfRange||{}).symbol,h=(u.inRange||{}).symbolSize||(u.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol()||"roundRect";Ky(this.stateList,function(f){var g=this.itemSize,v=u[f];v||(v=u[f]={color:s?d:[d]}),v.symbol==null&&(v.symbol=c&&se(c)||(s?p:[p])),v.symbolSize==null&&(v.symbolSize=h&&se(h)||(s?g[0]:[g[0],g[0]])),v.symbol=xC(v.symbol,function(x){return x==="none"?p:x});var y=v.symbolSize;if(y!=null){var m=-1/0;b8(y,function(x){x>m&&(m=x)}),v.symbolSize=xC(y,function(x){return M8(x,[0,m],[0,g[0]],!0)})}},this)}.call(this,a)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:H.color.transparent,borderColor:H.color.borderTint,contentColor:H.color.theme[0],inactiveColor:H.color.disabled,borderWidth:0,padding:H.size.m,textGap:10,precision:0,textStyle:{color:H.color.secondary}},t})(ke),_C=[20,140],I8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.optionUpdated=function(e,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=_C[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=_C[1])},t.prototype._resetRange=function(){var e=this.getExtent(),i=this.option.range;!i||i.auto?(e.auto=1,this.option.range=e):q(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],e[0]),i[1]=Math.min(i[1],e[1]))},t.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),k(this.stateList,function(e){var i=this.option.controller[e].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),i=Ft((this.get("range")||[]).slice());return i[0]>e[1]&&(i[0]=e[1]),i[1]>e[1]&&(i[1]=e[1]),i[0]<e[0]&&(i[0]=e[0]),i[1]<e[0]&&(i[1]=e[0]),i},t.prototype.getValueState=function(e){var i=this.option.range,r=this.getExtent(),o=ae(this.option.unboundedRange,!0);return(o&&i[0]<=r[0]||i[0]<=e)&&(o&&i[1]>=r[1]||e<=i[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[];return this.eachTargetSeries(function(r){var o=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(s,l){e[0]<=s&&s<=e[1]&&o.push(l)},this),i.push({seriesId:r.id,dataIndex:o})},this),i},t.prototype.getVisualMeta=function(e){var i=bC(this,"outOfRange",this.getExtent()),r=bC(this,"inRange",this.option.range.slice()),o=[];function a(p,f){o.push({value:p,color:e(p,f)})}for(var s=0,l=0,u=r.length,c=i.length;l<c&&(!r.length||i[l]<=r[0]);l++)i[l]<r[s]&&a(i[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&o.length&&a(r[s],"outOfRange"),a(r[s],"inRange");for(h=1;l<c;l++)(!r.length||r[r.length-1]<i[l])&&(h&&(o.length&&a(o[o.length-1].value,"outOfRange"),h=0),a(i[l],"outOfRange"));var d=o.length;return{stops:o,outerColors:[d?o[0].color:"transparent",d?o[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=_o(gf.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:H.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:H.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:H.color.shadow}}),t})(gf);function bC(n,t,e){if(e[0]===e[1])return e.slice();for(var i=(e[1]-e[0])/200,r=e[0],o=[],a=0;a<=200&&r<e[1];a++)o.push(r),r+=i;return o.push(e[1]),o}var uN=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return G(t,n),t.prototype.init=function(e,i){this.ecModel=e,this.api=i},t.prototype.render=function(e,i,r,o){this.visualMapModel=e,e.get("show")!==!1?this.doRender(e,i,r,o):this.group.removeAll()},t.prototype.renderBackground=function(e){var i=this.visualMapModel,r=xl(i.get("padding")||0),o=e.getBoundingRect();e.add(new Ae({z2:-1,silent:!0,shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[3]+r[1],height:o.height+r[0]+r[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,i,r){var o=(r=r||{}).forceState,a=this.visualMapModel,s={};if(i==="color"){var l=a.get("contentColor");s.color=l}function u(d){return s[d]}function c(d,p){s[d]=p}var h=a.controllerVisuals[o||a.getValueState(e)];return k(Nt.prepareVisualTypes(h),function(d){var p=h[d];r.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",p=h.__alphaForOpacity),Nt.dependsOn(d,i)&&p&&p.applyVisual(e,u,c)}),s[i]},t.prototype.positionGroup=function(e){var i=this.visualMapModel,r=kt(i,this.api).refContainer;Vf(e,i.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,i,r,o){},t.type="visualMap",t})(et),wC=[["left","right","width"],["top","bottom","height"]];function cN(n,t,e){var i=n.option,r=i.align;if(r!=null&&r!=="auto")return r;for(var o={width:t.getWidth(),height:t.getHeight()},a=i.orient==="horizontal"?1:0,s=wC[a],l=[0,null,10],u={},c=0;c<3;c++)u[wC[1-a][c]]=l[c],u[s[c]]=c===2?e[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],d=ot(u,o,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function Zd(n,t){return k(n||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),n}var _i=He,T8=k,SC=Math.min,$y=Math.max,C8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return G(t,n),t.prototype.init=function(e,i){n.prototype.init.call(this,e,i),this._hoverLinkFromSeriesMouseOver=ie(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ie(this._hideIndicator,this)},t.prototype.doRender=function(e,i,r,o){o&&o.type==="selectDataRange"&&o.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,i=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(i);var r=e.get("text");this._renderEndsText(i,r,0),this._renderEndsText(i,r,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},t.prototype._renderEndsText=function(e,i,r){if(i){var o=i[1-r];o=o!=null?o+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,r===0?-s:l[1]+s],u),h=this._applyTransform(r===0?"bottom":"top",u),d=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new Be({style:Je(p,{x:c[0],y:c[1],verticalAlign:p.get("verticalAlign")||(d==="horizontal"?"middle":h),align:p.get("align")||(d==="horizontal"?h:"center"),text:o})}))}},t.prototype._renderBar=function(e){var i=this.visualMapModel,r=this._shapes,o=i.itemSize,a=this._orient,s=this._useHandle,l=cN(i,this.api,o),u=r.mainGroup=this._createBarGroup(l),c=new he;u.add(c),c.add(r.outOfRange=MC()),c.add(r.inRange=MC(null,s?TC(this._orient):null,ie(this._dragHandle,this,"all",!1),ie(this._dragHandle,this,"all",!0))),c.setClipPath(new Ae({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var h=i.textStyleModel.getTextRect("\u56FD"),d=$y(h.width,h.height);s&&(r.handleThumbs=[],r.handleLabels=[],r.handleLabelPoints=[],this._createHandle(i,u,0,o,d,a),this._createHandle(i,u,1,o,d,a)),this._createIndicator(i,u,o,d,a),e.add(u)},t.prototype._createHandle=function(e,i,r,o,a,s){var l=ie(this._dragHandle,this,r,!1),u=ie(this._dragHandle,this,r,!0),c=Ui(e.get("handleSize"),o[0]),h=bt(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=TC(this._orient);h.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){xr(y.event)}}),h.x=o[0]/2,h.useStyle(e.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),ia(h,!0),i.add(h);var p=this.visualMapModel.textStyleModel,f=new Be({cursor:d,draggable:!0,drift:l,onmousemove:function(y){xr(y.event)},ondragend:u,style:Je(p,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var g=[c,0],v=this._shapes;v.handleThumbs[r]=h,v.handleLabelPoints[r]=g,v.handleLabels[r]=f},t.prototype._createIndicator=function(e,i,r,o,a){var s=Ui(e.get("indicatorSize"),r[0]),l=bt(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:r[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof zt){var c=l.style;l.useStyle(X({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);i.add(l);var h=this.visualMapModel.textStyleModel,d=new Be({silent:!0,invisible:!0,style:Je(h,{x:0,y:0,text:""})});this.group.add(d);var p=[(a==="horizontal"?o/2:6)+r[0]/2,0],f=this._shapes;f.indicator=l,f.indicatorLabel=d,f.indicatorLabelPoint=p,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,i,r,o){if(this._useHandle){if(this._dragging=!i,!i){var a=this._applyTransform([r,o],this._shapes.mainGroup,!0);this._updateInterval(e,a[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():IC(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,i=this._dataInterval=e.getSelected(),r=e.getExtent(),o=[0,e.itemSize[1]];this._handleEnds=[_i(i[0],r,o,!0),_i(i[1],r,o,!0)]},t.prototype._updateInterval=function(e,i){i=i||0;var r=this.visualMapModel,o=this._handleEnds,a=[0,r.itemSize[1]];go(i,o,a,e,0);var s=r.getExtent();this._dataInterval=[_i(o[0],a,s,!0),_i(o[1],a,s,!0)]},t.prototype._updateView=function(e){var i=this.visualMapModel,r=i.getExtent(),o=this._shapes,a=[0,i.itemSize[1]],s=e?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,r,s,"inRange"),u=this._createBarVisual(r,r,a,"outOfRange");o.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),o.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,i,r,o){var a={forceState:o,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,a),l=[this.getControllerVisual(e[0],"symbolSize",a),this.getControllerVisual(e[1],"symbolSize",a)],u=this._createBarPoints(r,l);return{barColor:new Ua(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,i){var r=[],o=(e[1]-e[0])/100;r.push({color:this.getControllerVisual(e[0],"color",i),offset:0});for(var a=1;a<100;a++){var s=e[0]+o*a;if(s>e[1])break;r.push({color:this.getControllerVisual(s,"color",i),offset:a/100})}return r.push({color:this.getControllerVisual(e[1],"color",i),offset:1}),r},t.prototype._createBarPoints=function(e,i){var r=this.visualMapModel.itemSize;return[[r[0]-i[0],e[0]],[r[0],e[0]],[r[0],e[1]],[r[0]-i[1],e[1]]]},t.prototype._createBarGroup=function(e){var i=this._orient,r=this.visualMapModel.get("inverse");return new he(i!=="horizontal"||r?i==="horizontal"&&r?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:i!=="vertical"||r?{scaleX:e==="left"?1:-1}:{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,i){if(this._useHandle){var r=this._shapes,o=this.visualMapModel,a=r.handleThumbs,s=r.handleLabels,l=o.itemSize,u=o.getExtent(),c=this._applyTransform("left",r.mainGroup);T8([0,1],function(h){var d=a[h];d.setStyle("fill",i.handlesColor[h]),d.y=e[h];var p=_i(e[h],[0,l[1]],u,!0),f=this.getControllerVisual(p,"symbolSize");d.scaleX=d.scaleY=f/l[0],d.x=l[0]-f/2;var g=li(r.handleLabelPoints[h],pa(d,this.group));if(this._orient==="horizontal"){var v=c==="left"||c==="top"?(l[0]-f)/2:(l[0]-f)/-2;g[1]+=v}s[h].setStyle({x:g[0],y:g[1],text:o.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",r.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,i,r,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var d=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(e,"symbolSize"),f=_i(e,s,u,!0),g=l[0]-p/2,v={x:h.x,y:h.y};h.y=f,h.x=g;var y=li(c.indicatorLabelPoint,pa(h,this.group)),m=c.indicatorLabel;m.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),_=this._orient==="horizontal";m.setStyle({text:(r||"")+a.formatValueText(i),verticalAlign:_?x:"middle",align:_?"center":x});var b={x:g,y:f,style:{fill:d}},w={style:{x:y[0],y:y[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};h.x=v.x,h.y=v.y,h.animateTo(b,S),m.animateTo(w,S)}else h.attr(b),m.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var I=0;I<M.length;I++)this.api.enterBlur(M[I])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(i){if(e._hovering=!0,!e._dragging){var r=e.visualMapModel.itemSize,o=e._applyTransform([i.offsetX,i.offsetY],e._shapes.mainGroup,!0,!0);o[1]=SC($y(0,o[1]),r[1]),e._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=r[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,i){var r=this.visualMapModel,o=r.itemSize;if(r.option.hoverLink){var a=[0,o[1]],s=r.getExtent();e=SC($y(a[0],e),a[1]);var l=(function(g,v,y){var m=6,x=g.get("hoverLinkDataSize");return x&&(m=_i(x,v,y,!0)/2),m})(r,s,a),u=[e-l,e+l],c=_i(e,a,s,!0),h=[_i(u[0],a,s,!0),_i(u[1],a,s,!0)];u[0]<a[0]&&(h[0]=-1/0),u[1]>a[1]&&(h[1]=1/0),i&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var d=this._hoverLinkDataIndices,p=[];(i||IC(r))&&(p=this._hoverLinkDataIndices=r.findTargetDataIndices(h));var f=(function(g,v){var y={},m={};return x(g||[],y),x(v||[],m,y),[_(y),_(m)];function x(b,w,S){for(var M=0,I=b.length;M<I;M++){var T=Tt(b[M].seriesId,null);if(T==null)return;for(var C=$e(b[M].dataIndex),D=S&&S[T],A=0,L=C.length;A<L;A++){var P=C[A];D&&D[P]?D[P]=null:(w[T]||(w[T]={}))[P]=1}}}function _(b,w){var S=[];for(var M in b)if(b.hasOwnProperty(M)&&b[M]!=null)if(w)S.push(+M);else{var I=_(b[M],!0);I.length&&S.push({seriesId:M,dataIndex:I})}return S}})(d,p);this._dispatchHighDown("downplay",Zd(f[0],r)),this._dispatchHighDown("highlight",Zd(f[1],r))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var i;if(oa(e.target,function(l){var u=me(l);if(u.dataIndex!=null)return i=u,!0},!0),i){var r=this.ecModel.getSeriesByIndex(i.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(r)){var a=r.getData(i.dataType),s=a.getStore().get(o.getDataDimensionIndex(a),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var r=0;r<i.length;r++)this.api.leaveBlur(i[r])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Zd(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,i,r,o){var a=pa(i,o?null:this.group);return q(e)?li(e,a,r):Ef(e,a,r)},t.prototype._dispatchHighDown=function(e,i){i&&i.length&&this.api.dispatchAction({type:e,batch:i})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(uN);function MC(n,t,e,i){return new Jt({shape:{points:n},draggable:!!e,cursor:t,drift:e,onmousemove:function(r){xr(r.event)},ondragend:i})}function IC(n){var t=n.get("hoverLinkOnHandle");return!!(t??n.get("realtime"))}function TC(n){return n==="vertical"?"ns-resize":"ew-resize"}var D8={type:"selectDataRange",event:"dataRangeSelected",update:"update"},A8=function(n,t){t.eachComponent({mainType:"visualMap",query:n},function(e){e.setSelected(n.selected)})},k8=[{createOnAllSeries:!0,reset:function(n,t){var e=[];return t.eachComponent("visualMap",function(i){var r,o,a,s,l,u=n.pipelineContext;!i.isTargetSeries(n)||u&&u.large||e.push((r=i.stateList,o=i.targetVisuals,a=ie(i.getValueState,i),s=i.getDataDimensionIndex(n.getData()),l={},k(r,function(c){var h=Nt.prepareVisualTypes(o[c]);l[c]=h}),{progress:function(c,h){var d,p;function f(I){return Sx(h,p,I)}function g(I,T){oL(h,p,I,T)}s!=null&&(d=h.getDimensionIndex(s));for(var v=h.getStore();(p=c.next())!=null;){var y=h.getRawDataItem(p);if(!y||y.visualMap!==!1)for(var m=s!=null?v.get(d,p):p,x=a(m),_=o[x],b=l[x],w=0,S=b.length;w<S;w++){var M=b[w];_[M]&&_[M].applyVisual(m,f,g)}}}}))}),e}},{createOnAllSeries:!0,reset:function(n,t){var e=n.getData(),i=[];t.eachComponent("visualMap",function(r){if(r.isTargetSeries(n)){var o=r.getVisualMeta(ie(L8,null,n,r))||{stops:[],outerColors:[]},a=r.getDataDimensionIndex(e);a>=0&&(o.dimension=a,i.push(o))}}),n.getData().setVisual("visualMeta",i)}}];function L8(n,t,e,i){for(var r=t.targetVisuals[i],o=Nt.prepareVisualTypes(r),a={color:Uc(n.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(e,h,d)}return a.color;function h(p){return a[p]}function d(p,f){a[p]=f}}var CC=k;function P8(n){var t=n&&n.visualMap;q(t)||(t=t?[t]:[]),CC(t,function(e){if(e){Ss(e,"splitList")&&!Ss(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var i=e.pieces;i&&q(i)&&CC(i,function(r){fe(r)&&(Ss(r,"start")&&!Ss(r,"min")&&(r.min=r.start),Ss(r,"end")&&!Ss(r,"max")&&(r.max=r.end))})}})}function Ss(n,t){return n&&n.hasOwnProperty&&n.hasOwnProperty(t)}var DC=!1;function hN(n){DC||(DC=!0,n.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),n.registerAction(D8,A8),k(k8,function(t){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,t)}),n.registerPreprocessor(P8))}function AC(n){n.registerComponentModel(I8),n.registerComponentView(C8),hN(n)}var O8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return G(t,n),t.prototype.optionUpdated=function(e,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],R8[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var o=this.option.categories;this.resetVisual(function(a,s){r==="categories"?(a.mappingMethod="category",a.categories=se(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=K(this._pieceList,function(l){return l=se(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,i={},r=Nt.listVisualTypes(),o=this.isCategory();function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}k(e.pieces,function(s){k(r,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),k(i,function(s,l){var u=!1;k(this.stateList,function(c){u=u||a(e,c,l)||a(e.target,c,l)},this),!u&&k(this.stateList,function(c){(e[c]||(e[c]={}))[l]=lN(l,c==="inRange"?"active":"inactive",o)})},this),n.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,i){var r=this.option,o=this._pieceList,a=(i?r:e).selected||{};if(r.selected=a,k(o,function(l,u){var c=this.getSelectedMapKey(l);a.hasOwnProperty(c)||(a[c]=!0)},this),r.selectedMode==="single"){var s=!1;k(o,function(l,u){var c=this.getSelectedMapKey(l);a[c]&&(s?a[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=se(e)},t.prototype.getValueState=function(e){var i=Nt.findPieceIndex(e,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[],r=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,u){Nt.findPieceIndex(l,r)===e&&a.push(u)},this),i.push({seriesId:o.id,dataIndex:a})},this),i},t.prototype.getRepresentValue=function(e){var i;if(this.isCategory())i=e.value;else if(e.value!=null)i=e.value;else{var r=e.interval||[];i=r[0]===-1/0&&r[1]===1/0?0:(r[0]+r[1])/2}return i},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var i=[],r=["",""],o=this,a=this._pieceList.slice();if(a.length){var s=a[0].interval[0];s!==-1/0&&a.unshift({interval:[-1/0,s]}),(s=a[a.length-1].interval[1])!==1/0&&a.push({interval:[s,1/0]})}else a.push({interval:[-1/0,1/0]});var l=-1/0;return k(a,function(c){var h=c.interval;h&&(h[0]>l&&u([l,h[0]],"outOfRange"),u(h.slice()),l=h[1])},this),{stops:i,outerColors:r}}function u(c,h){var d=o.getRepresentValue({interval:c});h||(h=o.getValueState(d));var p=e(d,h);c[0]===-1/0?r[0]=p:c[1]===1/0?r[1]=p:i.push({value:c[0],color:p},{value:c[1],color:p})}},t.type="visualMap.piecewise",t.defaultOption=_o(gf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(gf),R8={splitNumber:function(n){var t=this.option,e=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(e)!==o&&e<5;)e++;t.precision=e,o=+o.toFixed(e),t.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;n.push({interval:[s,l],close:[1,1]})}t.maxOpen&&n.push({interval:[i[1],1/0],close:[0,0]}),Mm(n),k(n,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(n){var t=this.option;k(t.categories,function(e){n.push({text:this.formatValueText(e,!0),value:e})},this),kC(t,n)},pieces:function(n){var t=this.option;k(t.pieces,function(e,i){fe(e)||(e={value:e});var r={text:"",index:i};if(e.label!=null&&(r.text=e.label),e.hasOwnProperty("value")){var o=r.value=e.value;r.interval=[o,o],r.close=[1,1]}else{for(var a=r.interval=[],s=r.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var d=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&a[h]==null;p++)a[h]=e[d[p]],s[h]=l[p],c[h]=p===2;a[h]==null&&(a[h]=u[h])}c[0]&&a[1]===1/0&&(s[0]=0),c[1]&&a[0]===-1/0&&(s[1]=0),a[0]===a[1]&&s[0]&&s[1]&&(r.value=a[0])}r.visual=Nt.retrieveVisuals(e),n.push(r)},this),kC(t,n),Mm(n),k(n,function(e){var i=e.close,r=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,r)},this)}};function kC(n,t){var e=n.inverse;(n.orient==="vertical"?!e:e)&&t.reverse()}var N8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.doRender=function(){var e=this.group;e.removeAll();var i=this.visualMapModel,r=i.get("textGap"),o=i.textStyleModel,a=this._getItemAlign(),s=i.itemSize,l=this._getViewData(),u=l.endsText,c=an(i.get("showLabel",!0),!u),h=!i.get("selectedMode");u&&this._renderEndsText(e,u[0],s,c,a),k(l.viewPieceList,function(d){var p=d.piece,f=new he;f.onclick=ie(this._onItemClick,this,p),this._enableHoverLink(f,d.indexInModelPieceList);var g=i.getRepresentValue(p);if(this._createItemSymbol(f,g,[0,0,s[0],s[1]],h),c){var v=this.visualMapModel.getValueState(g),y=o.get("align")||a;f.add(new Be({style:Je(o,{x:y==="right"?-r:s[0]+r,y:s[1]/2,text:p.text,verticalAlign:o.get("verticalAlign")||"middle",align:y,opacity:ae(o.get("opacity"),v==="outOfRange"?.5:1)}),silent:h}))}e.add(f)},this),u&&this._renderEndsText(e,u[1],s,c,a),fa(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,i){var r=this;e.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=r.visualMapModel;s.option.hoverLink&&r.api.dispatchAction({type:a,batch:Zd(s.findTargetDataIndices(i),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,i=e.option;if(i.orient==="vertical")return cN(e,this.api,e.itemSize);var r=i.align;return r&&r!=="auto"||(r="left"),r},t.prototype._renderEndsText=function(e,i,r,o,a){if(i){var s=new he,l=this.visualMapModel.textStyleModel;s.add(new Be({style:Je(l,{x:o?a==="right"?r[0]:0:r[0]/2,y:r[1]/2,verticalAlign:"middle",align:o?a:"center",text:i})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,i=K(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),r=e.get("text"),o=e.get("orient"),a=e.get("inverse");return(o==="horizontal"?a:!a)?i.reverse():r&&(r=r.slice().reverse()),{viewPieceList:i,endsText:r}},t.prototype._createItemSymbol=function(e,i,r,o){var a=bt(this.getControllerVisual(i,"symbol"),r[0],r[1],r[2],r[3],this.getControllerVisual(i,"color"));a.silent=o,e.add(a)},t.prototype._onItemClick=function(e){var i=this.visualMapModel,r=i.option,o=r.selectedMode;if(o){var a=se(r.selected),s=i.getSelectedMapKey(e);o==="single"||o===!0?(a[s]=!0,k(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t})(uN);function LC(n){n.registerComponentModel(O8),n.registerComponentView(N8),hN(n)}var E8=(function(){function n(t){this._thumbnailModel=t}return n.prototype.reset=function(t){this._renderVersion=t.getECUpdateCycleVersion()},n.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:HA(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},n.prototype.updateWindow=function(t,e){var i=e.getViewOfComponentModel(this._thumbnailModel);i&&i.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},n})(),z8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return G(t,n),t.prototype.optionUpdated=function(e,i){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new E8(this);this._target=null,this.ecModel.eachSeries(function(i){$I(i,null)}),this.shouldShow()&&$I(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:H.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:H.color.neutral30,borderColor:H.color.neutral40,opacity:.3},z:10},t})(ke),B8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return G(t,n),t.prototype.render=function(e,i,r){if(this._api=r,this._model=e,this._coordSys||(this._coordSys=new Xf),this._isEnabled()){this._renderVersion=r.getECUpdateCycleVersion();var o=this.group;o.removeAll();var a=e.getModel("itemStyle"),s=a.getItemStyle();s.fill==null&&(s.fill=i.get("backgroundColor")||H.color.neutral00);var l=kt(e,r).refContainer,u=ot(fk(e,!0),l),c=s.lineWidth||0,h=this._contentRect=Ta(u.clone(),c/2,!0,!0),d=new he;o.add(d),d.setClipPath(new Ae({shape:h.plain()}));var p=this._targetGroup=new he;d.add(p);var f=u.plain();f.r=a.getShallow("borderRadius",!0),o.add(this._bgRect=new Ae({style:s,shape:f,silent:!1,cursor:"grab"}));var g=e.getModel("windowStyle"),v=g.getShallow("borderRadius",!0);d.add(this._windowRect=new Ae({shape:{x:0,y:0,width:0,height:0,r:v},style:g.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),OC(e,this)}else this._clear()},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),OC(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(e&&e.renderVersion===this._renderVersion){var i=this._targetGroup,r=this._coordSys,o=this._contentRect;if(i.removeAll(),e){var a=e.group,s=a.getBoundingRect();i.add(a),this._bgRect.z2=e.z2Range.min-10,Zf(r,s.x,s.y,s.width,s.height);var l=ot({left:"center",top:"center",aspect:s.width/s.height},o);Kp(r,l.x,l.y,l.width,l.height),Cc(a,r,0),a.dirty(),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var i=this._bridgeRendered;i&&i.renderVersion===e.renderVersion&&(i.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(e&&e.renderVersion===this._renderVersion){var i=Ln([],e.targetTrans),r=kn([],jp(null,this._coordSys),i);this._transThisToTarget=Ln([],r);var o=e.viewportRect;(o=o?o.clone():new de(0,0,this._api.getWidth(),this._api.getHeight())).applyTransform(r);var a=this._windowRect,s=a.shape.r;a.setShape(pe({r:s},o))}},t.prototype._resetRoamController=function(e){var i=this,r=this._api,o=this._roamController;o||(o=this._roamController=new Ka(r.getZr())),e&&this._isEnabled()?(o.enable(e,{api:r,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(a,s,l){return i._contentRect.contain(s,l)}}}),o.off("pan").off("zoom").on("pan",ie(this._onPan,this)).on("zoom",ie(this._onZoom,this))):o.disable()},t.prototype._onPan=function(e){var i=this._transThisToTarget;if(this._isEnabled()&&i){var r=dt([],[e.oldX,e.oldY],i),o=dt([],[e.oldX-e.dx,e.oldY-e.dy],i);this._api.dispatchAction(PC(this._model.getTarget().baseMapProvider,{dx:o[0]-r[0],dy:o[1]-r[1]}))}},t.prototype._onZoom=function(e){var i=this._transThisToTarget;if(this._isEnabled()&&i){var r=dt([],[e.originX,e.originY],i);this._api.dispatchAction(PC(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:r[0],originY:r[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow())&&!!e.getTarget().baseMapProvider},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t})(et);function PC(n,t){var e={type:n.mainType==="series"?n.subType+"Roam":n.mainType+"Roam"};return e[n.mainType+"Id"]=n.id,X(e,t),e}function OC(n,t){var e=Ca(n);zf(t.group,e.z,e.zlevel)}var V8={label:{enabled:!0},decal:{show:!1}},RC=Me(),NC=Me(),G8=Bc(function(n,t){var e=n.getModel("aria");if(!e.get("enabled"))return;var i=NC(n).scope||(NC(n).scope={}),r=se(V8);function o(a,s){if(!te(a))return a;var l=a;return k(s,function(u,c){l=l.replace(new RegExp("\\{\\s*"+c+"\\s*\\}","g"),u)}),l}Se(r.label,n.getLocaleModel().get("aria"),!1),Se(e.option,r,!1),(function(){if(e.getModel("decal").get("show")){var a=re();n.eachSeries(function(s){s.isColorBySeries()||(RC(s).scope=a.get(s.type)||a.set(s.type,{}))}),n.eachSeries(function(s){if(le(s.enableAriaDecal))s.enableAriaDecal();else{var l=s.getData();if(s.isColorBySeries()){var u=Ym(s.ecModel,s.name,i,n.getSeriesCount()),c=l.getVisual("decal");l.setVisual("decal",g(c,u))}else{var h=s.getRawData(),d={},p=RC(s).scope;l.each(function(v){var y=l.getRawIndex(v);d[y]=v});var f=h.count();h.each(function(v){var y=d[v],m=h.getName(v)||v+"",x=Ym(s.ecModel,m,p,f),_=l.getItemVisual(y,"decal");l.setItemVisual(y,"decal",g(_,x))})}}function g(v,y){var m=v?X(X({},y),v):y;return m.dirty=!0,m}})}})(),(function(){var a=t.getZr().dom;if(a){var s=n.getLocaleModel().get("aria"),l=e.getModel("label");if(l.option=pe(l.option,s),l.get("enabled"))if(a.setAttribute("role","img"),l.get("description"))a.setAttribute("aria-label",l.get("description"));else{var u,c=n.getSeriesCount(),h=l.get(["data","maxCount"])||10,d=l.get(["series","maxCount"])||10,p=Math.min(c,d);if(!(c<1)){var f=(function(){var x=n.get("title");return x&&x.length&&(x=x[0]),x&&x.text})();u=f?o(l.get(["general","withTitle"]),{title:f}):l.get(["general","withoutTitle"]);var g=[];u+=o(c>1?l.get(["series","multiple","prefix"]):l.get(["series","single","prefix"]),{seriesCount:c}),n.eachSeries(function(x,_){if(_<p){var b=void 0,w=x.get("name")?"withName":"withoutName";b=o(b=c>1?l.get(["series","multiple",w]):l.get(["series","single",w]),{seriesId:x.seriesIndex,seriesName:x.get("name"),seriesType:(E=x.subType,O=n.getLocaleModel().get(["series","typeNames"]),O[E]||O.chart)});var S=x.getData();S.count()>h?b+=o(l.get(["data","partialData"]),{displayCnt:h}):b+=l.get(["data","allData"]);for(var M=l.get(["data","separator","middle"]),I=l.get(["data","separator","end"]),T=l.get(["data","excludeDimensionId"]),C=[],D=0;D<S.count();D++)if(D<h){var A=S.getName(D),L=T?Ye(S.getValues(D),function(N,R){return be(T,R)===-1}):S.getValues(D),P=l.get(["data",A?"withName":"withoutName"]);C.push(o(P,{name:A,value:L.join(M)}))}b+=C.join(M)+I,g.push(b)}var E,O});var v=l.getModel(["series","multiple","separator"]),y=v.get("middle"),m=v.get("end");u+=g.join(y)+m,a.setAttribute("aria-label",u)}}}})()});function F8(n){if(n&&n.aria){var t=n.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},k(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}var EC={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},H8=(function(){function n(t){if((this._condVal=te(t)?new RegExp(t):lD(t)?t:null)==null){var e="";Ue(e)}}return n.prototype.evaluate=function(t){var e=typeof t;return te(e)?this._condVal.test(t):!!Ve(e)&&this._condVal.test(t+"")},n})(),W8=(function(){function n(){}return n.prototype.evaluate=function(){return this.value},n})(),U8=(function(){function n(){}return n.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},n})(),Y8=(function(){function n(){}return n.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},n})(),X8=(function(){function n(){}return n.prototype.evaluate=function(){return!this.child.evaluate()},n})(),Z8=(function(){function n(){}return n.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),i=t?this.valueParser(e):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?i:e))return!1;return!0},n})();function R_(n,t){if(n===!0||n===!1){var e=new W8;return e.value=n,e}var i="";return BC(n)||Ue(i),n.and?zC("and",n,t):n.or?zC("or",n,t):n.not?(function(r,o){var a=r.not,s="";BC(a)||Ue(s);var l=new X8;return l.child=R_(a,o),l.child||Ue(s),l})(n,t):(function(r,o){for(var a="",s=o.prepareGetValue(r),l=[],u=Re(r),c=r.parser,h=c?Nk(c):null,d=0;d<u.length;d++){var p=u[d];if(p!=="parser"&&!o.valueGetterAttrMap.get(p)){var f=oe(EC,p)?EC[p]:p,g=r[p],v=h?h(g):g,y=r5(f,v)||f==="reg"&&new H8(v);y||Ue(a),l.push(y)}}l.length||Ue(a);var m=new Z8;return m.valueGetterParam=s,m.valueParser=h,m.getValue=o.getValue,m.subCondList=l,m})(n,t)}function zC(n,t,e){var i=t[n],r="";q(i)||Ue(r),i.length||Ue(r);var o=n==="and"?new U8:new Y8;return o.children=K(i,function(a){return R_(a,e)}),o.children.length||Ue(r),o}function BC(n){return fe(n)&&!qt(n)}var q8=(function(){function n(t,e){this._cond=R_(t,e)}return n.prototype.evaluate=function(){return this._cond.evaluate()},n})(),j8={type:"echarts:filter",transform:function(n){for(var t,e,i,r=n.upstream,o=(e=n.config,i={valueGetterAttrMap:re({dimension:!0}),prepareGetValue:function(u){var c="",h=u.dimension;oe(u,"dimension")||Ue(c);var d=r.getDimensionInfo(h);return d||Ue(c),{dimIdx:d.index}},getValue:function(u){return r.retrieveValueFromItem(t,u.dimIdx)}},new q8(e,i)),a=[],s=0,l=r.count();s<l;s++)t=r.getRawDataItem(s),o.evaluate()&&a.push(t);return{data:a}}},K8={type:"echarts:sort",transform:function(n){var t=n.upstream,e=n.config,i="",r=$e(e);r.length||Ue(i);var o=[];k(r,function(c){var h=c.dimension,d=c.order,p=c.parser,f=c.incomparable;if(h==null&&Ue(i),d!=="asc"&&d!=="desc"&&Ue(i),f&&f!=="min"&&f!=="max"){var g="";Ue(g)}if(d!=="asc"&&d!=="desc"){var v="";Ue(v)}var y=t.getDimensionInfo(h);y||Ue(i);var m=p?Nk(p):null;p&&!m&&Ue(i),o.push({dimIdx:y.index,parser:m,comparator:new zk(d,f)})});var a=t.sourceFormat;a!==Ht&&a!==On&&Ue(i);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,h){for(var d=0;d<o.length;d++){var p=o[d],f=t.retrieveValueFromItem(c,p.dimIdx),g=t.retrieveValueFromItem(h,p.dimIdx);p.parser&&(f=p.parser(f),g=p.parser(g));var v=p.comparator.evaluate(f,g);if(v!==0)return v}return 0}),{data:s}}},$8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return G(t,n),t.prototype.init=function(e,i,r){n.prototype.init.call(this,e,i,r),this._sourceManager=new Wk(this),Lw(this)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),Lw(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:oi},t})(ke),J8=(function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return G(t,n),t.type="dataset",t})(et),bi=Zi.CMD;function Rs(n,t){return Math.abs(n-t)<1e-5}function x1(n){var t,e,i,r,o,a=n.data,s=n.len(),l=[],u=0,c=0,h=0,d=0;function p(D,A){t&&t.length>2&&l.push(t),t=[D,A]}function f(D,A,L,P){Rs(D,L)&&Rs(A,P)||t.push(D,A,L,P,L,P)}function g(D,A,L,P,E,O){var N=Math.abs(A-D),R=4*Math.tan(N/4)/3,z=A<D?-1:1,B=Math.cos(D),V=Math.sin(D),W=Math.cos(A),U=Math.sin(A),F=B*E+L,Q=V*O+P,Z=W*E+L,Y=U*O+P,J=E*R*z,$=O*R*z;t.push(F-J*V,Q+$*B,Z+J*U,Y-$*W,Z,Y)}for(var v=0;v<s;){var y=a[v++],m=v===1;switch(m&&(h=u=a[v],d=c=a[v+1],y!==bi.L&&y!==bi.C&&y!==bi.Q||(t=[h,d])),y){case bi.M:u=h=a[v++],c=d=a[v++],p(h,d);break;case bi.L:f(u,c,e=a[v++],i=a[v++]),u=e,c=i;break;case bi.C:t.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case bi.Q:e=a[v++],i=a[v++],r=a[v++],o=a[v++],t.push(u+2/3*(e-u),c+2/3*(i-c),r+2/3*(e-r),o+2/3*(i-o),r,o),u=r,c=o;break;case bi.A:var x=a[v++],_=a[v++],b=a[v++],w=a[v++],S=a[v++],M=a[v++]+S;v+=1;var I=!a[v++];e=Math.cos(S)*b+x,i=Math.sin(S)*w+_,m?p(h=e,d=i):f(u,c,e,i),u=Math.cos(M)*b+x,c=Math.sin(M)*w+_;for(var T=(I?-1:1)*Math.PI/2,C=S;I?C>M:C<M;C+=T)g(C,I?Math.max(C+T,M):Math.min(C+T,M),x,_,b,w);break;case bi.R:h=u=a[v++],d=c=a[v++],e=h+a[v++],i=d+a[v++],p(e,d),f(e,d,e,i),f(e,i,h,i),f(h,i,h,d),f(h,d,e,d);break;case bi.Z:t&&f(u,c,h,d),u=h,c=d}}return t&&t.length>2&&l.push(t),l}function _1(n,t,e,i,r,o,a,s,l,u){if(Rs(n,e)&&Rs(t,i)&&Rs(r,a)&&Rs(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-n,p=s-t,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=e-n,v=i-t,y=r-a,m=o-s,x=g*g+v*v,_=y*y+m*m;if(x<h&&_<h)l.push(a,s);else{var b=d*g+p*v,w=-d*y-p*m;if(x-b*b<h&&b>=0&&_-w*w<h&&w>=0)l.push(a,s);else{var S=[],M=[];co(n,e,r,a,.5,S),co(t,i,o,s,.5,M),_1(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),_1(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function dN(n,t,e){var i=n[t],r=n[1-t],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*e)),s=Math.floor(e/a);s===0&&(s=1,a=e);for(var l=[],u=0;u<a;u++)l.push(s);var c=e-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function VC(n,t,e){for(var i=n.r0,r=n.r,o=n.startAngle,a=n.endAngle,s=Math.abs(a-o),l=s*r,u=r-i,c=l>Math.abs(u),h=dN([l,u],c?0:1,t),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var v={};c?(v.startAngle=o+d*p,v.endAngle=o+d*(p+1),v.r0=i+f*g,v.r=i+f*(g+1)):(v.startAngle=o+f*g,v.endAngle=o+f*(g+1),v.r0=i+d*p,v.r=i+d*(p+1)),v.clockwise=n.clockwise,v.cx=n.cx,v.cy=n.cy,e.push(v)}}function GC(n,t,e,i){return n*i-e*t}function Q8(n,t,e,i,r,o,a,s){var l=e-n,u=i-t,c=a-r,h=s-o,d=GC(c,h,l,u);if(Math.abs(d)<1e-6)return null;var p=GC(n-r,t-o,c,h)/d;return p<0||p>1?null:new ge(p*l+n,p*u+t)}function e6(n,t,e){var i=new ge;ge.sub(i,e,t),i.normalize();var r=new ge;return ge.sub(r,n,t),r.dot(i)}function Ms(n,t){var e=n[n.length-1];e&&e[0]===t[0]&&e[1]===t[1]||n.push(t)}function FC(n){var t=n.points,e=[],i=[];Pf(t,e,i);var r=new de(e[0],e[1],i[0]-e[0],i[1]-e[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new ge,c=new ge;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),(function(h,d,p){for(var f=h.length,g=[],v=0;v<f;v++){var y=h[v],m=h[(v+1)%f],x=Q8(y[0],y[1],m[0],m[1],d.x,d.y,p.x,p.y);x&&g.push({projPt:e6(x,d,p),pt:x,idx:v})}if(g.length<2)return[{points:h},{points:h}];g.sort(function(C,D){return C.projPt-D.projPt});var _=g[0],b=g[g.length-1];if(b.idx<_.idx){var w=_;_=b,b=w}var S=[_.pt.x,_.pt.y],M=[b.pt.x,b.pt.y],I=[S],T=[M];for(v=_.idx+1;v<=b.idx;v++)Ms(I,h[v].slice());for(Ms(I,M),Ms(I,S),v=b.idx+1;v<=_.idx+f;v++)Ms(T,h[v%f].slice());return Ms(T,S),Ms(T,M),[{points:I},{points:T}]})(t,u,c)}function vf(n,t,e,i){if(e===1)i.push(t);else{var r=Math.floor(e/2),o=n(t);vf(n,o[0],r,i),vf(n,o[1],e-r,i)}return i}function t6(n,t){t.setStyle(n.style),t.z=n.z,t.z2=n.z2,t.zlevel=n.zlevel}function n6(n,t){var e,i=[],r=n.shape;switch(n.type){case"rect":(function(y,m,x){for(var _=y.width,b=y.height,w=_>b,S=dN([_,b],w?0:1,m),M=w?"width":"height",I=w?"height":"width",T=w?"x":"y",C=w?"y":"x",D=y[M]/S.length,A=0;A<S.length;A++)for(var L=y[I]/S[A],P=0;P<S[A];P++){var E={};E[T]=A*D,E[C]=P*L,E[M]=D,E[I]=L,E.x+=y.x,E.y+=y.y,x.push(E)}})(r,t,i),e=Ae;break;case"sector":VC(r,t,i),e=$t;break;case"circle":VC({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},t,i),e=$t;break;default:var o=n.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=K((function(y,m){var x=x1(y),_=[];m=m||1;for(var b=0;b<x.length;b++){var w=x[b],S=[],M=w[0],I=w[1];S.push(M,I);for(var T=2;T<w.length;){var C=w[T++],D=w[T++],A=w[T++],L=w[T++],P=w[T++],E=w[T++];_1(M,I,C,D,A,L,P,E,S,m),M=P,I=E}_.push(S)}return _})(n.getUpdatedPathProxy(),a),function(y){return(function(m){for(var x=[],_=0;_<m.length;)x.push([m[_++],m[_++]]);return x})(y)}),l=s.length;if(l===0)vf(FC,{points:s[0]},t,i);else if(l===t)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,h=K(s,function(y){var m=[],x=[];Pf(y,m,x);var _=(x[1]-m[1])*(x[0]-m[0]);return c+=_,{poly:y,area:_}});h.sort(function(y,m){return m.area-y.area});var d=t;for(u=0;u<l;u++){var p=h[u];if(d<=0)break;var f=u===l-1?d:Math.ceil(p.area/c*t);f<0||(vf(FC,{points:p.poly},f,i),d-=f)}}e=Jt}if(!e)return(function(y,m){for(var x=[],_=0;_<m;_++)x.push(X1(y));return x})(n,t);var g=[];for(u=0;u<i.length;u++){var v=new e;v.setShape(i[u]),t6(n,v),g.push(v)}return g}function i6(n,t){var e=n.length,i=t.length;if(e===i)return[n,t];for(var r=[],o=[],a=e<i?n:t,s=Math.min(e,i),l=Math.abs(i-e)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],v=a[p++],y=a[p++],m=a[p++],x=a[p++],_=a[p++],b=a[p++];if(d<=0)h.push(v,y,m,x,_,b);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var M=S/w;co(f,v,m,_,M,r),co(g,y,x,b,M,o),f=r[3],g=o[3],h.push(r[1],o[1],r[2],o[2],f,g),v=r[5],y=o[5],m=r[6],x=o[6]}d-=w-1}}return a===n?[h,t]:[n,h]}function HC(n,t){for(var e=n.length,i=n[e-2],r=n[e-1],o=[],a=0;a<t.length;)o[a++]=i,o[a++]=r;return o}function WC(n){for(var t=0,e=0,i=0,r=n.length,o=0,a=r-2;o<r;a=o,o+=2){var s=n[a],l=n[a+1],u=n[o],c=n[o+1],h=s*c-u*l;t+=h,e+=(s+u)*h,i+=(l+c)*h}return t===0?[n[0]||0,n[1]||0]:[e/t/3,i/t/3,t]}function r6(n,t,e,i){for(var r=(n.length-2)/6,o=1/0,a=0,s=n.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=d===0?c:(c+d-2)%l+2,f=n[p]-e[0],g=n[p+1]-e[1],v=t[d]-i[0]-f,y=t[d+1]-i[1]-g;h+=v*v+y*y}h<o&&(o=h,a=u)}return a}function o6(n){for(var t=[],e=n.length,i=0;i<e;i+=2)t[i]=n[e-i-2],t[i+1]=n[e-i-1];return t}function xd(n){return n.__isCombineMorphing}var pN="__mOriginal_";function yf(n,t,e){var i=pN+t,r=n[i]||n[t];n[i]||(n[i]=n[t]);var o=e.replace,a=e.after,s=e.before;n[t]=function(){var l,u=arguments;return s&&s.apply(this,u),l=o?o.apply(this,u):r.apply(this,u),a&&a.apply(this,u),l}}function Ku(n,t){var e=pN+t;n[e]&&(n[t]=n[e],n[e]=null)}function UC(n,t){for(var e=0;e<n.length;e++)for(var i=n[e],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=t[0]*o+t[2]*a+t[4],i[r++]=t[1]*o+t[3]*a+t[5]}}function fN(n,t){var e=n.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=(function(h,d){for(var p,f,g,v=[],y=[],m=0;m<Math.max(h.length,d.length);m++){var x=h[m],_=d[m],b=void 0,w=void 0;x?_?(f=b=(p=i6(x,_))[0],g=w=p[1]):(w=HC(g||x,x),b=x):(b=HC(f||_,_),w=_),v.push(b),y.push(w)}return[v,y]})(x1(e),x1(i)),o=r[0],a=r[1],s=n.getComputedTransform(),l=t.getComputedTransform();s&&UC(o,s),l&&UC(a,l),yf(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var u=(function(h,d,p,f){for(var g,v=[],y=0;y<h.length;y++){var m=h[y],x=d[y],_=WC(m),b=WC(x);g==null&&(g=_[2]<0!=b[2]<0);var w=[],S=[],M=0,I=1/0,T=[],C=m.length;g&&(m=o6(m));for(var D=6*r6(m,x,_,b),A=C-2,L=0;L<A;L+=2){var P=(D+L)%A+2;w[L+2]=m[P]-_[0],w[L+3]=m[P+1]-_[1]}if(w[0]=m[D]-_[0],w[1]=m[D+1]-_[1],p>0)for(var E=f/p,O=-f/2;O<=f/2;O+=E){var N=Math.sin(O),R=Math.cos(O),z=0;for(L=0;L<m.length;L+=2){var B=w[L],V=w[L+1],W=x[L]-b[0],U=x[L+1]-b[1],F=W*R-U*N,Q=W*N+U*R;T[L]=F,T[L+1]=Q;var Z=F-B,Y=Q-V;z+=Z*Z+Y*Y}if(z<I){I=z,M=O;for(var J=0;J<T.length;J++)S[J]=T[J]}}else for(var $=0;$<C;$+=2)S[$]=x[$]-b[0],S[$+1]=x[$+1]-b[1];v.push({from:w,to:S,fromCp:_,toCp:b,rotation:-M})}return v})(o,a,10,Math.PI),c=[];yf(t,"buildPath",{replace:function(h){for(var d=t.__morphT,p=1-d,f=[],g=0;g<u.length;g++){var v=u[g],y=v.from,m=v.to,x=v.rotation*d,_=v.fromCp,b=v.toCp,w=Math.sin(x),S=Math.cos(x);Nu(f,_,b,d);for(var M=0;M<y.length;M+=2){var I=y[M],T=y[M+1],C=I*p+(P=m[M])*d,D=T*p+(E=m[M+1])*d;c[M]=C*S-D*w+f[0],c[M+1]=C*w+D*S+f[1]}var A=c[0],L=c[1];for(h.moveTo(A,L),M=2;M<y.length;){var P=c[M++],E=c[M++],O=c[M++],N=c[M++],R=c[M++],z=c[M++];A===P&&L===E&&O===R&&N===z?h.lineTo(R,z):h.bezierCurveTo(P,E,O,N,R,z),A=R,L=z}}}})}function Jy(n,t,e){if(!n||!t)return t;var i=e.done,r=e.during;return fN(n,t),t.__morphT=0,t.animateTo({__morphT:1},pe({during:function(o){t.dirtyShape(),r&&r(o)},done:function(){Ku(t,"buildPath"),Ku(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),i&&i()}},e)),t}function a6(n,t,e,i,r,o){n=r===e?0:Math.round(32767*(n-e)/(r-e)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(n&l)>0&&(u=1),(t&l)>0&&(c=1),s+=l*l*(3*u^c),c===0&&(u===1&&(n=l-1-n,t=l-1-t),a=n,n=t,t=a)}return s}function _d(n){var t=1/0,e=1/0,i=-1/0,r=-1/0,o=K(n,function(a){var s=a.getBoundingRect(),l=a.getComputedTransform(),u=s.x+s.width/2+(l?l[4]:0),c=s.y+s.height/2+(l?l[5]:0);return t=Math.min(u,t),e=Math.min(c,e),i=Math.max(u,i),r=Math.max(c,r),[u,c]});return K(o,function(a,s){return{cp:a,z:a6(a[0],a[1],t,e,i,r),path:n[s]}}).sort(function(a,s){return a.z-s.z}).map(function(a){return a.path})}function YC(n){return n6(n.path,n.count)}function XC(n){return q(n[0])}function ZC(n,t){for(var e=[],i=n.length,r=0;r<i;r++)e.push({one:n[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)e[a%i].many.push(t[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!e[r].many.length){var l=e[s].many;if(l.length<=1){if(!s)return e;s=0}o=l.length;var u=Math.ceil(o/2);e[r].many=l.slice(u,o),e[s].many=l.slice(0,u),s++}return e}var s6={clone:function(n){for(var t=[],e=1-Math.pow(1-n.path.style.opacity,1/n.count),i=0;i<n.count;i++){var r=X1(n.path);r.setStyle("opacity",e),t.push(r)}return t},split:null};function Qy(n,t,e,i,r,o){if(n.length&&t.length){var a=vl("update",i,r);if(a&&a.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=X({setToFinal:!0},a);XC(n)&&(s=n,l=t),XC(t)&&(s=t,l=n);for(var h=s?s===n:n.length>t.length,d=s?ZC(l,s):ZC(h?t:n,[h?n:t]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)v(d[f],h,g,p),g+=d[f].many.length}}function v(y,m,x,_,b){var w=y.many,S=y.one;if(w.length!==1||b)for(var M=pe({dividePath:s6[e],individualDelay:u&&function(O,N,R,z){return u(O+x,_)}},c),I=m?(function(O,N,R){var z=[];(function ve(xe){for(var Ie=0;Ie<xe.length;Ie++){var Ne=xe[Ie];xd(Ne)?ve(Ne.childrenRef()):Ne instanceof Le&&z.push(Ne)}})(O);var B=z.length;if(!B)return{fromIndividuals:[],toIndividuals:[],count:0};var V=(R.dividePath||YC)({path:N,count:B});if(V.length!==B)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};z=_d(z),V=_d(V);for(var W=R.done,U=R.during,F=R.individualDelay,Q=new ji,Z=0;Z<B;Z++){var Y=z[Z],J=V[Z];J.parent=N,J.copyTransform(Q),F||fN(Y,J)}function $(ve){for(var xe=0;xe<V.length;xe++)V[xe].addSelfToZr(ve)}function j(){N.__isCombineMorphing=!1,N.__morphT=-1,N.childrenRef=null,Ku(N,"addSelfToZr"),Ku(N,"removeSelfFromZr")}N.__isCombineMorphing=!0,N.childrenRef=function(){return V},yf(N,"addSelfToZr",{after:function(ve){$(ve)}}),yf(N,"removeSelfFromZr",{after:function(ve){for(var xe=0;xe<V.length;xe++)V[xe].removeSelfFromZr(ve)}});var ee=V.length;if(F){var ue=ee,ye=function(){--ue===0&&(j(),W&&W())};for(Z=0;Z<ee;Z++){var we=F?pe({delay:(R.delay||0)+F(Z,ee,z[Z],V[Z]),done:ye},R):R;Jy(z[Z],V[Z],we)}}else N.__morphT=0,N.animateTo({__morphT:1},pe({during:function(ve){for(var xe=0;xe<ee;xe++){var Ie=V[xe];Ie.__morphT=N.__morphT,Ie.dirtyShape()}U&&U(ve)},done:function(){j();for(var ve=0;ve<O.length;ve++)Ku(O[ve],"updateTransform");W&&W()}},R));return N.__zr&&$(N.__zr),{fromIndividuals:z,toIndividuals:V,count:ee}})(w,S,M):(function(O,N,R){var z=N.length,B=[],V=R.dividePath||YC;if(xd(O)){(function J($){for(var j=0;j<$.length;j++){var ee=$[j];xd(ee)?J(ee.childrenRef()):ee instanceof Le&&B.push(ee)}})(O.childrenRef());var W=B.length;if(W<z)for(var U=0,F=W;F<z;F++)B.push(X1(B[U++%W]));B.length=z}else{B=V({path:O,count:z});var Q=O.getComputedTransform();for(F=0;F<B.length;F++)B[F].setLocalTransform(Q);if(B.length!==z)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}B=_d(B),N=_d(N);var Z=R.individualDelay;for(F=0;F<z;F++){var Y=Z?pe({delay:(R.delay||0)+Z(F,z,B[F],N[F])},R):R;Jy(B[F],N[F],Y)}return{fromIndividuals:B,toIndividuals:N,count:N.length}})(S,w,M),T=I.fromIndividuals,C=I.toIndividuals,D=T.length,A=0;A<D;A++)L=u?pe({delay:u(A,D)},c):c,o(T[A],C[A],m?w[A]:y.one,m?y.one:w[A],L);else{var L,P=m?w[0]:S,E=m?S:w[0];xd(P)?v({many:[P],one:E},!0,x,_,!0):(Jy(P,E,L=u?pe({delay:u(x,_)},c):c),o(P,E,P,E,L))}}}function Ko(n){if(!n)return[];if(q(n)){for(var t=[],e=0;e<n.length;e++)t.push(Ko(n[e]));return t}var i=[];return n.traverse(function(r){r instanceof Le&&!r.disableMorphing&&!r.invisible&&!r.ignore&&i.push(r)}),i}var l6=Me();function qC(n,t,e,i){var r=(function(l,u){for(var c=l.dimensions,h=0;h<c.length;h++){var d=l.getDimensionInfo(c[h]);if(d&&d.otherDims[u]===0)return c[h]}})(n,i?"itemChildGroupId":"itemGroupId");if(r){var o=(function(l,u,c){var h=l.getDimensionInfo(c),d=h&&h.ordinalMeta;if(h){var p=l.get(h.name,u);return d&&d.categories[p]||p+""}})(n,t,r);return o}var a=n.getRawDataItem(t),s=i?"childGroupId":"groupId";return a&&a[s]?a[s]+"":i?void 0:e||n.getId(t)}function jC(n){var t=[];return k(n,function(e){var i=e.data,r=e.dataGroupId;if(!(i.count()>1e4))for(var o=i.getIndices(),a=0;a<o.length;a++)t.push({data:i,groupId:qC(i,a,r,!1),childGroupId:qC(i,a,r,!0),divide:e.divide,dataIndex:a})}),t}function em(n,t,e){n.traverse(function(i){i instanceof Le&&rt(i,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function tm(n){if(n.parent){var t=n.getComputedTransform();n.setLocalTransform(t),n.parent.remove(n)}}function Is(n){n.stopAnimation(),n.isGroup&&n.traverse(function(t){t.stopAnimation()})}function u6(n,t,e){var i=vl("update",e,t);i&&n.traverse(function(r){if(r instanceof $n){var o=(function(a){return EA(a).oldStyle})(r);o&&r.animateFrom({style:o},i)}})}function KC(n,t,e){var i=jC(n),r=jC(t);function o(x,_,b,w,S){(b||x)&&_.animateFrom({style:b&&b!==x?X(X({},b.style),x.style):x.style},S)}var a=!1,s=0,l=re(),u=re();k(i,function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<r.length;c++){var h=r[c].groupId;if(u.get(h)){s=1;break}var d=r[c].childGroupId;if(d&&l.get(d)){s=2;break}}function p(x,_){return function(b){var w=b.data,S=b.dataIndex;return _?w.getId(S):x?s===1?b.childGroupId:b.groupId:s===2?b.childGroupId:b.groupId}}var f=(function(x,_){var b=x.length;if(b!==_.length)return!1;for(var w=0;w<b;w++){var S=x[w],M=_[w];if(S.data.getId(S.dataIndex)!==M.data.getId(M.dataIndex))return!1}return!0})(i,r),g={};if(!f)for(c=0;c<r.length;c++){var v=r[c],y=v.data.getItemGraphicEl(v.dataIndex);y&&(g[y.id]=!0)}function m(x,_){var b=i[_],w=r[x],S=w.data.hostModel,M=b.data.getItemGraphicEl(b.dataIndex),I=w.data.getItemGraphicEl(w.dataIndex);M!==I?M&&g[M.id]||I&&(Is(I),M?(Is(M),tm(M),a=!0,Qy(Ko(M),Ko(I),w.divide,S,x,o)):em(I,S,x)):I&&u6(I,w.dataIndex,S)}new Sr(i,r,p(!0,f),p(!1,f),null,"multiple").update(m).updateManyToOne(function(x,_){var b=r[x],w=b.data,S=w.hostModel,M=w.getItemGraphicEl(b.dataIndex),I=Ye(K(_,function(T){return i[T].data.getItemGraphicEl(i[T].dataIndex)}),function(T){return T&&T!==M&&!g[T.id]});M&&(Is(M),I.length?(k(I,function(T){Is(T),tm(T)}),a=!0,Qy(Ko(I),Ko(M),b.divide,S,x,o)):em(M,S,b.dataIndex))}).updateOneToMany(function(x,_){var b=i[_],w=b.data.getItemGraphicEl(b.dataIndex);if(!w||!g[w.id]){var S=Ye(K(x,function(I){return r[I].data.getItemGraphicEl(r[I].dataIndex)}),function(I){return I&&I!==w}),M=r[x[0]].data.hostModel;S.length&&(k(S,function(I){return Is(I)}),w?(Is(w),tm(w),a=!0,Qy(Ko(w),Ko(S),b.divide,M,x[0],o)):k(S,function(I){return em(I,M,x[0])}))}}).updateManyToMany(function(x,_){new Sr(_,x,function(b){return i[b].data.getId(i[b].dataIndex)},function(b){return r[b].data.getId(r[b].dataIndex)}).update(function(b,w){m(x[b],_[w])}).execute()}).execute(),a&&k(t,function(x){var _=x.data.hostModel,b=_&&e.getViewOfSeriesModel(_),w=vl("update",_,0);b&&_.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(S){S instanceof Le&&!S.animators.length&&S.animateFrom({style:{opacity:0}},w)})})}function $C(n){var t=n.getModel("universalTransition").get("seriesKey");return t||n.id}function JC(n){return q(n)?n.sort().join(","):n}function Fr(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function QC(n,t){for(var e=0;e<n.length;e++)if(t.seriesIndex!=null&&t.seriesIndex===n[e].seriesIndex||t.seriesId!=null&&t.seriesId===n[e].id)return e}var c6=(function(){function n(t,e){kx(this,n.decoratedMethods),this._outOfBrk=s0(null,e),this._linear=s0(null,e),Lx(this),this.breaks=t&&t.breaks||[]}return n.prototype.hasBreaks=function(){return!!this.breaks.length},n.prototype.calcNiceTickMultiple=function(t,e){for(var i=0;i<this.breaks.length;i++){var r=this.breaks[i];if(r.vmin<t&&t<r.vmax){var o=e(t,r.vmax);return o}}return 0},n.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(t,e){return e==null||e===2?this._outOfBrk.getExtentUnsafe(t,null):this._linear.getExtentUnsafe(t,null)},setExtent:function(t,e){this.setExtent2(0,t,e)},setExtent2:function(t,e,i){Sa(e,i)&&(t===0&&(function(r,o){var a=0,s={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},l=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},u={S:{tpAbs:l(),tpPrct:l()},E:{tpAbs:l(),tpPrct:l()}};k(r.breaks,function(h){var d=h.gapParsed;d.type==="tpPrct"&&(a+=d.val);var p=N_(h,o);if(p){var f=p.vmin!==h.vmin,g=p.vmax!==h.vmax,v=p.vmax-p.vmin;if(!(f&&g))if(f||g){var y=f?"S":"E";u[y][d.type].has=!0,u[y][d.type].span=v,u[y][d.type].inExtFrac=v/(h.vmax-h.vmin),u[y][d.type].val=d.val}else s[d.type].span+=v,s[d.type].val+=d.val}});var c=a*(o[1]-o[0]+0+(s.tpAbs.val-s.tpAbs.span)+(u.S.tpAbs.has?(u.S.tpAbs.val-u.S.tpAbs.span)*u.S.tpAbs.inExtFrac:0)+(u.E.tpAbs.has?(u.E.tpAbs.val-u.E.tpAbs.span)*u.E.tpAbs.inExtFrac:0)-s.tpPrct.span-(u.S.tpPrct.has?u.S.tpPrct.span*u.S.tpPrct.inExtFrac:0)-(u.E.tpPrct.has?u.E.tpPrct.span*u.E.tpPrct.inExtFrac:0))/(1-s.tpPrct.val-(u.S.tpPrct.has?u.S.tpPrct.val*u.S.tpPrct.inExtFrac:0)-(u.E.tpPrct.has?u.E.tpPrct.val*u.E.tpPrct.inExtFrac:0));k(r.breaks,function(h){var d=h.gapParsed;d.type==="tpPrct"&&(h.gapReal=a!==0?De(c,0)*d.val/a:0),d.type==="tpAbs"&&(h.gapReal=d.val),h.gapReal==null&&(h.gapReal=0)})})(this,[e,i]),this._outOfBrk.setExtent2(t,e,i),this._linear.setExtent2(t,this.transformIn(e,null),this.transformIn(i,null)))},normalize:function(t){return this._linear.normalize(this.transformIn(t,null))},scale:function(t){return this.transformOut(this._linear.scale(t),null)},contain:function(t){return this._outOfBrk.contain(t)},transformIn:function(t,e){if(e&&e.depth===2)return t;for(var i=eD,r=tD,o=!0,a=0;a<this.breaks.length;a++){var s=this.breaks[a];if(t<=s.vmax){t>s.vmin?i+=s.vmin-r+(t-s.vmin)/(s.vmax-s.vmin)*s.gapReal:i+=t-r,r=s.vmax,o=!1;break}i+=s.vmin-r+s.gapReal,r=s.vmax}return o&&(i+=t-r),i},transformOut:function(t,e){if(e&&e.depth===2)return t;for(var i=eD,r=tD,o=!0,a=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=i+l.vmin-r,c=u+l.gapReal;if(t<=c){a=t>u?l.vmin+(t-u)/(c-u)*(l.vmax-l.vmin):r+t-i,r=l.vmax,o=!1;break}i=c,r=l.vmax}return o&&(a=r+t-i),a}},n})();function h6(n,t){return new c6(n,t)}var eD=0,tD=0;function d6(n,t,e,i,r,o){n!=="no"&&k(e,function(a){var s=N_(a,o);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],c=i(u),h=3*r/4;c>s.vmin-h&&c<s.vmax+h&&(n!=="preserve_extent_bound"||c!==o[0]&&c!==o[1])&&t.splice(l,1)}})}function p6(n,t,e,i){k(t,function(r){var o=N_(r,e);o&&(n.push({value:o.vmin,break:{type:"vmin",parsedBreak:o},time:i?i(o):void 0}),n.push({value:o.vmax,break:{type:"vmax",parsedBreak:o},time:i?i(o):void 0}))}),t.length&&n.sort(function(r,o){return r.value-o.value})}function N_(n,t){var e=De(n.vmin,t[0]),i=Xe(n.vmax,t[1]);return e<i||e===i&&e>t[0]&&e<t[1]?{vmin:e,vmax:i,breakOption:n.breakOption,gapParsed:n.gapParsed,gapReal:n.gapReal}:null}function b1(n,t,e){var i=[];if(!n)return{breaks:i};k(n,function(o){if(o&&o.start!=null&&o.end!=null&&!o.isExpanded){var a={breakOption:se(o),vmin:t.parse(o.start),vmax:t.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var s=!1;if(te(o.gap)){var l=Cn(o.gap);if(l.match(/%$/)){var u=parseFloat(l)/100;(function(d){return d>=0&&d<.99999})(u)||(u=0),a.gapParsed.type="tpPrct",a.gapParsed.val=u,s=!0}}if(!s){var c=t.parse(o.gap);(!isFinite(c)||c<0)&&(c=0),a.gapParsed.type="tpAbs",a.gapParsed.val=c}}if(a.vmin===a.vmax&&(a.gapParsed.type="tpAbs",a.gapParsed.val=0),e&&e.noNegative&&k(["vmin","vmax"],function(d){a[d]<0&&(a[d]=0)}),a.vmin>a.vmax){var h=a.vmax;a.vmax=a.vmin,a.vmin=h}i.push(a)}}),i.sort(function(o,a){return o.vmin-a.vmin});var r=-1/0;return k(i,function(o,a){r>o.vmin&&(i[a]=null),r=o.vmax}),{breaks:Ye(i,function(o){return!!o})}}function E_(n,t){return w1(t)===w1(n)}function w1(n){return n.start+"_\0_"+n.end}function f6(n,t,e){var i=[];k(n,function(o,a){var s=t(o);s&&s.type==="vmin"&&i.push([a])}),k(n,function(o,a){var s=t(o);if(s&&s.type==="vmax"){var l=Tr(i,function(u){return E_(t(n[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(a)}});var r=[];return k(i,function(o){o.length===2&&r.push(e?o:[n[o[0]],n[o[1]]])}),r}function g6(n,t,e,i){if(t.break){var r=t.break.parsedBreak,o=Tr(e,function(l){return E_(l.breakOption,t.break.parsedBreak.breakOption)}),a={lookup:i,depth:2},s={vmin:n.transformOut(r.vmin,a),vmax:n.transformOut(r.vmax,a),breakOption:r.breakOption,gapParsed:se(o.gapParsed),gapReal:r.gapReal};return{tickVal:s[t.break.type],vBreak:{type:t.break.type,parsedBreak:s}}}}function v6(n,t,e,i,r){r.original=b1(n,t,e);var o=r.transformed=b1(n,t,e),a=r.lookup;o.breaks=K(o.breaks,function(s,l){var u={depth:2},c=t.transformIn(s.vmin,u),h=t.transformIn(s.vmax,u),d={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?t.transformIn(s.vmin+s.gapParsed.val,u)-c:s.gapParsed.val};return a.from[i+l]=c,a.to[i+l]=s.vmin,a.from[i+l+1]=h,a.to[i+l+1]=s.vmax,{vmin:c,vmax:h,gapParsed:d,gapReal:s.gapReal,breakOption:s.breakOption}})}var y6={vmin:"start",vmax:"end"};function m6(n,t){return t&&((n=n||{}).break={type:y6[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),n}function x6(){var n;n={createBreakScaleMapper:h6,pruneTicksByBreak:d6,addBreaksToTicks:p6,parseAxisBreakOption:b1,identifyAxisBreak:E_,serializeAxisBreakIdentifier:w1,retrieveAxisBreakPairs:f6,getTicksBreakOutwardTransform:g6,parseAxisBreakOptionInwardTransform:v6,makeAxisLabelFormatterParamBreak:m6},Fm||(Fm=n)}var nD=Me();function _6(n,t,e,i,r){var o=e.axis;if(!o.scale.isBlank()&&mt()){var a=mt().retrieveAxisBreakPairs(o.scale.getTicks({breakTicks:"only_break"}),function(S){return S.break},!1);if(a.length){var s=e.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var h=s.get("expandOnClick"),d=s.get("zigzagZ"),p=s.getModel("itemStyle").getItemStyle(),f=p.stroke,g=p.lineWidth,v=p.lineDash,y=p.fill,m=new he({ignoreModelZ:!0}),x=o.isHorizontal(),_=nD(t).visualList||(nD(t).visualList=[]);k(_,function(S){return S.shouldRemove=!0});for(var b=function(S){var M=a[S][0].break.parsedBreak,I=[];I[0]=o.toGlobalCoord(o.dataToCoord(M.vmin,!0)),I[1]=o.toGlobalCoord(o.dataToCoord(M.vmax,!0)),I[1]<I[0]&&I.reverse();var T=(function(D,A){var L=Tr(D,function(P){return mt().identifyAxisBreak(P.parsedBreak.breakOption,A.breakOption)});return L||D.push(L={zigzagRandomList:[],parsedBreak:A,shouldRemove:!1}),L})(_,M);T.shouldRemove=!1;var C=new he;(function(D,A,L,P,E,O){var N={stroke:f,lineWidth:g,lineDash:v,fill:"none"},R=E?0:1,z=1-R,B=i[_e[z]]+i[gt[z]];function V(ve){var xe=[],Ie=[];xe[R]=Ie[R]=ve,xe[z]=i[_e[z]],Ie[z]=B;var Ne={x1:xe[0],y1:xe[1],x2:Ie[0],y2:Ie[1]};return Rf(Ne,Ne,{lineWidth:1}),xe[0]=Ne.x1,xe[1]=Ne.y1,xe[R]}L=V(L),P=V(P);for(var W=[],U=[],F=!0,Q=i[_e[z]],Z=0;;Z++){var Y=Q===i[_e[z]],J=Q>=B;J&&(Q=B);var $=[],j=[];$[R]=L,j[R]=P,Y||J||($[R]+=F?-l:l,j[R]-=F?l:-l),$[z]=Q,j[z]=Q,W.push($),U.push(j);var ee=void 0;if(Z<D.length?ee=D[Z]:(ee=Math.random(),D.push(ee)),Q+=ee*(c-u)+u,F=!F,J)break}var ue=mt().serializeAxisBreakIdentifier(O.breakOption);if(A.add(new Wt({anid:"break_a_"+ue,shape:{points:W},style:N,z:d})),O.gapReal!==0){A.add(new Wt({anid:"break_b_"+ue,shape:{points:U},style:N,z:d}));var ye=U.slice();ye.reverse();var we=W.concat(ye);A.add(new Jt({anid:"break_c_"+ue,shape:{points:we},style:{fill:y,opacity:p.opacity},z:d}))}})(T.zigzagRandomList,C,I[0],I[1],x,M),h&&C.on("click",function(){var D={type:Yf,breaks:[{start:M.breakOption.start,end:M.breakOption.end}]};D[o.dim+"AxisIndex"]=e.componentIndex,r.dispatchAction(D)}),C.silent=!h,m.add(C)},w=0;w<a.length;w++)b(w);n.add(m),(function(S){for(var M=S.length-1;M>=0;M--)S[M].shouldRemove&&S.splice(M,1)})(_)}}}function b6(n,t,e,i){var r=n.axis,o=e.transform;Kt(i.style);var a=r.getExtent();r.inverse&&(a=a.slice()).reverse();var s=K(mt().retrieveAxisBreakPairs(r.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),function(g){var v=g[0].break.parsedBreak,y=[r.dataToCoord(v.vmin,!0),r.dataToCoord(v.vmax,!0)];return y[0]>y[1]&&y.reverse(),{coordPair:y,brkId:mt().serializeAxisBreakIdentifier(v.breakOption)}});s.sort(function(g,v){return g.coordPair[0]-v.coordPair[0]});for(var l=a[0],u=null,c=0;c<s.length;c++){var h=s[c],d=Math.max(h.coordPair[0],a[0]),p=Math.min(h.coordPair[1],a[1]);l<=d&&f(l,d,u,h),l=p,u=h}function f(g,v,y,m){function x(T,C){o&&(dt(T,T,o),dt(C,C,o))}function _(T,C){var D={x1:T[0],y1:T[1],x2:C[0],y2:C[1]};Rf(D,D,i.style),T[0]=D.x1,T[1]=D.y1,C[0]=D.x2,C[1]=D.y2}var b=[g,0],w=[v,0],S=[g,5],M=[v,5];x(b,S),_(b,S),x(w,M),_(w,M),_(b,w);var I=new _t(X({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},i));t.add(I),I.anid="breakLine_"+(y?y.brkId:"\0")+"_\0_"+(m?m.brkId:"\0")}l<=a[1]&&f(l,a[1],u,null)}function w6(n,t,e){if(!Tr(e,function(v){return!v})){var i=new ge;if(Wf(e[0],e[1],i,{direction:-(n?t+Math.PI:t),touchThreshold:0,bidirectional:!1})){var r=[1,0,0,1,0,0];Cr(r,r,-t);var o=K(e,function(v){return v.transform?kn([1,0,0,1,0,0],r,v.transform):r}),a=.5;if(g(0)||g(1)){var s=K(e,function(v,y){var m=v.localRect.clone();return m.applyTransform(o[y]),m}),l=new ge;l.copy(e[0].label).add(e[1].label).scale(.5),l.transform(r);var u=i.clone().transform(r),c=(s[0].x+s[1].x+(u.x>=0?s[0].width:s[1].width)+u.x)/2-l.x,h=Math.min(c,c-u.x),d=Math.max(c,c-u.x);a=(c-(d<0?d:h>0?h:0))/u.x}var p=new ge,f=new ge;ge.scale(p,i,-a),ge.scale(f,i,1-a),d0(e[0],p),d0(e[1],f)}}function g(v){var y=e[0].localRect,m=new ge(y[gt[v]]*o[0][0],y[gt[v]]*o[0][1]);return Math.abs(m.y)<1e-5}}function S6(n,t){var e={breaks:[]};return k(t.breaks,function(i){if(i){var r=Tr(n.get("breaks",!0),function(s){return mt().identifyAxisBreak(s,i)});if(r){var o=t.type,a={isExpanded:!!r.isExpanded};r.isExpanded=o===Yf||o!==OP&&(o===RP?!r.isExpanded:r.isExpanded),e.breaks.push({start:r.start,end:r.end,isExpanded:!!r.isExpanded,old:a})}}}),e}function M6(){var n;n={adjustBreakLabelPair:w6,buildAxisBreakLine:b6,rectCoordBuildBreakAxis:_6,updateModelAxisBreak:S6},w0||(w0=n)}function I6(n,t){k(n,function(e){if(!e.model.get(["axisLabel","inside"])){var i=(function(a){var s,l,u=a.model,c=a.scale;if(!u.get(["axisLabel","show"])||c.isBlank())return;var h=c.getExtent();l=c instanceof mc?c.count():(s=c.getTicks()).length;var d,p=a.getLabelModel(),f=xc(a),g=1;l>40&&(g=Math.ceil(l/40));for(var v=0;v<l;v+=g){var y=f(s?s[v]:{value:h[0]+v},v),m=x(p.getTextRect(y),p.get("rotate")||0);d?d.union(m):d=m}return d;function x(_,b){var w=b*Math.PI/180,S=_.width,M=_.height,I=S*Math.abs(Math.cos(w))+Math.abs(M*Math.sin(w)),T=S*Math.abs(Math.sin(w))+Math.abs(M*Math.cos(w));return new de(_.x,_.y,I,T)}})(e);if(i){var r=e.isHorizontal()?"height":"width",o=e.model.get(["axisLabel","margin"]);t[r]-=i[r]+o,e.position==="top"?t.y+=i.height+o:e.position==="left"&&(t.x+=i.width+o)}}})}Te([function(n){n.registerPainter("canvas",bV)}]),Te([function(n){n.registerPainter("svg",xV)}]),Te([function(n){n.registerChartView(kV),n.registerSeriesModel(wV),n.registerLayout(Xu("line",!0)),n.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,vM("line"))},function(n){n.registerChartView(qV),n.registerSeriesModel(XV),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,_M(Ei)),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bM(Ei)),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,vM(Ei)),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(r){t.sortInfo&&r.axis.setCategorySortInfo(t.sortInfo)})}),wM(n)},function(n){n.registerChartView(r3),n.registerSeriesModel(qP),Xw(so,n.registerAction),n.registerLayout(n3),n.registerProcessor(Jl(so)),n.registerProcessor((function(t){return{seriesType:t,reset:function(e,i){var r=e.getData();r.filterSelf(function(o){var a=r.mapDimension("value"),s=r.get(a,o);return!(Ve(s)&&!isNaN(s)&&s<0)})}}})(so))},function(n){Te(XM),n.registerSeriesModel(o3),n.registerChartView(u3),n.registerLayout(Xu("scatter"))},function(n){Te(k3),n.registerChartView(M3),n.registerSeriesModel(S3),n.registerLayout(L3),n.registerProcessor(Jl("radar")),n.registerPreprocessor(w3)},function(n){Te(TI),n.registerChartView(eG),n.registerSeriesModel(Q3),n.registerLayout(aG),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,sG),Xw("map",n.registerAction)},function(n){n.registerChartView(wG),n.registerSeriesModel(xG),n.registerLayout(SG),n.registerVisual(MG),(function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,i){i.eachComponent({mainType:Ti,subType:Ea,query:e},function(r){var o=e.dataIndex,a=r.getData().tree.getNodeByDataIndex(o);a.isExpand=!a.isExpand})}),Wv(t,Ti,Ea)})(n)},function(n){n.registerSeriesModel(IG),n.registerChartView(NG),n.registerVisual(BG),n.registerLayout(OG),(function(t){for(var e=0;e<PI.length;e++)t.registerAction({type:PI[e],update:"updateView"},ct);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(i,r){r.eachComponent({mainType:"series",subType:"treemap",query:i},function(o,a){var s=ju(i,["treemapZoomToNode","treemapRootToNode"],o);if(s){var l=o.getViewRoot();l&&(i.direction=N0(l,s.node)?"rollUp":"drillDown"),o.resetViewRoot(s.node)}})})})(n)},function(n){n.registerChartView(ZG),n.registerSeriesModel(GG),n.registerProcessor(qG),n.registerVisual(jG),n.registerVisual(FG),n.registerLayout(HG),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,UG),n.registerLayout(YG),n.registerCoordinateSystem("graphView",{dimensions:Xf.dimensions,create:XG}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ct),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ct),Wv(n,Ti,mn)},function(n){n.registerChartView(QG),n.registerSeriesModel(KG),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,eF),n.registerProcessor(Jl("chord"))},function(n){n.registerChartView(iF),n.registerSeriesModel(rF)},function(n){n.registerChartView(lF),n.registerSeriesModel(oF),n.registerLayout(uF),n.registerProcessor(Jl(ol))},function(n){Te(uT),n.registerChartView(cF),n.registerSeriesModel(dF),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,gF)},function(n){n.registerChartView(zF),n.registerSeriesModel(RF),n.registerLayout(BF),n.registerVisual(YF),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:Ti,subType:Ir,query:t},function(i){i.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),Wv(n,Ti,Ir)},function(n){n.registerSeriesModel(hR),n.registerChartView(XF),n.registerLayout($F),n.registerTransform(JF),(function(t){KF(t,function(){var e=sa(ki);u0(t,{key:e,seriesType:ki,getMetrics:M0}),zd(e,Vd(e))})})(n)},function(n){n.registerChartView(a4),n.registerSeriesModel(pR),n.registerPreprocessor(h4),n.registerVisual(r4),n.registerLayout(p4),(function(t){d4(t,function(){var e=sa(yo);u0(t,{key:e,seriesType:yo,getMetrics:M0}),zd(e,Vd(e))})})(n)},function(n){n.registerChartView(g4),n.registerSeriesModel(v4),n.registerLayout(Xu("effectScatter"))},function(n){n.registerChartView(b4),n.registerSeriesModel(M4),n.registerLayout(vR),n.registerVisual(I4)},function(n){n.registerChartView(C4),n.registerSeriesModel(D4)},function(n){n.registerChartView(k4),n.registerSeriesModel(O4),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,_M(Sc)),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bM(Sc)),wM(n)},function(n){n.registerChartView(N4),n.registerSeriesModel(R4),n.registerLayout(E4),n.registerProcessor(Jl(sl))},function(n){n.registerChartView(B4),n.registerSeriesModel(z4),n.registerLayout(G4),n.registerVisual(V4),(function(t){t.registerAction({type:Z0,update:"updateView"},function(e,i){i.eachComponent({mainType:"series",subType:"sunburst",query:e},function(r,o){var a=ju(e,[Z0],r);if(a){var s=r.getViewRoot();s&&(e.direction=N0(s,a.node)?"rollUp":"drillDown"),r.resetViewRoot(a.node)}})}),t.registerAction({type:DT,update:"none"},function(e,i,r){e=X({},e),i.eachComponent({mainType:"series",subType:"sunburst",query:e},function(o){var a=ju(e,[DT],o);a&&(e.dataIndex=a.node.dataIndex)}),r.dispatchAction(X(e,{type:"highlight"}))}),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(e,i,r){e=X({},e),r.dispatchAction(X(e,{type:"downplay"}))})})(n)},function(n){n.registerChartView(Q4),n.registerSeriesModel(H4)}]),Te(function(n){Te(XM),Te(au)}),Te(function(n){Te(au),Ra.registerAxisPointerClass("PolarAxisPointer",pH),n.registerCoordinateSystem("polar",bH),n.registerComponentModel(gH),n.registerComponentView(PH),Fs(n,"angle",vH,kH),Fs(n,"radius",yH,LH),n.registerComponentView(SH),n.registerComponentView(TH),n.registerLayout(AH),(function(t,e){DH(t,function(){var i=Oa(e,Fi);FP(t,i,e,Fi),zd(i,Vd(i))})})(n,Ei)}),Te(TI),Te(function(n){Te(au),Ra.registerAxisPointerClass("SingleAxisPointer",GH),n.registerComponentView(HH),n.registerComponentView(RH),n.registerComponentModel(Fd),Fs(n,"single",Fd,Fd.defaultOption),n.registerCoordinateSystem("single",BH)}),Te(uT),Te(function(n){n.registerComponentModel(WH),n.registerComponentView(UH),n.registerCoordinateSystem("calendar",YH)}),Te(function(n){n.registerComponentModel(jH),n.registerComponentView(JH),n.registerCoordinateSystem("matrix",QH)}),Te(function(n){n.registerComponentModel(nW),n.registerComponentView(iW),n.registerPreprocessor(function(t){var e=t.graphic;q(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}),Te(function(n){n.registerComponentModel(pW),n.registerComponentView(fW),bs("saveAsImage",gW),bs("magicType",yW),bs("dataView",xW),bs("dataZoom",TW),bs("restore",bW),Te(dW)}),Te(function(n){Te(au),n.registerComponentModel(DW),n.registerComponentView(NW),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ct),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ct)}),Te(au),Te(function(n){n.registerComponentView(FW),n.registerComponentModel(HW),n.registerPreprocessor(zW),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,BW),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(i){i.setAreas(t.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ct),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ct),bs("brush",UW)}),Te(function(n){n.registerComponentModel(YW),n.registerComponentView(XW)}),Te(function(n){n.registerComponentModel(nN),n.registerComponentView(jW),n.registerSubTypeDefaulter("timeline",function(){return"slider"}),(function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,i,r){var o=i.getComponent("timeline");return o&&e.currentIndex!=null&&(o.setCurrentIndex(e.currentIndex),!o.get("loop",!0)&&o.isIndexMax()&&o.getPlayState()&&(o.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),i.resetOption("timeline",{replaceMerge:o.get("replaceMerge",!0)}),pe({currentIndex:o.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,i){var r=i.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})})(n),n.registerPreprocessor(KW)}),Te(function(n){n.registerComponentModel($W),n.registerComponentView(JW),n.registerPreprocessor(function(t){Hy(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}),Te(function(n){n.registerComponentModel(QW),n.registerComponentView(n8),n.registerPreprocessor(function(t){Hy(t.series,"markLine")&&(t.markLine=t.markLine||{})})}),Te(function(n){n.registerComponentModel(i8),n.registerComponentView(a8),n.registerPreprocessor(function(t){Hy(t.series,"markArea")&&(t.markArea=t.markArea||{})})}),Te(function(n){Te(aN),Te(c8)}),Te(function(n){Te(gC),Te(mC)}),Te(gC),Te(mC),Te(function(n){Te(AC),Te(LC)}),Te(AC),Te(LC),Te(function(n){n.registerComponentModel(z8),n.registerComponentView(B8)}),Te(function(n){n.registerPreprocessor(F8),n.registerVisual(n.PRIORITY.VISUAL.ARIA,G8)}),Te(function(n){n.registerTransform(j8),n.registerTransform(K8)}),Te(function(n){n.registerComponentModel($8),n.registerComponentView(J8)}),Te(function(n){n.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){k($e(i.seriesTransition),function(r){k($e(r.to),function(o){for(var a=i.updatedSeries,s=0;s<a.length;s++)(o.seriesIndex!=null&&o.seriesIndex===a[s].seriesIndex||o.seriesId!=null&&o.seriesId===a[s].id)&&(a[s][Rd]=!0)})})}),n.registerUpdateLifecycle("series:transition",function(t,e,i){var r=l6(e);if(r.oldSeries&&i.updatedSeries&&i.optionChanged){var o=i.seriesTransition;if(o)k($e(o),function(p){(function(f,g,v,y){var m=[],x=[];k($e(f.from),function(_){var b=QC(g.oldSeries,_);b>=0&&m.push({dataGroupId:g.oldDataGroupIds[b],data:g.oldData[b],divide:Fr(g.oldData[b]),groupIdDim:_.dimension})}),k($e(f.to),function(_){var b=QC(v.updatedSeries,_);if(b>=0){var w=v.updatedSeries[b].getData();x.push({dataGroupId:g.oldDataGroupIds[b],data:w,divide:Fr(w),groupIdDim:_.dimension})}}),m.length>0&&x.length>0&&KC(m,x,y)})(p,r,i,e)});else{var a=(function(p,f){var g=re(),v=re(),y=re();return k(p.oldSeries,function(m,x){var _=p.oldDataGroupIds[x],b=p.oldData[x],w=$C(m),S=JC(w);v.set(S,{dataGroupId:_,data:b}),q(w)&&k(w,function(M){y.set(M,{key:S,dataGroupId:_,data:b})})}),k(f.updatedSeries,function(m){if(m.isUniversalTransitionEnabled()&&m.isAnimationEnabled()){var x=m.get("dataGroupId"),_=m.getData(),b=$C(m),w=JC(b),S=v.get(w);if(S)g.set(w,{oldSeries:[{dataGroupId:S.dataGroupId,divide:Fr(S.data),data:S.data}],newSeries:[{dataGroupId:x,divide:Fr(_),data:_}]});else if(q(b)){var M=[];k(b,function(C){var D=v.get(C);D.data&&M.push({dataGroupId:D.dataGroupId,divide:Fr(D.data),data:D.data})}),M.length&&g.set(w,{oldSeries:M,newSeries:[{dataGroupId:x,data:_,divide:Fr(_)}]})}else{var I=y.get(b);if(I){var T=g.get(I.key);T||(T={oldSeries:[{dataGroupId:I.dataGroupId,data:I.data,divide:Fr(I.data)}],newSeries:[]},g.set(I.key,T)),T.newSeries.push({dataGroupId:x,data:_,divide:Fr(_)})}}}}),g})(r,i);k(a.keys(),function(p){var f=a.get(p);KC(f.oldSeries,f.newSeries,e)})}k(i.updatedSeries,function(p){p[Rd]&&(p[Rd]=!1)})}for(var s=t.getSeries(),l=r.oldSeries=[],u=r.oldDataGroupIds=[],c=r.oldData=[],h=0;h<s.length;h++){var d=s[h].getData();d.count()<1e4&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),c.push(d))}})}),Te(function(n){n.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){var r=_v(e).labelManager;r||(r=_v(e).labelManager=new oV),r.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var r=_v(e).labelManager;k(i.updatedSeries,function(o){r.addLabelsOfSeries(e.getViewOfSeriesModel(o))}),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()})}),Te(function(n){(function(t){function e(i,r){var o=[],a=Bs(r,i);function s(l,u){k(a[l],function(c){k(c.updateAxisBreaks(i).breaks,function(h){var d;o.push(pe(((d={})[u]=c.componentIndex,d),h))})})}return s("xAxisModels","xAxisIndex"),s("yAxisModels","yAxisIndex"),s("singleAxisModels","singleAxisIndex"),{eventBreaks:o}}t.registerAction(OV,e),t.registerAction(RV,e),t.registerAction(NV,e)})(n),x6(),M6()}),Te(function(){C0=I6}),Te(function(n){n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,b3())});export{hi as Axis,Ze as ChartView,ke as ComponentModel,et as ComponentView,fn as List,Oe as Model,eB as PRIORITY,je as SeriesModel,A6 as color,R6 as connect,H6 as dataTool,P6 as dependencies,N6 as disConnect,rB as disconnect,E6 as dispose,Ee as env,J6 as extendChartView,j6 as extendComponentModel,K6 as extendComponentView,$6 as extendSeriesModel,Z6 as format,B6 as getCoordinateSystemDimensions,xL as getInstanceByDom,z6 as getInstanceById,F6 as getMap,X6 as graphic,W6 as helper,O6 as init,dL as innerDrawElementOnCanvas,D6 as matrix,U6 as number,HB as parseGeoJSON,HB as parseGeoJson,Ci as registerAction,sB as registerCoordinateSystem,V6 as registerCustomSeries,lB as registerLayout,wL as registerLoading,aw as registerLocale,uB as registerMap,oB as registerPostInit,aB as registerPostUpdate,_L as registerPreprocessor,bL as registerProcessor,dS as registerTheme,cB as registerTransform,Ix as registerUpdateLifecycle,Yo as registerVisual,G6 as setCanvasCreator,yN as setPlatformAPI,bx as throttle,Y6 as time,Te as use,q6 as util,C6 as vector,L6 as version,T6 as zrUtil,k6 as zrender};