dsh-motion-ui 0.5.6 → 0.6.0

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 (144) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +76 -4
  3. package/VERIFICATION.md +109 -0
  4. package/client.js +3764 -22300
  5. package/index.js +107 -81
  6. package/lib/assets/echarts-core.js +47 -0
  7. package/lib/assets/echarts-full.js +78 -0
  8. package/lib/assets/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  9. package/lib/assets/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  10. package/lib/assets/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  11. package/lib/assets/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  12. package/lib/assets/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  13. package/lib/assets/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  14. package/lib/assets/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  15. package/lib/assets/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  16. package/lib/assets/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  17. package/lib/assets/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  18. package/lib/assets/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  19. package/lib/assets/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  20. package/lib/assets/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  21. package/lib/assets/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  22. package/lib/assets/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  23. package/lib/assets/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  24. package/lib/assets/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  25. package/lib/assets/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  26. package/lib/assets/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  27. package/lib/assets/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  28. package/lib/assets/katex.css +1 -0
  29. package/lib/assets/mermaid.js +3644 -0
  30. package/lib/assets/standalone-runtime.css +1 -0
  31. package/lib/assets/standalone-runtime.js +328 -0
  32. package/lib/assets/three.js +3842 -0
  33. package/lib/assets/visual.css +1 -0
  34. package/lib/assets/visual.js +414 -0
  35. package/lib/authoring-guide.js +2 -2
  36. package/lib/build-info.js +1 -1
  37. package/lib/canvas-system.js +3 -3
  38. package/lib/catalog.js +94 -92
  39. package/lib/components.js +9 -4
  40. package/lib/delivery.js +18 -0
  41. package/lib/diagnostics-route.js +6 -0
  42. package/lib/document-update.js +27 -0
  43. package/lib/export-runtime-bundle.js +1 -1
  44. package/lib/fence-feedback.js +61 -0
  45. package/lib/fence-route.js +14 -0
  46. package/lib/fences.js +9 -0
  47. package/lib/freeform.js +1 -1
  48. package/lib/inspection.js +3 -2
  49. package/lib/links.js +13 -0
  50. package/lib/normalize-authoring.js +46 -1
  51. package/lib/normalize-visual.js +36 -0
  52. package/lib/presentation.js +1 -1
  53. package/lib/protocol.js +348 -320
  54. package/lib/scene-library.js +13 -0
  55. package/lib/store.js +17 -2
  56. package/lib/stream.js +12 -0
  57. package/lib/text-document.js +25 -0
  58. package/lib/text-guide.js +13 -0
  59. package/lib/third-party/bundled/@braintree_sanitize-url-LICENSE +21 -0
  60. package/lib/third-party/bundled/@iconify_utils-license.txt +21 -0
  61. package/lib/third-party/bundled/@mermaid-js_parser-LICENSE +21 -0
  62. package/lib/third-party/bundled/@upsetjs_venn.js-LICENSE +22 -0
  63. package/lib/third-party/bundled/cose-base-LICENSE +21 -0
  64. package/lib/third-party/bundled/cytoscape-LICENSE +19 -0
  65. package/lib/third-party/bundled/cytoscape-cose-bilkent-LICENSE +21 -0
  66. package/lib/third-party/bundled/cytoscape-fcose-LICENSE +19 -0
  67. package/lib/third-party/bundled/cytoscape-license-update.mjs +32 -0
  68. package/lib/third-party/bundled/d3-LICENSE +13 -0
  69. package/lib/third-party/bundled/d3-array-LICENSE +27 -0
  70. package/lib/third-party/bundled/d3-axis-LICENSE +13 -0
  71. package/lib/third-party/bundled/d3-brush-LICENSE +13 -0
  72. package/lib/third-party/bundled/d3-chord-LICENSE +13 -0
  73. package/lib/third-party/bundled/d3-color-LICENSE +13 -0
  74. package/lib/third-party/bundled/d3-contour-LICENSE +13 -0
  75. package/lib/third-party/bundled/d3-delaunay-LICENSE +14 -0
  76. package/lib/third-party/bundled/d3-dispatch-LICENSE +13 -0
  77. package/lib/third-party/bundled/d3-drag-LICENSE +13 -0
  78. package/lib/third-party/bundled/d3-dsv-LICENSE +13 -0
  79. package/lib/third-party/bundled/d3-ease-LICENSE +28 -0
  80. package/lib/third-party/bundled/d3-fetch-LICENSE +13 -0
  81. package/lib/third-party/bundled/d3-force-LICENSE +13 -0
  82. package/lib/third-party/bundled/d3-format-LICENSE +13 -0
  83. package/lib/third-party/bundled/d3-geo-LICENSE +34 -0
  84. package/lib/third-party/bundled/d3-hierarchy-LICENSE +13 -0
  85. package/lib/third-party/bundled/d3-interpolate-LICENSE +13 -0
  86. package/lib/third-party/bundled/d3-path-LICENSE +27 -0
  87. package/lib/third-party/bundled/d3-polygon-LICENSE +13 -0
  88. package/lib/third-party/bundled/d3-quadtree-LICENSE +13 -0
  89. package/lib/third-party/bundled/d3-random-LICENSE +13 -0
  90. package/lib/third-party/bundled/d3-sankey-LICENSE +27 -0
  91. package/lib/third-party/bundled/d3-scale-LICENSE +13 -0
  92. package/lib/third-party/bundled/d3-scale-chromatic-LICENSE +28 -0
  93. package/lib/third-party/bundled/d3-selection-LICENSE +13 -0
  94. package/lib/third-party/bundled/d3-shape-LICENSE +13 -0
  95. package/lib/third-party/bundled/d3-time-LICENSE +13 -0
  96. package/lib/third-party/bundled/d3-time-format-LICENSE +13 -0
  97. package/lib/third-party/bundled/d3-timer-LICENSE +13 -0
  98. package/lib/third-party/bundled/d3-transition-LICENSE +13 -0
  99. package/lib/third-party/bundled/d3-zoom-LICENSE +13 -0
  100. package/lib/third-party/bundled/dagre-d3-es-LICENSE.md +23 -0
  101. package/lib/third-party/bundled/dayjs-LICENSE +21 -0
  102. package/lib/third-party/bundled/delaunator-LICENSE +15 -0
  103. package/lib/third-party/bundled/dompurify-LICENSE +202 -0
  104. package/lib/third-party/bundled/dompurify-LICENSE-MPL +373 -0
  105. package/lib/third-party/bundled/echarts-LICENSE +222 -0
  106. package/lib/third-party/bundled/echarts-NOTICE +5 -0
  107. package/lib/third-party/bundled/es-toolkit-LICENSE +21 -0
  108. package/lib/third-party/bundled/es-toolkit-NOTICE +39 -0
  109. package/lib/third-party/bundled/internmap-LICENSE +13 -0
  110. package/lib/third-party/bundled/katex-LICENSE +21 -0
  111. package/lib/third-party/bundled/khroma-license +21 -0
  112. package/lib/third-party/bundled/layout-base-LICENSE +21 -0
  113. package/lib/third-party/bundled/lodash-es-LICENSE +47 -0
  114. package/lib/third-party/bundled/marked-LICENSE.md +44 -0
  115. package/lib/third-party/bundled/mermaid-LICENSE +21 -0
  116. package/lib/third-party/bundled/react-LICENSE +21 -0
  117. package/lib/third-party/bundled/react-dom-LICENSE +21 -0
  118. package/lib/third-party/bundled/robust-predicates-LICENSE +24 -0
  119. package/lib/third-party/bundled/roughjs-LICENSE +21 -0
  120. package/lib/third-party/bundled/scheduler-LICENSE +21 -0
  121. package/lib/third-party/bundled/stylis-LICENSE +21 -0
  122. package/lib/third-party/bundled/three-LICENSE +21 -0
  123. package/lib/third-party/bundled/ts-dedent-LICENSE +21 -0
  124. package/lib/third-party/bundled/tslib-LICENSE.txt +12 -0
  125. package/lib/third-party/bundled/uuid-LICENSE.md +9 -0
  126. package/lib/third-party/bundled/zrender-LICENSE +29 -0
  127. package/lib/third-party/dsh-genui-LICENSE.txt +21 -0
  128. package/lib/third-party/dsh-genui-NOTICE.md +26 -0
  129. package/lib/third-party/echarts-LICENSE.txt +222 -0
  130. package/lib/third-party/echarts-NOTICE.txt +5 -0
  131. package/lib/third-party/katex-LICENSE.txt +21 -0
  132. package/lib/third-party/mermaid-LICENSE.txt +21 -0
  133. package/lib/third-party/three-LICENSE.txt +21 -0
  134. package/lib/tool-schema.js +17 -6
  135. package/lib/typography.js +16 -0
  136. package/lib/ui-intent.js +15 -14
  137. package/lib/ui-skill.js +53 -47
  138. package/lib/visual-assets.js +7 -0
  139. package/lib/visual-defaults.js +2 -0
  140. package/lib/visual-guard.js +2 -0
  141. package/lib/visual-styles.js +30 -0
  142. package/lib/visual.js +40 -0
  143. package/package.json +92 -77
  144. package/skills/intelligent-ui/SKILL.md +103 -96
@@ -0,0 +1,47 @@
1
+ (()=>{var EE=Object.defineProperty;var ME=(r,e)=>{for(var t in e)EE(r,t,{get:e[t],enumerable:!0})};var ih=function(r,e){return ih=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},ih(r,e)};function L(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ih(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var IE=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),LE=(function(){function r(){this.browser=new IE,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),Hi=new LE;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Hi.wxa=!0,Hi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Hi.worker=!0:!Hi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Hi.node=!0,Hi.svgSupported=!0):OE(navigator.userAgent,Hi);function OE(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),n&&(t.ie=!0,t.version=n[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var ne=Hi;var cu=12,PE="sans-serif",fr=cu+"px "+PE,RE=20,NE=100,kE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function BE(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),n=(r.charCodeAt(t)-RE)/NE;e[i]=n}return e}var zE=BE(kE),je={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,i){if(!r){var n=je.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==i&&(e=r.font=i||fr),r.measureText(t);t=t||"",i=i||fr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||cu,s=0;if(i.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=zE[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i},getTime:function(){return Date.now?Date.now():+new Date}};var Ty=Kt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),wy=Kt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),$a=Object.prototype.toString,hu=Array.prototype,UE=hu.forEach,VE=hu.filter,ah=hu.slice,FE=hu.map,Sy=function(){}.constructor,pu=Sy?Sy.prototype:null,oh="__proto__",nh=2311,HE=Math.pow(2,53)-1;function vu(){return nh>=HE&&(nh=0),nh++}function Ja(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ee(r){if(r==null||typeof r!="object")return r;var e=r,t=$a.call(r);if(t==="[object Array]"){if(!_s(r)){e=[];for(var i=0,n=r.length;i<n;i++)e[i]=ee(r[i])}}else if(wy[t]){if(!_s(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var i=0,n=r.length;i<n;i++)e[i]=r[i]}}}else if(!Ty[t]&&!_s(r)&&!Qa(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==oh&&(e[o]=ee(r[o]))}return e}function fe(r,e,t){if(!W(e)||!W(r))return t?ee(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==oh){var n=r[i],a=e[i];W(a)&&W(n)&&!N(a)&&!N(n)&&!Qa(a)&&!Qa(n)&&!by(a)&&!by(n)&&!_s(a)&&!_s(n)?fe(n,a,t):(t||!(i in r))&&(r[i]=ee(e[i]))}return r}function Cy(r,e){for(var t=r[0],i=1,n=r.length;i<n;i++)t=fe(t,r[i],e);return t}function P(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==oh&&(r[t]=e[t]);return r}function Ay(r,e,t){r=r||{};for(var i=0;i<t.length;i++){var n=t[i];r[n]=e[n]}return r}function ie(r,e,t){for(var i=he(e),n=0,a=i.length;n<a;n++){var o=i[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var hU=je.createCanvas;function ae(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t}return-1}function Dy(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function mt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else ie(r,e,t)}function Ge(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function w(r,e,t){if(r&&e)if(r.forEach&&r.forEach===UE)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)e.call(t,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function z(r,e,t){if(!r)return[];if(!e)return du(r);if(r.map&&r.map===FE)return r.map(e,t);for(var i=[],n=0,a=r.length;n<a;n++)i.push(e.call(t,r[n],n,r));return i}function Kt(r,e,t,i){if(r&&e){for(var n=0,a=r.length;n<a;n++)t=e.call(i,t,r[n],n,r);return t}}function Me(r,e,t){if(!r)return[];if(!e)return du(r);if(r.filter&&r.filter===VE)return r.filter(e,t);for(var i=[],n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r)&&i.push(r[n]);return i}function Ey(r,e,t){if(r&&e){for(var i=0,n=r.length;i<n;i++)if(e.call(t,r[i],i,r))return r[i]}}function he(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function GE(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat(ah.call(arguments)))}}var $=pu&&Z(pu.bind)?pu.call.bind(pu.bind):GE;function ce(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(ah.call(arguments)))}}function N(r){return Array.isArray?Array.isArray(r):$a.call(r)==="[object Array]"}function Z(r){return typeof r=="function"}function U(r){return typeof r=="string"}function xs(r){return $a.call(r)==="[object String]"}function se(r){return typeof r=="number"}function W(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function by(r){return!!Ty[$a.call(r)]}function Ye(r){return!!wy[$a.call(r)]}function Qa(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Gi(r){return r.colorStops!=null}function My(r){return r.image!=null}function Iy(r){return $a.call(r)==="[object RegExp]"}function Yi(r){return r!==r}function jt(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,i=r.length;t<i;t++)if(r[t]!=null)return r[t]}function F(r,e){return r??e}function Qt(r,e,t){return r??e??t}function du(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return ah.apply(r,e)}function eo(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function et(r,e){if(!r)throw new Error(e)}function gt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ly="__ec_primitive__";function Un(r){r[Ly]=!0}function _s(r){return r[Ly]}var YE=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return he(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},r})(),Oy=typeof Map=="function";function WE(){return Oy?new Map:new YE}var ZE=(function(){function r(e){var t=N(e);this.data=WE();var i=this;e instanceof r?e.each(n):e&&w(e,n);function n(a,o){t?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(i,n){e.call(t,i,n)})},r.prototype.keys=function(){var e=this.data.keys();return Oy?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function V(r){return new ZE(r)}function Py(r,e){for(var t=new r.constructor(r.length+e.length),i=0;i<r.length;i++)t[i]=r[i];for(var n=r.length,i=0;i<e.length;i++)t[i+n]=e[i];return t}function Wi(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}return e&&P(t,e),t}function mu(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Ce(r,e){return r.hasOwnProperty(e)}function Ne(){}var Ry=180/Math.PI,vU=Number.EPSILON||Math.pow(2,-52);function Zi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Ny(r){return[r[0],r[1]]}function gu(r,e,t){return r[0]=e,r[1]=t,r}function sh(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function yu(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function XE(r){return Math.sqrt(qE(r))}function qE(r){return r[0]*r[0]+r[1]*r[1]}function _u(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function to(r,e){var t=XE(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function xu(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Ss=xu;function KE(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Vn=KE;function Su(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function yt(r,e,t){var i=e[0],n=e[1];return r[0]=t[0]*i+t[2]*n+t[4],r[1]=t[1]*i+t[3]*n+t[5],r}function ci(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function pi(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var ro=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),jE=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ro(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,t.drift(a,o,e),this.handler.dispatchToElement(new ro(t,e),"drag",e.event);var s=this.handler.findHover(i,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ro(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ro(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ro(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ro(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),ky=jE;var QE=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(n=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:t,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==t&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},r.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r})(),nt=QE;var $E=Math.log(2);function lh(r,e,t,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/$E);return r[t][l]}for(var u=i|1<<t,f=t+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*r[t][p]*lh(r,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function uh(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],i={},n=lh(t,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*lh(t,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var bu="___zrEVENTSAVED",fh=[];function By(r,e,t,i,n){return Tu(fh,e,i,n,!0)&&Tu(r,t,fh[0],fh[1])}function zy(r,e){r&&t(r),e&&t(e);function t(i){var n=i[bu];n&&(n.clearMarkers&&n.clearMarkers(),delete i[bu])}}function Tu(r,e,t,i,n){if(e.getBoundingClientRect&&ne.domSupported&&!ch(e)){var a=e[bu]||(e[bu]={}),o=JE(e,a),s=eM(o,a,n);if(s)return s(r,t,i),!0}return!1}function JE(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){w(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function eM(r,e,t){for(var i=t?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=t?uh(s,o):uh(o,s))}function ch(r){return r.nodeName.toUpperCase()==="CANVAS"}var tM=/([&<>"'])/g,rM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function _t(r){return r==null?"":(r+"").replace(tM,function(e,t){return rM[t]})}var iM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ph=[],nM=ne.browser.firefox&&+ne.browser.version.split(".")[0]<39;function wu(r,e,t,i){return t=t||{},i?Uy(r,e,t):nM&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Uy(r,e,t),t}function Uy(r,e,t){if(ne.domSupported&&r.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(ch(r)){var a=r.getBoundingClientRect();t.zrX=i-a.left,t.zrY=n-a.top;return}else if(Tu(ph,r,i,n)){t.zrX=ph[0],t.zrY=ph[1];return}}t.zrX=t.zrY=0}function Cu(r){return r||window.event}function Bt(r,e,t){if(e=Cu(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&wu(r,o,e,t)}else{wu(r,e,e,t);var a=aM(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&iM.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function aM(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var n=Math.abs(i!==0?i:t),a=i>0?-1:i<0?1:t>0?-1:1;return 3*n*a}function Vy(r,e,t,i){r.addEventListener(e,t,i)}function Fy(r,e,t,i){r.removeEventListener(e,t,i)}var Hr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function hh(r){return r.which===2||r.which===3}var Gy=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=wu(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in vh)if(vh.hasOwnProperty(t)){var i=vh[t](this._track,e);if(i)return i}},r})();function Hy(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function oM(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var vh={pinch:function(r,e){var t=r.length;if(t){var i=(r[t-1]||{}).points,n=(r[t-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Hy(i)/Hy(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=oM(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Mt(){return[1,0,0,1,0,0]}function hi(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Ts(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Xi(r,e,t){var i=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function ws(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function io(r,e,t,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),c=Math.cos(t);return r[0]=n*c+s*f,r[1]=-n*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-i[0])+f*(u-i[1])+i[0],r[5]=c*(u-i[1])-f*(o-i[0])+i[1],r}function Yy(r,e,t){var i=t[0],n=t[1];return r[0]=e[0]*i,r[1]=e[1]*n,r[2]=e[2]*i,r[3]=e[3]*n,r[4]=e[4]*i,r[5]=e[5]*n,r}function Gr(r,e){var t=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-t*s)*l,r):null}var sM=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,n){e.x=t.x+i.x*n,e.y=t.y+i.y*n},r.lerp=function(e,t,i,n){var a=1-n;e.x=a*t.x+n*i.x,e.y=a*t.y+n*i.y},r})(),ue=sM;var Wn=Math.min,no=Math.max,gh=Math.abs,Wy=["x","y"],lM=["width","height"],Fn=new ue,Hn=new ue,Gn=new ue,Yn=new ue,$t=_h(),As=$t.minTv,yh=$t.maxTv,Ds=[0,0],vi=(function(){function r(e,t,i,n){dh(this,e,t,i,n)}return r.set=function(e,t,i,n,a){return n<0&&(t=t+n,n=-n),a<0&&(i=i+a,a=-a),e.x=t,e.y=i,e.width=n,e.height=a,e},r.prototype.union=function(e){var t=Wn(e.x,this.x),i=Wn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=no(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=no(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return uM(Mt(),this,e)},r.prototype.intersect=function(e,t,i){return r.intersect(this,e,t,i)},r.intersect=function(e,t,i,n){i&&ue.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!t)return!1;e instanceof r||(e=dh(fM,e.x,e.y,e.width,e.height)),t instanceof r||(t=dh(cM,t.x,t.y,t.width,t.height));var s=!!i;$t.reset(n,s);var l=$t.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=t.x+l,v=t.x+t.width-l,d=t.y+l,m=t.y+t.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);return(s||a)&&(Ds[0]=1/0,Ds[1]=0,Xy(u,f,h,v,0,s,a,o),Xy(c,p,d,m,1,s,a,o),s&&ue.copy(i,g?$t.useDir?$t.dirMinTv:As:yh)),g},r.contain=function(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){Zy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,i){if(!i){e!==t&&Zy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=t.x*n+o,e.y=t.y*a+s,e.width=t.width*n,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Fn.x=Gn.x=t.x,Fn.y=Yn.y=t.y,Hn.x=Yn.x=t.x+t.width,Hn.y=Gn.y=t.y+t.height,Fn.transform(i),Yn.transform(i),Hn.transform(i),Gn.transform(i),e.x=Wn(Fn.x,Hn.x,Gn.x,Yn.x),e.y=Wn(Fn.y,Hn.y,Gn.y,Yn.y);var l=no(Fn.x,Hn.x,Gn.x,Yn.x),u=no(Fn.y,Hn.y,Gn.y,Yn.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,i){var n=i.width/t.width,a=i.height/t.height;return e=hi(e||[]),ws(e,e,gu(mh,-t.x,-t.y)),Yy(e,e,gu(mh,n,a)),ws(e,e,gu(mh,i.x,i.y)),e},r})(),DU=vi.create,dh=vi.set,Zy=vi.copy,uM=vi.calculateTransform,EU=vi.applyTransform,MU=vi.contain,fM=new vi(0,0,0,0),cM=new vi(0,0,0,0),mh=[];function Xy(r,e,t,i,n,a,o,s){var l=gh(e-t),u=gh(i-r),f=Wn(l,u),c=Wy[n],p=Wy[1-n],h=lM[n];e<t||i<r?l<u?(a&&(yh[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(yh[c]=u),s&&(o[c]=r,o[h]=0)):(o&&(o[c]=no(r,t),o[h]=Wn(e,i)-o[c]),a&&(f<Ds[0]||$t.useDir)&&(Ds[0]=Wn(f,Ds[0]),(l<u||!$t.bidirectional)&&(As[c]=l,As[p]=0,$t.useDir&&$t.calcDirMTV()),(l>=u||!$t.bidirectional)&&(As[c]=-u,As[p]=0,$t.useDir&&$t.calcDirMTV())))}function _h(){var r=0,e=new ue,t=new ue,i={minTv:new ue,maxTv:new ue,useDir:!1,dirMinTv:new ue,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=no(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),t.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,n(t.x)&&n(t.y)){o.set(0,0);return}(i.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(a){return gh(a)<1e-10}return i}var re=vi;var Ky="silent";function pM(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:hM}}function hM(){Hr(this.event)}var vM=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(nt),Es=(function(){function r(e,t){this.x=e,this.y=t}return r})(),dM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xh=new re(0,0,0,0),jy=(function(r){L(e,r);function e(t,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Es(0,0),s.storage=t,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new vM,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new ky(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(w(dM,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,n=t.zrY,a=Qy(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Es(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Es(0,0)},e.prototype.dispatch=function(t,i){var n=this[t];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,n){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+i,s=pM(i,t,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,n){var a=this.storage.getDisplayList(),o=new Es(t,i);if(qy(a,o,t,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new re(t-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(xh.copy(p.getBoundingRect()),p.transform&&xh.applyTransform(p.transform),xh.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=t+m*Math.cos(g),_=i+m*Math.sin(g);if(qy(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new Gy);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;t.gestureEvent=o;var s=new Es;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(nt);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){jy.prototype[r]=function(e){var t=e.zrX,i=e.zrY,n=Qy(this,t,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(t,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ss(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function mM(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Ky:!0}return!1}function qy(r,e,t,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=mM(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==Ky)){e.target=o;break}}}function Qy(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var $y=jy;var t_=32,Ms=7;function gM(r){for(var e=0;r>=t_;)e|=r&1,r>>=1;return r+e}function Jy(r,e,t,i){var n=e+1;if(n===t)return 1;if(i(r[n++],r[e])<0){for(;n<t&&i(r[n],r[n-1])<0;)n++;yM(r,e,n)}else for(;n<t&&i(r[n],r[n-1])>=0;)n++;return n-e}function yM(r,e,t){for(t--;e<t;){var i=r[e];r[e++]=r[t],r[t--]=i}}function e_(r,e,t,i,n){for(i===e&&i++;i<t;i++){for(var a=r[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Sh(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])>0){for(s=i-n;l<s&&a(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function bh(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])<0){for(s=n+1;l<s&&a(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function _M(r,e){var t=Ms,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],d=n[h],m=i[h+1],g=n[h+1];n[h]=d+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=bh(r[m],r,v,d,0,e);v+=y,d-=y,d!==0&&(g=Sh(r[v+d-1],r,m,g,g-1,e),g!==0&&(d<=g?c(v,d,m,g):p(v,d,m,g)))}function c(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=r[h+g];var y=0,_=d,x=h;if(r[x++]=r[_++],--m===0){for(g=0;g<v;g++)r[x+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)r[x+g]=r[_+g];r[x+m]=o[y];return}for(var S=t,b,T,A;;){b=0,T=0,A=!1;do if(e(r[_],o[y])<0){if(r[x++]=r[_++],T++,b=0,--m===0){A=!0;break}}else if(r[x++]=o[y++],b++,T=0,--v===1){A=!0;break}while((b|T)<S);if(A)break;do{if(b=bh(r[_],o,y,v,0,e),b!==0){for(g=0;g<b;g++)r[x+g]=o[y+g];if(x+=b,y+=b,v-=b,v<=1){A=!0;break}}if(r[x++]=r[_++],--m===0){A=!0;break}if(T=Sh(o[y],r,_,m,0,e),T!==0){for(g=0;g<T;g++)r[x+g]=r[_+g];if(x+=T,_+=T,m-=T,m===0){A=!0;break}}if(r[x++]=o[y++],--v===1){A=!0;break}S--}while(b>=Ms||T>=Ms);if(A)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),v===1){for(g=0;g<m;g++)r[x+g]=r[_+g];r[x+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)r[x+g]=o[y+g]}}function p(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=r[d+g];var y=h+v-1,_=m-1,x=d+m-1,S=0,b=0;if(r[x--]=r[y--],--v===0){for(S=x-(m-1),g=0;g<m;g++)r[S+g]=o[g];return}if(m===1){for(x-=v,y-=v,b=x+1,S=y+1,g=v-1;g>=0;g--)r[b+g]=r[S+g];r[x]=o[_];return}for(var T=t;;){var A=0,C=0,D=!1;do if(e(o[_],r[y])<0){if(r[x--]=r[y--],A++,C=0,--v===0){D=!0;break}}else if(r[x--]=o[_--],C++,A=0,--m===1){D=!0;break}while((A|C)<T);if(D)break;do{if(A=v-bh(o[_],r,h,v,v-1,e),A!==0){for(x-=A,y-=A,v-=A,b=x+1,S=y+1,g=A-1;g>=0;g--)r[b+g]=r[S+g];if(v===0){D=!0;break}}if(r[x--]=o[_--],--m===1){D=!0;break}if(C=m-Sh(r[y],o,0,m,m-1,e),C!==0){for(x-=C,_-=C,m-=C,b=x+1,S=_+1,g=0;g<C;g++)r[b+g]=o[S+g];if(m<=1){D=!0;break}}if(r[x--]=r[y--],--v===0){D=!0;break}T--}while(A>=Ms||C>=Ms);if(D)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(x-=v,y-=v,b=x+1,S=y+1,g=v-1;g>=0;g--)r[b+g]=r[S+g];r[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)r[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Zn(r,e,t,i){t||(t=0),i||(i=r.length);var n=i-t;if(!(n<2)){var a=0;if(n<t_){a=Jy(r,t,i,e),e_(r,t,i,t+a,e);return}var o=_M(r,e),s=gM(n);do{if(a=Jy(r,t,i,e),a<s){var l=n;l>s&&(l=s),e_(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),n-=a,t+=a}while(n!==0);o.forceMergeRuns()}}var Qe=1,Xn=2,qi=4;var r_=!1;function Th(){r_||(r_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function i_(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var xM=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=i_}return r.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,a=t.length;n<a;n++)this._updateAndAddDisplayable(t[n],null,e);i.length=this._displayListLen,Zn(i,i_)},r.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Qe),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(Th(),v.z=0),isNaN(v.z2)&&(Th(),v.z2=0),isNaN(v.zlevel)&&(Th(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var n=ae(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),n_=xM;var a_;a_=ne.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Is=a_;var Au={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Au.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?Au.bounceIn(r*2)*.5:Au.bounceOut(r*2-1)*.5+.5}},Du=Au;var Eu=Math.pow,ji=Math.sqrt,Iu=1e-8,s_=1e-4,o_=ji(3),Mu=1/3,Yr=Zi(),cr=Zi(),ao=Zi();function Ki(r){return r>-Iu&&r<Iu}function l_(r){return r>Iu||r<-Iu}function Ue(r,e,t,i,n){var a=1-n;return a*a*(a*r+3*n*e)+n*n*(n*i+3*a*t)}function wh(r,e,t,i,n){var a=1-n;return 3*(((e-r)*a+2*(t-e)*n)*a+(i-t)*n*n)}function qn(r,e,t,i,n,a){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Ki(f)&&Ki(c))if(Ki(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var d=c*c-4*f*p;if(Ki(d)){var m=c/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g)}else if(d>0){var y=ji(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-Eu(-_,Mu):_=Eu(_,Mu),x<0?x=-Eu(-x,Mu):x=Eu(x,Mu);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*ji(f*f*f)),b=Math.acos(S)/3,T=ji(f),A=Math.cos(b),v=(-s-2*T*A)/(3*o),g=(-s+T*(A+o_*Math.sin(b)))/(3*o),C=(-s+T*(A-o_*Math.sin(b)))/(3*o);v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g),C>=0&&C<=1&&(a[h++]=C)}}return h}function Lu(r,e,t,i,n){var a=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(Ki(o)){if(l_(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Ki(f))n[0]=-a/(2*o);else if(f>0){var c=ji(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function oo(r,e,t,i,n,a){var o=(e-r)*n+r,s=(t-e)*n+e,l=(i-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function u_(r,e,t,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,v,d,m,g;Yr[0]=l,Yr[1]=u;for(var y=0;y<1;y+=.05)cr[0]=Ue(r,t,n,o,y),cr[1]=Ue(e,i,a,s,y),m=Vn(Yr,cr),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<s_);_++)v=c-p,d=c+p,cr[0]=Ue(r,t,n,o,v),cr[1]=Ue(e,i,a,s,v),m=Vn(cr,Yr),v>=0&&m<h?(c=v,h=m):(ao[0]=Ue(r,t,n,o,d),ao[1]=Ue(e,i,a,s,d),g=Vn(ao,Yr),d<=1&&g<h?(c=d,h=g):p*=.5);return f&&(f[0]=Ue(r,t,n,o,c),f[1]=Ue(e,i,a,s,c)),ji(h)}function f_(r,e,t,i,n,a,o,s,l){for(var u=r,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,d=Ue(r,t,n,o,v),m=Ue(e,i,a,s,v),g=d-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=d,f=m}return c}function at(r,e,t,i){var n=1-i;return n*(n*r+2*i*e)+i*i*t}function Ch(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function c_(r,e,t,i,n){var a=r-2*e+t,o=2*(e-r),s=r-i,l=0;if(Ki(a)){if(l_(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Ki(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=ji(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ou(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function so(r,e,t,i,n){var a=(e-r)*i+r,o=(t-e)*i+e,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function p_(r,e,t,i,n,a,o,s,l){var u,f=.005,c=1/0;Yr[0]=o,Yr[1]=s;for(var p=0;p<1;p+=.05){cr[0]=at(r,t,n,p),cr[1]=at(e,i,a,p);var h=Vn(Yr,cr);h<c&&(u=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<s_);v++){var d=u-f,m=u+f;cr[0]=at(r,t,n,d),cr[1]=at(e,i,a,d);var h=Vn(cr,Yr);if(d>=0&&h<c)u=d,c=h;else{ao[0]=at(r,t,n,m),ao[1]=at(e,i,a,m);var g=Vn(ao,Yr);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=at(r,t,n,u),l[1]=at(e,i,a,u)),ji(c)}function h_(r,e,t,i,n,a,o){for(var s=r,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=at(r,t,n,p),v=at(e,i,a,p),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var SM=/cubic-bezier\(([0-9,\.e ]+)\)/;function Pu(r){var e=r&&SM.exec(r);if(e){var t=e[1].split(","),i=+gt(t[0]),n=+gt(t[1]),a=+gt(t[2]),o=+gt(t[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:qn(0,i,a,1,l,s)&&Ue(0,n,o,1,s[0])}}}var bM=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ne,this.ondestroy=e.ondestroy||Ne,this.onrestart=e.onrestart||Ne,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Z(e)?e:Du[e]||Pu(e)},r})(),v_=bM;var d_=(function(){function r(e){this.value=e}return r})();var TM=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new d_(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})();var wM=(function(){function r(e){this._list=new TM,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new d_(t),s.key=e,i.insertEntry(s),n[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),Wr=wM;var m_={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 Qi(r){return r=Math.round(r),r<0?0:r>255?255:r}function CM(r){return r=Math.round(r),r<0?0:r>360?360:r}function ku(r){return r<0?0:r>1?1:r}function Dh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Qi(parseFloat(e)/100*255):Qi(parseInt(e,10))}function Kn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?ku(parseFloat(e)/100):ku(parseFloat(e))}function Eh(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ru(r,e,t){return r+(e-r)*t}function pr(r,e,t,i,n){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}function Mh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var __=new Wr(20),Nu=null;function lo(r,e){Nu&&Mh(Nu,e),Nu=__.put(r,Nu||e.slice())}function zt(r,e){if(r){e=e||[];var t=__.get(r);if(t)return Mh(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in m_)return Mh(e,m_[i]),lo(r,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){pr(e,0,0,0,1);return}return pr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),lo(r,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){pr(e,0,0,0,1);return}return pr(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),lo(r,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?pr(e,+u[0],+u[1],+u[2],1):pr(e,0,0,0,1);f=Kn(u.pop());case"rgb":if(u.length>=3)return pr(e,Dh(u[0]),Dh(u[1]),Dh(u[2]),u.length===3?f:Kn(u[3])),lo(r,e),e;pr(e,0,0,0,1);return;case"hsla":if(u.length!==4){pr(e,0,0,0,1);return}return u[3]=Kn(u[3]),Ih(u,e),lo(r,e),e;case"hsl":if(u.length!==3){pr(e,0,0,0,1);return}return Ih(u,e),lo(r,e),e;default:return}}pr(e,0,0,0,1)}}function Ih(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=Kn(r[1]),n=Kn(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],pr(e,Qi(Eh(o,a,t+1/3)*255),Qi(Eh(o,a,t)*255),Qi(Eh(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function AM(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.min(e,t,i),a=Math.max(e,t,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-t)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:t===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function g_(r,e){var t=zt(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return $i(t,t.length===4?"rgba":"rgb")}}function x_(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=zt(e[n]),s=zt(e[a]),l=i-n,u=$i([Qi(Ru(o[0],s[0],l)),Qi(Ru(o[1],s[1],l)),Qi(Ru(o[2],s[2],l)),ku(Ru(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function Ls(r,e,t,i){var n=zt(r);if(r)return n=AM(n),e!=null&&(n[0]=CM(Z(e)?e(n[0]):e)),t!=null&&(n[1]=Kn(Z(t)?t(n[1]):t)),i!=null&&(n[2]=Kn(Z(i)?i(n[2]):i)),$i(Ih(n),"rgba")}function Lh(r,e){var t=zt(r);if(t&&e!=null)return t[3]=ku(e),$i(t,"rgba")}function $i(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function uo(r,e){var t=zt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var y_=new Wr(100);function Oh(r){if(U(r)){var e=y_.get(r);return e||(e=g_(r,-.1),y_.put(r,e)),e}else if(Gi(r)){var t=P({},r);return t.colorStops=z(r.colorStops,function(i){return{offset:i.offset,color:g_(i.color,-.1)}}),t}return r}function b_(r){return r.type==="linear"}function T_(r){return r.type==="radial"}var rV=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})();var Rh=Array.prototype.slice;function di(r,e,t){return(e-r)*t+r}function Ph(r,e,t,i){for(var n=e.length,a=0;a<n;a++)r[a]=di(e[a],t[a],i);return r}function DM(r,e,t,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=di(e[o][s],t[o][s],i)}return r}function Bu(r,e,t,i){for(var n=e.length,a=0;a<n;a++)r[a]=e[a]+t[a]*i;return r}function w_(r,e,t,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*i}return r}function EM(r,e){for(var t=r.length,i=e.length,n=t>i?e:r,a=Math.min(t,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function MM(r,e,t){var i=r,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(t===1?n[l]:Rh.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function Rs(r){if(Ge(r)){var e=r.length;if(Ge(r[0])){for(var t=[],i=0;i<e;i++)t.push(Rh.call(r[i]));return t}return Rh.call(r)}return r}function Vu(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function IM(r){return Ge(r&&r[0])?2:1}var zu=0,Fu=1,D_=2,Ps=3,Nh=4,kh=5,C_=6;function A_(r){return r===Nh||r===kh}function Uu(r){return r===Fu||r===D_}var Os=[0,0,0,0],LM=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=C_,l=t;if(Ge(t)){var u=IM(t);s=u,(u===1&&!se(t[0])||u===2&&!se(t[0][0]))&&(o=!0)}else if(se(t)&&!Yi(t))s=zu;else if(U(t))if(!isNaN(+t))s=zu;else{var f=zt(t);f&&(l=f,s=Ps)}else if(Gi(t)){var c=P({},l);c.colorStops=z(t.colorStops,function(h){return{offset:h.offset,color:zt(h.color)}}),b_(t)?s=Nh:T_(t)&&(s=kh),l=c}a===0?this.valType=s:(s!==this.valType||s===C_)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:t,percent:0};return i&&(p.easing=i,p.easingFunc=Z(i)?i:Du[i]||Pu(i)),n.push(p),p},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Uu(n),u=A_(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?MM(p,h,n):u&&EM(p.colorStops,h.colorStops))}if(!s&&n!==kh&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var v=i[0].value,f=0;f<a;f++)n===zu?i[f].additiveValue=i[f].value-v:n===Ps?i[f].additiveValue=Bu([],i[f].value,v,-1):Uu(n)&&(i[f].additiveValue=n===Fu?Bu([],i[f].value,v,-1):w_([],i[f].value,v,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Ps,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>t);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=t;var m=v.percent-h.percent,g=m===0?1:p((t-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?Os:e[l];if((Uu(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(Uu(a))a===Fu?Ph(y,h[n],v[n],g):DM(y,h[n],v[n],g);else if(A_(a)){var _=h[n],x=v[n],S=a===Nh;e[l]={type:S?"linear":"radial",x:di(_.x,x.x,g),y:di(_.y,x.y,g),colorStops:z(_.colorStops,function(T,A){var C=x.colorStops[A];return{offset:di(T.offset,C.offset,g),color:Vu(Ph([],T.color,C.color,g))}}),global:x.global},S?(e[l].x2=di(_.x2,x.x2,g),e[l].y2=di(_.y2,x.y2,g)):e[l].r=di(_.r,x.r,g)}else if(u)Ph(y,h[n],v[n],g),i||(e[l]=Vu(y));else{var b=di(h[n],v[n],g);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,n=this._additiveValue;t===zu?e[i]=e[i]+n:t===Ps?(zt(e[i],Os),Bu(Os,Os,n,1),e[i]=Vu(Os)):t===Fu?Bu(e[i],e[i],n,1):t===D_&&w_(e[i],e[i],n,1)},r})(),OM=(function(){function r(e,t,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){Ja("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,he(t),i)},r.prototype.whenWithKeys=function(e,t,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new LM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===Ps&&u&&(u=Vu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Rs(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Rs(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(t._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new v_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var v=t._additiveAnimators;if(v){for(var d=!1,m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(t._target,h);var g=t._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return z(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var a=t[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=Rs(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||he(e);for(var i=0;i<t.length;i++){var n=t[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),Ns=OM;function jn(){return new Date().getTime()}var PM=(function(r){L(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,n=t.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=jn()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Is(i),!t._paused&&t.update())}Is(i)},e.prototype.start=function(){this._running||(this._time=jn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=jn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=jn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var n=new Ns(t,i.loop);return this.addAnimator(n),n},e})(nt),E_=PM;var RM=300,Bh=ne.domSupported,zh=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=z(r,function(n){var a=n.replace("mouse","pointer");return t.hasOwnProperty(a)?a:n});return{mouse:r,touch:e,pointer:i}})(),M_={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},I_=!1;function Fh(r){var e=r.pointerType;return e==="pen"||e==="touch"}function NM(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Uh(r){r&&(r.zrByTouch=!0)}function kM(r,e){return Bt(r.dom,new BM(r,e),!0)}function O_(r,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return i}var BM=(function(){function r(e,t){this.stopPropagation=Ne,this.stopImmediatePropagation=Ne,this.preventDefault=Ne,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Cr={mousedown:function(r){r=Bt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Bt(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Bt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Bt(this.dom,r);var e=r.toElement||r.relatedTarget;O_(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){I_=!0,r=Bt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){I_||(r=Bt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Bt(this.dom,r),Uh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Cr.mousemove.call(this,r),Cr.mousedown.call(this,r)},touchmove:function(r){r=Bt(this.dom,r),Uh(r),this.handler.processGesture(r,"change"),Cr.mousemove.call(this,r)},touchend:function(r){r=Bt(this.dom,r),Uh(r),this.handler.processGesture(r,"end"),Cr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<RM&&Cr.click.call(this,r)},pointerdown:function(r){Cr.mousedown.call(this,r)},pointermove:function(r){Fh(r)||Cr.mousemove.call(this,r)},pointerup:function(r){Cr.mouseup.call(this,r)},pointerout:function(r){Fh(r)||Cr.mouseout.call(this,r)}};w(["click","dblclick","contextmenu"],function(r){Cr[r]=function(e){e=Bt(this.dom,e),this.trigger(r,e)}});var Hh={pointermove:function(r){Fh(r)||Hh.mousemove.call(this,r)},pointerup:function(r){Hh.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function zM(r,e){var t=e.domHandlers;ne.pointerEventsSupported?w(zh.pointer,function(i){Hu(e,i,function(n){t[i].call(r,n)})}):(ne.touchEventsSupported&&w(zh.touch,function(i){Hu(e,i,function(n){t[i].call(r,n),NM(e)})}),w(zh.mouse,function(i){Hu(e,i,function(n){n=Cu(n),e.touching||t[i].call(r,n)})}))}function UM(r,e){ne.pointerEventsSupported?w(M_.pointer,t):ne.touchEventsSupported||w(M_.mouse,t);function t(i){function n(a){a=Cu(a),O_(r,a.target)||(a=kM(r,a),e.domHandlers[i].call(r,a))}Hu(e,i,n,{capture:!0})}}function Hu(r,e,t,i){r.mounted[e]=t,r.listenerOpts[e]=i,Vy(r.domTarget,e,t,i)}function Vh(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&Fy(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var L_=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),VM=(function(r){L(e,r);function e(t,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=i,n._localHandlerScope=new L_(t,Cr),Bh&&(n._globalHandlerScope=new L_(document,Hh)),zM(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Vh(this._localHandlerScope),Bh&&Vh(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Bh&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?UM(this,i):Vh(i)}},e})(nt),P_=VM;var R_=1;ne.hasGlobalWindow&&(R_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Qn=R_,ks=.4,Bs="#333",zs="#ccc",N_="#eee";var k_=hi,B_=5e-5;function $n(r){return r>B_||r<-B_}var Jn=[],fo=[],Gh=Mt(),Yh=Math.abs,z_=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return FM(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return $n(this.rotation)||$n(this.x)||$n(this.y)||$n(this.scaleX-1)||$n(this.scaleY-1)||$n(this.skewX)||$n(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(k_(i),this.invTransform=null);return}i=i||Mt(),t?this.getLocalTransform(i):k_(i),e&&(t?Xi(i,e,i):Ts(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Mt(),Gr(this.invTransform,i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Jn);var i=Jn[0]<0?-1:1,n=Jn[1]<0?-1:1,a=((Jn[0]-i)*t+i)/Jn[0]||0,o=((Jn[1]-n)*t+n)/Jn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Mt(),Xi(fo,e.invTransform,t),t=fo);var i=this.originX,n=this.originY;(i||n)&&(Gh[4]=i,Gh[5]=n,Xi(fo,t,Gh),fo[4]-=i,fo[5]-=n,t=fo),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&&yt(i,i,n),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&&yt(i,i,n),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&Yh(e[0]-1)>1e-10&&Yh(e[3]-1)>1e-10?Math.sqrt(Yh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){po(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;t[4]=-v*a-p*d*o,t[5]=-d*o-h*v*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=h*a,t[2]=p*o,u&&io(t,t,u),t[4]+=i+f,t[5]+=n+c,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),FM=z_.getLocalTransform;var co=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function po(r,e){return Ay(r,e,co)}var ho=z_;function Dr(r){Gu||(Gu=new Wr(100)),r=r||fr;var e=Gu.get(r);return e||(e={font:r,strWidthCache:new Wr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:je.measureText("\u56FD",r).width,asciiCharWidth:je.measureText("a",r).width},Gu.put(r,e)),e}var Gu;function HM(r){if(!(Wh>=U_)){r=r||fr;for(var e=[],t=+new Date,i=0;i<=127;i++)e[i]=je.measureText(String.fromCharCode(i),r).width;var n=+new Date-t;return n>16?Wh=U_:n>2&&Wh++,e}}var Wh=0,U_=5;function Zh(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=HM(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Er(r,e){var t=r.strWidthCache,i=t.get(e);return i==null&&(i=je.measureText(e,r.font).width,t.put(e,i)),i}function V_(r,e,t,i){var n=Er(Dr(e),r),a=Us(e),o=Ji(0,n,t),s=mi(0,a,i),l=new re(o,s,n,a);return l}function Yu(r,e,t,i){var n=((r||"")+"").split(`
2
+ `),a=n.length;if(a===1)return V_(n[0],e,t,i);for(var o=new re(0,0,0,0),s=0;s<n.length;s++){var l=V_(n[s],e,t,i);s===0?o.copy(l):o.union(l)}return o}function Ji(r,e,t,i){return t==="right"?i?r+=e:r-=e:t==="center"&&(i?r+=e/2:r-=e/2),r}function mi(r,e,t,i){return t==="middle"?i?r+=e/2:r-=e/2:t==="bottom"&&(i?r+=e:r-=e),r}function Us(r){return Dr(r).stWideCharWidth}function Ar(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function ea(r,e,t){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",c="top";if(i instanceof Array)l+=Ar(i[0],t.width),u+=Ar(i[1],t.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Xh="__zr_normal__",qh=co.concat(["ignore"]),GM=Kt(co,function(r,e){return r[e]=!0,r},{ignore:!1}),vo={},YM=new re(0,0,0,0),Wu=[],Zu=0,mo=1,Qh=(function(){function r(e){this.id=vu(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(t);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=YM,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(vo,i,p):ea(vo,i,p),a.x=vo.x,a.y=vo.y,o=vo.align,s=vo.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;h==="center"?(v=p.width*.5,d=p.height*.5):(v=Ar(h[0],p.width),d=Ar(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new re(0,0,0,0);a.getLocalTransform(Wu),Gr(Wu,Wu),re.copy(y,p),y.applyTransform(Wu)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,b=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Qe,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zs:Bs},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&zt(t);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,$i(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},P(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(W(e))for(var i=e,n=he(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Xh)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,qh)},r.prototype._savePrimaryToNormal=function(e,t,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Xh,!1,e)},r.prototype.useState=function(e,t,i,n){var a=e===Xh,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ae(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Ja("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=H_(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,t,Y_(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,t,i,!!c),p&&p.useState(e,t,i,!!c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Zu,this.__dirty&=~Qe),u}}},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=H_(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,Y_(this,t,d),d);var m=this._textGuide;p&&p.useStates(e,t,!!h),m&&m.useStates(e,t,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Zu,this.__dirty&=~Qe)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=ae(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var n=this.currentStates.slice(),a=ae(n,e),o=ae(n,t)>=0;a>=0?o?n.splice(a,1):n[a]=t:i&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,n=0;n<e.length;n++){var a=e[n];P(t,a),a.textConfig&&(i=i||{},P(i,a.textConfig))}return i&&(t.textConfig=i),t},r.prototype._applyStateObj=function(e,t,i,n,a,o){if(this.__inHover!==mo){var s=!(t&&n);t&&t.textConfig?(this.textConfig=P({},n?this.textConfig:i.textConfig),P(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<qh.length;f++){var c=qh[f],p=a&&GM[c];t&&t[c]!=null?p?(u=!0,l[c]=t[c]):this[c]=t[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(t||i)[v]:t||i)}u&&this._transitionState(e,l,o)}},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new ho,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),P(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Qe;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,i){var n=e?this[e]:this,a=new Ns(n,t,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var a=n.animators,o=ae(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,i){Kh(this,e,t,i)},r.prototype.animateFrom=function(e,t,i){Kh(this,e,t,i,!0)},r.prototype._transitionState=function(e,t,i,n){for(var a=Kh(this,t,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Zu,e.__dirty=Qe;var t={};function i(a,o,s){t[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();mt(Qh,nt);mt(Qh,ho);function Kh(r,e,t,i,n){t=t||{};var a=[];W_(r,"",r,e,t,i,a,n);var o=a.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&t.during&&a[0].during(function(v,d){t.during(d)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),t.force&&h.duration(t.duration),h.start(t.easing)}return a}function jh(r,e,t){for(var i=0;i<t;i++)r[i]=e[i]}function WM(r){return Ge(r[0])}function ZM(r,e,t){if(Ge(e[t]))if(Ge(r[t])||(r[t]=[]),Ye(e[t])){var i=e[t].length;r[t].length!==i&&(r[t]=new e[t].constructor(i),jh(r[t],e[t],i))}else{var n=e[t],a=r[t],o=n.length;if(WM(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?jh(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else jh(a,n,o);a.length=n.length}else r[t]=e[t]}function XM(r,e){return r===e||Ge(r)&&Ge(e)&&qM(r,e)}function qM(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(r[i]!==e[i])return!1;return!0}function W_(r,e,t,i,n,a,o,s){for(var l=he(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!W(a),v=r.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&t[g]!=null&&(h||a[g]))if(W(y)&&!Ge(y)&&!Gi(y)){if(e){s||(t[g]=y,r.updateDuringAnimation(e));continue}W_(r,g,t[g],y,n,a&&a[g],o,s)}else d.push(g);else s||(t[g]=y,r.updateDuringAnimation(e),d.push(g))}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var b=S.stopTracks(d);if(b){var T=ae(v,S);v.splice(T,1)}}}if(n.force||(d=Me(d,function(E){return!XM(i[E],t[E])}),_=d.length),_>0||n.force&&!o.length){var A=void 0,C=void 0,D=void 0;if(s){C={},p&&(A={});for(var x=0;x<_;x++){var g=d[x];C[g]=t[g],p?A[g]=i[g]:t[g]=i[g]}}else if(p){D={};for(var x=0;x<_;x++){var g=d[x];D[g]=Rs(t[g]),ZM(t,i,g)}}var S=new Ns(t,!1,!1,c?Me(v,function(I){return I.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&A&&S.whenWithKeys(0,A,d),D&&S.whenWithKeys(0,D,d),S.whenWithKeys(u??500,s?C:i,d).delay(f||0),r.addAnimator(S,e),o.push(S)}}function H_(r,e,t,i){return!(t&&t.hoverLayer||i)||G_(r)||e&&G_(e)?Zu:mo}function G_(r){return r.type==="text"||r.type==="tspan"}function Y_(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var Xu=Qh;var Z_=(function(r){L(e,r);function e(t){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===t)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var n=ae(this._children,t);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(t,i){var n=this._children,a=n[i];if(t&&t!==this&&t.parent!==this&&t!==a){n[i]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,n=this._children,a=ae(n,t);return a<0?this:(n.splice(a,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,n=0;n<t.length;n++){var a=t[n];i&&a.removeSelfFromZr(i),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];t.call(i,o,a)}return this},e.prototype.traverse=function(t,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=t.call(i,a);a.isGroup&&!o&&a.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new re(0,0,0,0),n=t||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(re.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Xu);Z_.prototype.type="group";var ye=Z_;var qu={},X_={};function KM(r){delete X_[r]}function jM(r){if(!r)return!1;if(typeof r=="string")return uo(r,1)<ks;if(r.colorStops){for(var e=r.colorStops,t=0,i=e.length,n=0;n<i;n++)t+=uo(e[n].color,1);return t/=i,t<ks}return!1}var QM=(function(){function r(e,t,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var a=new n_,o=i.renderer||"canvas";qu[o]||(o=he(qu)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new qu[o](t,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ne.node&&!ne.worker&&!l?new P_(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?ne.touchEventsSupported:!!f,p=44,h;c&&(h=F(i.pointerSize,p)),this.handler=new $y(a,s,u,s.root,h),this.animation=new E_({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=jM(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(e){var t,i=jn(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(t=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=jn();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ye&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,KM(this.id))},r})();function $h(r,e){var t=new QM(vu(),r,e);return X_[t.id]=t,t}function q_(r,e){qu[r]=e}var $M;function K_(r){$M=r}var j_=1e-4,Q_=20;function eI(r){return r.replace(/^\s+|\s+$/g,"")}var ke=Math.min,de=Math.max,Ie=Math.abs,er=Math.round,hr=Math.floor,Zr=Math.ceil,en=Math.pow,go=Math.log,Jh=Math.LN10,tI=Math.PI,rI=Math.random;function Be(r,e,t,i){var n=e[0],a=e[1],o=t[0],s=t[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}var _e=iI;function iI(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Ku(r,e,t)}function Ku(r,e,t){return U(r)?nI(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function nI(r){return!!eI(r).match(/%$/)}function me(r,e,t){return isNaN(e)?t?""+r:+r:(e=ke(de(0,e),Q_),r=(+r).toFixed(e),t?r:+r)}function xt(r){return r.sort(function(e,t){return e-t}),r}function Jt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(er(r*e)/e===r)return t}return aI(r)}function aI(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,n=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return de(0,o-i)}function ju(r,e,t){var i=Ie(r[1]-r[0]);if(!isFinite(i)||i===0)return NaN;var n=go(2*Ie(t||1)*Ie(i))/Jh,a=go(Ie(e))/Jh,o=de(0,Zr(-n+a));return isFinite(o)||(o=NaN),o}function $_(r,e){var t=Kt(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(t===0)return[];for(var i=en(10,e),n=z(r,function(h){return(isNaN(h)?0:h)/t*i*100}),a=i*100,o=z(n,function(h){return hr(h)}),s=Kt(o,function(h,v){return h+v},0),l=z(n,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return z(o,function(h){return h/i})}function gi(r,e){var t=de(Jt(r),Jt(e)),i=r+e;return t>Q_?i:me(i,t)}var ev=en(2,53)-1;function tv(r){var e=tI*2;return(r%e+e)%e}function Vs(r){return r>-j_&&r<j_}var oI=/^(?:(\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 Xr(r){if(r instanceof Date)return r;if(U(r)){var e=oI.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(er(r))}function Qu(r){return en(10,$u(r))}function $u(r){if(r===0)return 0;var e=hr(go(r)/Jh);return r/en(10,e)>=10&&e++,e}var rv=2;function ta(r,e){var t=$u(r),i=en(10,t),n=r/i,a;return e===rv?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,me(r,-t)}function qr(r){var e=parseFloat(r);return e==r&&(e!==0||!U(r)||r.indexOf("x")<=0)?e:NaN}function iv(r){return!isNaN(qr(r))}function Fs(){return er(rI()*9)}function J_(r,e){return e===0?r:J_(e,r%e)}function nv(r,e){return r==null?e:e==null?r:r*e/J_(r,e)}function tt(r){return r!=null&&isFinite(r)}var sI="[ECharts] ",e0={},lI=typeof console<"u"&&console.warn&&console.log;function uI(r,e,t){if(lI){if(t){if(e0[e])return;e0[e]=!0}console[r](sI+e)}}function av(r,e){uI("error",r,e)}function Se(r){throw new Error(r)}function t0(r,e,t){return(e-r)*t+r}var r0="series\0",fI="\0_ec_\0";function Pe(r){return r instanceof Array?r:r==null?[]:[r]}function ra(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var i=0,n=t.length;i<n;i++){var a=t[i];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}var ov=["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 yi(r){return W(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function i0(r){return W(r)&&!(r instanceof Array)}function n0(r,e,t){var i=t==="normalMerge",n=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=V();w(e,function(l,u){if(!W(l)){e[u]=null;return}});var s=cI(r,o,t);return(i||n)&&pI(s,r,o,e),i&&hI(s,e),i||n?vI(s,e,n):a&&dI(s,e),mI(s),s}function cI(r,e,t){var i=[];if(t==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:t==="replaceMerge"||_o(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function pI(r,e,t,i){w(i,function(n,a){if(!(!n||n.id==null)){var o=Hs(n.id),s=t.get(o);if(s!=null){var l=r[s];et(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function hI(r,e){w(e,function(t,i){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||t.id==null)&&!_o(t)&&!_o(a)&&a0("name",a,t)){r[n].newOption=t,e[i]=null;return}}})}function vI(r,e,t){w(e,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||_o(n.existing)||n.existing&&i.id!=null&&!a0("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=t):r.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),a++}})}function dI(r,e){w(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function mI(r){var e=V();w(r,function(t){var i=t.existing;i&&e.set(i.id,t)}),w(r,function(t){var i=t.newOption;et(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),w(r,function(t,i){var n=t.existing,a=t.newOption,o=t.keyInfo;if(W(a)){if(o.name=a.name!=null?Hs(a.name):n?n.name:r0+i,n)o.id=Hs(n.id);else if(a.id!=null)o.id=Hs(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function a0(r,e,t){var i=tr(e[r],null),n=tr(t[r],null);return i!=null&&n!=null&&i===n}function Hs(r){return tr(r,"")}function tr(r,e){return r==null?e:U(r)?r:se(r)||xs(r)?r+"":e}function xo(r){var e=r.name;return!!(e&&e.indexOf(r0))}function _o(r){return r&&r.id!=null&&Hs(r.id).indexOf(fI)===0}function o0(r,e,t){w(r,function(i){var n=i.newOption;W(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=gI(e,n,i.existing,t))})}function gI(r,e,t,i){var n=e.type?e.type:t?t.subType:i.determineSubType(r,e);return n}function vr(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return N(e.dataIndex)?z(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return N(e.name)?z(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Q(){var r="__ec_inner_"+yI++;return function(e){return e[r]||(e[r]={})}}var yI=Fs();function Ju(r,e,t){var i=Gs(e,t),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=tn(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Gs(r,e){var t;if(U(r)){var i={};i[r+"Index"]=0,t=i}else t=r;var n=V(),a={},o=!1;return w(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ae(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var We={useDefault:!0,enableAll:!1,enableNone:!1},s0={useDefault:!1,enableAll:!0,enableNone:!0};function tn(r,e,t,i){i=i||We;var n=t.index,a=t.id,o=t.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=r.queryComponents({mainType:e,index:n,id:a,name:o}),s}function l0(r,e,t){var i={};i[e+"Id"]=r[e+"Id"],i[e+"Index"]=r[e+"Index"],i[e+"Name"]=r[e+"Name"];var n={mainType:e,query:i};return t&&(n.subType=t),n}function sv(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function u0(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function f0(r){return r==="auto"?ne.domSupported?"html":"richText":r||"html"}function lv(r,e,t,i,n){var a=e==null||e==="auto";if(i==null)return i;if(se(i)){var o=t0(t||0,i,n);return me(o,a?Math.max(Jt(t||0),Jt(i)):e)}else{if(U(i))return n<1?t:i;for(var s=[],l=t,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=r.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=t0(h,v,n);s[c]=me(o,a?Math.max(Jt(h),Jt(v)):e)}}return s}}var eF=(function(){function r(){}return r.prototype.reset=function(e,t,i,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function St(){return[1/0,-1/0]}function Ys(r,e){Mr(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function uv(r,e){Mr(e)&&e<r[0]&&(r[0]=e)}function fv(r,e){Mr(e)&&e>r[1]&&(r[1]=e)}function c0(r,e){_i(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function Mr(r){return r!=null&&isFinite(r)}function _i(r,e){return Mr(r)&&Mr(e)&&r<=e}function p0(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function So(r){_i(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function bo(){var r="__ec_once_"+_I++;return function(e,t){Ce(e,r)||(e[r]=1,t())}}var _I=Fs();function To(r,e,t){var i=V(),n=0;w(r,function(a){var o=e(a),s=i.get(o)||0;t&&t(a,s),!s&&!t&&(r[n++]=a),i.set(o,s+1)}),t||(r.length=n)}function h0(r){return r.value+""}function v0(r){return r+""}function ef(r,e){return F(e,!0)?r.seriesIndex+2:0}function tf(r,e,t){var i=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&i>=t.threshold,large:r.get("large")&&i>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function d0(r,e){return{seriesType:r,overallReset:e}}function wo(r){return{overallReset:r}}var xI=".",ia="___EC__COMPONENT__CONTAINER___",m0="___EC__EXTENDED_CLASS___";function Ut(r){var e={main:"",sub:""};if(r){var t=r.split(xI);e.main=t[0]||"",e.sub=t[1]||""}return e}function SI(r){et(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function g0(r){return!!(r&&r[m0])}function Co(r,e){r.$constructor=r,r.extend=function(t){var i=this,n;return bI(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(t.$constructor||i).apply(this,arguments)},Dy(n,this)),P(n.prototype,t),n[m0]=!0,n.extend=this.extend,n.superCall=wI,n.superApply=CI,n.superClass=i,n}}function bI(r){return Z(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function rf(r,e){r.extend=e.extend}var TI=Math.round(Math.random()*10);function y0(r){var e=["__\0is_clz",TI++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function wI(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(r,t)}function CI(r,e,t){return this.superClass.prototype[e].apply(r,t)}function nn(r){var e={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){SI(n),i.prototype.type=n;var a=Ut(n);if(!a.sub)e[a.main]=i;else if(a.sub!==ia){var o=t(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=e[i];if(o&&o[ia]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=Ut(i),a=[],o=e[n.main];return o&&o[ia]?w(o,function(s,l){l!==ia&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=Ut(i);return!!e[n.main]},r.getAllClassMainTypes=function(){var i=[];return w(e,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=Ut(i),a=e[n.main];return a&&a[ia]};function t(i){var n=e[i.main];return(!n||!n[ia])&&(n=e[i.main]={},n[ia]=!0),n}}function Kr(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ae(n,l)>=0||a&&ae(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var AI=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],DI=Kr(AI),_0=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return DI(this,e,t)},r})();var pv=new Wr(50);function S0(r){if(typeof r=="string"){var e=pv.get(r);return e&&e.image}else return r}function hv(r,e,t,i,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=pv.get(r),o={hostEl:t,cb:i,cbPayload:n};return a?(e=a.image,!Ao(e)&&a.pending.push(o)):(e=je.loadImage(r,x0,x0),e.__zrImageSrc=r,pv.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function x0(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Ao(r){return r&&r.width&&r.height}var vv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function MI(r,e,t,i,n,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
3
+ `);a=C0(t,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)A0(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
+ `),r.isTruncated=s}function C0(r,e,t,i){i=i||{};var n=P({},i);t=F(t,"..."),n.maxIterations=F(i.maxIterations,2);var a=n.minChar=F(i.minChar,0),o=n.fontMeasureInfo=Dr(e),s=o.asciiCharWidth;n.placeholder=F(i.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var f=Er(o,t);return f>l&&(t="",f=0),l=r-f,n.ellipsis=t,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function A0(r,e,t){var i=t.containerWidth,n=t.contentWidth,a=t.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Er(a,e);if(o<=i){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?II(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Er(a,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function II(r,e,t){for(var i=0,n=0,a=r.length;n<a&&i<e;n++)i+=Zh(t,r.charCodeAt(n));return n}function D0(r,e,t,i){var n=gv(r),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Us(u),p=F(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;d==null&&t!=null&&(d=t-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;d!=null&&(a==="break"||a==="breakAll")?g=n?M0(n,e.font,d,a==="breakAll",0).lines:[]:g=n?n.split(`
5
+ `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&d!=null)for(var x=C0(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)A0(S,g[b],x),g[b]=S.textLine,v=v||S.isTruncated;for(var T=m,A=0,C=Dr(u),b=0;b<g.length;b++)A=Math.max(Er(C,g[b]),A);d==null&&(d=A);var D=d;return T+=l,D+=s,{lines:g,height:m,outerWidth:D,outerHeight:T,lineHeight:p,calculatedLineHeight:c,contentWidth:A,contentHeight:y,width:d,isTruncated:v}}var LI=(function(){function r(){}return r})(),b0=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),OI=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function E0(r,e,t,i,n){var a=new OI,o=gv(r);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=vv.lastIndex=0,d;(d=vv.exec(o))!=null;){var m=d.index;m>v&&dv(a,o.substring(v,m),e,h),dv(a,d[2],e,h,d[1]),v=vv.lastIndex}v<o.length&&dv(a,o.substring(v,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",b={};function T(Te,Je,ut){Te.width=Je,Te.lineHeight=ut,y+=ut,_=Math.max(_,Je)}e:for(var A=0;A<a.lines.length;A++){for(var C=a.lines[A],D=0,E=0,I=0;I<C.tokens.length;I++){var M=C.tokens[I],O=M.styleName&&e.rich[M.styleName]||{},R=M.textPadding=O.padding,k=R?R[1]+R[3]:0,G=M.font=O.font||e.font;M.contentHeight=Us(G);var B=F(O.height,M.contentHeight);if(M.innerHeight=B,R&&(B+=R[0]+R[2]),M.height=B,M.lineHeight=Qt(O.lineHeight,e.lineHeight,B),M.align=O&&O.align||n,M.verticalAlign=O&&O.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var Y=a.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),T(C,E,D),a.lines=a.lines.slice(0,A+1)):a.lines=a.lines.slice(0,A),a.isTruncated=a.isTruncated||a.lines.length<Y;break e}var q=O.width,K=q==null||q==="auto";if(typeof q=="string"&&q.charAt(q.length-1)==="%")M.percentWidth=q,g.push(M),M.contentWidth=Er(Dr(G),M.text);else{if(K){var J=O.backgroundColor,te=J&&J.image;te&&(te=S0(te),Ao(te)&&(M.width=Math.max(M.width,te.width*B/te.height)))}var j=x&&f!=null?f-E:null;j!=null&&j<M.width?!K||j<k?(M.text="",M.width=M.contentWidth=0):(MI(b,M.text,j-k,G,e.ellipsis,{minChar:e.truncateMinChar}),M.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,M.width=M.contentWidth=Er(Dr(G),M.text)):M.contentWidth=Er(Dr(G),M.text)}M.width+=k,E+=M.width,O&&(D=Math.max(D,M.lineHeight))}T(C,E,D)}a.outerWidth=a.width=F(f,_),a.outerHeight=a.height=F(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var A=0;A<g.length;A++){var M=g[A],ge=M.percentWidth;M.width=parseInt(ge,10)/100*a.width}return a}function dv(r,e,t,i,n){var a=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Ar(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
6
+ `),u=!0),i.accumWidth=v}else{var d=M0(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,c=d.linesWidths,f=d.lines}}f||(f=e.split(`
7
+ `));for(var m=Dr(l),g=0;g<f.length;g++){var y=f[g],_=new LI;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Er(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new b0)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new b0([_]))}}function PI(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var RI=Kt(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function NI(r){return PI(r)?!!RI[r]:!0}function M0(r,e,t,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=Dr(e),p=0;p<r.length;p++){var h=r.charAt(p);if(h===`
8
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Zh(c,h.charCodeAt(0)),d=i?!1:!NI(h);if(a.length?f+v>t:n+f+v>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function mv(r,e,t,i,n,a){if(r.baseX=t,r.baseY=i,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;re.set(T0,Ji(t,o,n),mi(i,s,a),o,s),re.intersect(e,T0,null,w0);var l=w0.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Ji(l.x,l.width,n,!0),r.baseY=mi(l.y,l.height,a,!0)}}var T0=new re(0,0,0,0),w0={outIntersectRect:{},clamp:!0};function gv(r){return r!=null?r+="":r=""}function I0(r){var e=gv(r.text),t=r.font,i=Er(Dr(t),e),n=Us(t);return nf(r,i,n,null)}function nf(r,e,t,i){var n=new re(Ji(r.x||0,e,r.textAlign),mi(r.y||0,t,r.textBaseline),e,t),a=i??(yv(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function yv(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var Sv="__zr_style_"+Math.round(Math.random()*10),jr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},na={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jr[Sv]=!0;var L0=["z","z2","invisible"],kI=["invisible"],BI=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=he(t),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&zI(this,t,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new re(0,0,0,0)),i?re.applyTransform(t,n,i):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new re(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?r.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:P(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Xn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Xn)},e.prototype.styleUpdated=function(){this.__dirty&=~Xn},e.prototype.createStyle=function(t){return Wi(jr,t)},e.prototype.useStyle=function(t){t[Sv]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[Sv]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,L0)},e.prototype._applyStateObj=function(t,i,n,a,o,s){r.prototype._applyStateObj.call(this,t,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===mo,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=he(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var d=he(f),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?kI:L0,h=0;h<m.length;h++){var v=m[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),n,a=0;a<t.length;a++){var o=t[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,i){return P(t,i),t},e.prototype.getAnimationStyleProps=function(){return na},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Qe|Xn})(),e})(Xu),_v=new re(0,0,0,0),xv=new re(0,0,0,0);function zI(r,e,t){return _v.copy(r.getBoundingRect()),r.transform&&_v.applyTransform(r.transform),xv.width=e,xv.height=t,!_v.intersect(xv)}var Qr=BI;var dr=Math.min,mr=Math.max,bv=Math.sin,Tv=Math.cos,aa=Math.PI*2,af=Zi(),of=Zi(),sf=Zi();function wv(r,e,t,i,n,a){n[0]=dr(r,t),n[1]=dr(e,i),a[0]=mr(r,t),a[1]=mr(e,i)}var O0=[],P0=[];function R0(r,e,t,i,n,a,o,s,l,u){var f=Lu,c=Ue,p=f(r,t,n,o,O0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(r,t,n,o,O0[h]);l[0]=dr(v,l[0]),u[0]=mr(v,u[0])}p=f(e,i,a,s,P0);for(var h=0;h<p;h++){var d=c(e,i,a,s,P0[h]);l[1]=dr(d,l[1]),u[1]=mr(d,u[1])}l[0]=dr(r,l[0]),u[0]=mr(r,u[0]),l[0]=dr(o,l[0]),u[0]=mr(o,u[0]),l[1]=dr(e,l[1]),u[1]=mr(e,u[1]),l[1]=dr(s,l[1]),u[1]=mr(s,u[1])}function N0(r,e,t,i,n,a,o,s){var l=Ou,u=at,f=mr(dr(l(r,t,n),1),0),c=mr(dr(l(e,i,a),1),0),p=u(r,t,n,f),h=u(e,i,a,c);o[0]=dr(r,n,p),o[1]=dr(e,a,h),s[0]=mr(r,n,p),s[1]=mr(e,a,h)}function k0(r,e,t,i,n,a,o,s,l){var u=ci,f=pi,c=Math.abs(n-a);if(c%aa<1e-4&&c>1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(af[0]=Tv(n)*t+r,af[1]=bv(n)*i+e,of[0]=Tv(a)*t+r,of[1]=bv(a)*i+e,u(s,af,of),f(l,af,of),n=n%aa,n<0&&(n=n+aa),a=a%aa,a<0&&(a=a+aa),n>a&&!o?a+=aa:n<a&&o&&(n+=aa),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(sf[0]=Tv(h)*t+r,sf[1]=bv(h)*i+e,u(s,sf,s),f(l,sf,l))}var Ae={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},oa=[],sa=[],$r=[],an=[],Jr=[],ei=[],Cv=Math.min,Av=Math.max,la=Math.cos,ua=Math.sin,xi=Math.abs,Mv=Math.PI,on=Mv*2,Dv=typeof Float32Array<"u",Ws=[];function Ev(r){var e=Math.round(r/Mv*1e8)/1e8;return e%2*Mv}function Iv(r,e){var t=Ev(r[0]);t<0&&(t+=on);var i=t-r[0],n=r[1];n+=i,!e&&n-t>=on?n=t+on:e&&t-n>=on?n=t-on:!e&&t>n?n=t+(on-Ev(t-n)):e&&t<n&&(n=t-(on-Ev(n-t))),r[0]=t,r[1]=n}var UI=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,i){i=i||0,i>0&&(this._ux=xi(i/Qn/e)||0,this._uy=xi(i/Qn/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ae.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=xi(e-this._xi),n=xi(t-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ae.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,n,a,o){return this._drawPendingPt(),this.addData(Ae.C,e,t,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,n){return this._drawPendingPt(),this.addData(Ae.Q,e,t,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(e,t,i,n,a,o){this._drawPendingPt(),Ws[0]=n,Ws[1]=a,Iv(Ws,o),n=Ws[0],a=Ws[1];var s=a-n;return this.addData(Ae.A,e,t,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,n,a,o),this._xi=la(a)*i+e,this._yi=ua(a)*i+t,this},r.prototype.arcTo=function(e,t,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,n,a),this},r.prototype.rect=function(e,t,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,n),this.addData(Ae.R,e,t,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ae.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Dv&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,i=0,n=this._len,a=0;a<t;a++)i+=e[a].len();var o=this.data;if(Dv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<t;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},r.prototype.addData=function(e,t,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Dv&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){$r[0]=$r[1]=Jr[0]=Jr[1]=Number.MAX_VALUE,an[0]=an[1]=ei[0]=ei[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],i=e[o+1],n=t,a=i),s){case Ae.M:t=n=e[o++],i=a=e[o++],Jr[0]=n,Jr[1]=a,ei[0]=n,ei[1]=a;break;case Ae.L:wv(t,i,e[o],e[o+1],Jr,ei),t=e[o++],i=e[o++];break;case Ae.C:R0(t,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Jr,ei),t=e[o++],i=e[o++];break;case Ae.Q:N0(t,i,e[o++],e[o++],e[o],e[o+1],Jr,ei),t=e[o++],i=e[o++];break;case Ae.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];l&&(n=la(h)*c+u,a=ua(h)*p+f),k0(u,f,c,p,h,v,d,Jr,ei),t=la(v)*c+u,i=ua(v)*p+f;break;case Ae.R:n=t=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];wv(n,a,n+m,a+g,Jr,ei);break;case Ae.Z:t=n,i=a;break}ci($r,$r,Jr),pi(an,an,ei)}return o===0&&($r[0]=$r[1]=an[0]=an[1]=0),new re($r[0],$r[1],an[0]-$r[0],an[1]-$r[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<t;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var d=-1;switch(h){case Ae.M:a=s=e[p++],o=l=e[p++];break;case Ae.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(xi(y)>i||xi(_)>n||p===t-1)&&(d=Math.sqrt(y*y+_*_),a=m,o=g);break}case Ae.C:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++],b=e[p++],T=e[p++];d=f_(a,o,x,S,m,g,b,T,10),a=b,o=T;break}case Ae.Q:{var x=e[p++],S=e[p++],m=e[p++],g=e[p++];d=h_(a,o,x,S,m,g,10),a=m,o=g;break}case Ae.A:var A=e[p++],C=e[p++],D=e[p++],E=e[p++],I=e[p++],M=e[p++],O=M+I;p+=1,v&&(s=la(I)*D+A,l=ua(I)*E+C),d=Av(D,E)*Cv(on,Math.abs(M)),a=la(O)*D+A,o=ua(O)*E+C;break;case Ae.R:{s=a=e[p++],l=o=e[p++];var R=e[p++],k=e[p++];d=R*2+k*2;break}case Ae.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=t<1,v,d,m=0,g=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=t*d,!y)))e:for(var b=0;b<o;){var T=i[b++],A=b===1;switch(A&&(u=i[b],f=i[b+1],s=u,l=f),T!==Ae.L&&_>0&&(e.lineTo(x,S),_=0),T){case Ae.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case Ae.L:{c=i[b++],p=i[b++];var C=xi(c-u),D=xi(p-f);if(C>n||D>a){if(h){var E=v[g++];if(m+E>y){var I=(y-m)/E;e.lineTo(u*(1-I)+c*I,f*(1-I)+p*I);break e}m+=E}e.lineTo(c,p),u=c,f=p,_=0}else{var M=C*C+D*D;M>_&&(x=c,S=p,_=M)}break}case Ae.C:{var O=i[b++],R=i[b++],k=i[b++],G=i[b++],B=i[b++],Y=i[b++];if(h){var E=v[g++];if(m+E>y){var I=(y-m)/E;oo(u,O,k,B,I,oa),oo(f,R,G,Y,I,sa),e.bezierCurveTo(oa[1],sa[1],oa[2],sa[2],oa[3],sa[3]);break e}m+=E}e.bezierCurveTo(O,R,k,G,B,Y),u=B,f=Y;break}case Ae.Q:{var O=i[b++],R=i[b++],k=i[b++],G=i[b++];if(h){var E=v[g++];if(m+E>y){var I=(y-m)/E;so(u,O,k,I,oa),so(f,R,G,I,sa),e.quadraticCurveTo(oa[1],sa[1],oa[2],sa[2]);break e}m+=E}e.quadraticCurveTo(O,R,k,G),u=k,f=G;break}case Ae.A:var q=i[b++],K=i[b++],J=i[b++],te=i[b++],j=i[b++],ge=i[b++],Te=i[b++],Je=!i[b++],ut=J>te?J:te,Ee=xi(J-te)>.001,Ve=j+ge,pe=!1;if(h){var E=v[g++];m+E>y&&(Ve=j+ge*(y-m)/E,pe=!0),m+=E}if(Ee&&e.ellipse?e.ellipse(q,K,J,te,Te,j,Ve,Je):e.arc(q,K,ut,j,Ve,Je),pe)break e;A&&(s=la(j)*J+q,l=ua(j)*te+K),u=la(Ve)*J+q,f=ua(Ve)*te+K;break;case Ae.R:s=u=i[b],l=f=i[b+1],c=i[b++],p=i[b++];var we=i[b++],Vr=i[b++];if(h){var E=v[g++];if(m+E>y){var ft=y-m;e.moveTo(c,p),e.lineTo(c+Cv(ft,we),p),ft-=we,ft>0&&e.lineTo(c+we,p+Cv(ft,Vr)),ft-=Vr,ft>0&&e.lineTo(c+Av(we-ft,0),p+Vr),ft-=we,ft>0&&e.lineTo(c,p+Av(Vr-ft,0));break e}m+=E}e.rect(c,p,we,Vr);break;case Ae.Z:if(h){var E=v[g++];if(m+E>y){var I=(y-m)/E;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}m+=E}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Ae,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})(),It=UI;function fa(r,e,t,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-i)/(r-t),u=(r*i-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function B0(r,e,t,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>r+c&&u>t+c&&u>n+c&&u>o+c||u<r-c&&u<t-c&&u<n-c&&u<o-c)return!1;var p=u_(r,e,t,i,n,a,o,s,u,f,null);return p<=c/2}function z0(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var f=p_(r,e,t,i,n,a,s,l,null);return f<=u/2}var U0=Math.PI*2;function Zs(r){return r%=U0,r<0&&(r+=U0),r}var Xs=Math.PI*2;function V0(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(i-n)%Xs<1e-4)return!0;if(a){var c=i;i=Zs(n),n=Zs(c)}else i=Zs(i),n=Zs(n);i>n&&(n+=Xs);var p=Math.atan2(l,s);return p<0&&(p+=Xs),p>=i&&p<=n||p+Xs>=i&&p+Xs<=n}function Si(r,e,t,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var sn=It.CMD,ca=Math.PI*2,YI=1e-4;function WI(r,e){return Math.abs(r-e)<YI}var Lt=[-1,-1,-1],gr=[-1,-1];function ZI(){var r=gr[0];gr[0]=gr[1],gr[1]=r}function XI(r,e,t,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=qn(e,i,a,s,u,Lt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,d=0;d<f;d++){var m=Lt[d],g=m===0||m===1?.5:1,y=Ue(r,t,n,o,m);y<l||(p<0&&(p=Lu(e,i,a,s,gr),gr[1]<gr[0]&&p>1&&ZI(),h=Ue(e,i,a,s,gr[0]),p>1&&(v=Ue(e,i,a,s,gr[1]))),p===2?m<gr[0]?c+=h<e?g:-g:m<gr[1]?c+=v<h?g:-g:c+=s<v?g:-g:m<gr[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function qI(r,e,t,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=c_(e,i,a,s,Lt);if(l===0)return 0;var u=Ou(e,i,a);if(u>=0&&u<=1){for(var f=0,c=at(e,i,a,u),p=0;p<l;p++){var h=Lt[p]===0||Lt[p]===1?.5:1,v=at(r,t,n,Lt[p]);v<o||(Lt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Lt[0]===0||Lt[0]===1?.5:1,v=at(r,t,n,Lt[0]);return v<o?0:a<e?h:-h}}function KI(r,e,t,i,n,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Lt[0]=-l,Lt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=ca-1e-4){i=0,n=ca;var f=a?1:-1;return o>=Lt[0]+r&&o<=Lt[1]+r?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=ca,n+=ca);for(var p=0,h=0;h<2;h++){var v=Lt[h];if(v+r>o){var d=Math.atan2(s,v),f=a?1:-1;d<0&&(d=ca+d),(d>=i&&d<=n||d+ca>=i&&d+ca<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),p+=f)}}return p}function F0(r,e,t,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var d=a[v++],m=v===1;switch(d===sn.M&&v>1&&(t||(s+=Si(l,u,f,c,i,n))),m&&(l=a[v],u=a[v+1],f=l,c=u),d){case sn.M:f=a[v++],c=a[v++],l=f,u=c;break;case sn.L:if(t){if(fa(l,u,a[v],a[v+1],e,i,n))return!0}else s+=Si(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case sn.C:if(t){if(B0(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=XI(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case sn.Q:if(t){if(z0(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=qI(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case sn.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],b=a[v++];v+=1;var T=!!(1-a[v++]);p=Math.cos(S)*_+g,h=Math.sin(S)*x+y,m?(f=p,c=h):s+=Si(l,u,p,h,i,n);var A=(i-g)*x/_+g;if(t){if(V0(g,y,x,S,S+b,T,e,A,n))return!0}else s+=KI(g,y,x,S,S+b,T,A,n);l=Math.cos(S+b)*_+g,u=Math.sin(S+b)*x+y;break;case sn.R:f=l=a[v++],c=u=a[v++];var C=a[v++],D=a[v++];if(p=f+C,h=c+D,t){if(fa(f,c,p,c,e,i,n)||fa(p,c,p,h,e,i,n)||fa(p,h,f,h,e,i,n)||fa(f,h,f,c,e,i,n))return!0}else s+=Si(p,c,p,h,i,n),s+=Si(f,h,f,c,i,n);break;case sn.Z:if(t){if(fa(l,u,f,c,e,i,n))return!0}else s+=Si(l,u,f,c,i,n);l=f,u=c;break}}return!t&&!WI(u,c)&&(s+=Si(l,u,f,c,i,n)||0),s!==0}function H0(r,e,t){return F0(r,0,!1,e,t)}function G0(r,e,t,i){return F0(r,e,!0,t,i)}var Ov=ie({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},jr),QI={style:ie({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},na.style)},Lv=co.concat(["invisible","culling","z","z2","zlevel","parent"]),$I=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Lv.length;++s)n[Lv[s]]=this[Lv[s]];n.__dirty|=Qe}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=he(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=t[o];o==="style"?this.style?P(this.style,s):this.useStyle(s):o==="shape"?P(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(U(t)){var i=uo(t,0);return i>.5?Bs:i>.2?N_:zs}else if(t)return zs}return Bs},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(U(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=uo(t,0)<ks;if(a===o)return i}},e.prototype.buildPath=function(t,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~qi},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new It(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,n=!t;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&qi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect(),o=this.style;if(t=n[0],i=n[1],a.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),G0(s,l/u,t,i)))return!0}if(this.hasFill())return H0(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=qi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=i:P(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&qi)},e.prototype.createStyle=function(t){return Wi(Ov,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=P({},this.shape))},e.prototype._applyStateObj=function(t,i,n,a,o,s){if(r.prototype._applyStateObj.call(this,t,i,n,a,o,s),this.__inHover!==mo){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=P({},n.shape),P(u,i.shape)):(u=P({},a?this.shape:n.shape),P(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=P({},this.shape);for(var f={},c=he(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),n,a=0;a<t.length;a++){var o=t[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return QI},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=(function(a){L(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ee(t.style)},o.prototype.getDefaultShape=function(){return ee(t.shape)},o})(e);for(var n in t)typeof t[n]=="function"&&(i.prototype[n]=t[n]);return i},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Qe|Xn|qi})(),e})(Qr),oe=$I;var JI=ie({strokeFirst:!0,font:fr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ov),Y0=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return yv(this.style)},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Wi(JI,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=I0(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Qr);Y0.prototype.type="tspan";var qs=Y0;var eL=ie({x:0,y:0},jr),tL={style:ie({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},na.style)};function rL(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var W0=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Wi(eL,t)},e.prototype._getSize=function(t){var i=this.style,n=i[t];if(n!=null)return n;var a=rL(i.image)?i.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return tL},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new re(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Qr);W0.prototype.type="image";var yr=W0;function Z0(r,e){var t=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),r.moveTo(t+s,i),r.lineTo(t+n-l,i),l!==0&&r.arc(t+n-l,i+l,l,-Math.PI/2,0),r.lineTo(t+n,i+a-u),u!==0&&r.arc(t+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(t+f,i+a),f!==0&&r.arc(t+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5),r.closePath()}var Do=Math.round;function lf(r,e,t){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&(Do(i*2)===Do(n*2)&&(r.x1=r.x2=ln(i,s,!0)),Do(a*2)===Do(o*2)&&(r.y1=r.y2=ln(a,s,!0))),r}}function uf(r,e,t){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=ln(i,s,!0),r.y=ln(n,s,!0),r.width=Math.max(ln(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(ln(n+o,s,!1)-r.y,o===0?0:1)),r}}function ln(r,e,t){if(!e)return r;var i=Do(r*2);return(i+Do(e))%2===0?i/2:(i+(t?1:-1))/2}var aL=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})();var oL={},X0=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new aL},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=uf(oL,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?Z0(t,i):t.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(oe);X0.prototype.type="rect";var xe=X0;var q0={fill:"#000"},K0=2,ti={},sL={style:ie({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},na.style)},ix=(function(r){L(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=q0,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,pL(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new re(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||q0},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var n=i.rich,a=t.rich||n&&{};return P(t,i),n&&a?(this._mergeRich(a,n),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,i){for(var n=he(i),a=0;a<n.length;a++){var o=n[a];t[o]=t[o]||{},P(t[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return sL},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||fr,n=t.padding,a=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||a.align||"left",u=t.verticalAlign||a.verticalAlign||"top";mv(ti,a.overflowRect,o,s,l,u),o=ti.baseX,s=ti.baseY;var f=rx(t),c=D0(f,t,ti.outerWidth,ti.outerHeight),p=Pv(t),h=!!t.backgroundColor,v=c.outerHeight,d=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=mi(s,c.contentHeight,u);if(p||n){var x=Ji(o,d,l),S=mi(s,v,u);p&&this._renderBackground(t,t,x,S,d,v)}_+=g/2,n&&(y=tx(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var b=0,T=!1,A=!1,C=ex("fill"in t?t.fill:(A=!0,a.fill)),D=J0("stroke"in t?t.stroke:!h&&(!a.autoStroke||A)?(b=K0,T=!0,a.stroke):null),E=t.textShadowBlur>0,I=0;I<m.length;I++){var M=this._getOrCreateChild(qs),O=M.createStyle();M.useStyle(O),O.text=m[I],O.x=y,O.y=_,l&&(O.textAlign=l),O.textBaseline="middle",O.opacity=t.opacity,O.strokeFirst=!0,E&&(O.shadowBlur=t.textShadowBlur||0,O.shadowColor=t.textShadowColor||"transparent",O.shadowOffsetX=t.textShadowOffsetX||0,O.shadowOffsetY=t.textShadowOffsetY||0),O.stroke=D,O.fill=C,D&&(O.lineWidth=t.lineWidth||b,O.lineDash=t.lineDash,O.lineDashOffset=t.lineDashOffset||0),O.font=i,Q0(O,t),_+=g,M.setBoundingRect(nf(O,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,i=this._defaultStyle,n=t.align||i.align,a=t.verticalAlign||i.verticalAlign,o=t.x||0,s=t.y||0;mv(ti,i.overflowRect,o,s,n,a),o=ti.baseX,s=ti.baseY;var l=rx(t),u=E0(l,t,ti.outerWidth,ti.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=t.padding;this.isTruncated=!!u.isTruncated;var v=Ji(o,c,n),d=mi(s,p,a),m=v,g=d;h&&(m+=h[3],g+=h[0]);var y=m+f;Pv(t)&&this._renderBackground(t,t,v,d,c,p);for(var _=!!t.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],b=S.tokens,T=b.length,A=S.lineHeight,C=S.width,D=0,E=m,I=y,M=T-1,O=void 0;D<T&&(O=b[D],!O.align||O.align==="left");)this._placeToken(O,t,A,g,E,"left",_),C-=O.width,E+=O.width,D++;for(;M>=0&&(O=b[M],O.align==="right");)this._placeToken(O,t,A,g,I,"right",_),C-=O.width,I-=O.width,M--;for(E+=(f-(E-m)-(y-I)-C)/2;D<=M;)O=b[D],this._placeToken(O,t,A,g,E+O.width/2,"center",_),E+=O.width,D++;g+=A}},e.prototype._placeToken=function(t,i,n,a,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,c=a+n/2;f==="top"?c=a+t.height/2:f==="bottom"&&(c=a+n-t.height/2);var p=!t.isLineHolder&&Pv(u);p&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,c-t.height/2,t.width,t.height);var h=!!u.backgroundColor,v=t.textPadding;v&&(o=tx(o,s,v),c-=t.height/2-v[0]-t.innerHeight/2);var d=this._getOrCreateChild(qs),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=ex("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=J0("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=K0,x=!0,g.stroke):null),T=u.textShadowBlur>0||i.textShadowBlur>0;m.text=t.text,m.x=o,m.y=c,T&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||fr,m.opacity=Qt(u.opacity,i.opacity,1),Q0(m,u),b&&(m.lineWidth=Qt(u.lineWidth,i.lineWidth,_),m.lineDash=F(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),d.setBoundingRect(nf(m,t.contentWidth,t.contentHeight,x?0:null))},e.prototype._renderBackground=function(t,i,n,a,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,c=l&&l.image,p=l&&!c,h=t.borderRadius,v=this,d,m;if(p||t.lineHeight||u&&f){d=this._getOrCreateChild(xe),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=F(t.fillOpacity,1)}else if(c){m=this._getOrCreateChild(yr),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=F(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(d||m).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=Qt(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return cL(t)&&(i=[t.fontStyle,t.fontWeight,fL(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&gt(i)||t.textFont||t.font},e})(Qr),lL={left:!0,right:1,center:1},uL={top:1,bottom:1,middle:1},j0=["fontStyle","fontWeight","fontSize","fontFamily"];function fL(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?cu+"px":r+"px"}function Q0(r,e){for(var t=0;t<j0.length;t++){var i=j0[t],n=e[i];n!=null&&(r[i]=n)}}function cL(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function pL(r){return $0(r),w(r.rich,$0),r}function $0(r){if(r){r.font=ix.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||lL[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||uL[t]?t:"top";var i=r.padding;i&&(r.padding=eo(r.padding))}}function J0(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function ex(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function tx(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function rx(r){var e=r.text;return e!=null&&(e+=""),e}function Pv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var De=ix;var le=Q(),nx=function(r,e,t,i){if(i){var n=le(i);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=le(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}};var un="undefined",ff="series",cf=V(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ot="original",Ze="arrayRows",ct="objectRows",Vt="keyedColumns",rr="typedArray",Rv="unknown",Ot="column",ri="row";var hL=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],vL=(function(){function r(e){w(hL,function(t){this[t]=$(e[t],e)},this)}return r})();function ax(r,e){return e.mainType===ff?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var pf=vL;var ox=1,sx={},px=Q(),Bv=Q(),zv=0,Ks=1,js=2,pt=["emphasis","blur","select"],Mo=["normal","emphasis","blur","select"],dL=10,mL=9,fn="highlight",Qs="downplay",$s="select",vf="unselect",Js="toggleSelect",df="selectchanged";function Eo(r){return r!=null&&r!=="none"}function mf(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function hx(r){mf(r,"emphasis",js)}function vx(r){r.hoverState===js&&mf(r,"normal",zv)}function Uv(r){mf(r,"blur",Ks)}function dx(r){r.hoverState===Ks&&mf(r,"normal",zv)}function gL(r){r.selected=!0}function yL(r){r.selected=!1}function lx(r,e,t){e(r,t)}function bi(r,e,t){lx(r,e,t),r.isGroup&&r.traverse(function(i){lx(i,e,t)})}function Vv(r,e){switch(e){case"emphasis":r.hoverState=js;break;case"normal":r.hoverState=zv;break;case"blur":r.hoverState=Ks;break;case"select":r.selected=!0}}function _L(r,e,t,i){for(var n=r.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function xL(r,e,t,i){var n=t&&ae(t,"select")>=0,a=!1;if(r instanceof oe){var o=px(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Eo(s)||Eo(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=P({},i),u=P({},u),u.fill=s):!Eo(u.fill)&&Eo(s)?(a=!0,i=P({},i),u=P({},u),u.fill=Oh(s)):!Eo(u.stroke)&&Eo(l)&&(a||(i=P({},i),u=P({},u)),u.stroke=Oh(l)),i.style=u}}if(i&&i.z2==null){a||(i=P({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??dL)}return i}function SL(r,e,t){if(t&&t.z2==null){t=P({},t);var i=r.z2SelectLift;t.z2=r.z2+(i??mL)}return t}function bL(r,e,t){var i=ae(r.currentStates,e)>=0,n=r.style.opacity,a=i?null:_L(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=P({},t),o=P({opacity:i?n:a.opacity*.1},o),t.style=o),t}function Nv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return xL(this,r,e,t);if(r==="blur")return bL(this,r,t);if(r==="select")return SL(this,r,t)}return t}function TL(r){r.stateProxy=Nv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Nv),t&&(t.stateProxy=Nv)}function ux(r,e){!mx(r,e)&&!r.__highByOuter&&bi(r,hx)}function fx(r,e){!mx(r,e)&&!r.__highByOuter&&bi(r,vx)}function Ti(r,e){r.__highByOuter|=1<<(e||0),bi(r,hx)}function wi(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&bi(r,vx)}function gf(r){bi(r,Uv)}function el(r){bi(r,dx)}function Fv(r){bi(r,gL)}function Hv(r){bi(r,yL)}function mx(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function Gv(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(n,a){var o=Bv(a),s=ax(r,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){dx(u)}),l&&t.push(a)),o.isBlured=!1}),w(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function kv(r,e,t,i){var n=i.getModel();t=t||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&el(p)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||Uv(m)}),Ge(e))a(u.getData(),e);else if(W(e))for(var v=he(e),d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]]);l.push(u),Bv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function hf(r,e,t){if(!(r==null||e==null)){var i=t.getModel().getComponent(r,e);if(i){Bv(i).isBlured=!0;var n=t.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Uv(a)})}}}function gx(r,e,t){var i=r.seriesIndex,n=r.getData(e.dataType);if(n){var a=vr(n,e);a=(N(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=le(o);kv(i,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&kv(i,f,c,t)}}}function yf(r,e,t,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var a=i.getModel().getComponent(r,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(le(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function yx(r,e,t){var i=le(r),n=yf(i.componentMainType,i.componentIndex,i.componentHighDownName,t),a=n.dispatchers,o=n.focusSelf;a?(o&&hf(i.componentMainType,i.componentIndex,t),w(a,function(s){return ux(s,e)})):(kv(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&hf(i.componentMainType,i.componentIndex,t),ux(r,e))}function _x(r,e,t){Gv(t);var i=le(r),n=yf(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;n?w(n,function(a){return fx(a,e)}):fx(r,e)}function xx(r,e,t){if(_f(e)){var i=e.dataType,n=r.getData(i),a=vr(n,e);N(a)||(a=[a]),r[e.type===Js?"toggleSelect":e.type===$s?"select":"unselect"](a,i)}}function Yv(r){var e=r.getAllData();w(e,function(t){var i=t.data,n=t.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?Fv(a):Hv(a)})})}function Sx(r){var e=[];return r.eachSeries(function(t){var i=t.getAllData();w(i,function(n){var a=n.data,o=n.type,s=t.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Io(r,e,t){bx(r,!0),bi(r,TL),CL(r,e,t)}function wL(r){bx(r,!1)}function ir(r,e,t,i){i?wL(r):Io(r,e,t)}function CL(r,e,t){var i=le(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var cx=["emphasis","blur","select"],AL={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ci(r,e,t,i){t=t||"itemStyle";for(var n=0;n<cx.length;n++){var a=cx[n],o=e.getModel([a,t]),s=r.ensureState(a);s.style=i?i(o):o[AL[t]]()}}function bx(r,e){var t=e===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function tl(r){return!!(r&&r.__highDownDispatcher)}function Tx(r){var e=sx[r];return e==null&&ox<=32&&(e=sx[r]=ox++),e}function _f(r){var e=r.type;return e===$s||e===vf||e===Js}function Wv(r){var e=r.type;return e===fn||e===Qs}function Cx(r){var e=px(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var ze={};ME(ze,{Arc:()=>sl,BezierCurve:()=>ol,BoundingRect:()=>re,Circle:()=>il,CompoundPath:()=>jx,Ellipse:()=>Kv,Group:()=>ye,HOVER_LAYER_FOR_INCREMENTAL:()=>ma,HOVER_LAYER_FROM_THRESHOLD:()=>od,HOVER_LAYER_NO:()=>ad,Image:()=>yr,IncrementalDisplayable:()=>tS,Line:()=>nr,LinearGradient:()=>Cf,OrientedBoundingRect:()=>Mf,Path:()=>oe,Point:()=>ue,Polygon:()=>cn,Polyline:()=>Ai,RadialGradient:()=>Qx,Rect:()=>xe,Ring:()=>Qv,Sector:()=>Lr,Text:()=>De,WH:()=>hn,XY:()=>ni,applyTransform:()=>ya,calcZ2Range:()=>dO,clipPointsByRect:()=>cO,clipRectByRect:()=>pO,createIcon:()=>ul,decomposeTransform:()=>gO,ensureCopyRect:()=>zo,ensureCopyTransform:()=>Pf,expandOrShrinkRect:()=>ko,extendPath:()=>aO,extendShape:()=>iO,getCurrentCanvasPainter:()=>yO,getShapeClass:()=>oO,getTransform:()=>ld,groupTransition:()=>fd,initProps:()=>rt,isBoundingRectAxisAligned:()=>Of,isElementRemoved:()=>da,lineLineIntersect:()=>sS,linePolygonIntersect:()=>hO,makeImage:()=>sd,makePath:()=>Lf,mergePath:()=>sO,payloadDisableAnimation:()=>mO,registerShape:()=>Or,removeElement:()=>Ro,removeElementWithFadeOut:()=>pn,resizePath:()=>oS,retrieveZInfo:()=>ai,setTooltipConfig:()=>Bo,subPixelOptimize:()=>uO,subPixelOptimizeLine:()=>ga,subPixelOptimizeRect:()=>lO,transformDirection:()=>ud,traverseElements:()=>Di,traverseUpdateZ:()=>fl,updateProps:()=>Le});var Lo=It.CMD,DL=[[],[],[]],Ax=Math.sqrt,EL=Math.atan2;function Zv(r,e){if(e){var t=r.data,i=r.len(),n,a,o,s,l,u,f=Lo.M,c=Lo.C,p=Lo.L,h=Lo.R,v=Lo.A,d=Lo.Q;for(o=0,s=0;o<i;){switch(n=t[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case d:a=2;break;case v:var m=e[4],g=e[5],y=Ax(e[0]*e[0]+e[1]*e[1]),_=Ax(e[2]*e[2]+e[3]*e[3]),x=EL(-e[1]/_,e[0]/y);t[o]*=y,t[o++]+=m,t[o]*=_,t[o++]+=g,t[o++]*=y,t[o++]*=_,t[o++]+=x,t[o++]+=x,o+=2,s=o;break;case h:u[0]=t[o++],u[1]=t[o++],yt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],yt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var S=DL[l];S[0]=t[o++],S[1]=t[o++],yt(S,S,e),t[s++]=S[0],t[s++]=S[1]}}r.increaseVersion()}}var Xv=Math.sqrt,xf=Math.sin,Sf=Math.cos,rl=Math.PI;function Dx(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function qv(r,e){return(r[0]*e[0]+r[1]*e[1])/(Dx(r)*Dx(e))}function Ex(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(qv(r,e))}function Mx(r,e,t,i,n,a,o,s,l,u,f){var c=l*(rl/180),p=Sf(c)*(r-t)/2+xf(c)*(e-i)/2,h=-1*xf(c)*(r-t)/2+Sf(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=Xv(v),s*=Xv(v));var d=(n===a?-1:1)*Xv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=d*o*h/s,g=d*-s*p/o,y=(r+t)/2+Sf(c)*m-xf(c)*g,_=(e+i)/2+xf(c)*m+Sf(c)*g,x=Ex([1,0],[(p-m)/o,(h-g)/s]),S=[(p-m)/o,(h-g)/s],b=[(-1*p-m)/o,(-1*h-g)/s],T=Ex(S,b);if(qv(S,b)<=-1&&(T=rl),qv(S,b)>=1&&(T=0),T<0){var A=Math.round(T/rl*1e6)/1e6;T=rl*2+A%2*rl}f.addData(u,y,_,o,s,x,T,c,a)}var ML=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,IL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function LL(r){var e=new It;if(!r)return e;var t=0,i=0,n=t,a=i,o,s=It.CMD,l=r.match(ML);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(IL)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var m=0;m<v;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,A=t,C=i,D=void 0,E=void 0;switch(c){case"l":t+=h[m++],i+=h[m++],p=s.L,e.addData(p,t,i);break;case"L":t=h[m++],i=h[m++],p=s.L,e.addData(p,t,i);break;case"m":t+=h[m++],i+=h[m++],p=s.M,e.addData(p,t,i),n=t,a=i,c="l";break;case"M":t=h[m++],i=h[m++],p=s.M,e.addData(p,t,i),n=t,a=i,c="L";break;case"h":t+=h[m++],p=s.L,e.addData(p,t,i);break;case"H":t=h[m++],p=s.L,e.addData(p,t,i);break;case"v":i+=h[m++],p=s.L,e.addData(p,t,i);break;case"V":i=h[m++],p=s.L,e.addData(p,t,i);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),t=h[m-2],i=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+t,h[m++]+i,h[m++]+t,h[m++]+i,h[m++]+t,h[m++]+i),t+=h[m-2],i+=h[m-1];break;case"S":g=t,y=i,D=e.len(),E=e.data,o===s.C&&(g+=t-E[D-4],y+=i-E[D-3]),p=s.C,A=h[m++],C=h[m++],t=h[m++],i=h[m++],e.addData(p,g,y,A,C,t,i);break;case"s":g=t,y=i,D=e.len(),E=e.data,o===s.C&&(g+=t-E[D-4],y+=i-E[D-3]),p=s.C,A=t+h[m++],C=i+h[m++],t+=h[m++],i+=h[m++],e.addData(p,g,y,A,C,t,i);break;case"Q":A=h[m++],C=h[m++],t=h[m++],i=h[m++],p=s.Q,e.addData(p,A,C,t,i);break;case"q":A=h[m++]+t,C=h[m++]+i,t+=h[m++],i+=h[m++],p=s.Q,e.addData(p,A,C,t,i);break;case"T":g=t,y=i,D=e.len(),E=e.data,o===s.Q&&(g+=t-E[D-4],y+=i-E[D-3]),t=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,t,i);break;case"t":g=t,y=i,D=e.len(),E=e.data,o===s.Q&&(g+=t-E[D-4],y+=i-E[D-3]),t+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,t,i);break;case"A":_=h[m++],x=h[m++],S=h[m++],b=h[m++],T=h[m++],A=t,C=i,t=h[m++],i=h[m++],p=s.A,Mx(A,C,t,i,b,T,_,x,S,p,e);break;case"a":_=h[m++],x=h[m++],S=h[m++],b=h[m++],T=h[m++],A=t,C=i,t+=h[m++],i+=h[m++],p=s.A,Mx(A,C,t,i,b,T,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),t=n,i=a),o=p}return e.toStatic(),e}var Ix=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(oe);function Lx(r){return r.setData!=null}function Ox(r,e){var t=LL(r),i=P({},e);return i.buildPath=function(n){var a=Lx(n);if(a&&n.canSave()){n.appendPath(t);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&t.rebuildPath(o,1)}},i.applyTransform=function(n){Zv(t,n),this.dirtyShape()},i}function Px(r,e){return new Ix(Ox(r,e))}function Rx(r,e){var t=Ox(r,e),i=(function(n){L(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a})(Ix);return i}function Nx(r,e){for(var t=[],i=r.length,n=0;n<i;n++){var a=r[n];t.push(a.getUpdatedPathProxy(!0))}var o=new oe(e);return o.createPathProxy(),o.buildPath=function(s){if(Lx(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var PL=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})();var kx=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new PL},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(oe);kx.prototype.type="circle";var il=kx;var RL=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})();var Bx=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new RL},e.prototype.buildPath=function(t,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),t.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),t.closePath()},e})(oe);Bx.prototype.type="ellipse";var Kv=Bx;var Ux=Math.PI,jv=Ux*2,pa=Math.sin,Oo=Math.cos,NL=Math.acos,wt=Math.atan2,zx=Math.abs,al=Math.sqrt,nl=Math.max,ii=Math.min,Ir=1e-4;function kL(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<Ir))return p=(f*(e-a)-c*(r-n))/p,[r+p*l,e+p*u]}function bf(r,e,t,i,n,a,o){var s=r-t,l=e-i,u=(o?a:-a)/al(s*s+l*l),f=u*l,c=-u*s,p=r+f,h=e+c,v=t+f,d=i+c,m=(p+v)/2,g=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,S=n-a,b=p*d-v*h,T=(_<0?-1:1)*al(nl(0,S*S*x-b*b)),A=(b*_-y*T)/x,C=(-b*y-_*T)/x,D=(b*_+y*T)/x,E=(-b*y+_*T)/x,I=A-m,M=C-g,O=D-m,R=E-g;return I*I+M*M>O*O+R*R&&(A=D,C=E),{cx:A,cy:C,x0:-f,y0:-c,x1:A*(n/S-1),y1:C*(n/S-1)}}function BL(r){var e;if(N(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function Vx(r,e){var t,i=nl(e.r,0),n=nl(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=zx(u-l),v=h>jv&&h%jv;if(v>Ir&&(h=v),!(i>Ir))r.moveTo(f,c);else if(h>jv-Ir)r.moveTo(f+i*Oo(l),c+i*pa(l)),r.arc(f,c,i,l,u,!p),n>Ir&&(r.moveTo(f+n*Oo(u),c+n*pa(u)),r.arc(f,c,n,u,l,p));else{var d=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0,A=void 0,C=void 0,D=void 0,E=void 0,I=void 0,M=void 0,O=void 0,R=i*Oo(l),k=i*pa(l),G=n*Oo(u),B=n*pa(u),Y=h>Ir;if(Y){var q=e.cornerRadius;q&&(t=BL(q),d=t[0],m=t[1],g=t[2],y=t[3]);var K=zx(i-n)/2;if(_=ii(K,g),x=ii(K,y),S=ii(K,d),b=ii(K,m),C=T=nl(_,x),D=A=nl(S,b),(T>Ir||A>Ir)&&(E=i*Oo(u),I=i*pa(u),M=n*Oo(l),O=n*pa(l),h<Ux)){var J=kL(R,k,M,O,E,I,G,B);if(J){var te=R-J[0],j=k-J[1],ge=E-J[0],Te=I-J[1],Je=1/pa(NL((te*ge+j*Te)/(al(te*te+j*j)*al(ge*ge+Te*Te)))/2),ut=al(J[0]*J[0]+J[1]*J[1]);C=ii(T,(i-ut)/(Je+1)),D=ii(A,(n-ut)/(Je-1))}}}if(!Y)r.moveTo(f+R,c+k);else if(C>Ir){var Ee=ii(g,C),Ve=ii(y,C),pe=bf(M,O,R,k,i,Ee,p),we=bf(E,I,G,B,i,Ve,p);r.moveTo(f+pe.cx+pe.x0,c+pe.cy+pe.y0),C<T&&Ee===Ve?r.arc(f+pe.cx,c+pe.cy,C,wt(pe.y0,pe.x0),wt(we.y0,we.x0),!p):(Ee>0&&r.arc(f+pe.cx,c+pe.cy,Ee,wt(pe.y0,pe.x0),wt(pe.y1,pe.x1),!p),r.arc(f,c,i,wt(pe.cy+pe.y1,pe.cx+pe.x1),wt(we.cy+we.y1,we.cx+we.x1),!p),Ve>0&&r.arc(f+we.cx,c+we.cy,Ve,wt(we.y1,we.x1),wt(we.y0,we.x0),!p))}else r.moveTo(f+R,c+k),r.arc(f,c,i,l,u,!p);if(!(n>Ir)||!Y)r.lineTo(f+G,c+B);else if(D>Ir){var Ee=ii(d,D),Ve=ii(m,D),pe=bf(G,B,E,I,n,-Ve,p),we=bf(R,k,M,O,n,-Ee,p);r.lineTo(f+pe.cx+pe.x0,c+pe.cy+pe.y0),D<A&&Ee===Ve?r.arc(f+pe.cx,c+pe.cy,D,wt(pe.y0,pe.x0),wt(we.y0,we.x0),!p):(Ve>0&&r.arc(f+pe.cx,c+pe.cy,Ve,wt(pe.y0,pe.x0),wt(pe.y1,pe.x1),!p),r.arc(f,c,n,wt(pe.cy+pe.y1,pe.cx+pe.x1),wt(we.cy+we.y1,we.cx+we.x1),p),Ee>0&&r.arc(f+we.cx,c+we.cy,Ee,wt(we.y1,we.x1),wt(we.y0,we.x0),!p))}else r.lineTo(f+G,c+B),r.arc(f,c,n,u,l,p)}r.closePath()}}}var UL=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})();var Fx=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new UL},e.prototype.buildPath=function(t,i){Vx(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(oe);Fx.prototype.type="sector";var Lr=Fx;var VL=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})();var Hx=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new VL},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.PI*2;t.moveTo(n+i.r,a),t.arc(n,a,i.r,0,o,!1),t.moveTo(n+i.r0,a),t.arc(n,a,i.r0,0,o,!0)},e})(oe);Hx.prototype.type="ring";var Qv=Hx;function $v(r,e,t,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=r.length;p<h;p++)ci(f,f,r[p]),pi(c,c,r[p]);ci(f,f,i[0]),pi(c,c,i[1])}for(var p=0,h=r.length;p<h;p++){var v=r[p];if(t)l=r[p?p-1:h-1],u=r[(p+1)%h];else if(p===0||p===h-1){n.push(Ny(r[p]));continue}else l=r[p-1],u=r[p+1];yu(a,u,l),_u(a,a,e);var d=xu(v,l),m=xu(v,u),g=d+m;g!==0&&(d/=g,m/=g),_u(o,a,-d),_u(s,a,m);var y=sh([],v,o),_=sh([],v,s);i&&(pi(y,y,f),ci(y,y,c),pi(_,_,f),ci(_,_,c)),n.push(y),n.push(_)}return t&&n.push(n.shift()),n}function Tf(r,e,t){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=$v(n,i,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var FL=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})();var Yx=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FL},e.prototype.buildPath=function(t,i){Tf(t,i,!0)},e})(oe);Yx.prototype.type="polygon";var cn=Yx;var HL=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})();var Wx=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new HL},e.prototype.buildPath=function(t,i){Tf(t,i,!1)},e})(oe);Wx.prototype.type="polyline";var Ai=Wx;var GL={},YL=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();var Zx=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new YL},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=lf(GL,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e})(oe);Zx.prototype.type="line";var nr=Zx;var Ft=[],WL=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function Xx(r,e,t){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(t?wh:Ue)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?wh:Ue)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Ch:at)(r.x1,r.cpx1,r.x2,e),(t?Ch:at)(r.y1,r.cpy1,r.y2,e)]}var qx=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WL},e.prototype.buildPath=function(t,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(t.moveTo(n,a),f==null||c==null?(p<1&&(so(n,l,o,p,Ft),l=Ft[1],o=Ft[2],so(a,u,s,p,Ft),u=Ft[1],s=Ft[2]),t.quadraticCurveTo(l,u,o,s)):(p<1&&(oo(n,l,f,o,p,Ft),l=Ft[1],f=Ft[2],o=Ft[3],oo(a,u,c,s,p,Ft),u=Ft[1],c=Ft[2],s=Ft[3]),t.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(t){return Xx(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=Xx(this.shape,t,!0);return to(i,i)},e})(oe);qx.prototype.type="bezier-curve";var ol=qx;var ZL=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})();var Kx=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZL},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);t.moveTo(f*o+n,c*o+a),t.arc(n,a,o,s,l,!u)},e})(oe);Kx.prototype.type="arc";var sl=Kx;var XL=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),n=0;n<t.length;n++)i=i||t[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(i[0],i[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(t,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),oe.prototype.getBoundingRect.call(this)},e})(oe),jx=XL;var qL=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),wf=qL;var KL=(function(r){L(e,r);function e(t,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(wf),Cf=KL;var jL=(function(r){L(e,r);function e(t,i,n,a,o){var s=r.call(this,a)||this;return s.x=t??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(wf),Qx=jL;var Jv=Math.min,QL=Math.max,Af=Math.abs,ha=[0,0],va=[0,0],ht=_h(),Df=ht.minTv,Ef=ht.maxTv,$L=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ue;for(var i=0;i<2;i++)this._axes[i]=new ue;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),t)for(var u=0;u<4;u++)i[u].transform(t);ue.sub(n[0],i[1],i[0]),ue.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(e,t,i){var n=!0,a=!t;return t&&ue.set(t,0,0),ht.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!ht.negativeSize&&ue.copy(t,n?ht.useDir?ht.dirMinTv:Df:Ef),n},r.prototype._intersectCheckOneSide=function(e,t,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ha),e._getProjMinMaxOnAxis(o,t._corners,va),ht.negativeSize||ha[1]<va[0]||ha[0]>va[1]){if(a=!1,ht.negativeSize||i)return a;var l=Af(va[0]-ha[1]),u=Af(ha[0]-va[1]);Jv(l,u)>Ef.len()&&(l<u?ue.scale(Ef,s,-l*n):ue.scale(Ef,s,u*n))}else if(!i){var l=Af(va[0]-ha[1]),u=Af(ha[0]-va[1]);(ht.useDir||Jv(l,u)<Df.len())&&((l<u||!ht.bidirectional)&&(ue.scale(Df,s,l*n),ht.useDir&&ht.calcDirMTV()),(l>=u||!ht.bidirectional)&&(ue.scale(Df,s,-u*n),ht.useDir&&ht.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var n=this._axes[e],a=this._origin,o=t[0].dot(n)+a[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(n)+a[e];s=Jv(f,s),l=QL(f,l)}i[0]=s+ht.touchThreshold,i[1]=l-ht.touchThreshold,ht.negativeSize=i[1]<i[0]},r})(),Mf=$L;var ed=0,$x=1,Jx=2,eS=1,Po=0;var JL=[],eO=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=$x,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new re(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(JL)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,i))return!0}return!1},e})(Qr),tS=eO;var tO=Q();function rO(r,e,t,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=F(i.duration,200),f=F(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Z(c)&&(c=c(t,n)),Z(u)&&(u=u(t));var p={duration:u||0,delay:c,easing:f};return p}else return null}function td(r,e,t,i,n,a,o){var s=!1,l;Z(n)?(o=a,a=n,n=null):W(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=rO(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function Le(r,e,t,i,n,a){td("update",r,e,t,i,n,a)}function rt(r,e,t,i,n,a){td("enter",r,e,t,i,n,a)}function da(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Ro(r,e,t,i,n,a){da(r)||td("leave",r,e,t,i,n,a)}function rS(r,e,t,i){r.removeTextContent(),r.removeTextGuideLine(),Ro(r,{style:{opacity:0}},e,t,i)}function pn(r,e,t){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||rS(n,e,t,i)}):rS(r,e,t,i)}function No(r){tO(r).oldStyle=r.style}var id={},ni=["x","y"],hn=["width","height"],ad=0,od=1,ma=2;function iO(r){return oe.extend(r)}var nO=Rx;function aO(r,e){return nO(r,e)}function Or(r,e){id[r]=e}function oO(r){if(id.hasOwnProperty(r))return id[r]}function Lf(r,e,t,i){var n=Px(r,e);return t&&(i==="center"&&(t=aS(t,n.getBoundingRect())),oS(n,t)),n}function sd(r,e,t){var i=new yr({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var a={width:n.width,height:n.height};i.setStyle(aS(e,a))}}});return i}function aS(r,e){var t=e.width/e.height,i=r.height*t,n;i<=r.width?n=r.height:(i=r.width,n=i/t);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var sO=Nx;function oS(r,e){if(r.applyTransform){var t=r.getBoundingRect(),i=t.calculateTransform(e);r.applyTransform(i)}}function ga(r,e){return lf(r,r,{lineWidth:e}),r}function lO(r,e){return uf(r,r,e),r}var uO=ln;function ld(r,e){for(var t=hi([]);r&&r!==e;)Xi(t,r.getLocalTransform(),t),r=r.parent;return t}function ya(r,e,t){return e&&!Ge(e)&&(e=ho.getLocalTransform(e)),t&&(e=Gr([],e)),yt([],r,e)}function ud(r,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:Ie(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ie(2*e[4]/e[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=ya(a,e,t),Ie(a[0])>Ie(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function iS(r){return!r.isGroup}function fO(r){return r.shape!=null}function fd(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){iS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fO(o)&&(s.shape=ee(o.shape)),s}var a=i(r);e.traverse(function(o){if(iS(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Le(o,l,t,le(o).dataIndex)}}})}function cO(r,e){return z(r,function(t){var i=t[0];i=de(i,e.x),i=ke(i,e.x+e.width);var n=t[1];return n=de(n,e.y),n=ke(n,e.y+e.height),[i,n]})}function pO(r,e){var t=de(r.x,e.x),i=ke(r.x+r.width,e.x+e.width),n=de(r.y,e.y),a=ke(r.y+r.height,e.y+e.height);if(i>=t&&a>=n)return{x:t,y:n,width:i-t,height:a-n}}function ul(r,e,t){var i=P({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ie(n,t),new yr(i)):Lf(r.replace("path://",""),i,t,"center")}function hO(r,e,t,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(sS(r,e,t,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function sS(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,f=o-n,c=s-a,p=rd(f,c,l,u);if(vO(p))return!1;var h=r-n,v=e-a,d=rd(h,v,l,u)/p;if(d<0||d>1)return!1;var m=rd(h,v,f,c)/p;return!(m<0||m>1)}function rd(r,e,t,i){return r*i-t*e}function vO(r){return r<=1e-6&&r>=-1e-6}function ko(r,e,t,i,n){return e==null||(se(e)?Re[0]=Re[1]=Re[2]=Re[3]=e:(Re[0]=e[0],Re[1]=e[1],Re[2]=e[2],Re[3]=e[3]),i&&(Re[0]=de(0,Re[0]),Re[1]=de(0,Re[1]),Re[2]=de(0,Re[2]),Re[3]=de(0,Re[3])),t&&(Re[0]=-Re[0],Re[1]=-Re[1],Re[2]=-Re[2],Re[3]=-Re[3]),nS(r,Re,"x","width",3,1,n&&n[0]||0),nS(r,Re,"y","height",0,2,n&&n[1]||0)),r}var Re=[0,0,0,0];function nS(r,e,t,i,n,a,o){var s=e[a]+e[n],l=r[i];r[i]+=s,o=de(0,ke(o,l)),r[i]<o?(r[i]=o,r[t]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Ie(s)>1e-8?(l-o)*e[n]/s:0):r[t]-=e[n]}function Bo(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,n=U(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&w(he(l),function(f){Ce(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=le(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:ie({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function nd(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Di(r,e){if(r)if(N(r))for(var t=0;t<r.length;t++)nd(r[t],e);else nd(r,e)}function Of(r){return!r||Ie(r[1])<If&&Ie(r[2])<If||Ie(r[0])<If&&Ie(r[3])<If}var If=1e-5;function zo(r,e){return r?re.copy(r,e):e.clone()}function Pf(r,e){return e?Ts(r||Mt(),e):void 0}function ai(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function dO(r){var e=-1/0,t=1/0;nd(r,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function fl(r,e,t){lS(r,e,t,-1/0)}function lS(r,e,t,i){if(r.ignoreModelZ)return i;var n=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)i=de(lS(s[l],e,t,i),i);else r.z=e,r.zlevel=t,i=de(r.z2||0,i);if(n&&(n.z=e,n.zlevel=t,isFinite(i)&&(n.z2=i+2)),a){var u=r.textGuideLineConfig;a.z=e,a.zlevel=t,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function mO(r){return r.animation={duration:0},r}function gO(r,e){return e?Ts(ll.transform,e):hi(ll.transform),ll.decomposeTransform(),po(r,ll),r}var ll=new ho;ll.transform=Mt();function yO(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}Or("circle",il);Or("ellipse",Kv);Or("sector",Lr);Or("ring",Qv);Or("polygon",cn);Or("polyline",Ai);Or("rect",xe);Or("line",nr);Or("bezierCurve",ol);Or("arc",sl);var Rf={};function _O(r,e){for(var t=0;t<pt.length;t++){var i=pt[t],n=e[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function uS(r,e,t){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Z(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<pt.length;u++){var f=pt[u],c=e[f];l[f]=F(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function Gt(r,e,t,i){t=t||Rf;for(var n=r instanceof De,a=!1,o=0;o<Mo.length;o++){var s=e[Mo[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new De,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=uS(t,e),f=e.normal,c=!!f.getShallow("show"),p=Ht(f,i&&i.normal,t,!1,!n);p.text=u.normal,n||r.setTextConfig(fS(f,t,!1));for(var o=0;o<pt.length;o++){var h=pt[o],s=e[h];if(s){var v=l.ensureState(h),d=!!F(s.getShallow("show"),c);if(d!==c&&(v.ignore=!d),v.style=Ht(s,i&&i[h],t,!0,!n),v.style.text=u[h],!n){var m=r.ensureState(h);m.textConfig=fS(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),t.enableTextSetter&&(Uo(l).setLabelText=function(g){var y=uS(t,e,g);_O(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Ct(r,e){e=e||"label";for(var t={normal:r.getModel(e)},i=0;i<pt.length;i++){var n=pt[i];t[n]=r.getModel([n,e])}return t}function Ht(r,e,t,i,n){var a={};return xO(a,r,t,i,n),e&&P(a,e),a}function fS(r,e,t){e=e||{};var i={},n,a=r.getShallow("rotate"),o=F(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function xO(r,e,t,i,n){t=t||Rf;var a=e.ecModel,o=a&&a.option.textStyle,s=SO(e),l;if(s){l={};var u="richInheritPlainLabel",f=F(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);vS(l[c]={},p,o,e,f,t,i,n,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var v=e.get("lineOverflow");v&&(r.lineOverflow=v);var d=r,m=e.get("minMargin");if(m!=null)m=se(m)?m/2:0,d.margin=[m,m,m,m],d.__marginType=_a.minMargin;else{var g=e.get("textMargin");g!=null&&(d.margin=eo(g),d.__marginType=_a.textMargin)}vS(r,e,o,null,null,t,i,n,!0,!1)}function SO(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Rf).rich;if(t){e=e||{};for(var i=he(t),n=0;n<i.length;n++){var a=i[n];e[a]=1}}r=r.parentModel}return e}var cS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],pS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],hS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vS(r,e,t,i,n,a,o,s,l,u){t=!o&&t||Rf;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=F(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||t.color,p=p||t.textBorderColor),c!=null&&(r.fill=c),p!=null&&(r.stroke=p);var v=F(e.getShallow("textBorderWidth"),t.textBorderWidth);v!=null&&(r.lineWidth=v);var d=F(e.getShallow("textBorderType"),t.textBorderType);d!=null&&(r.lineDash=d);var m=F(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);m!=null&&(r.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var g=0;g<cS.length;g++){var y=cS[g],_=n!==!1&&i?Qt(e.getShallow(y),i.getShallow(y),t[y]):F(e.getShallow(y),t[y]);_!=null&&(r[y]=_)}for(var g=0;g<pS.length;g++){var y=pS[g],_=e.getShallow(y);_!=null&&(r[y]=_)}if(r.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(r.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<hS.length;g++){var y=hS[g],_=e.getShallow(y);_!=null&&(r[y]=_)}var S=e.getShallow("borderType");S!=null&&(r.borderDash=S),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function dS(r,e){var t=e&&e.getModel("textStyle");return gt([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Uo=Q();function mS(r,e,t,i){if(r){var n=Uo(r);n.prevValue=n.value,n.value=t;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var _a={minMargin:1,textMargin:2};var bO=["textStyle","color"],cd=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],pd=new De,TO=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(bO):null)},r.prototype.getFont=function(){return dS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<cd.length;i++)t[cd[i]]=this.getShallow(cd[i]);return pd.useStyle(t),pd.update(),pd.getBoundingRect()},r})(),gS=TO;var hd=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],wO=Kr(hd),yS=(function(){function r(){}return r.prototype.getLineStyle=function(e){return wO(this,e)},r})();var vd=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],CO=Kr(vd),_S=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return CO(this,e,t)},r})();var xa=(function(){function r(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return r.prototype.init=function(e,t,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},r.prototype.mergeOption=function(e,t){fe(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var i=this.option,n=i==null?i:i[e];if(n==null&&!t){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},r.prototype.getModel=function(e,t){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(ee(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!ne.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},r})();Co(xa);y0(xa);mt(xa,yS);mt(xa,_S);mt(xa,_0);mt(xa,gS);var Oe=xa;var AO=Math.round(Math.random()*10);function vn(r){return[r||"",AO++].join("_")}function xS(r){var e={};r.registerSubTypeDefaulter=function(t,i){var n=Ut(t);e[n.main]=i},r.determineSubType=function(t,i){var n=i.type;if(!n){var a=Ut(t).main;r.hasSubTypes(t)&&e[a]&&(n=e[a](i))}return n}}function SS(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),f=u.graph,c=u.noEntryList,p={};for(w(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],d=!!p[h];d&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),w(v.successor,d?g:m)}w(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function t(a){var o={},s=[];return w(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),w(c,function(p){ae(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);ae(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return w(a,function(l){ae(o,l)>=0&&s.push(l)}),s}}function dn(r,e){return fe(fe({},r,!0),e,!0)}var bS={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}};var TS={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 kf="ZH",md="EN",Vo=md,Nf={},gd={},Bf=ne.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Vo).toUpperCase();return r.indexOf(kf)>-1?kf:Vo})():Vo;function wS(r,e){r=r.toUpperCase(),gd[r]=new Oe(e),Nf[r]=e}function CS(r){if(U(r)){var e=Nf[r.toUpperCase()]||{};return r===kf||r===md?ee(e):fe(ee(e),ee(Nf[Vo]),!1)}else return fe(ee(r),ee(Nf[Vo]),!1)}function AS(r){return gd[r]}function DS(){return gd[Vo]}wS(md,bS);wS(kf,TS);var DO=null;function Fe(){return DO}function zf(r,e){var t=Fe(),i=e.breakOption,n=e.breakParsed;return!n&&t&&(n=t.parseAxisBreakOption(i,r)),n}function Sa(r){var e=r.brk;return e?e.breaks:[]}function ba(r){var e=r.brk;return e?e.hasBreaks():!1}var Ff=1e3,Hf=Ff*60,Fo=Hf*60,ar=Fo*24,yd=ar*365,EO={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})/},Vf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},MO="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Uf="{yyyy}-{MM}-{dd}",_d={year:"{yyyy}",month:"{yyyy}-{MM}",day:Uf,hour:Uf+" "+Vf.hour,minute:Uf+" "+Vf.minute,second:Uf+" "+Vf.second,millisecond:MO},Yt=["year","month","day","hour","minute","second","millisecond"],ES=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function MS(r){return!U(r)&&!Z(r)?IO(r):r}function IO(r){r=r||{};var e={},t=!0;return w(Yt,function(i){t&&(t=r[i]==null)}),w(Yt,function(i,n){var a=r[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=Yt[s],u=W(a)&&!N(a)?a[l]:a,f=void 0;N(u)?(f=u.slice(),o=f[0]||""):U(u)?(o=u,f=[o]):(o==null?o=Vf[i]:EO[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function Ei(r,e){return r+="","0000".substr(0,e-r.length)+r}function Ho(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function IS(r){return r===Ho(r)}function LS(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ta(r,e,t,i){var n=Xr(r),a=n[xd(t)](),o=n[Yf(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Wf(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[Zf(t)](),c=(f-1)%12+1,p=n[Xf(t)](),h=n[qf(t)](),v=n[Kf(t)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof Oe?i:AS(i||Bf)||DS(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ei(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ei(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ei(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ei(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ei(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ei(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ei(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ei(v,3)).replace(/{S}/g,v+"")}function OS(r,e,t,i,n){var a=null;if(U(t))a=t;else if(Z(t)){var o={time:r.time,level:r.time?r.time.level:0},s=Fe();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),a=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=wa(r.value,n);a=t[f][f][0]}}return Ta(new Date(r.value),a,n,i)}function wa(r,e){var t=Xr(r),i=t[Yf(e)]()+1,n=t[Wf(e)](),a=t[Zf(e)](),o=t[Xf(e)](),s=t[qf(e)](),l=t[Kf(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Gf(r,e,t){switch(e){case"year":r[Sd(t)](0);case"month":r[bd(t)](1);case"day":r[Td(t)](0);case"hour":r[wd(t)](0);case"minute":r[Cd(t)](0);case"second":r[Ad(t)](0)}return r}function xd(r){return r?"getUTCFullYear":"getFullYear"}function Yf(r){return r?"getUTCMonth":"getMonth"}function Wf(r){return r?"getUTCDate":"getDate"}function Zf(r){return r?"getUTCHours":"getHours"}function Xf(r){return r?"getUTCMinutes":"getMinutes"}function qf(r){return r?"getUTCSeconds":"getSeconds"}function Kf(r){return r?"getUTCMilliseconds":"getMilliseconds"}function PS(r){return r?"setUTCFullYear":"setFullYear"}function Sd(r){return r?"setUTCMonth":"setMonth"}function bd(r){return r?"setUTCDate":"setDate"}function Td(r){return r?"setUTCHours":"setHours"}function wd(r){return r?"setUTCMinutes":"setMinutes"}function Cd(r){return r?"setUTCSeconds":"setSeconds"}function Ad(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Ed(r){if(!iv(r))return U(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function jf(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var mn=eo;function Qf(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&gt(f)?f:"-"}function a(f){return tt(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Xr(r):r;if(isNaN(+l)){if(s)return"-"}else return Ta(l,i,t)}if(e==="ordinal")return xs(r)?n(r):se(r)&&a(r)?r+"":"-";var u=qr(r);return a(u)?Ed(u):xs(r)?n(r):typeof r=="boolean"?r+"":"-"}var RS=["a","b","c","d","e","f","g"],Dd=function(r,e){return"{"+r+(e??"")+"}"};function $f(r,e,t){N(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=RS[a];r=r.replace(Dd(o),Dd(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(Dd(RS[l],s),t?_t(u):u)}return r}function NS(r,e){var t=U(r)?{color:r,extraCssText:e}:r||{},i=t.color,n=t.type;e=t.extraCssText;var a=t.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+_t(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+_t(i)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Pr(r,e){return e=e||"transparent",U(r)?r:W(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Md(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Jf={},Ld={},LO=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=i(Jf,!0),this._normalMasterList=i(Ld,!1);function i(n,a){var o=[];return w(n,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){w(this._normalMasterList,function(i){i.update&&i.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Jf[e]=t;return}Ld[e]=t},r.get=function(e){return Ld[e]||Jf[e]},r})();function OO(r){return!!Jf[r]}var PO=1,Od=2;function kS(r){BS.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var BS=V();function tc(r){var e=r.getShallow("coord",!0),t=PO;if(e==null){var i=BS.get(r.type);i&&i.getCoord2&&(t=Od,e=i.getCoord2(r))}return{coord:e,from:t}}var Go=0,ec=1,RO=2;function NO(r,e){var t=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),n=i!=null,a=Go;if(t){var o=r.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=ec,o||(a=Go)):i==="box"&&(a=RO,!o&&!OO(t)&&(a=Go))}return{coordSysType:t,kind:a}}function zS(r){var e=r.targetModel,t=r.coordSysType,i=r.coordSysProvider,n=r.isDefaultDataCoordSys,a=r.allowNotFound,o=NO(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==ec&&(s=ec,l=t),s===Go||l!==t)return Go;var u=i(t,e);return u?(s===ec?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Go}var cl=LO;var ic=w,kO=["left","right","top","bottom","width","height"],rc=[["width","left","right"],["height","top","bottom"]];function Pd(r,e,t,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(r==="horizontal"){var d=f.width+(p?-p.x+f.x:0);h=a+d,h>i||l.newline?(a=0,h=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);v=o+m,v>n||l.newline?(a+=s+t,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=h+t:o=v+t)})}var Ca=Pd,q5=ce(Pd,"vertical"),K5=ce(Pd,"horizontal");function US(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function BO(r,e){var t=Mi(r,e,{enableLayoutOnlyByCenter:!0}),i=r.getBoxLayoutParams(),n,a;if(t.type===pl.point)a=t.refPoint,n=Wt(i,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=N(o)?o:[o,o];n=Wt(i,t.refContainer),a=t.boxCoordFrom===Od?t.refPoint:[_e(s[0],n.width)+n.x,_e(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function VS(r,e){var t=BO(r,e),i=t.viewRect,n=t.center,a=r.get("radius");N(a)||(a=[0,a]);var o=_e(i.width,e.getWidth()),s=_e(i.height,e.getHeight()),l=Math.min(o,s),u=_e(a[0],l/2),f=_e(a[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:i}}function Wt(r,e,t){t=mn(t||0);var i=e.width,n=e.height,a=_e(r.left,i),o=_e(r.top,n),s=_e(r.right,i),l=_e(r.bottom,n),u=_e(r.width,i),f=_e(r.height,n),c=t[2]+t[0],p=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":a=i/2-u/2-t[3];break;case"right":a=i-u-p;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new re((e.x||0)+a+t[3],(e.y||0)+o+t[0],u,f);return v.margin=t,v}var pl={rect:1,point:2};function Mi(r,e,t){var i,n,a,o=r.boxCoordinateSystem,s;if(o){var l=tc(r),u=l.coord,f=l.from;if(o.dataToLayout){a=pl.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=pl.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=pl.rect),a===pl.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function gn(r){var e=r.layoutMode||r.constructor.layoutMode;return W(e)?e:e?{type:e}:null}function or(r,e,t){var i=t&&t.ignoreSize;!N(i)&&(i=[i,i]);var n=o(rc[0],0),a=o(rc[1],1);l(rc[0],r,n),l(rc[1],r,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(ic(u,function(y){h[y]=r[y]}),ic(u,function(y){Ce(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===d||!p)return h;if(p>=d)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Ce(c,g)&&Ce(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){ic(u,function(p){f[p]=c[p]})}}function _r(r){return zO({},r)}function zO(r,e){return e&&r&&ic(kO,function(t){Ce(e,t)&&(r[t]=e[t])}),r}var UO=Q(),Yo=(function(r){L(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.uid=vn("ec_cpt_model"),a}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=gn(this),a=n?_r(t):{},o=i.getTheme();fe(t,o.get(this.mainType)),fe(t,this.getDefaultOption()),n&&or(t,a,n)},e.prototype.mergeOption=function(t,i){fe(this.option,t,!0);var n=gn(this);n&&or(this.option,t,n)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!g0(t))return t.defaultOption;var i=UO(this);if(!i.defaultOption){for(var n=[],a=t;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=fe(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var n=t+"Index",a=t+"Id";return tn(this.ecModel,t,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return US(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(Oe);rf(Yo,Oe);nn(Yo);xS(Yo);SS(Yo,VO);function VO(r){var e=[];return w(Yo.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=z(e,function(t){return Ut(t).main}),r!=="dataset"&&ae(e,"dataset")<=0&&e.unshift("dataset"),e}var be=Yo;var Aa={color:{},darkColor:{},size:{}},Xe=Aa.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)"};P(Xe,{primary:Xe.neutral80,secondary:Xe.neutral70,tertiary:Xe.neutral60,quaternary:Xe.neutral50,disabled:Xe.neutral20,border:Xe.neutral30,borderTint:Xe.neutral20,borderShade:Xe.neutral40,background:Xe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Xe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Xe.neutral70,axisLineTint:Xe.neutral40,axisTick:Xe.neutral70,axisTickMinor:Xe.neutral60,axisLabel:Xe.neutral70,axisSplitLine:Xe.neutral15,axisMinorSplitLine:Xe.neutral05});for(yn in Xe)Xe.hasOwnProperty(yn)&&(Rd=Xe[yn],yn==="theme"?Aa.darkColor.theme=Xe.theme.slice():yn==="highlight"?Aa.darkColor.highlight="rgba(255,231,130,0.4)":yn.indexOf("accent")===0?Aa.darkColor[yn]=Ls(Rd,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Aa.darkColor[yn]=Ls(Rd,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)}));var Rd,yn;Aa.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var H=Aa;var FS="";typeof navigator<"u"&&(FS=navigator.platform||"");var Wo="rgba(0, 0, 0, 0.2)",HS=H.color.theme[0],FO=Ls(HS,null,null,.9),ac={darkMode:"auto",colorBy:"series",color:H.color.theme,gradientColor:[FO,HS],aria:{decal:{decals:[{color:Wo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:FS.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var st={Must:1,Might:2,Not:3},GS=Q();function YS(r){GS(r).datasetMap=V()}function WS(r,e,t){var i={},n=oc(e);if(!n||!r)return i;var a=[],o=[],s=e.ecModel,l=GS(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),w(r,function(d,m){var g=W(d)?d:r[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,c=v(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(d,m){var g=d.name,y=v(d);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function ZS(r,e,t){var i={},n=oc(r);if(!n)return i;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===ct||a===Vt)&&w(o,function(f,c){(W(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},p=[],h=0,v=Math.min(5,t);h<v;h++){var d=qS(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(d);var m=d===st.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&p[f.n]===st.Not)&&(f.n=h),g(f)&&p[f.n]!==st.Not)return f;m||(d===st.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function oc(r){var e=r.get("data",!0);if(!e)return tn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},We).models[0]}function XS(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:tn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},We).models}function sc(r,e){return qS(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function qS(r,e,t,i,n,a){var o,s=5;if(Ye(r))return st.Not;var l,u;if(i){var f=i[a];W(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(u!=null)return u==="ordinal"?st.Must:st.Not;if(e===Ze){var c=r;if(t===ri){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===ct){var d=r;if(!l)return st.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===Vt){var g=r;if(!l)return st.Not;var p=g[l];if(!p||Ye(p))return st.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===ot)for(var y=r,h=0;h<y.length&&h<s;h++){var m=y[h],_=yi(m);if(!N(_))return st.Not;if((o=x(_[a]))!=null)return o}function x(S){var b=U(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?st.Might:st.Not;if(b&&S!=="-")return st.Must}return st.Not}var HO=V();function KS(r,e,t){var i=HO.get(e);if(!i)return t;var n=i(r);if(!n)return t;if(0)for(var a;a<n.length;a++);return t.concat(n)}var jS=Q(),v3=Q(),hl=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,i){var n=Pe(this.get("color",!0)),a=this.get("colorLayer",!0);return YO(this,jS,n,a,e,t,i)},r.prototype.clearColorPalette=function(){WO(this,jS)},r})();function GO(r,e){for(var t=r.length,i=0;i<t;i++)if(r[i].length>e)return r[i];return r[t-1]}function YO(r,e,t,i,n,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?t:GO(i,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function WO(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var lc,vl,QS,$S="\0_ec_inner",ZO=1;var rb=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Oe(a),this._locale=new Oe(o),this._optionManager=s},e.prototype.setOption=function(t,i,n){var a=tb(i);this._optionManager.setOption(t,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,i){return this._resetOption(t,tb(i))},e.prototype._resetOption=function(t,i){var n=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?QS(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=V(),u=i&&i.replaceMergeMainTypeMap;YS(this),w(t,function(c,p){c!=null&&(be.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?ee(c):fe(n[p],c,!0))}),u&&u.each(function(c,p){be.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),be.topologicalTravel(s,be.getAllClassMainTypes(),f,this);function f(c){var p=KS(this,c,Pe(t[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=n0(h,p,v);o0(d,c,be),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;w(d,function(S,b){var T=S.existing,A=S.newOption;if(!A)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var C=c==="series",D=be.getClass(c,S.keyInfo.subType,!C);if(!D){if(0)var E,I;return}if(c==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===D)T.name=S.keyInfo.name,T.mergeOption(A,this),T.optionUpdated(A,!1);else{var M=P({componentIndex:b},S.keyInfo);T=new D(A,this,this,M),P(T,M),S.brandNew&&(T.__requireNewView=!0),T.init(A,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),g.push(T),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series"&&lc(this)}this._seriesIndices||lc(this)},e.prototype.getOption=function(){var t=ee(this.option);return w(t,function(i,n){if(be.hasClass(n)){for(var a=Pe(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!_o(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[n]=a}}),delete t[$S],t},e.prototype.setTheme=function(t){this._theme=new Oe(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var n=this._componentsMap.get(t);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var n=t.index,a=t.id,o=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],w(Pe(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=JS("id",a,s):o!=null?l=JS("name",o,s):l=Me(s,function(u){return!!u}),eb(l,t)},e.prototype.findComponents=function(t){var i=t.query,n=t.mainType,a=s(i),o=a?this.queryComponents(a):Me(this._componentsMap.get(n),function(u){return!!u});return l(eb(o,t));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return t.filter?Me(u,t.filter):u}},e.prototype.eachComponent=function(t,i,n){var a=this._componentsMap;if(Z(t)){var o=i,s=t;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=U(t)?a.get(t):W(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=tr(t,null);return Me(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Me(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return Me(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){vl(this),w(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];t.call(i,a,n)},this)},e.prototype.eachRawSeries=function(t,i){w(this._componentsMap.get("series"),function(n){n&&t.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,n){vl(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,i,n){return w(this.getSeriesByType(t),i,n)},e.prototype.isSeriesFiltered=function(t){return vl(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){vl(this);var n=[];w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=V(n)},e.prototype.restoreData=function(t){lc(this);var i=this._componentsMap,n=[];i.each(function(a,o){be.hasClass(o)&&n.push(o)}),be.topologicalTravel(n,be.getAllClassMainTypes(),function(a){w(i.get(a),function(o){o&&(a!=="series"||!XO(o,t))&&o.restoreData()})})},e.internalField=(function(){lc=function(t){var i=t._seriesIndices=[];w(t._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),t._seriesIndicesMap=V(i)},vl=function(t){},QS=function(t,i){t.option={},t.option[$S]=ZO,t._componentsMap=V({series:[]}),t._componentsCount=V();var n=i.aria;W(n)&&n.enabled==null&&(n.enabled=!0),qO(i,t._theme.option),fe(i,ac,!1),t._mergeOption(i,null)}})(),e})(Oe);function XO(r,e){if(e){var t=e.seriesIndex,i=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||i!=null&&r.id!==i||n!=null&&r.name!==n}}function qO(r,e){var t=r.color&&!r.colorLayer;w(e,function(i,n){n==="colorLayer"&&t||n==="color"&&r.color||be.hasClass(n)||(typeof i=="object"?r[n]=r[n]?fe(r[n],i,!1):ee(i):r[n]==null&&(r[n]=i))})}function JS(r,e,t){if(N(e)){var i=V();return w(e,function(a){if(a!=null){var o=tr(a,null);o!=null&&i.set(a,!0)}}),Me(t,function(a){return a&&i.get(a[r])})}else{var n=tr(e,null);return Me(t,function(a){return a&&n!=null&&a[r]===n})}}function eb(r,e){return e.hasOwnProperty("subType")?Me(r,function(t){return t&&t.subType===e.subType}):r}function tb(r){var e=V();return r&&w(Pe(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}mt(rb,hl);var uc=rb;var KO=/^(min|max)?(.+)$/,jO=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,i){e&&(w(Pe(e.series),function(o){o&&o.data&&Ye(o.data)&&Un(o.data)}),w(Pe(e.dataset),function(o){o&&o.source&&Ye(o.source)&&Un(o.source)})),e=ee(e);var n=this._optionBackup,a=QO(e,t,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ee(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(t=ee(i[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)$O(n[l].query,t,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!eP(o,this._currentMediaIndices)&&(s=z(o,function(f){return ee(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function QO(r,e,t){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(r.options=r.media=null),a=r),f&&N(u)&&w(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),w(l,function(h){return p(h)}),w(i,function(h){return p(h.option)});function p(h){w(e,function(v){v(h,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function $O(r,e,t){var i={width:e,height:t,aspectratio:e/t},n=!0;return w(r,function(a,o){var s=o.match(KO);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();JO(i[u],a,l)||(n=!1)}}),n}function JO(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function eP(r,e){return r.join(",")===e.join(",")}var ib=jO;var Rr=w,ml=W,nb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nd(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=nb.length;t<i;t++){var n=nb[t],a=e.normal,o=e.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?fe(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?fe(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function At(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var i=r[e].normal,n=r[e].emphasis;i&&(t?(r[e].normal=r[e].emphasis=null,ie(r[e],i)):r[e]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function dl(r){At(r,"itemStyle"),At(r,"lineStyle"),At(r,"areaStyle"),At(r,"label"),At(r,"labelLine"),At(r,"upperLabel"),At(r,"edgeLabel")}function $e(r,e){var t=ml(r)&&r[e],i=ml(t)&&t.textStyle;if(i)for(var n=0,a=ov.length;n<a;n++){var o=ov[n];i.hasOwnProperty(o)&&(t[o]=i[o])}}function xr(r){r&&(dl(r),$e(r,"label"),r.emphasis&&$e(r.emphasis,"label"))}function tP(r){if(ml(r)){Nd(r),dl(r),$e(r,"label"),$e(r,"upperLabel"),$e(r,"edgeLabel"),r.emphasis&&($e(r.emphasis,"label"),$e(r.emphasis,"upperLabel"),$e(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Nd(e),xr(e));var t=r.markLine;t&&(Nd(t),xr(t));var i=r.markArea;i&&xr(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!Ye(a))for(var o=0;o<a.length;o++)xr(a[o]);w(r.categories,function(u){dl(u)})}if(n&&!Ye(n))for(var o=0;o<n.length;o++)xr(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)xr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)N(l[o])?(xr(l[o][0]),xr(l[o][1])):xr(l[o]);r.type==="gauge"?($e(r,"axisLabel"),$e(r,"title"),$e(r,"detail")):r.type==="treemap"?(At(r.breadcrumb,"itemStyle"),w(r.levels,function(u){dl(u)})):r.type==="tree"&&dl(r.leaves)}}function Ii(r){return N(r)?r:r?[r]:[]}function ab(r){return(N(r)?r[0]:r)||{}}function kd(r,e){Rr(Ii(r.series),function(i){ml(i)&&tP(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Rr(t,function(i){Rr(Ii(r[i]),function(n){n&&($e(n,"axisLabel"),$e(n.axisPointer,"label"))})}),Rr(Ii(r.parallel),function(i){var n=i&&i.parallelAxisDefault;$e(n,"axisLabel"),$e(n&&n.axisPointer,"label")}),Rr(Ii(r.calendar),function(i){At(i,"itemStyle"),$e(i,"dayLabel"),$e(i,"monthLabel"),$e(i,"yearLabel")}),Rr(Ii(r.radar),function(i){$e(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)}),Rr(Ii(r.geo),function(i){ml(i)&&(xr(i),Rr(Ii(i.regions),function(n){xr(n)}))}),Rr(Ii(r.timeline),function(i){xr(i),At(i,"label"),At(i,"itemStyle"),At(i,"controlStyle",!0);var n=i.data;N(n)&&w(n,function(a){W(a)&&(At(a,"label"),At(a,"itemStyle"))})}),Rr(Ii(r.toolbox),function(i){At(i,"iconStyle"),Rr(i.feature,function(n){At(n,"iconStyle")})}),$e(ab(r.axisPointer),"label"),$e(ab(r.tooltip).axisPointer,"label")}function rP(r,e){for(var t=e.split(","),i=r,n=0;n<t.length&&(i=i&&i[t[n]],i!=null);n++);return i}function iP(r,e,t,i){for(var n=e.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=t)}function ob(r){r&&w(nP,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var nP=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],aP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Bd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function gl(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Bd.length;t++){var i=Bd[t][1],n=Bd[t][0];e[i]!=null&&(e[n]=e[i])}}function sb(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function lb(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function oP(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function ub(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&ub(r[t].children,e)}function fc(r,e){kd(r,e),r.series=Pe(r.series),w(r.series,function(t){if(W(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),sb(t.label);var n=t.data;if(n&&!Ye(n))for(var a=0;a<n.length;a++)sb(n[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var o=rP(t,"pointer.color");o!=null&&iP(t,"itemStyle.color",o)}else if(i==="bar"){gl(t),gl(t.backgroundStyle),gl(t.emphasis);var n=t.data;if(n&&!Ye(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(gl(n[a]),gl(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),lb(t),ub(t.data,lb)}else i==="graph"||i==="sankey"?oP(t):i==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ie(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),ob(t)}}),r.dataRange&&(r.visualMap=r.dataRange),w(aP,function(t){var i=r[t];i&&(N(i)||(i=[i]),w(i,function(n){ob(n)}))})}var fb=wo(sP);function sP(r){var e=V();r.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){if(t.length!==0){var i=t[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&t.reverse(),w(t,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),lP(t)}})}function lP(r){w(r,function(e,t){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,m=t-1;m>=0;m--){var g=r[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=gi(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var cc=(function(){function r(e){this.data=e.data||(e.sourceFormat===Vt?{}:[]),this.sourceFormat=e.sourceFormat||Rv,this.seriesLayoutBy=e.seriesLayoutBy||Ot,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var n=t[i];n.type==null&&sc(this,i)===st.Must&&(n.type="ordinal")}}return r})();function Zo(r){return r instanceof cc}function yl(r,e,t){t=t||zd(r);var i=e.seriesLayoutBy,n=uP(r,t,i,e.sourceHeader,e.dimensions),a=new cc({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:ee(e)});return a}function Xo(r){return new cc({data:r,sourceFormat:Ye(r)?rr:ot})}function hb(r){return new cc({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ee(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function zd(r){var e=Rv;if(Ye(r))e=rr;else if(N(r)){r.length===0&&(e=Ze);for(var t=0,i=r.length;t<i;t++){var n=r[t];if(n!=null){if(N(n)||Ye(n)){e=Ze;break}else if(W(n)){e=ct;break}}}}else if(W(r)){for(var a in r)if(Ce(r,a)&&Ge(r[a])){e=Vt;break}}return e}function uP(r,e,t,i,n){var a,o;if(!r)return{dimensionsDefine:cb(n),startIndex:o,dimensionsDetectedCount:a};if(e===Ze){var s=r;i==="auto"||i==null?pb(function(u){u!=null&&u!=="-"&&(U(u)?o==null&&(o=1):o=0)},t,s,10):o=se(i)?i:i?1:0,!n&&o===1&&(n=[],pb(function(u,f){n[f]=u!=null?u+"":""},t,s,1/0)),a=n?n.length:t===ri?s.length:s[0]?s[0].length:null}else if(e===ct)n||(n=fP(r));else if(e===Vt)n||(n=[],w(r,function(u,f){n.push(f)}));else if(e===ot){var l=yi(r[0]);a=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:cb(n),dimensionsDetectedCount:a}}function fP(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return he(t)}function cb(r){if(r){var e=V();return z(r,function(t,i){t=W(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function pb(r,e,t,i){if(e===ri)for(var n=0;n<t.length&&n<i;n++)r(t[n]?t[n][0]:null,n);else for(var a=t[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function pc(r){var e=r.sourceFormat;return e===ct||e===Vt}var Da,Ea,Ma,Ia,vb,db,vc=(function(){function r(e,t){var i=Zo(e)?e:Xo(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===rr&&(this._offset=0,this._dimSize=t,this._data=n),0)var s;db(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;db=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=vb[Gd(u,f)];if(P(o,h),u===rr)o.getItem=t,o.count=n,o.fillStorage=i;else{var v=Vd(u,f);o.getItem=$(v,null,s,c,p);var d=Fd(u,f);o.count=$(d,null,s,c,p)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};vb=(e={},e[Ze+"_"+Ot]={pure:!0,appendData:a},e[Ze+"_"+ri]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ct]={pure:!0,appendData:a},e[Vt]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[ot]={appendData:a},e[rr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})();var hc=function(r){N(r)||av("series.data or dataset.source must be an array.")},$3=(Da={},Da[Ze+"_"+Ot]=hc,Da[Ze+"_"+ri]=hc,Da[ct]=hc,Da[Vt]=function(r,e){for(var t=0;t<e.length;t++){var i=e[t].name;i==null&&av("dimension name must not be null/undefined.")}},Da[ot]=hc,Da),mb=function(r,e,t,i){return r[i]},cP=(Ea={},Ea[Ze+"_"+Ot]=function(r,e,t,i){return r[i+e]},Ea[Ze+"_"+ri]=function(r,e,t,i,n){i+=e;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Ea[ct]=mb,Ea[Vt]=function(r,e,t,i,n){for(var a=n||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;a[o]=l?l[i]:null}return a},Ea[ot]=mb,Ea);function Vd(r,e){var t=cP[Gd(r,e)];return t}var gb=function(r,e,t){return r.length},pP=(Ma={},Ma[Ze+"_"+Ot]=function(r,e,t){return Math.max(0,r.length-e)},Ma[Ze+"_"+ri]=function(r,e,t){var i=r[0];return i?Math.max(0,i.length-e):0},Ma[ct]=gb,Ma[Vt]=function(r,e,t){var i=t[0].name,n=i!=null?r[i]:null;return n?n.length:0},Ma[ot]=gb,Ma);function Fd(r,e){var t=pP[Gd(r,e)];return t}var Ud=function(r,e,t){return r[e]},hP=(Ia={},Ia[Ze]=Ud,Ia[ct]=function(r,e,t){return r[t]},Ia[Vt]=Ud,Ia[ot]=function(r,e,t){var i=yi(r);return i instanceof Array?i[e]:i},Ia[rr]=Ud,Ia);function Hd(r){var e=hP[r];return e}function Gd(r,e){return r===Ze?r+"_"+e:r}function Li(r,e,t){if(r){var i=r.getRawDataItem(e);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return Hd(a)(i,o,s)}else{var l=i;return a===ot&&(l=yi(i)),l}}}}var vP=/\{@(.+?)\}/g,_l=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var i=this.getData(t),n=this.getRawValue(e,t),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,i,n,a,o){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&N(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Z(a))return l.status=t,l.dimensionIndex=n,a(l);if(U(a)){var f=$f(a,l);return f.replace(vP,function(c,p){var h=p.length,v=p;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=Li(s,e,v);if(o&&N(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Li(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r})();function Yd(r){var e,t;return W(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function _n(r){return new dP(r)}var dP=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(N(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,i,n,a){yb.reset(t,i,n,a),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:yb.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),N(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})();var yb=(function(){var r,e,t,i,n,a={reset:function(l,u,f,c){e=l,r=u,t=f,i=c,n=Math.ceil(i/t),a.next=t>1&&i>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<i?l:e;return e++,u}})();function Sr(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!se(r)&&r!=null&&r!=="-"&&(r=+Xr(r)),r==null||r===""?NaN:Number(r))}var mP=V({number:function(r){return parseFloat(r)},time:function(r){return+Xr(r)},trim:function(r){return U(r)?gt(r):r}});function dc(r){return mP.get(r)}var _b={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},gP=(function(){function r(e,t){if(!se(t)){var i="";Se(i)}this._opFn=_b[e],this._rvalFloat=qr(t)}return r.prototype.evaluate=function(e){return se(e)?this._opFn(e,this._rvalFloat):this._opFn(qr(e),this._rvalFloat)},r})(),mc=(function(){function r(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=se(e)?e:qr(e),n=se(t)?t:qr(t),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=U(e),l=U(t);s&&(i=l?e:0),l&&(n=s?t:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r})();var yP=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=qr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=qr(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function xb(r,e){return r==="eq"||r==="ne"?new yP(r==="eq",e):Ce(_b,r)?new gP(r,e):null}function gc(r){var e="",t=-1/0,i=-1/0,n=1/0,a=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,i=r.ge),r.l!=null&&(e+="L"+r.l,n=r.l),r.le!=null&&(e+="LE"+r.le,a=r.le)),{key:e,g:t,ge:i,l:n,le:a}}function yc(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var _P=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Sr(e,t)},r})();function xP(r,e){var t=new _P,i=r.data,n=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Ot&&Se(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _="";Ce(l,g)&&Se(_),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=Vd(n,Ot);e.__isBuiltIn&&(t.getRawDataItem=function(d){return c(i,a,s,d)},t.getRawData=$(SP,null,r)),t.cloneRawData=$(bP,null,r);var p=Fd(n,Ot);t.count=$(p,null,i,a,s);var h=Hd(n);t.retrieveValue=function(d,m){var g=c(i,a,s,d);return v(g,m)};var v=t.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return h(d,m,g.name)}};return t.getDimensionInfo=$(TP,null,s,l),t.cloneAllDimensionInfo=$(wP,null,s),t}function SP(r){var e=r.sourceFormat;if(!Wd(e)){var t="";Se(t)}return r.data}function bP(r){var e=r.sourceFormat,t=r.data;if(!Wd(e)){var i="";Se(i)}if(e===Ze){for(var n=[],a=0,o=t.length;a<o;a++)n.push(t[a].slice());return n}else if(e===ct){for(var n=[],a=0,o=t.length;a<o;a++)n.push(P({},t[a]));return n}}function TP(r,e,t){if(t!=null){if(se(t)||!isNaN(t)&&!Ce(e,t))return r[t];if(Ce(e,t))return e[t]}}function wP(r){return ee(r)}var Sb=V();function bb(r){r=ee(r);var e=r.type,t="";e||Se(t);var i=e.split(":");i.length!==2&&Se(t);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),r.__isBuiltIn=n,Sb.set(e,r)}function Tb(r,e,t){var i=Pe(r),n=i.length,a="";n||Se(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=CP(l,e,t,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function CP(r,e,t,i){var n="";e.length||Se(n),W(r)||Se(n);var a=r.type,o=Sb.get(a);o||Se(n);var s=z(e,function(f){return xP(f,o)}),l=Pe(o.transform({upstream:s[0],upstreamList:s,config:ee(r.config)}));if(0&&r.print)var u;return z(l,function(f,c){var p="";W(f)||Se(p),f.data||Se(p);var h=zd(f.data);Wd(h)||Se(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),v={seriesLayoutBy:Ot,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Ot,sourceHeader:0,dimensions:f.dimensions};return yl(f.data,v,null)})}function Wd(r){return r===Ze||r===ct}var AP=typeof Uint32Array===un?Array:Uint32Array,DP=typeof Uint16Array===un?Array:Uint16Array,Xd=typeof Int32Array===un?Array:Int32Array,wb=typeof Float64Array===un?Array:Float64Array,Ab={float:wb,int:Xd,ordinal:Array,number:Array,time:wb},Zd;function qo(r){return r>65535?AP:DP}function EP(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Cb(r,e,t,i,n){var a=Ab[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(i)}var MP=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return r.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Zd[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=pc(n);this._dimensions=z(t,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===t)return a}else a=n.length;return n[a]={type:t},i.set(e,a),this._chunks[a]=new Ab[t||"float"](this._rawCount),this._rawExtent[a]=St(),a},r.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=St());for(var l=a[e],u=o;u<s;u++){var f=i[u]=t.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(e,t){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var f=n[u];Cb(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],d=Zd.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=St()),Cb(a,f,c.type,t,i)}if(n.fillStorage)n.fillStorage(e,t,a,l);else for(var p=[],h=e;h<t;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],m=this._dimValueGetter(p,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var i=[],n=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],t));return i},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(e){var t=[];this.each([e],function(n){isNaN(n)||t.push(n)}),xt(t);var i=this.count();return i===0?0:i%2===1?t[(i-1)/2]:(t[i/2]+t[i/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=t[a]}else e=new i(t.buffer,0,n)}else{var i=qo(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=qo(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=t(p);else if(l===1){var d=c[f][v];h=t(d,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][v];s[m]=p,h=t.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var n=he(e),a=n.length;if(!a)return this;var o=t.count(),s=qo(t._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=t._chunks,v=!1;if(!t._indices){var d=0;if(a===1){for(var m=h[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(a===2){for(var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],g=0;g<i;g++){var y=m[g],b=_[g];(y>=c&&y<=p||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(l[u++]=d),d++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var T=t.getRawIndex(g),y=h[n[0]][T];(y>=c&&y<=p||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var A=!0,T=t.getRawIndex(g),C=0;C<a;C++){var D=n[C],y=h[D][T];(y<e[D][0]||y>e[D][1])&&(A=!1)}A&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,i){for(var n=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=St();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[t[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var d=t[f],m=v[f],g=u[d],y=n[d];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,p,h=new(qo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0,_=d;_<m;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=m-d;var b=v,T=Math.min(v+l,o),A=v-1,C=a[u];f=-1,p=b;for(var D=-1,E=0,_=b;_<T;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){E++,D<0&&(D=x);continue}c=Math.abs((A-g)*(S-C)-(A-_)*(y-C)),c>f&&(f=c,p=x)}E>0&&E<T-b&&(h[s++]=Math.min(D,p),p=Math.max(D,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(e,t){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/t),o=n[e],s=this.count(),l=new(qo(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;f+a>s&&(d=s-f);for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>v&&(v=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(e,t,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=a._rawExtent[e]=St(),p=new(qo(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:t(a);break;case 1:t(n[e[0]][s],a);break;case 2:t(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var i=this._chunks[e],n=St();if(!i)return n;var a=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=gc(t),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var d=this.getRawIndex(v),m=i[d];(!t||yc(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][t]);return i},r.prototype.clone=function(e,t){var i=new r,n=this._chunks,a=e&&Kt(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?EP(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ee(this._extent),e._rawExtent=ee(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var n=0;n<i;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,i,n,a){return Sr(t[a],this._dimensions[a])}Zd={arrayRows:e,objectRows:function(t,i,n,a){return Sr(t[i],this._dimensions[a])},keyedColumns:e,original:function(t,i,n,a){var o=t&&(t.value==null?t:t.value);return Sr(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,i,n,a){return t[a]}}})(),r})(),xl=MP;var xc=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,n,a;if(_c(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Ye(s)?rr:ot,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=F(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=F(c.sourceHeader,p.sourceHeader),d=F(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||d;n=m?[yl(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(t);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[yl(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&Db(a)}var o,s=[],l=[];return w(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&Db(c),s.push(f),l.push(u._getVersionSign())}),i?o=Tb(i,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[hb(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];_c(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new xl,s.initData(new vc(t,e.length),e)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(_c(e)){var t=oc(e);return t?[t.getSourceManager()]:[]}else return z(XS(e),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,n;if(_c(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:n}},r})();function qd(r){var e=r.option.transform;e&&Un(r.option.transform)}function _c(r){return r.mainType==="series"}function Db(r){throw new Error(r)}var IP="line-height:1";function Eb(r){var e=r.lineHeight;return e==null?IP:"line-height:"+_t(e+"")+"px"}function Mb(r,e){var t=r.color||H.color.tertiary,i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||H.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+_t(i+"")+"px;color:"+_t(t)+";font-weight:"+_t(n+""),valueStyle:"font-size:"+_t(o+"")+"px;color:"+_t(a)+";font-weight:"+_t(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var LP=[0,10,20,30],OP=["",`
9
+ `,`
10
+
11
+ `,`
12
+
13
+
14
+ `];function oi(r,e){return e.type=r,e}function Kd(r){return r.type==="section"}function Ib(r){return Kd(r)?PP:RP}function Lb(r){if(Kd(r)){var e=0,t=r.blocks.length,i=t>1||t>0&&!r.noHeader;return w(r.blocks,function(n){var a=Lb(n);a>=e&&(e=a+ +(i&&(!a||Kd(n)&&!n.noHeader)))}),e}return 0}function PP(r,e,t,i){var n=e.noHeader,a=NP(Lb(e)),o=[],s=e.blocks||[];et(!s||N(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ce(u,l)){var f=new mc(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,m){var g=e.valueFormatter,y=Ib(d)(g?P(P({},r),{valueFormatter:g}):r,d,m>0?a.html:0,i);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(a.richText):jd(i,o.join(""),n?t:a.html);if(n)return c;var p=Qf(e.header,"ordinal",r.useUTC),h=Mb(i,r.renderMode).nameStyle,v=Eb(i);return r.renderMode==="richText"?Ob(r,p,h)+a.richText+c:jd(i,'<div style="'+h+";"+v+';">'+_t(p)+"</div>"+c,t)}function RP(r,e,t,i){var n=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(x){return x=N(x)?x:[x],z(x,function(S,b){return Qf(S,N(h)?h[b]:h,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||H.color.secondary,n),p=a?"":Qf(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),d=!s||!a,m=!s&&a,g=Mb(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":Ob(r,p,y))+(o?"":zP(r,v,d,m,_)):jd(i,(s?"":c)+(a?"":kP(p,!s,y))+(o?"":BP(v,d,m,_)),t)}}function Qd(r,e,t,i,n,a){if(r){var o=Ib(r),s={useUTC:n,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function NP(r){return{html:LP[r],richText:OP[r]}}function jd(r,e,t){var i='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",a=Eb(r);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function kP(r,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+_t(r)+"</span>"}function BP(r,e,t,i){var n=t?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return r=N(r)?r:[r],'<span style="'+a+";"+i+'">'+z(r,function(o){return _t(o)}).join("&nbsp;&nbsp;")+"</span>"}function Ob(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function zP(r,e,t,i,n){var a=[n],o=i?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(e)?e.join(" "):e,a)}function Pb(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return Pr(i)}function Sc(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var bc=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Fs()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var n=i==="richText"?this._generateStyleName():null,a=NS({color:t,type:e,renderMode:i,markerId:n});return U(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};N(t)?w(t,function(a){return P(i,a)}):P(i,t);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},r})();function Rb(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=N(s),u=Pb(e,t),f,c,p,h;if(o>1||l&&!o){var v=UP(s,e,t,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=Li(n,t,a[0]),c=d.type}else h=f=l?s[0]:s;var m=xo(e),g=m&&e.name||"",y=n.getName(t),_=i?g:y;return oi("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[oi("nameValue",{markerType:"item",markerColor:u,name:_,noName:!gt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(t)})].concat(p||[])})}function UP(r,e,t,i,n){var a=e.getData(),o=Kt(r,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(c){f(Li(a,t,c),c)}):w(r,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(oi("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var xn=Q();function Tc(r,e){return r.getName(e)||r.getId(e)}var VP="__universalTransitionEnabled",wc=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,n){this.seriesIndex=this.componentIndex,this.dataTask=_n({count:HP,reset:GP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var a=xn(this).sourceManager=new xc(this);a.prepareSource();var o=this.getInitialData(t,n);kb(o,this),this.dataTask.context.data=o,xn(this).dataBeforeProcessed=o,Nb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=gn(this),a=n?_r(t):{},o=this.subType;be.hasClass(o)&&(o+="Series"),fe(t,i.getTheme().get(this.subType)),fe(t,this.getDefaultOption()),ra(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&or(t,a,n)},e.prototype.mergeOption=function(t,i){t=fe(this.option,t,!0),this.fillDataTextStyle(t.data);var n=gn(this);n&&or(this.option,t,n);var a=xn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,i);kb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xn(this).dataBeforeProcessed=o,Nb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ye(t))for(var i=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ra(t[n],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=$d(this);if(i){var n=i.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return xn(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=$d(this);if(i){var n=i.context;n.outputData=t,i!==this.dataTask&&(n.data=t)}xn(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return V(t)},e.prototype.getSourceManager=function(){return xn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return xn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore(),m=0,g=d.count();m<g;m++){var y=d.get(v,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(t,i,n){return Rb({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(ne.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,n){var a=this.ecModel,o=hl.prototype.getColorFromPalette.call(this,t,i,n);return o||(o=a.getColorFromPalette(t,i,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Tc(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var n=[],a=0;a<t.length;a++)n[0]=t[a],this.isSelected(t[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=he(t),n=[],a=0;a<i.length;a++){var o=t[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Tc(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[VP])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){W(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=Tc(t,c);u[p]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=Tc(t,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=t.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(n){var a=t.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return be.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(be);mt(wc,_l);mt(wc,hl);rf(wc,be);function Nb(r){var e=r.name;xo(r)||(r.name=FP(r)||e)}function FP(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return w(t,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function HP(r){return r.model.getRawData().count()}function GP(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),YP}function YP(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function kb(r,e){w(Py(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ce(WP,e))})}function WP(r,e){var t=$d(r);return t&&t.setOutputEnd((e||this).count()),e}function $d(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var Pt=wc;var Jd=(function(){function r(){this.group=new ye,this.uid=vn("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){},r.prototype.updateLayout=function(e,t,i,n){},r.prototype.updateVisual=function(e,t,i,n){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Co(Jd);nn(Jd);var He=Jd;function La(){var r=Q();return function(e){var t=r(e),i=e.pipelineContext,n=!!t.large,a=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Ub=Q(),ZP=La(),em=(function(){function r(){this.group=new ye,this.uid=vn("viewChart"),this.renderTask=_n({plan:XP,reset:qP}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.highlight=function(e,t,i,n){var a=e.getData(n&&n.dataType);a&&zb(a,n,"emphasis")},r.prototype.downplay=function(e,t,i,n){var a=e.getData(n&&n.dataType);a&&zb(a,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.updateVisual=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.eachRendered=function(e){Di(this.group,e)},r.markUpdateMethod=function(e,t){Ub(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function Bb(r,e,t){r&&tl(r)&&(e==="emphasis"?Ti:wi)(r,t)}function zb(r,e,t){var i=vr(r,e),n=e&&e.highlightKey!=null?Tx(e.highlightKey):null;i!=null?w(Pe(i),function(a){Bb(r.getItemGraphicEl(a),t,n)}):r.eachItemGraphicEl(function(a){Bb(a,t,n)})}Co(em,["dispose"]);nn(em);function XP(r){return ZP(r.model)}function qP(r){var e=r.model,t=r.ecModel,i=r.api,n=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=n&&Ub(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,n),KP[l]}var KP={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},bt=em;var Cc="\0__throttleOriginMethod",Vb="\0__throttleRate",Fb="\0__throttleType";function Sl(r,e,t){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||t;f=null,s=i-(m?n:a)-d,clearTimeout(o),m?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function Sn(r,e,t,i){var n=r[e];if(n){var a=n[Cc]||n,o=n[Fb],s=n[Vb];if(s!==t||o!==i){if(t==null||!i)return r[e]=a;n=r[e]=Sl(a,t,i==="debounce"),n[Cc]=a,n[Fb]=i,n[Vb]=t}return n}}function Oa(r,e){var t=r[e];t&&t[Cc]&&(t.clear&&t.clear(),r[e]=t[Cc])}var Hb=Q(),Gb={itemStyle:Kr(vd,!0),lineStyle:Kr(hd,!0)},jP={lineStyle:"stroke",itemStyle:"fill"};function Yb(r,e){var t=r.visualStyleMapper||Gb[e];return t||(console.warn("Unknown style type '"+e+"'."),Gb.itemStyle)}function Wb(r,e){var t=r.visualDrawType||jP[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var Zb={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=Yb(r,i),o=a(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Wb(r,i),u=o[l],f=Z(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=p,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?p:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),m=P({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},bl=new Oe,Xb={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=Yb(r,i),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){bl.option=l[i];var u=n(bl),f=o.ensureUniqueItemVisual(s,"style");P(f,u),bl.option.decal&&(o.setItemVisual(s,"decal",bl.option.decal),bl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},qb={performRawSeries:!0,overallReset:function(r){var e=V();r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.type+"-"+t.getColorBy();Hb(t).scope=e.get(i)||e.set(i,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.getRawData(),n={},a=t.getData(),o=Hb(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Wb(t,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();p[l]=t.getColorFromPalette(h,o,v)}})}})}};var Ac=Math.PI;function rm(r,e){e=e||{},ie(e,{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 t=new ye,i=new xe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var n=new De({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new xe({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new sl({shape:{startAngle:-Ac/2,endAngle:-Ac/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ac*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ac*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var QP=(function(){function r(e,t,i,n){this._stageTaskMap=V(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!t&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(t,i):tf(e,t,i);e.pipelineContext=i.context=n},r.prototype.restorePipelines=function(e,t){var i=this,n=i._pipelineMap=V();t.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;w(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";et(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,t,i),n.overallReset&&this._createOverallStageTask(n,a,t,i)},this)},r.prototype.prepareView=function(e,t,i,n){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,n){n=n||{};var a=!1,o=this;w(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);v.each(function(m){m.perform(d)}),p.perform(d)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,n){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=V(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||_n({plan:rR,reset:iR,count:aR}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},r.prototype._createOverallStageTask=function(e,t,i,n){var a=this,o=t.overallTask=t.overallTask||_n({reset:$P});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=V(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";et(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):w(i.getSeries(),v);function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(p=!0,_n({reset:JP,onDirty:tR})));g.context={model:d,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(d,g)}p&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return Z(e)&&(e={overallReset:e,seriesType:oR(e)}),e.uid=vn("stageHandler"),t&&(e.visualType=t),e},r})();function $P(r){r.overallReset(r.ecModel,r.api,r.payload)}function JP(r){return r.dirtyOnOverallProgress&&eR}function eR(){this.agent.dirty(),this.getDownstream().dirty()}function tR(){this.agent&&this.agent.dirty()}function rR(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function iR(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Pe(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?z(e,function(t,i){return Kb(i)}):nR}var nR=Kb(0);function Kb(r){return function(e,t){var i=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function aR(r){return r.data.count()}function oR(r){Dc=null;try{r(Tl,jb)}catch{}return Dc}var Tl={},jb={},Dc;Qb(Tl,uc);Qb(jb,pf);Tl.eachSeriesByType=Tl.eachRawSeriesByType=function(r){Dc=r};Tl.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Dc=r.subType)};function Qb(r,e){for(var t in e.prototype)r[t]=Ne}var im=QP;var X=H.darkColor,$b=X.background,wl=function(){return{axisLine:{lineStyle:{color:X.axisLine}},splitLine:{lineStyle:{color:X.axisSplitLine}},splitArea:{areaStyle:{color:[X.backgroundTint,X.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:X.axisMinorSplitLine}},axisLabel:{color:X.axisLabel},axisName:{}}},Jb={label:{color:X.secondary},itemStyle:{borderColor:X.borderTint},dividerLineStyle:{color:X.border}},eT={darkMode:!0,color:X.theme,backgroundColor:$b,axisPointer:{lineStyle:{color:X.border},crossStyle:{color:X.borderShade},label:{color:X.tertiary}},legend:{textStyle:{color:X.secondary},pageTextStyle:{color:X.tertiary}},textStyle:{color:X.secondary},title:{textStyle:{color:X.primary},subtextStyle:{color:X.quaternary}},toolbox:{iconStyle:{borderColor:X.accent50},feature:{dataView:{backgroundColor:$b,textColor:X.primary,textareaColor:X.background,textareaBorderColor:X.border,buttonColor:X.accent50,buttonTextColor:X.neutral00}}},tooltip:{backgroundColor:X.neutral20,defaultBorderColor:X.border,textStyle:{color:X.tertiary}},dataZoom:{borderColor:X.accent10,textStyle:{color:X.tertiary},brushStyle:{color:X.backgroundTint},handleStyle:{color:X.neutral00,borderColor:X.accent20},moveHandleStyle:{color:X.accent40},emphasis:{handleStyle:{borderColor:X.accent50}},dataBackground:{lineStyle:{color:X.accent30},areaStyle:{color:X.accent20}},selectedDataBackground:{lineStyle:{color:X.accent50},areaStyle:{color:X.accent30}}},visualMap:{textStyle:{color:X.secondary},handleStyle:{borderColor:X.neutral30}},timeline:{lineStyle:{color:X.accent10},label:{color:X.tertiary},controlStyle:{color:X.accent30,borderColor:X.accent30}},calendar:{itemStyle:{color:X.neutral00,borderColor:X.neutral20},dayLabel:{color:X.tertiary},monthLabel:{color:X.secondary},yearLabel:{color:X.secondary}},matrix:{x:Jb,y:Jb,backgroundColor:{borderColor:X.axisLine},body:{itemStyle:{borderColor:X.borderTint}}},timeAxis:wl(),logAxis:wl(),valueAxis:wl(),categoryAxis:wl(),line:{symbol:"circle"},graph:{color:X.theme},gauge:{title:{color:X.secondary},axisLine:{lineStyle:{color:[[1,X.neutral05]]}},axisLabel:{color:X.axisLabel},detail:{color:X.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:X.background}},radar:(function(){var r=wl();return r.axisName={color:X.axisLabel},r.axisLine.lineStyle.color=X.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:X.neutral20,textStyle:{color:X.secondary}},emphasis:{itemStyle:{color:X.neutral30}}}},sunburst:{itemStyle:{borderColor:X.background}},map:{itemStyle:{borderColor:X.border,areaColor:X.neutral10},label:{color:X.tertiary},emphasis:{label:{color:X.primary},itemStyle:{areaColor:X.highlight}},select:{label:{color:X.primary},itemStyle:{areaColor:X.highlight}}},geo:{itemStyle:{borderColor:X.border,areaColor:X.neutral10},emphasis:{label:{color:X.primary},itemStyle:{areaColor:X.highlight}},select:{label:{color:X.primary},itemStyle:{color:X.highlight}}}};eT.categoryAxis.splitLine.show=!1;var tT=eT;var rT=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},i={},n={};if(U(e)){var a=Ut(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!=="data"&&(t.mainType=v,t[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:n}},r.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})();var nm=["symbol","symbolSize","symbolRotate","symbolOffset"],iT=nm.concat(["symbolKeepAspect"]),nT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<nm.length;o++){var s=nm[o],l=r.get(s);Z(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,t.setVisual(P({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),e.isSeriesFiltered(r))return;var u=he(n);function f(c,p){for(var h=r.getRawValue(p),v=r.getDataParams(p),d=0;d<u.length;d++){var m=u[d];c.setItemVisual(p,m,n[m](h,v))}}return{dataEach:a?f:null}}},aT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<iT.length;s++){var l=iT[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function oT(r,e,t){switch(t){case"color":var i=r.getItemVisual(e,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:}}function bn(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:}}function sT(r,e){function t(i,n){var a=[];return i.eachComponent({mainType:"series",subType:r,query:n},function(o){a.push(o.seriesIndex)}),a}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=P({},n),o.dispatchAction(P(n,{type:i[1],seriesIndex:t(a,n)}))})})}function Ko(r,e,t,i,n){var a=r+e;t.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=vr(c,n.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:N(p)?c.getName(p[0]):c.getName(p),selected:U(l)?l:P({},l)})}})}function lT(r,e,t){r.on("selectchanged",function(i){var n=t.getModel();i.isFromClick?(Ko("map","selectchanged",e,n,i),Ko("pie","selectchanged",e,n,i)):i.fromAction==="select"?(Ko("map","selected",e,n,i),Ko("pie","selected",e,n,i)):i.fromAction==="unselect"&&(Ko("map","unselected",e,n,i),Ko("pie","unselected",e,n,i))})}function Pa(r,e,t){for(var i;r&&!(e(r)&&(i=r,t));)r=r.__hostTarget||r.parent;return i}var sR=new nt,sr=sR;var uT={};function fT(r,e){uT[r]=e}function cT(r){return uT[r]}var lR={};function pT(r,e){lR[r]=e}var Ec=Q();function hT(r){Ec(r).prepare={}}function vT(r){Ec(r).fullUpdate={}}function Mc(r){return Ec(r).prepare}function Ra(r){return Ec(r).fullUpdate}var uR=Math.round(Math.random()*9),fR=typeof Object.defineProperty=="function",cR=(function(){function r(){this._id="__ec_inner_"+uR++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var i=this._guard(e);return fR?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),dT=cR;var pR=oe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i+a),r.lineTo(t-n,i+a),r.closePath()}}),hR=oe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i),r.lineTo(t,i+a),r.lineTo(t-n,i),r.closePath()}}),vR=oe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-c*h,l+s+p*h,t,i-v,t,i),r.bezierCurveTo(t,i-v,t-f+c*h,l+s+p*h,t-f,l+s),r.closePath()}}),dR=oe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+t),r.lineTo(n,a+t/4*3),r.lineTo(n-o,a+t),r.lineTo(n,a),r.closePath()}}),mR={line:nr,rect:xe,roundRect:xe,square:xe,circle:il,diamond:hR,pin:vR,arrow:dR,triangle:pR},gR={line:function(r,e,t,i,n){n.x1=r,n.y1=e+i/2,n.x2=r+t,n.y2=e+i/2},rect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i},roundRect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i,n.r=Math.min(t,i)/4},square:function(r,e,t,i,n){var a=Math.min(t,i);n.x=r,n.y=e,n.width=a,n.height=a},circle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.r=Math.min(t,i)/2},diamond:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i},pin:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},arrow:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},triangle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i}},Cl={};w(mR,function(r,e){Cl[e]=new r});var yR=oe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var i=ea(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(r,e,t){var i=e.symbolType;if(i!=="none"){var n=Cl[i];n||(i="rect",n=Cl[i]),gR[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function _R(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||H.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function vt(r,e,t,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=sd(r.slice(8),new re(e,t,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=Lf(r.slice(7),{},new re(e,t,i,n),o?"center":"cover"):l=new yR({shape:{symbolType:r,x:e,y:t,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=_R,a&&l.setColor(a),l}function Al(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Na(r,e){if(r!=null)return N(r)||(r=[r,r]),[_e(r[0],e[0])||0,_e(F(r[1],r[0]),e[1])||0]}function ka(r){return isFinite(r)}function SR(r,e,t){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,n=n*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),i=ka(i)?i:0,n=ka(n)?n:1,a=ka(a)?a:0,o=ka(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function bR(r,e,t){var i=t.width,n=t.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+t.x,s=s*n+t.y,l=l*a),o=ka(o)?o:.5,s=ka(s)?s:.5,l=l>=0&&ka(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Dl(r,e,t){for(var i=e.type==="radial"?bR(r,e,t):SR(r,e,t),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function mT(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Ic(r){return parseInt(r,10)}function El(r,e,t){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Ic(s[i])||Ic(r.style[i]))-(Ic(s[a])||0)-(Ic(s[o])||0)||0}function TR(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:se(r)?[r]:N(r)?r:null}function am(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&TR(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=z(t,function(a){return a/n}),i/=n)}return[t,i]}var wR=new It(!0);function Lc(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function gT(r){return typeof r=="string"&&r!=="none"}function Oc(r){var e=r.fill;return e!=null&&e!=="none"}function yT(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function _T(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Pc(r,e,t){var i=hv(e.image,e.__image,t);if(Ao(i)){var n=r.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Ry),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function CR(r,e,t,i,n){var a,o=Lc(t),s=Oc(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||wR,p=e.__dirty;if(!i){var h=t.fill,v=t.stroke,d=s&&!!h.colorStops,m=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,b=void 0,T=void 0;(d||m)&&(T=e.getBoundingRect()),d&&(_=p?Dl(r,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?Dl(r,v,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=p||!e.__canvasFillPattern?Pc(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=p||!e.__canvasStrokePattern?Pc(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?r.fillStyle=_:g&&(S?r.fillStyle=S:s=!1),m?r.strokeStyle=x:y&&(b?r.strokeStyle=b:o=!1)}var A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold);var C,D;r.setLineDash&&t.lineDash&&(a=am(e),C=a[0],D=a[1]);var E=!0;(f||p&qi)&&(c.setDPR(r.dpr),u?c.setContext(null):(c.setContext(r),E=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),E&&c.rebuildPath(r,u?l:1),C&&(r.setLineDash(C),r.lineDashOffset=D),i?(n.batchFill=s,n.batchStroke=o):t.strokeFirst?(o&&_T(r,t),s&&yT(r,t)):(s&&yT(r,t),o&&_T(r,t)),C&&r.setLineDash([])}function AR(r,e,t){var i=e.__image=hv(t.image,e.__image,e,e.onload);if(!(!i||!Ao(i))){var n=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(i,u,f,t.sWidth,t.sHeight,n,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,c=o-u,p=s-f;r.drawImage(i,u,f,c,p,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function DR(r,e,t){var i,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||fr,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=am(e),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(Lc(t)&&r.strokeText(n,t.x,t.y),Oc(t)&&r.fillText(n,t.x,t.y)):(Oc(t)&&r.fillText(n,t.x,t.y),Lc(t)&&r.strokeText(n,t.x,t.y)),a&&r.setLineDash([])}}var xT=["shadowBlur","shadowOffsetX","shadowOffsetY"],ST=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function DT(r,e,t,i,n){var a=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){Rt(r,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?jr.opacity:o}(i||e.blend!==t.blend)&&(a||(Rt(r,n),a=!0),r.globalCompositeOperation=e.blend||jr.blend);for(var s=0;s<xT.length;s++){var l=xT[s];(i||e[l]!==t[l])&&(a||(Rt(r,n),a=!0),r[l]=r.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(a||(Rt(r,n),a=!0),r.shadowColor=e.shadowColor||jr.shadowColor),a}function bT(r,e,t,i,n){var a=e.style,o=i?null:t&&t.style||{};if(a===o)return!1;var s=DT(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Rt(r,n),s=!0),gT(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Rt(r,n),s=!0),gT(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Rt(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(Rt(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<ST.length;f++){var c=ST[f],p=c[0];(i||a[p]!==o[p])&&(s||(Rt(r,n),s=!0),r[p]=a[p]||c[1])}return s}function ER(r,e,t,i,n){return DT(r,e.style,t&&t.style,i,n)}function ET(r,e){var t=e.transform,i=r.dpr||1;t?r.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):r.setTransform(i,0,0,i,0,0)}function MR(r,e,t){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),ET(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=i}function IR(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var TT=1,wT=2,CT=3,AT=4;function LR(r){var e=Oc(r),t=Lc(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Rt(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function Rc(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Tn(r,e,t),Ba(r,t)}function Tn(r,e,t){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~Qe,e.__isRendered=!1;return}var n=e.__clipPaths,a=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||mT(n,a))&&(a&&(Rt(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),n&&n.length&&(Rt(r,t),r.save(),MR(n,r,t),s=!0,t.prevElClipPaths=n)),t.allClipped){e.__dirty&=~Qe,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof oe&&e.autoBatch&&LR(o);s||IR(i,u.transform)?(Rt(r,t),ET(r,e)):f||Rt(r,t),e instanceof oe?(t.lastDrawType!==TT&&(l=!0,t.lastDrawType=TT),bT(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),CR(r,e,o,f,t)):e instanceof qs?(t.lastDrawType!==CT&&(l=!0,t.lastDrawType=CT),bT(r,e,u,l,t),DR(r,e,o)):e instanceof yr?(t.lastDrawType!==wT&&(l=!0,t.lastDrawType=wT),ER(r,e,u,l,t),AR(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==AT&&(l=!0,t.lastDrawType=AT),OR(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&Rt(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ba(r,e){Rt(r,e),e.prevElClipPaths&&r.restore()}function OR(r,e,t){var i=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Tn(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ba(r,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Tn(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ba(r,a),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var om=new dT,MT=new Wr(100),IT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ml(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";r.dirty&&om.delete(r);var a=om.get(r);if(a)return a;var o=ie(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,om.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,p=0;p<IT.length;++p){var h=o[IT[p]];if(h!=null&&!N(h)&&!U(h)&&!se(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var d=MT.get(v);d&&(n?u.svgElement=d:u.image=d)}var m=OT(o.dashArrayX),g=PR(o.dashArrayY),y=LT(o.symbol),_=RR(m),x=PT(g),S=!n&&je.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=C(),A;S&&(S.width=T.width*t,S.height=T.height*t,A=S.getContext("2d")),D(),c&&MT.put(v,S||b),u.image=S,u.svgElement=b,u.svgWidth=T.width,u.svgHeight=T.height;function C(){for(var E=1,I=0,M=_.length;I<M;++I)E=nv(E,_[I]);for(var O=1,I=0,M=y.length;I<M;++I)O=nv(O,y[I].length);E*=O;var R=x*_.length*y.length;if(0)var k;return{width:Math.max(1,Math.min(E,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){A&&(A.clearRect(0,0,S.width,S.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,S.width,S.height)));for(var E=0,I=0;I<g.length;++I)E+=g[I];if(E<=0)return;for(var M=-x,O=0,R=0,k=0;M<T.height;){if(O%2===0){for(var G=R/2%y.length,B=0,Y=0,q=0;B<T.width*2;){for(var K=0,I=0;I<m[k].length;++I)K+=m[k][I];if(K<=0)break;if(Y%2===0){var J=(1-o.symbolSize)*.5,te=B+m[k][Y]*J,j=M+g[O]*J,ge=m[k][Y]*o.symbolSize,Te=g[O]*o.symbolSize,Je=q/2%y[G].length;ut(te,j,ge,Te,y[G][Je])}B+=m[k][Y],++q,++Y,Y===m[k].length&&(Y=0)}++k,k===m.length&&(k=0)}M+=g[O],++R,++O,O===g.length&&(O=0)}function ut(Ee,Ve,pe,we,Vr){var ft=n?1:t,Fi=vt(Vr,Ee*ft,Ve*ft,pe*ft,we*ft,o.color,o.symbolKeepAspect);if(n){var fi=i.painter.renderOneToVNode(Fi);fi&&b.children.push(fi)}else Rc(A,Fi)}}}}function LT(r){if(!r||r.length===0)return[["rect"]];if(U(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!U(r[t])){e=!1;break}if(e)return LT([r]);for(var i=[],t=0;t<r.length;++t)U(r[t])?i.push([r[t]]):i.push(r[t]);return i}function OT(r){if(!r||r.length===0)return[[0,0]];if(se(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,i=0;i<r.length;++i)if(!se(r[i])){t=!1;break}if(t)return OT([r]);for(var n=[],i=0;i<r.length;++i)if(se(r[i])){var e=Math.ceil(r[i]);n.push([e,e])}else{var e=z(r[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function PR(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(se(r)){var e=Math.ceil(r);return[e,e]}var t=z(r,function(i){return Math.ceil(i)});return r.length%2?t.concat(t):t}function RR(r){return z(r,function(e){return PT(e)})}function PT(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var RT=wo(NR);function NR(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Ml(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Ml(n,e)}}})}var kR=1,BR=800,zR=900,UR=920,VR=1e3,FR=2e3,NT=5e3,WT=1e3,HR=1100,ym=2e3,ZT=3e3,GR=4e3,Fc=4500,YR=4600,WR=5e3,ZR=6e3,XT=7e3,qT={PROCESSOR:{SERIES_FILTER:BR,AXIS_STATISTICS:UR,FILTER:VR,STATISTIC:NT,STATISTICS:NT},VISUAL:{LAYOUT:WT,PROGRESSIVE_LAYOUT:HR,GLOBAL:ym,CHART:ZT,POST_CHART_LAYOUT:YR,COMPONENT:GR,BRUSH:WR,CHART_ITEM:Fc,ARIA:ZR,DECAL:XT}},it="__flagInMainProcess",Nc="__mainProcessVersion",dt="__pendingUpdate",sm="__needsUpdateStatus",kT=/^[a-zA-Z0-9_]+$/,lm="__connectUpdateStatus",BT=0,XR=1,qR=2;function KT(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return QT(this,r,e)}}function jT(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return QT(this,r,e)}}function QT(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),nt.prototype[e].apply(r,t)}var $T=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(nt),JT=$T.prototype;JT.on=jT("on");JT.off=jT("off");var za,um,kc,Oi,Bc,fm,cm,jo,Qo,zT,UT,pm,VT,zc,FT,e1,br,HT,$o,t1=(function(r){L(e,r);function e(t,i,n){var a=r.call(this,new rT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=t;var o="canvas",s="auto",l=!1;if(a[Nc]=1,0)var u;n.ssr&&K_(function(h){var v=le(h),d=v.dataIndex;if(d!=null){var m=V();return m.set("series_index",v.seriesIndex),m.set("data_index",d),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var f=a._zr=$h(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:F(n.useDirtyRect,l),useCoarsePointer:F(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Sl($(f.flush,f),17),a._updateTheme(i),a._locale=CS(n.locale||Bf),a._coordSysMgr=new cl;var c=a._api=FT(a);function p(h,v){return h.__prio-v.__prio}return Zn(Vc,p),Zn(dm,p),a._scheduler=new im(a,c,dm,Vc),a._messageCenter=new $T,a._initEvents(),a.resize=$(a.resize,a),f.animation.on("frame",a._onframe,a),zT(f,a),UT(f,a),Un(a),a}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,i=this._model,n=this._api;if(HT(this),this[dt]){var a=this[dt].silent;this[it]=!0,$o(this);try{za(this),Oi.update.call(this,null,this[dt].updateParams)}catch(l){throw this[it]=!1,this[dt]=null,l}this._zr.flush(),this[it]=!1,this[dt]=null,jo.call(this,a),Qo.call(this,a)}else if(t.unfinished){var o=kR;do{t.unfinished=!1;var s=je.getTime();t.performSeriesTasks(i),t.performDataProcessorTasks(i),fm(this,i),t.performVisualTasks(i),zc(this,this._model,n,"remain",{}),o-=je.getTime()-s}while(o>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,n){if(!this[it]){if(this._disposed){this.id;return}var a,o,s;if(W(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[it]=!0,$o(this),!this._model||i){var l=new ib(this._api),u=this._theme,f=this._model=new uc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},mm);var c={seriesTransition:s,optionChanged:!0};if(n)this[dt]={silent:a,updateParams:c},this[it]=!1,this.getZr().wakeUp();else{try{za(this),Oi.update.call(this,null,c)}catch(p){throw this[dt]=null,this[it]=!1,p}this._ssr||this._zr.flush(),this[dt]=null,this[it]=!1,jo.call(this,a),Qo.call(this,a)}}},e.prototype.setTheme=function(t,i){if(!this[it]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[dt]&&(a==null&&(a=this[dt].silent),o=this[dt].updateParams,this[dt]=null),this[it]=!0,$o(this);try{this._updateTheme(t),n.setTheme(this._theme),za(this),Oi.update.call(this,{type:"setTheme"},o)}catch(s){throw this[it]=!1,s}this[it]=!1,jo.call(this,a),Qo.call(this,a)}}},e.prototype._updateTheme=function(t){U(t)&&(t=r1[t]),t&&(t=ee(t),t&&fc(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ne.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,i=t.storage.getDisplayList();return w(i,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,n=this._model,a=[],o=this;w(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return w(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(GT[n]){var l=s,u=s,f=-s,c=-s,p=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();w(Il,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ee(t)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),c=o(b.bottom,c),p.push({dom:S,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,d=c-u,m=je.createCanvas(),g=$h(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return w(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new xe({shape:{x:0,y:0,width:v,height:d},style:{fill:t.connectedBackgroundColor}})),w(p,function(_){var x=new yr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i,n){return Bc(this,"convertToPixel",t,i,n)},e.prototype.convertToLayout=function(t,i,n){return Bc(this,"convertToLayout",t,i,n)},e.prototype.convertFromPixel=function(t,i,n){return Bc(this,"convertFromPixel",t,i,n)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var n=this._model,a,o=Ju(n,t);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(t,i){var n=this._model,a=Ju(n,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?oT(s,l,i):bn(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;w(KR,function(n){var a=function(o){var s=t.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Pa(l,function(d){var m=le(d);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=P({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},t.trigger(n,u)}};a.zrEventfulCallAtLast=!0,t._zr.on(n,a,t)});var i=this._messageCenter;w(vm,function(n,a){i.on(a,function(o){t.trigger(a,o)})}),lT(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&sv(this.getDom(),xm,"");var i=this,n=i._api,a=i._model;w(i._componentsViews,function(o){o.dispose(a,n)}),w(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Il[i.id]},e.prototype.resize=function(t){if(!this[it]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=t&&t.silent;this[dt]&&(a==null&&(a=this[dt].silent),n=!0,this[dt]=null),this[it]=!0,$o(this);try{n&&za(this),Oi.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(o){throw this[it]=!1,o}this[it]=!1,jo.call(this,a),Qo.call(this,a)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(W(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!gm[t]){var n=gm[t](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=P({},t);return i.type=hm[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(W(i)||(i={silent:!!i}),!!Uc[t.type]&&this._model){if(this[it]){this._pendingActions.push(t);return}var n=i.silent;cm.call(this,t,n);var a=i.flush;a?this._zr.flush():a!==!1&&ne.browser.weChat&&this._throttledZrFlush(),jo.call(this,n),Qo.call(this,n)}},e.prototype.updateLabelLayout=function(){sr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){za=function(c){hT(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),um(c,!0),um(c,!1),p.plan()},um=function(c,p){for(var h=c._model,v=c._scheduler,d=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<d.length;_++)d[_].__alive=!1;p?h.eachComponent(function(b,T){b!=="series"&&x(T)}):h.eachSeries(x);function x(b){var T=b.__requireNewView;b.__requireNewView=!1;var A="_ec_"+b.id+"_"+b.type,C=!T&&m[A];if(!C){var D=Ut(b.type),E=p?He.getClass(D.main,D.sub):bt.getClass(D.sub);C=new E,C.init(h,y),m[A]=C,d.push(C),g.add(C.group)}b.__viewId=C.__id=A,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&v.prepareView(C,b,h,y)}for(var _=0;_<d.length;){var S=d[_];S.__alive?_++:(!p&&S.renderTask.dispose(),g.remove(S.group),S.dispose(h,y),d.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},kc=function(c,p,h,v,d){var m=c._model;if(m.setUpdatePayload(h),!v){w([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=l0(h,v,d),y=h.excludeSeriesId,_;y!=null&&(_=V(),w(Pe(y),function(S){var b=tr(S,null);b!=null&&_.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(!b)if(Wv(h))if(S instanceof Pt)h.type===fn&&!h.notBlur&&!S.get(["emphasis","disabled"])&&gx(S,h,c._api);else{var T=yf(S.mainType,S.componentIndex,h.name,c._api),A=T.focusSelf,C=T.dispatchers;h.type===fn&&A&&!h.notBlur&&hf(S.mainType,S.componentIndex,c._api),C&&w(C,function(D){h.type===fn?Ti(D):wi(D)})}else _f(h)&&S instanceof Pt&&(xx(S,h,c._api),Yv(S),br(c))},c),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;b||x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,m,c._api,h)}},Oi={prepareAndUpdate:function(c){za(this),Oi.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){vT(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,v),sr.trigger("coordsys:aftercreate",h,v),g.performDataProcessorTasks(h,c),fm(this,h),m.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&d.setDarkMode(_),pm(this,h,v,c,p),sr.trigger("afterupdate",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g!==ff){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)}});var m=V();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),zc(p,h,v,c,{},m),sr.trigger("afterupdate",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),bt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),pm(this,p,this._api,c,{}),sr.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),bt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var m=p.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),sr.trigger("afterupdate",h,this._api))},updateLayout:function(c){Oi.update.call(this,c)}};function t(c,p,h,v,d){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=Ju(m,h),x=0;x<g.length;x++){var S=g[x];if(S[p]&&(y=S[p](m,_,v,d))!=null)return y}}Bc=t,fm=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},cm=function(c,p){var h=this,v=this.getModel(),d=c.type,m=c.escapeConnect,g=Uc[d],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Ut(y[0]);this[it]=!0,$o(this);var S=[c],b=!1;c.batch&&(b=!0,S=z(c.batch,function(k){return k=ie(P({},k),c),k.batch=null,k}));var T=[],A,C=[],D=g.nonRefinedEventType,E=_f(c),I=Wv(c);if(I&&Gv(this._api),w(S,function(k){var G=g.action(k,v,h._api);if(g.refineEvent?C.push(G):A=G,A=A||P({},k),A.type=D,T.push(A),I){var B=Gs(c),Y=B.queryOptionMap,q=B.mainTypeSpecified,K=q?Y.keys()[0]:"series";kc(h,_,k,K),br(h)}else E?(kc(h,_,k,"series"),br(h)):x&&kc(h,_,k,x.main,x.sub)}),_!=="none"&&!I&&!E&&!x)try{this[dt]?(za(this),Oi.update.call(this,c),this[dt]=null):Oi[_].call(this,c)}catch(k){throw this[it]=!1,k}if(b?A={type:D,escapeConnect:m,batch:T}:A=T[0],this[it]=!1,!p){var M=void 0;if(g.refineEvent){var O=g.refineEvent(C,c,v,this._api).eventContent;et(W(O)),M=ie({type:g.refinedEventType},O),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var R=this._messageCenter;R.trigger(A.type,A),M&&R.trigger(M.type,M)}},jo=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();cm.call(this,h,c)}},Qo=function(c){!c&&this.trigger("updated")},zT=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[dt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},UT=function(c,p){c.on("mouseover",function(h){var v=h.target,d=Pa(v,tl);d&&(yx(d,h,p._api),br(p))}).on("mouseout",function(h){var v=h.target,d=Pa(v,tl);d&&(_x(d,h,p._api),br(p))}).on("click",function(h){var v=h.target,d=Pa(v,function(y){return le(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=le(d);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();v=v||!!b,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),v){var d=p.concat(h),m,g;Zn(d,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),w(d,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}pm=function(c,p,h,v,d){n(p),VT(c,p,h,v,d),w(c._chartsViews,function(m){m.__alive=!1}),zc(c,p,h,v,d),w(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},VT=function(c,p,h,v,d,m){w(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},zc=function(c,p,h,v,d,m){var g=c._scheduler;d=P(d||{},{updatedSeries:p.getSeries()}),sr.trigger("series:beforeupdate",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,v),u(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),Yv(_)}),g.unfinished=y||g.unfinished,sr.trigger("series:layoutlabels",p,h,d),sr.trigger("series:transition",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),sr.trigger("series:afterupdate",p,h,d)},br=function(c){c[sm]=!0,c.getZr().wakeUp()},$o=function(c){c[Nc]=(c[Nc]+1)%1e6},HT=function(c){c[sm]&&(c.getZr().storage.traverse(function(p){da(p)||a(p)}),c[sm]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||p.push(d)}c.selected&&c.states.select&&p.push("select"),c.hoverState===js&&c.states.emphasis?p.push("emphasis"):c.hoverState===Ks&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var v=h.storage,d=0;v.traverse(function(g){g.isGroup||d++});var m=d>F(p.get("hoverLayerThreshold"),ac.hoverLayerThreshold)&&!ne.node&&!ne.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==ma&&(x.hoverLayer=m?od:ad)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=ai(c);p.eachRendered(function(v){return fl(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!da(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),m=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(da(g))return;if(g instanceof oe&&Cx(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}FT=function(c){return new((function(p){L(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Ti(v,d),br(c)},h.prototype.leaveEmphasis=function(v,d){wi(v,d),br(c)},h.prototype.enterBlur=function(v){gf(v),br(c)},h.prototype.leaveBlur=function(v){el(v),br(c)},h.prototype.enterSelect=function(v){Fv(v),br(c)},h.prototype.leaveSelect=function(v){Hv(v),br(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[Nc]},h.prototype.usingTHL=function(){return c._usingTHL},h})(pf))(c)},e1=function(c){function p(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[lm]=v}}w(hm,function(h,v){c._messageCenter.on(v,function(d){if(GT[c.group]&&c[lm]!==BT){if(d&&d.escapeConnect)return;var m=c.makeActionFromEvent(d),g=[];w(Il,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,BT),w(g,function(y){y[lm]!==XR&&y.dispatchAction(m)}),p(g,qR)}})})}})(),e})(nt),_m=t1.prototype;_m.on=KT("on");_m.off=KT("off");_m.one=function(r,e,t){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(r,n)}this.on.call(this,r,n,t)};var KR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Uc={},hm={},vm={},dm=[],mm=[],Vc=[],r1={},gm={},Il={},GT={},jR=+new Date-0,pZ=+new Date-0,xm="_echarts_instance_";function i1(r,e,t){var i=!(t&&t.ssr);if(i){var n=QR(r);if(n)return n}var a=new t1(r,e,t);return a.id="ec_"+jR++,Il[a.id]=a,i&&sv(r,xm,a.id),e1(a),sr.trigger("afterinit",a),a}function QR(r){return Il[u0(r,xm)]}function n1(r,e){r1[r]=e}function Sm(r){ae(mm,r)<0&&mm.push(r)}function bm(r,e){Tm(dm,r,e,FR)}function a1(r){Hc("afterinit",r)}function o1(r){Hc("afterupdate",r)}function Hc(r,e){sr.on(r,e)}function Pi(r,e,t){var i,n,a,o,s;Z(e)&&(t=e,e=""),W(r)?(i=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),a=r.refineEvent):(i=r,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;Uc[i]||(et(kT.test(i)&&kT.test(n)),a&&et(n!==i),Uc[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:t,refineEvent:a},vm[n]=1,a&&s&&(vm[u]=1),hm[u]=i)}function s1(r,e){cl.register(r,e)}function l1(r,e){Tm(Vc,r,e,WT,"layout",!0)}function wn(r,e){Tm(Vc,r,e,ZT,"visual",!0)}var YT=[];function Tm(r,e,t,i,n,a){if((Z(e)||W(e))&&(t=e,e=i),!(ae(YT,t)>=0)){YT.push(t);var o=im.wrapStageHandler(t,n);o.__prio=e,o.__raw=t,r.push(o)}}function wm(r,e){gm[r]=e}function u1(r,e,t){var i=cT("registerMap");i&&i(r,e,t)}var f1=bb;wn(ym,Zb);wn(Fc,Xb);wn(Fc,qb);wn(ym,nT);wn(Fc,aT);wn(XT,RT);Sm(fc);bm(zR,fb);wm("default",rm);Pi({type:fn,event:fn,update:fn},Ne);Pi({type:Qs,event:Qs,update:Qs},Ne);Pi({type:$s,event:df,update:$s,action:Ne,refineEvent:Cm,publishNonRefinedEvent:!0});Pi({type:vf,event:df,update:vf,action:Ne,refineEvent:Cm,publishNonRefinedEvent:!0});Pi({type:Js,event:df,update:Js,action:Ne,refineEvent:Cm,publishNonRefinedEvent:!0});function Cm(r,e,t,i){return{eventContent:{selected:Sx(t),isFromClick:e.isFromClick||!1}}}n1("default",{});n1("dark",tT);function Ll(r){return r==null?0:r.length||1}function c1(r){return r}var JR=(function(){function r(e,t,i,n,a,o){this._old=e,this._new=t,this._oldKeyGetter=i||c1,this._newKeyGetter=n||c1,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},n=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=Ll(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=Ll(u),p=Ll(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var n=e[i],a=t[n],o=Ll(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);t[n]=null}},r.prototype._initIndexMap=function(e,t,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!t){var l=t[s],u=Ll(l);u===0?(t[s]=o,a&&i.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),p1=JR;var eN=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function h1(r,e){var t={},i=t.encode={},n=V(),a=[],o=[],s={};w(r.dimensions,function(p){var h=r.getDimensionInfo(p),v=h.coordDim;if(v){var d=h.coordDimIndex;Am(i,v)[d]=p,h.isExtraCoord||(n.set(v,1),tN(h.type)&&(a[0]=p),Am(s,v)[d]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}cf.each(function(m,g){var y=Am(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=z(l,function(p){return r.getDimensionInfo(p).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,t.userOutput=new eN(s,e),t}function Am(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function v1(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function tN(r){return!(r==="ordinal"||r==="time")}var rN=(function(){function r(e){this.otherDims={},e!=null&&P(this,e)}return r})(),Jo=rN;var iN=Q(),nN={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Dm=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Em(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return F(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=pc(this.source),i=!Mm(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=t?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=t?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=nN[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Gc(r){return r instanceof Dm}function Ol(r){for(var e=V(),t=0;t<(r||[]).length;t++){var i=r[t],n=W(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function Em(r){var e=iN(r);return e.dimNameMap||(e.dimNameMap=Ol(r.dimensionsDefine))}function Mm(r){return r>30}var Pl=W,Cn=z,aN=typeof Int32Array>"u"?Array:Int32Array,oN="e\0\0",d1=-1,sN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],lN=["_approximateExtent"],m1,Yc,Rl,Nl,Im,kl,Lm,uN=(function(){function r(e,t){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 i,n=!1;Gc(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=U(c)?new Jo({name:c}):c instanceof Jo?c:new Jo(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=V();w(o,function(m){d.set(a[m].storeDimIndex,m)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(se(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,i){var n=this,a;if(e instanceof xl&&(a=e),!a){var o=this.dimensions,s=Zo(e)||Ge(e)?new vc(e,o.length):e;a=new xl;var l=Cn(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=h1(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t&&t.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=t[l],o&&Lm(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var n=this._dimInfos[t[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==rr&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===ot;if(l&&!n.pure)for(var u=[],f=e;f<t;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&i0(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=tr(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=tr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Lm(this,f);m1(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Pl(e)?P(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=Rl(this,this._nameDimIdx,t)),i==null&&(i=""),i},r.prototype._getCategory=function(e,t){var i=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},r.prototype.getId=function(e){return Yc(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var i=this,n=this._store;return N(e)?n.getValues(Cn(e,function(a){return i._getStoreDimIndex(a)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,n=t.length;i<n;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],n=i&&i[t];return n==null||isNaN(n)?d1:n},r.prototype.each=function(e,t,i){"use strict";Z(e)&&(i=t,t=e,e=[]);var n=i||this,a=Cn(Nl(e),this._getStoreDimIndex,this);this._store.each(a,n?$(t,n):t)},r.prototype.filterSelf=function(e,t,i){"use strict";Z(e)&&(i=t,t=e,e=[]);var n=i||this,a=Cn(Nl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?$(t,n):t),this},r.prototype.selectRange=function(e){"use strict";var t=this,i={},n=he(e),a=[];return w(n,function(o){var s=t._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(e,t,i){"use strict";Z(e)&&(i=t,t=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},i),n},r.prototype.map=function(e,t,i,n){"use strict";var a=i||n||this,o=Cn(Nl(e),this._getStoreDimIndex,this),s=kl(this);return s._store=this._store.map(o,a?$(t,a):t),s},r.prototype.modify=function(e,t,i,n){var a=this,o=i||n||this,s=Cn(Nl(e),this._getStoreDimIndex,this);this._store.modify(s,o?$(t,o):t)},r.prototype.downSample=function(e,t,i,n){var a=kl(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,i,n),a},r.prototype.minmaxDownSample=function(e,t){var i=kl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),i},r.prototype.lttbDownSample=function(e,t){var i=kl(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new Oe(i,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new p1(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Yc(e,i)},function(i){return Yc(t,i)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Pl(e)?P(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],n=i&&i[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[t];return a==null&&(a=this.getVisual(t),N(a)?a=a.slice():Pl(a)&&(a=P({},a)),n[t]=a),a},r.prototype.setItemVisual=function(e,t,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Pl(t)?P(n,t):n[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Pl(e)?P(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?P(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;nx(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){w(this._graphicEls,function(i,n){i&&e&&e.call(t,i,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Cn(this.dimensions,this._getDimInfo,this),this.hostModel)),Im(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];Z(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return t.apply(this,[n].concat(du(arguments)))})},r.internalField=(function(){m1=function(e){var t=e._invertedIndicesMap;w(t,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=t[n]=new aN(o.categories.length);for(var l=0;l<i.length;l++)i[l]=d1;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Rl=function(e,t,i){return tr(e._getCategory(t,i),null)},Yc=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=Rl(e,e._idDimIdx,t)),i==null&&(i=oN+t),i},Nl=function(e){return N(e)||(e=e!=null?[e]:[]),e},kl=function(e){var t=new r(e._schema?e._schema:Cn(e.dimensions,e._getDimInfo,e),e.hostModel);return Im(t,e),t},Im=function(e,t){w(sN.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,w(lN,function(i){e[i]=ee(t[i])}),e._calculationInfo=P({},t._calculationInfo)},Lm=function(e,t){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[t],l=n[t];if(s==null&&a!=null&&(i[t]=s=Rl(e,a,t)),l==null&&o!=null&&(n[t]=l=Rl(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}}})(),r})(),lr=uN;function Bl(r,e){Zo(r)||(r=Xo(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],n=V(),a=[],o=fN(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Mm(o),l=i===r.dimensionsDefine,u=l?Em(r):Ol(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=V(f),p=new Xd(o),h=0;h<p.length;h++)p[h]=-1;function v(C){var D=p[C];if(D<0){var E=i[C],I=W(E)?E:{name:E},M=new Jo,O=I.name;O!=null&&u.get(O)!=null&&(M.name=M.displayName=O),I.type!=null&&(M.type=I.type),I.displayName!=null&&(M.displayName=I.displayName);var R=a.length;return p[C]=R,M.storeDimIndex=C,a.push(M),M}return a[D]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(C,D){var E=Pe(C).slice();if(E.length===1&&!U(E[0])&&E[0]<0){c.set(D,!1);return}var I=c.set(D,[]);w(E,function(M,O){var R=U(M)?u.get(M):M;R!=null&&R<o&&(I[O]=R,m(v(R),D,O))})});var d=0;w(t,function(C){var D,E,I,M;if(U(C))D=C,M={};else{M=C,D=M.name;var O=M.ordinalMeta;M.ordinalMeta=null,M=P({},M),M.ordinalMeta=O,E=M.dimsDef,I=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var R=c.get(D);if(R!==!1){if(R=Pe(R),!R.length)for(var k=0;k<(E&&E.length||1);k++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&R.push(d++)}w(R,function(G,B){var Y=v(G);if(l&&M.type!=null&&(Y.type=M.type),m(ie(Y,M),D,B),Y.name==null&&E){var q=E[B];!W(q)&&(q={name:q}),Y.name=Y.displayName=q.name,Y.defaultTooltip=q.defaultTooltip}I&&ie(Y.otherDims,I)})}});function m(C,D,E){cf.get(D)!=null?C.otherDims[D]=E:(C.coordDim=D,C.coordDimIndex=E,n.set(D,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(C){C.name==null&&(C.name=C.coordDim)}if(s)w(a,function(C){S(C)}),a.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var T=v(b),A=T.coordDim;A==null&&(T.coordDim=cN(x,n,_),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),S(T),T.type==null&&(sc(r,b)===st.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return To(a,function(C){return C.name},function(C,D){D>0&&(C.name=C.name+(D-1))}),new Dm({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function fN(r,e,t,i){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return w(e,function(a){var o;W(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function cN(r,e,t){if(t||e.hasKey(r)){for(var i=0;e.hasKey(r+i);)i++;r+=i}return e.set(r,!0),r}var pN=(function(){function r(e){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=e}return r})();function g1(r){var e=r.get("coordinateSystem"),t=new pN(e),i=hN[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var hN={cartesian2d:function(r,e,t,i){var n=r.getReferringComponents("xAxis",We).models[0],a=r.getReferringComponents("yAxis",We).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",a),es(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),es(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var n=r.getReferringComponents("singleAxis",We).models[0];e.coordSysDims=["single"],t.set("single",n),es(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var n=r.getReferringComponents("polar",We).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),es(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),es(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();w(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),es(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,i){var n=r.getReferringComponents("matrix",We).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");t.set("x",a),t.set("y",o),i.set("x",a),i.set("y",o)}};function es(r){return r.get("type")==="category"}function y1(r,e,t){t=t||{};var i=t.byIndex,n=t.stackedCoordDimension,a,o,s;vN(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(w(a,function(x,S){U(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),w(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+r.id,p="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;w(a,function(x){x.coordDim===d&&g++});var y={name:c,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function vN(r){return!Gc(r.schema)}function Nr(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Wc(r,e){return Nr(r,e)?r.getCalculationInfo("stackResultDimension"):e}function dN(r,e){var t=r.get("coordinateSystem"),i=cl.get(t),n;return e&&e.coordSysDims&&(n=z(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=v1(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function mN(r,e,t){var i,n;return t&&w(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function gN(r,e,t){t=t||{};var i=e.getSourceManager(),n,a=!1;r?(a=!0,n=Xo(r)):(n=i.getSource(),a=n.sourceFormat===ot);var o=g1(e),s=dN(e,o),l=t.useEncodeDefaulter,u=Z(l)?l:l?ce(WS,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Bl(n,f),p=mN(c.dimensions,t.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=y1(e,{schema:c,store:h}),d=new lr(c,e);d.setCalculationInfo(v);var m=p!=null&&yN(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,m),d}function yN(r){if(r.sourceFormat===ot){var e=_N(r.data||[]);return!N(yi(e))}}function _N(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var An=gN;var _1=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();nn(_1);var Nt=_1;var xN=0,SN=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++xN,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,i=t.data,n=i&&z(i,bN);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!U(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,n.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=V(this.categories))},r})();function bN(r){return W(r)&&r.value!=null?r.value:r+""}var zl=SN;var Zt=0,ts=1,TN={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},S1=he(TN),rs=2,b1=3;function is(r,e,t){var i;r=r||{};var n=Fe();if(n){var a=n.createBreakScaleMapper(e,t);a.hasBreaks()&&(w(S1,function(o){a[o]&&(r[o]=$(a[o],a))}),i=a)}return i==null&&wN(r,t),{brk:i,mapper:r}}function Zc(r,e){w(S1,function(t){r[t]=e[t]})}function Xc(r,e){r.freeze=Ne}function Ri(r){return r.getExtentUnsafe(Zt,rs)}function Ua(r,e){return r.getExtentUnsafe(ts,e)||r.getExtentUnsafe(Zt,e)}function T1(r){var e=Ua(r,b1);return e[1]-e[0]}function ns(r){var e=r.getExtentUnsafe(Zt,b1);return e[1]-e[0]}function wN(r,e){var t=r||{},i=[];return t._extents=i,i[Zt]=e?e.slice():St(),P(t,CN),t}var CN={needTransform:function(){return!1},normalize:function(r){var e=this._extents[ts]||this._extents[Zt];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[ts]||this._extents[Zt];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Ua(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[Zt].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){x1(this._extents,Zt,r,e)},setExtent2:function(r,e,t){var i=this._extents;i[r]||(i[r]=i[Zt].slice()),x1(i,r,e,t)},freeze:function(){}};function x1(r,e,t,i){_i(t,i)&&(r[e][0]=t,r[e][1]=i)}function qc(r){return as(r)||li(r)}function as(r){return r.type==="interval"}function si(r){return r.type==="time"}function li(r){return r.type==="log"}function qe(r){return r.type==="ordinal"}function w1(r){var e=$u(r),t=en(10,e),i=er(r/t);return i?i===2?i=3:i===3?i=5:i*=2:i=1,me(i*t,-e)}function kr(r){return Jt(r)+2}function Ul(r,e){return go(r)/go(e)}function Kc(r,e,t){var i=t&&t.lookup;if(i){for(var n=0;n<i.from.length;n++)if(r===i.from[n])return i.to[n]}return en(e,r)}function jc(r,e,t){var i=r.slice();if(i[0]===i[1]){var n=t&&t.ctnShp;if(i[0]!==0){var a=Ie(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Mr(i[0])||!Mr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function C1(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function Vl(r,e){return r=r||e,er(de(r,1))}function Qc(r,e,t){var i=Ri(r),n=i[0],a=r.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){t({value:u,offInterval:f},c)}}var A1=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i.type="ordinal",i.parse=e.parse,Zc(i,e.decoratedMethods);var n=t.ordinalMeta;n||(n=new zl({})),N(n)&&(n=new zl({categories:z(n,function(o){return W(o)?o.value:o})})),i._ordinalMeta=n;var a=is(null,null,t.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,Xc(i,a.mapper),i}return e.parse=function(t){return t==null?t=NaN:U(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=er(t),t},e.prototype.getTicks=function(){var t=[];return Qc(this,0,function(i){t.push(i)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=ke(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var t=Ri(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(er(this._mapper.scale(t)))},transformIn:function(t,i){return this._mapper.transformIn(this._getTickNumber(t),i)},transformOut:function(t,i){return this.getRawOrdinalNumber(this._mapper.transformOut(t,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,i){return this._mapper.getExtentUnsafe(t,i)},setExtent:function(t,i){return this._mapper.setExtent(t,i)},setExtent2:function(t,i,n){return this._mapper.setExtent2(t,i,n)}},e})(Nt);Nt.registerClass(A1);var D1=A1;function os(r,e,t,i){for(var n=r.getTicks({expandToNicedExtent:!0}),a=[],o=r.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,v=kr(h);f<e-1;){var d=me(u.value+(f+1)*h,v);d>o[0]&&d<o[1]&&c.push(d),f++}var m=Fe();m&&m.pruneTicksByBreak("auto",c,t,function(g){return g},i,o),a.push(c)}}return a}var E1=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i.type="interval",i.parse=e.parse,t=t||{};var n=zf(i,t),a=is(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return ee(this._cfg)},e.prototype.setConfig=function(t){var i=Ri(this);this._cfg=t=ee(t),t.niceExtent==null&&(t.niceExtent=i.slice()),t.intervalPrecision==null&&(t.intervalPrecision=kr(t.interval))},e.prototype.getTicks=function(t){t=t||{};var i=this._cfg,n=i.interval,a=Ri(this),o=i.niceExtent,s=i.intervalPrecision,l=Fe(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:t.expandToNicedExtent?me(o[0]-n,s):a[0]});for(var h=function(_,x){return er((x-_)/n)},v=i.intervalCount,d=o[0],m=0;;m++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>v)break;d=ke(d,o[1]),m===v&&(d=o[1])}if(c.push({value:d}),d=me(d+n,s),u){var g=u.calcNiceTickMultiple(d,h);g>=0&&(d=me(d+g*n,s))}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:t.expandToNicedExtent?me(y+n,s):a[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&t.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(t){return os(this,t,Sa(this),this._cfg.interval)},e.prototype.getLabel=function(t,i){if(t==null)return"";var n=i&&i.precision;n==null?n=Jt(t.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=me(t.value,n,!0);return Ed(a)},e.type="interval",e})(Nt);Nt.registerClass(E1);var Va=E1;var AN=function(r,e,t,i){for(;t<i;){var n=t+i>>>1;r[n][1]<e?t=n+1:i=n}return t},I1=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i.type="time",i.parse=e.parse,i._locale=t.locale,i._useUTC=t.useUTC,i._interval=0;var n=zf(i,t),a=is(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(t){return Ta(t.value,_d[LS(Ho(this._minLevelUnit))]||_d.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,i,n){return OS(t,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var i=this._interval,n=Ri(this),a=Fe(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return Fe().addBreaksToTicks(l,o.breaks,n),l;l=PN(this._minLevelUnit,this._approxInterval,u,n,ns(this),o);var f=Yt.length-1,c=0;return w(l,function(p){p.time&&(f=Math.min(f,ae(Yt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Fe().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&t.breakTicks!=="none"&&Fe().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(ae(Yt,wa(p.vmin,u)),ae(Yt,wa(p.vmax,u))),v=0,d=0;d<Yt.length;d++)if(!L1(Yt[d],p.vmin,p.vmax,u)){v=d;break}var m=Math.min(v,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:Yt[g],upperTimeUnit:Yt[m]}}),l},e.prototype.getMinorTicks=function(t){return os(this,t,Sa(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return se(t)?Math.round(t):+Xr(t)},e.type="time",e})(Nt),$c=[["second",Ff],["minute",Hf],["hour",Fo],["quarter-day",Fo*6],["half-day",Fo*12],["day",ar*1.2],["half-week",ar*3.5],["week",ar*7],["month",ar*31],["quarter",ar*95],["half-year",yd/2],["year",yd]];function L1(r,e,t,i){return Gf(new Date(e),r,i).getTime()===Gf(new Date(t),r,i).getTime()}function DN(r,e){return r/=ar,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function EN(r){var e=30*ar;return r/=e,r>6?6:r>3?3:r>2?2:1}function MN(r){return r/=Fo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function M1(r,e){return r/=e?Hf:Ff,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function IN(r){return de(ta(r,!0),1)}function LN(r,e,t){var i=Math.max(0,ae(Yt,e)-1);return Gf(new Date(r),Yt[i],t).getTime()}function ON(r,e){var t=new Date(0);t[r](1);var i=t.getTime();t[r](1+e);var n=t.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function PN(r,e,t,i,n,a){var o=3e3,s=ES,l=0;function u(k,G,B,Y,q,K,J){for(var te=ON(q,k),j=G,ge=new Date(j);j<B&&j<=i[1]&&(J.push({value:j}),!(l++>o));)if(ge[q](ge[Y]()+k),j=ge.getTime(),a){var Te=a.calcNiceTickMultiple(j,te);Te>0&&(ge[q](ge[Y]()+Te*k),j=ge.getTime())}J.push({value:j,notAdd:j>i[1]})}function f(k,G,B){var Y=[],q=!G.length;if(!L1(Ho(k),i[0],i[1],t)){q&&(G=[{value:LN(i[0],k,t)},{value:i[1]}]);for(var K=0;K<G.length-1;K++){var J=G[K].value,te=G[K+1].value;if(J!==te){var j=void 0,ge=void 0,Te=void 0,Je=!1;switch(k){case"year":j=Math.max(1,Math.round(e/ar/365)),ge=xd(t),Te=PS(t);break;case"half-year":case"quarter":case"month":j=EN(e),ge=Yf(t),Te=Sd(t);break;case"week":case"half-week":case"day":j=DN(e,31),ge=Wf(t),Te=bd(t),Je=!0;break;case"half-day":case"quarter-day":case"hour":j=MN(e),ge=Zf(t),Te=Td(t);break;case"minute":j=M1(e,!0),ge=Xf(t),Te=wd(t);break;case"second":j=M1(e,!1),ge=qf(t),Te=Cd(t);break;case"millisecond":j=IN(e),ge=Kf(t),Te=Ad(t);break}te>=i[0]&&J<=i[1]&&u(j,J,te,ge,Te,Je,Y),k==="year"&&B.length>1&&K===0&&B.unshift({value:B[0].value-j})}}for(var K=0;K<Y.length;K++)B.push(Y[K])}}for(var c=[],p=[],h=0,v=0,d=0;d<s.length;++d){var m=Ho(s[d]);if(IS(s[d])){f(s[d],c[c.length-1]||[],p);var g=s[d+1]?Ho(s[d+1]):null;if(m!==g){if(p.length){v=h,p.sort(function(k,G){return k.value-G.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(y),h>S||r===s[d]))break}p=[]}}}for(var b=Me(z(c,function(k){return Me(k,function(G){return G.value>=i[0]&&G.value<=i[1]&&!G.notAdd})}),function(k){return k.length>0}),T=b.length-1,A=[],d=0;d<b.length;++d)for(var C=b[d],D=0;D<C.length;++D){var E=wa(C[D].value,t);A.push({value:C[D].value,time:{level:T-d,upperTimeUnit:E,lowerTimeUnit:E}})}To(A,h0,null),A.sort(function(k,G){return k.value-G.value});var I=A[0],M=A[A.length-1],O=wa(i[0],t),R=wa(i[1],t);return(!I||I.value>i[0])&&A.unshift({value:i[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!M||M.value<i[1])&&A.push({value:i[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),A}var O1=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=ar,t[1]+=ar),t[1]===-1/0&&t[0]===1/0){var i=new Date;t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-ar}r.setExtent(t[0],t[1]);var n=Vl(e.splitNumber,10),a=ns(r)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=$c.length,u=Math.min(AN($c,a,0,l),l-1),f=$c[u][1],c=$c[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};Nt.registerClass(I1);var P1=I1;var Jc=0,ep=1,RN=2,B1=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i.type="log",i.parse=Va.parse,i.base=t.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[Jc]=n[ep]=a[Jc]=a[ep]=NaN,Zc(i,e.mapperMethods);var s=Fe(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},RN,u),i.powStub=new Va({breakParsed:u.original}),i.intervalStub=new Va({breakParsed:u.transformed}),Xc(i,i.intervalStub),i}return e.prototype.getTicks=function(t){var i=this.base,n=this.powStub,a=Fe(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return z(o.getTicks(t||{}),function(f){var c=f.value,p=Kc(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,Sa(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(t){return os(this,t,Sa(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,i){return this.intervalStub.getLabel(t,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(Ul(t,this.base))},scale:function(t){return Kc(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,i){return t=Ul(t,this.base),i&&i.depth===rs?t:this.intervalStub.transformIn(t,i)},transformOut:function(t,i){var n=i?i.depth:null;return R1.depth=n,N1.lookup=this._lookup,Kc(n===rs?t:this.intervalStub.transformOut(t,R1),this.base,N1)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,i){this.setExtent2(Zt,t,i)},setExtent2:function(t,i,n){if(!(!_i(i,n)||i<=0||n<=0)){var a=k1,o=k1;if(t===Zt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(t,a[Jc]=i,a[ep]=n);var l=this.base;this.intervalStub.setExtent2(t,o[Jc]=Ul(i,l),o[ep]=Ul(n,l))}},getFilter:function(){return{g:0}},sanitize:function(t,i){return _i(i[0],i[1])&&tt(t)&&t<=0&&(t=i[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,i){return i===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,i)}},e})(Nt);Nt.registerClass(B1);var R1={},N1={},k1=[],z1=B1;var tp={value:1,category:1,time:1,log:1};var U1=Q();function V1(r){var e=r.get("type");return(e==null||!Ce(tp,e)&&!Nt.getClass(e))&&(e="value"),e}function F1(r,e,t){var i=Fe(),n;switch(i&&(n=Om(r,e,t)),e){case"category":return new D1({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:St()});case"time":return new P1({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new z1({logBase:r.get("logBase"),breakOption:n});case"value":return new Va({breakOption:n});default:return new(Nt.getClass(e)||Va)({})}}function H1(r,e,t){var i=t?Ua(r,null):r.getExtentUnsafe(Zt,null),n=i[0],a=i[1];return _i(n,a)?n===e||a===e?kN:n<e&&a>e?NN:rp:rp}var NN=1,kN=2,rp=3;function G1(r){U1(r).noOnMyZero=!0}function Y1(r){return U1(r).noOnMyZero}function Fl(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=MS(e);return function(n,a){return r.scale.getFormattedLabel(n,a,t)}}else{if(U(e))return function(n){var a=r.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(Z(e)){if(r.type==="category")return function(n,a){return e(ss(r,n),n.value-r.scale.getExtent()[0],null)};var i=Fe();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(ss(r,n),a,o)}}else return function(n){return r.scale.getLabel(n)}}}function ss(r,e){var t=r.scale;return qe(t)?t.getLabel(e):e.value}function ip(r){var e=r.get("interval");return e??"auto"}function W1(r){return r.type==="category"&&ip(r.getLabelModel())===0}function Z1(r,e){var t={};return w(r.mapDimensionsAll(e),function(i){t[Wc(r,i)]=!0}),he(t)}function Dn(r){return r==="middle"||r==="center"}function Fa(r){return r.getShallow("show")}function Om(r,e,t){var i=r.get("breaks",!0);if(i!=null){if(!Fe())return;if(!t||!BN(e)){if(0)var n;return}return i}}function BN(r){return r!=="category"}function np(r,e,t,i,n,a){var o=li(r),s=o?r.intervalStub:r;if(s.setExtent(i[0],i[1]),o){var l=r.powStub,u={depth:rs},f=r.transformOut(i[0],u),c=r.transformOut(i[1],u),p=C1(t,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function Ni(r,e){return qe(r)?r.getRawOrdinalNumber(e.value):e.value}function ap(r,e){return qe(r)&&!!e.get("boundaryGap")}var q1=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})();var zN=bo(),op="|&",ls=Q(),sp=-2,K1=-1,UN=Q();function j1(r,e){var t=r.model,i=ls(Ra(t.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(t.uid)}function Q1(r,e){return ew(j1(r,e))}function $1(r,e){var t=[];return J1(r.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&t.push(ew(i))}),t}function J1(r,e){var t=ls(Ra(r)).keyed;t&&t.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function ew(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function tw(r,e){var t=r.model.ecModel,i=ls(Ra(t)).axSer;i&&lp(t,i.get(r.model.uid),e)}function Nm(r,e,t){var i=j1(r,e);i&&lp(r.model.ecModel,i.sers,t)}function lp(r,e,t){if(e)for(var i=0;i<e.length;i++){var n=e[i];r.isSeriesFiltered(n)||t(n)}}function rw(r,e,t){var i=ls(Ra(r)).keyed,n=i&&i.get(e);n&&n.each(function(a){t(a.axis)})}function km(r,e){var t=r.model,i=ls(Ra(t.ecModel)).keys;i&&w(i.get(t.uid),function(n){if(0)var a;e(n)})}function VN(r){var e=UN(Mc(r)),t=e.keyed||(e.keyed=V());J1(r,function(i,n,a){var o=t.get(n)||t.set(n,V()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&nw.liPosMinGap(r,i,s)})}function iw(r,e){nw[r]=e}var nw={};function Bm(r,e,t){if(r){var i=e.ecModel,n=ls(Ra(i)),a=r.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=V()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===r,h=Rm.get(Pm(c,p,t))||Rm.get(Pm(c,p,null));if(h){var v=n.keyed||(n.keyed=V()),d=n.keys||(n.keys=V()),m=h.key,g=v.get(m)||v.set(m,V()),y=g.get(a);y||(y=g.set(a,{axis:r,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(r),(d.get(a)||d.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function Pm(r,e,t){return r+op+F(e,!0)+op+(t||"")}function aw(r,e){var t=Pm(e.seriesType,e.baseAxis,e.coordSysType);Rm.set(t,e),zN(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:VN})})}var Rm=V();var FN=Q(),lw=1,uw=2,HN=3,fw=(function(){function r(e,t,i,n,a){var o=qe(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=i.slice();(as(e)||li(e)||si(e))&&(uv(f,Hl(e,t.get("dataMin",!0))),fv(f,Hl(e,t.get("dataMax",!0)))),p0(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=t.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=Hl(e,Z(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=t.get("max",!0);v==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=Hl(e,Z(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var d=GN(e,t),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!Mr(c[0])&&(c[0]=NaN),!Mr(c[1])&&(c[1]=NaN);var g=l||Yi(c[0])||Yi(c[1])||o&&!s,y=as(e),_=y&&t.needIncludeZero&&t.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=Hl(e,t.get("startValue",!0)),b=S!=null;!tt(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),tt(S)&&(b||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};ow(T,c)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],a[0]=n[0]=!0),t[1]!=null&&(s[1]=t[1],a[1]=n[1]=!0),ow(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r})();function ow(r,e){var t=r.scale,i=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],i),e[1]=t.sanitize(e[1],i),So(e))}function Hl(r,e){return e==null?null:Yi(e)?NaN:r.parse(e)}function GN(r,e){var t;if(qe(r))t=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),t=N(i)?i:[i,i]}return[sw(t[0]),sw(t[1])]}function sw(r){return Ar(typeof r=="boolean"?0:r,1)||0}function cw(r){var e=FN(r.scale);return e.extent||(e.extent=St()),e}function pw(r,e){cw(r).dimIdxInCoord=e.get(r.dim)}function up(r,e){var t=r.scale,i=r.model,n=r.dim;t.rawExtentInfo||YN(t,r,n,i,e)}function YN(r,e,t,i,n){var a=cw(e),o=a.extent,s=!1;tw(e,function(f){if(f.boxCoordinateSystem){var c=tc(f).coord,p=a.dimIdxInCoord;if(p>=0){if(N(c)){var h=c[p];h!=null&&!N(h)&&Ys(o,r.parse(h))}}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=r.getFilter?r.getFilter():null;w(Z1(v,t),function(m){c0(o,v.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=ZN(r,e,i),u=new fw(r,i,o,s,l);hw(r,u,n),a.extent=null}function WN(r,e){var t=r.scale;hw(t,new fw(t,r.model,e,!1,!1),HN)}function hw(r,e,t){r.rawExtentInfo=e,e.from=t}function vw(r,e){zm.set(r,e)}var zm=V();function fp(r,e,t,i,n){r.rawExtentInfo||WN({scale:r,model:e},n||St());var a=r.rawExtentInfo.makeFinal(),o=a.effMM;return r.setExtent(o[0],o[1]),r.setBlank(a.isBlank),i&&a.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function ZN(r,e,t){var i=ap(r,t),n=t.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return km(e,function(o){a=!!zm.get(o)||a}),a}function dw(r,e,t,i){if(t.ctnShp){var n;if(km(r,function(s){var l=zm.get(s);if(l){var u=l(r,i);u&&(n=n||[0,0],uv(n,u[0]),fv(n,u[1]),G1(r))}}),!!n){var a=e.getExtent();if(qe(e))r.onBand||e.setExtent2(ts,ke(a[0],a[0]+n[0]),de(a[1],a[1]+n[1]));else{var o=a.slice();t.zoomFixMM[0]||(o[0]=ke(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),t.zoomFixMM[1]||(o[1]=de(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(ts,o[0],o[1])}}}}function mw(r,e){var t=li(r),i=t?r.intervalStub:r,n=e.fixMinMax||[],a=t?r.getExtent():null,o=i.getExtent(),s=jc(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=t?qN(i,e):XN(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=kr(c)),n[0]||(s[0]=me(hr(s[0]/f)*f,u)),n[1]||(s[1]=me(Zr(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),np(r,n,o,s,a,l)}function XN(r,e){var t=Vl(e.splitNumber,5),i=ns(r),n=e.minInterval,a=e.maxInterval,o=ta(i/t,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=kr(o),l=r.getExtent(),u=[me(Zr(l[0]/o)*o,s),me(hr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function qN(r,e){var t=Vl(e.splitNumber,10),i=r.getExtent(),n=ns(r),a=de(Qu(n),1),o=t/n*a;o<=.5&&(a*=10);var s=kr(a),l=[me(Zr(i[0]/a)*a,s),me(hr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Um(r){var e=r.scale,t=r.model,i=t.axis,n=t.ecModel;KN(e,t,i,n,null)}function KN(r,e,t,i,n){var a=fp(r,e,i,t,n),o=as(r)||si(r);jN(r,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),t&&i&&dw(t,r,a,i)}function jN(r,e){QN[r.type](r,e)}var QN={interval:mw,log:mw,time:O1,ordinal:Ne};var gw=[],$N={registerPreprocessor:Sm,registerProcessor:bm,registerPostInit:a1,registerPostUpdate:o1,registerUpdateLifecycle:Hc,registerAction:Pi,registerCoordinateSystem:s1,registerLayout:l1,registerVisual:wn,registerTransform:f1,registerLoading:wm,registerMap:u1,registerImpl:fT,PRIORITY:qT,ComponentModel:be,ComponentView:He,SeriesModel:Pt,ChartView:bt,registerComponentModel:function(r){be.registerClass(r)},registerComponentView:function(r){He.registerClass(r)},registerSeriesModel:function(r){Pt.registerClass(r)},registerChartView:function(r){bt.registerClass(r)},registerCustomSeries:function(r,e){pT(r,e)},registerSubTypeDefaulter:function(r,e){be.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){q_(r,e)}};function lt(r){if(N(r)){w(r,function(e){lt(e)});return}ae(gw,r)>=0||(gw.push(r),Z(r)&&(r={install:r}),r.install($N))}var JN=Q(),Gl=Q(),Xt={estimate:1,determine:2};function us(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function yw(r,e){var t=r.getLabelModel().get("customValues");if(t){var i=r.scale;return{labels:z(xw(t,i),function(n,a){return{formattedLabel:Fl(r)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return r.type==="category"?ek(r,e):rk(r)}function _w(r,e,t){var i=r.scale,n=r.getTickModel().get("customValues");return n?{ticks:xw(n,i)}:r.type==="category"?tk(r,e):{ticks:i.getTicks(t)}}function xw(r,e){var t=e.getExtent(),i=[];return w(r,function(n){n=e.parse(n),n>=t[0]&&n<=t[1]&&i.push(n)}),To(i,v0,null),xt(i),z(i,function(n){return{value:n}})}function ek(r,e){var t=r.getLabelModel(),i=Sw(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:i}function Sw(r,e,t){var i=nk(r),n=ip(e),a=t.kind===Xt.estimate;if(!a){var o=Tw(i,n);if(o)return o}var s,l;Z(n)?s=cp(r,n,!1):(l=n==="auto"?ak(r,t):n,s=cp(r,l,!1));var u={labels:s,labelCategoryInterval:l};return a?t.out.noPxChangeTryDetermine.push(function(){return Vm(i,n,u),!0}):Vm(i,n,u),u}function tk(r,e){var t=ik(r),i=ip(e),n=Tw(t,i);if(n)return n;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),Z(i))a=cp(r,i,!0);else if(i==="auto"){var s=Sw(r,r.getLabelModel(),us(Xt.determine));o=s.labelCategoryInterval,a=z(s.labels,function(l){return l.tick})}else o=i,a=cp(r,o,!0);return Vm(t,i,{ticks:a,tickCategoryInterval:o})}function rk(r){var e=r.scale.getTicks(),t=Fl(r);return{labels:z(e,function(i,n){return{formattedLabel:t(i,n),rawLabel:r.scale.getLabel(i),tick:i}})}}var ik=bw("axisTick"),nk=bw("axisLabel");function bw(r){return function(t){return Gl(t)[r]||(Gl(t)[r]={list:[]})}}function Tw(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function Vm(r,e,t){return r.list.push({key:e,value:t}),t}function ak(r,e){if(e.kind===Xt.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Gl(r).autoInterval=t,!0}),t}var i=Gl(r).autoInterval;return i??(Gl(r).autoInterval=r.calculateCategoryInterval(e))}function ww(r,e){var t=e.kind,i=sk(r),n=Fl(r),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=Yu(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/h,S=m/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(t===Xt.estimate)return e.out.noPxChangeTryDetermine.push($(ok,null,r,b,l)),b;var T=Cw(r,b,l);return T??b}function ok(r,e,t){return Cw(r,e,t)==null}function Cw(r,e,t){var i=JN(r.model),n=r.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-t)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=t,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function sk(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function cp(r,e,t){var i=Fl(r),n=r.scale,a=[],o=Z(e);return Qc(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(t?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var lk=.8;function Br(r,e){e=e||{};var t={w:NaN,w2:NaN},i=r.scale,n=e.fromStat,a=e.min,o=T1(i);tt(o)||(o=NaN);var s=r.getExtent(),l=Ie(s[1]-s[0]);return qe(i)?uk(t,r,o,l):n?fk(t,r,o,l,n):a==null,a!=null&&(t.w=tt(t.w)?de(a,t.w):a),t}function uk(r,e,t,i){var n=e.onBand,a=t+(n?1:0);a===0&&(a=1),r.w=i/a,!n&&t&&i&&(r.w2=r.w*t/i)}function fk(r,e,t,i,n){var a=!1,o=-1/0;w(n.key?[Q1(e,n.key)]:$1(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===sp&&(a=!0))}),tt(t)&&t>0&&tt(o)?(r.w=i/t*o,r.w2=o):a&&(r.w=i*lk,r.w2=r.w*t/i)}var Aw=[0,1],ck=(function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=i&&e<=n},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this.scale;return e=i.normalize(i.parse(e)),Be(e,Aw,Dw(this),t)},r.prototype.coordToData=function(e,t){var i=Be(e,Dw(this),Aw,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=_w(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=z(i.ticks,function(s){return{coord:this.dataToCoord(Ni(this.scale,s)),tick:s}},this),a=t.get("alignWithLabel"),o=pk(this,n,a);return z(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(qe(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),n=z(i,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(e){return e=e||us(Xt.determine),yw(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Br(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||us(Xt.determine),ww(this,e)},r})();function Dw(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],i=t/r.scale.count()/2;e[0]+=i,e[1]-=i}return e}function pk(r,e,t){var i=e.length;if(!r.onBand||t||!i)return!1;var n=Br(r).w;if(!n)return!1;w(e,function(s){s.coord-=n/2});var a=r.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var Ew=ck;var LK=Math.PI*2,OK=It.CMD;function Mw(r,e,t,i,n,a,o,s){var l=n-r,u=a-e,f=t-r,c=i-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=l*f+u*c,v=h/p;s&&(v=Math.min(Math.max(v,0),1)),v*=p;var d=o[0]=r+v*f,m=o[1]=e+v*c;return Math.sqrt((d-n)*(d-n)+(m-a)*(m-a))}var En=new ue,Ke=new ue,Tt=new ue,Mn=new ue,ui=new ue;var pp=[],kt=new ue;function Iw(r,e){if(e<=180&&e>0){e=e/180*Math.PI,En.fromArray(r[0]),Ke.fromArray(r[1]),Tt.fromArray(r[2]),ue.sub(Mn,En,Ke),ue.sub(ui,Tt,Ke);var t=Mn.len(),i=ui.len();if(!(t<.001||i<.001)){Mn.scale(1/t),ui.scale(1/i);var n=Mn.dot(ui),a=Math.cos(e);if(a<n){var o=Mw(Ke.x,Ke.y,Tt.x,Tt.y,En.x,En.y,pp,!1);kt.fromArray(pp),kt.scaleAndAdd(ui,o/Math.tan(Math.PI-e));var s=Tt.x!==Ke.x?(kt.x-Ke.x)/(Tt.x-Ke.x):(kt.y-Ke.y)/(Tt.y-Ke.y);if(isNaN(s))return;s<0?ue.copy(kt,Ke):s>1&&ue.copy(kt,Tt),kt.toArray(r[1])}}}}function Lw(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,En.fromArray(r[0]),Ke.fromArray(r[1]),Tt.fromArray(r[2]),ue.sub(Mn,Ke,En),ue.sub(ui,Tt,Ke);var i=Mn.len(),n=ui.len();if(!(i<.001||n<.001)){Mn.scale(1/i),ui.scale(1/n);var a=Mn.dot(e),o=Math.cos(t);if(a<o){var s=Mw(Ke.x,Ke.y,Tt.x,Tt.y,En.x,En.y,pp,!1);kt.fromArray(pp);var l=Math.PI/2,u=Math.acos(ui.dot(e)),f=l+u-t;if(f>=l)ue.copy(kt,Tt);else{kt.scaleAndAdd(ui,s/Math.tan(Math.PI/2-f));var c=Tt.x!==Ke.x?(kt.x-Ke.x)/(Tt.x-Ke.x):(kt.y-Ke.y)/(Tt.y-Ke.y);if(isNaN(c))return;c<0?ue.copy(kt,Ke):c>1&&ue.copy(kt,Tt)}kt.toArray(r[1])}}}}function Fm(r,e,t,i){var n=t==="normal",a=n?r:r.ensureState(t);a.ignore=e;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function hk(r,e){var t=e.smooth,i=e.points;if(i)if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var n=Ss(i[0],i[1]),a=Ss(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*t,s=Su([],i[1],i[0],o/n),l=Su([],i[1],i[2],o/a),u=Su([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function Ow(r,e,t){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){i&&r.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=n.ignore,l=0;l<Mo.length;l++){var u=Mo[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),h=c?s:F(n.states[u]&&n.states[u].ignore,s);if(h||!F(p,o)){var v=c?i:i&&i.states[u];v&&(v.ignore=!0),i&&Fm(i,!0,u,f);continue}i||(i=new Ai,r.setTextGuideLine(i),!c&&(s||!o)&&Fm(i,!0,"normal",e.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),Fm(i,!1,u,f)}}if(i){ie(i.style,t),i.style.fill=null;var d=a.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=d||!1,i.buildPath=hk}}function Pw(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},i=0;i<pt.length;i++){var n=pt[i];t[n]=r.getModel([n,e])}return t}var Rw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],vk=1,hp=2,kw=vk|hp;function Yl(r,e,t){t=t||kw,e?r.dirty|=t:r.dirty&=~t}function Bw(r,e){return e=e||kw,r.dirty==null||!!(r.dirty&e)}function zr(r){if(r)return Bw(r)&&Gm(r,r.label,r),r}function Gm(r,e,t){var i=e.getComputedTransform();r.transform=Pf(r.transform,i);var n=r.localRect=zo(r.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=_a.textMargin);for(var c=0;c<4;c++)Hm[c]=f===_a.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===_a.textMargin&&ko(n,Hm,!1,!1);var p=r.rect=zo(r.rect,n);return i&&p.applyTransform(i),f===_a.minMargin&&ko(p,Hm,!1,!1),r.axisAligned=Of(i),(r.label=r.label||{}).ignore=e.ignore,Yl(r,!1),Yl(r,!0,hp),r}var Hm=[0,0,0,0];function zw(r,e,t){return r.transform=Pf(r.transform,t),r.localRect=zo(r.localRect,e),r.rect=zo(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=Of(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Uw(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var i=r.rect;i&&(i.x+=e.x,i.y+=e.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,t)}}function Ym(r,e){for(var t=0;t<Rw.length;t++){var i=Rw[t];r[i]==null&&(r[i]=e[i])}return zr(r)}function Nw(r){var e=r.obb;return(!e||Bw(r,hp))&&(r.obb=e=e||new Mf,e.fromBoundingRect(r.localRect,r.transform),Yl(r,!1,hp)),e}function Vw(r,e,t,i,n){var a=r.length,o=ni[e],s=hn[e];if(a<2)return!1;r.sort(function(C,D){return C.rect[o]-D.rect[o]});for(var l=0,u,f=!1,c=0,p=0;p<a;p++){var h=r[p],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0);var d=Math.max(-u,0);c+=d,l=v[o]+v[s]}c>0&&n&&b(-c/a,0,a);var m=r[0],g=r[a-1],y,_;x(),y<0&&T(-y,.8),_<0&&T(_,.8),x(),S(y,_,1),S(_,y,-1),x(),y<0&&A(-y),_<0&&A(_);function x(){y=m.rect[o]-t,_=i-g.rect[o]-g.rect[s]}function S(C,D,E){if(C<0){var I=Math.min(D,-C);if(I>0){b(I*E,0,a);var M=I+C;M<0&&T(-M*E,1)}else T(-C*E,1)}}function b(C,D,E){C!==0&&(f=!0);for(var I=D;I<E;I++){var M=r[I],O=M.rect;O[o]+=C,M.label[o]+=C}}function T(C,D){for(var E=[],I=0,M=1;M<a;M++){var O=r[M-1].rect,R=Math.max(r[M].rect[o]-O[o]-O[s],0);E.push(R),I+=R}if(I){var k=Math.min(Math.abs(C)/I,D);if(C>0)for(var M=0;M<a-1;M++){var G=E[M]*k;b(G,0,M+1)}else for(var M=a-1;M>0;M--){var G=E[M-1]*k;b(-G,M,a)}}}function A(C){var D=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(a-1)),I=0;I<a-1;I++)if(D>0?b(E,0,I+1):b(-E,a-I-1,a),C-=E,C<=0)return}return f}function Fw(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<r.length;i++){var n=zr(r[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(vp(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(a),o&&t(o)):e.push(n)}}}function vp(r,e,t,i){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,i)?!1:r.axisAligned&&e.axisAligned?!0:Nw(r).intersect(Nw(e),t,i)}var dk=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(0)var i;return An(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new ye,n=vt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(n),n.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=vt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=H.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(Pt),Hw=dk;function fs(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var n=Li(r,e,t[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<t.length;o++)a.push(Li(r,e,t[o]));return a.join(" ")}}function dp(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!N(e))return e+"";for(var i=[],n=0;n<t.length;n++){var a=r.getDimensionIndex(t[n]);a>=0&&i.push(e[a])}return i.join(" ")}var mk=(function(r){L(e,r);function e(t,i,n,a){var o=r.call(this)||this;return o.updateData(t,i,n,a),o}return e.prototype._createSymbol=function(t,i,n,a,o,s){this.removeAll();var l=vt(t,-1,-1,2,2,null,s);l.attr({z2:F(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=gk,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ti(this.childAt(0))},e.prototype.downplay=function(){wi(this.childAt(0))},e.prototype.setZ=function(t,i){var n=this.childAt(0);n.zlevel=t,n.z=i},e.prototype.setDraggable=function(t,i){var n=this.childAt(0);n.draggable=t,n.cursor=!i&&t?"move":n.cursor},e.prototype.updateData=function(t,i,n,a){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=e.getSymbolZ2(t,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Le(h,v,s,i),No(h)}if(this._updateCommon(t,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,rt(h,v,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,n,a,o){var s=this.childAt(0),l=t.hostModel,u,f,c,p,h,v,d,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled),!a||t.hasItemOption){var y=a&&a.itemModel?a.itemModel:t.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),d=Ct(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Na(t.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=t.getItemVisual(i,"style"),T=b.fill;if(s instanceof yr){var A=s.style;s.useStyle(P({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(P({},b)):s.useStyle(b),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(i,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var E=o&&o.useNameLabel;Gt(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:T,defaultOpacity:b.opacity});function I(R){return E?t.getName(R):fs(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*O,M.scaleY=this._sizeY*O,this.setSymbolScale(1),ir(this,p,h,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,n){var a=this.childAt(0),o=le(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Ro(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ro(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return Al(t.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(t,i){return t.getItemVisual(i,"z2")},e})(ye);function gk(r,e){this.parent.drift(r,e)}var Wl=mk;function mp(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(t))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Gw(r){return r!=null&&!W(r)&&(r={isIgnore:r}),r||{}}function Yw(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Ct(e),cursorStyle:e.get("cursor")}}function Ww(r,e,t,i,n,a,o){var s=new r(e,t,i,n);return s.setPosition(a),e.setItemGraphicEl(t,s),o.add(s),s}var yk=(function(){function r(e){this.group=new ye,this._SymbolCtor=e||Wl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Gw(t);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=Yw(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);mp(e,p,c,t)&&Ww(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!mp(e,v,c,t)){i.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):Le(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var i=this,n=t.getStore(),a=0,o=n.count();a<o;a++){var s=t.getItemGraphicEl(a),l=i._getSymbolPoint(a);mp(t,l,a,e)?(s=s||Ww(i._SymbolCtor,t,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),t.setItemGraphicEl(a,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Yw(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i,n){this._progressiveEls=[],n=Gw(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=ma)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(mp(t,s,o,n)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){Di(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},i.hostModel)}):t.removeAll()},r})(),cs=yk;function gp(r,e,t){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=_k(n,t),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=z(r.dimensions,function(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return Nr(e,c[0])&&(p=!0,c[0]=h),Nr(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function _k(r,e){var t=0,i=r.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:se(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function yp(r,e,t,i){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function qt(r,e){return!isFinite(r)||!isFinite(e)}var xk=typeof Float32Array!==un?Float32Array:void 0,Zw=typeof Float64Array!==un?Float64Array:void 0;function ur(r){return _p({ctor:xk},r).arr}function _p(r,e){var t=r.arr,i=r.ctor;if(e>ev&&(e=ev),!t||r.typed&&t.length<e){var n=void 0;if(i)try{n=new i(e),r.typed=!0,t&&n.set(t)}catch{}if(!n&&(n=[],r.typed=!1,t))for(var a=0,o=t.length;a<o;a++)n[a]=t[a];r.arr=n}return r}function Sk(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,n){t.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function Wm(r,e,t,i,n,a,o,s){for(var l=Sk(r,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],m=gp(n,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,b=void 0,T=void 0;switch(x.cmd){case"=":b=x.idx*2,T=x.idx1*2;var A=g[b],C=g[b+1],D=y[T],E=y[T+1];(isNaN(A)||isNaN(C))&&(A=D,C=E),u.push(A,C),f.push(D,E),c.push(t[b],t[b+1]),p.push(i[T],i[T+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,M=m.dataDimsForPoint,O=n.dataToPoint([e.get(M[0],I),e.get(M[1],I)]);T=I*2,u.push(O[0],O[1]),f.push(y[T],y[T+1]);var R=yp(m,n,e,I);c.push(R[0],R[1]),p.push(i[T],i[T+1]),d.push(e.getRawIndex(I));break;case"-":S=!1}S&&(h.push(x),v.push(v.length))}v.sort(function(ge,Te){return d[ge]-d[Te]});for(var k=u.length,G=ur(k),B=ur(k),Y=ur(k),q=ur(k),K=[],_=0;_<v.length;_++){var J=v[_],te=_*2,j=J*2;G[te]=u[j],G[te+1]=u[j+1],B[te]=f[j],B[te+1]=f[j+1],Y[te]=c[j],Y[te+1]=c[j+1],q[te]=p[j],q[te+1]=p[j+1],K[_]=h[J]}return{current:G,next:B,stackedOnCurrent:Y,stackedOnNext:q,status:K}}var In=Math.min,Ln=Math.max;function Zm(r,e,t,i,n,a,o,s,l){for(var u,f,c,p,h,v,d=t,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(qt(g,y)){if(l){d+=a;continue}break}if(d===t)r[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){d+=a;continue}if(o>0){for(var S=d+a,b=e[S*2],T=e[S*2+1];b===g&&T===y&&m<i;)m++,S+=a,d+=a,b=e[S*2],T=e[S*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var A=m+1;if(l)for(;qt(b,T)&&A<i;)A++,S+=a,b=e[S*2],T=e[S*2+1];var C=.5,D=0,E=0,I=void 0,M=void 0;if(A>=i||qt(b,T))h=g,v=y;else{D=b-u,E=T-f;var O=g-u,R=b-g,k=y-f,G=T-y,B=void 0,Y=void 0;if(s==="x"){B=Math.abs(O),Y=Math.abs(R);var q=D>0?1:-1;h=g-q*B*o,v=y,I=g+q*Y*o,M=y}else if(s==="y"){B=Math.abs(k),Y=Math.abs(G);var K=E>0?1:-1;h=g,v=y-K*B*o,I=g,M=y+K*Y*o}else B=Math.sqrt(O*O+k*k),Y=Math.sqrt(R*R+G*G),C=Y/(Y+B),h=g-D*o*(1-C),v=y-E*o*(1-C),I=g+D*o*C,M=y+E*o*C,I=In(I,Ln(b,g)),M=In(M,Ln(T,y)),I=Ln(I,In(b,g)),M=Ln(M,In(T,y)),D=I-g,E=M-y,h=g-D*B/Y,v=y-E*B/Y,h=In(h,Ln(u,g)),v=In(v,Ln(f,y)),h=Ln(h,In(u,g)),v=Ln(v,In(f,y)),D=g-h,E=y-v,I=g+D*Y/B,M=y+E*Y/B}r.bezierCurveTo(c,p,h,v,g,y),c=I,p=M}else r.lineTo(g,y)}u=g,f=y,d+=a}return m}var Xw=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),qw=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Xw},e.prototype.buildPath=function(t,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&qt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&qt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Zm(t,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=It.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],_=u?(t-s)/(h-s):(t-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[t,x]:[x,t]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],m=a[c++],g=a[c++],y=a[c++];var S=u?qn(s,h,d,g,t,f):qn(l,v,m,y,t,f);if(S>0)for(var b=0;b<S;b++){var T=f[b];if(T<=1&&T>=0){var x=u?Ue(l,v,m,y,T):Ue(s,h,d,g,T);return u?[t,x]:[x,t]}}s=g,l=y;break}}},e})(oe);var bk=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Xw),Kw=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new bk},e.prototype.buildPath=function(t,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&qt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&qt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Zm(t,n,o,s,s,1,i.smooth,l,i.connectNulls);Zm(t,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,t.closePath()}},e})(oe);function Xm(r,e,t,i,n){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new xe({shape:{x:o,y:s,width:l,height:u}});if(e){var p=r.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var d=Z(n)?function(m){n(m,c)}:null;rt(c,{shape:{width:l,height:u,x:o,y:s}},t,null,i,d)}return c}function qm(r,e,t){var i=r.getArea(),n=me(i.r0,1),a=me(i.r,1),o=new Lr({shape:{cx:me(r.cx,1),cy:me(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,rt(o,{shape:{endAngle:i.endAngle,r:a}},t)}return o}function jw(r,e,t,i,n){if(r){if(r.type==="polar")return qm(r,e,t);if(r.type==="cartesian2d")return Xm(r,e,t,i,n)}else return null;return null}function Qw(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function ki(r,e){return r.type===e}function $w(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function Jw(r){for(var e=St(),t=St(),i=0;i<r.length;){var n=r[i++],a=r[i++];qt(n,a)||(Ys(e,n),Ys(t,a))}return[e,t]}function eC(r,e){var t=Jw(r),i=t[0],n=t[1],a=Jw(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function tC(r){return se(r)?r:r?.5:0}function Tk(r,e,t){if(t.valueDim==null)return[];for(var i=e.count(),n=ur(i*2),a=0;a<i;a++){var o=yp(t,r,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function On(r,e,t,i,n){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<r.length;l+=2){var h=e||r;qt(h[l],h[l+1])||p.push(r[l],r[l+1])}r=p}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function wk(r,e){var t=[],i=r.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=x_(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){a?t.push(o(a,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),a=l}return t}function Ck(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=wk(u,n==="x"?t.getWidth():t.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,d=p[0].coord-v,m=p[h-1].coord+v,g=m-d;if(g<.001)return"transparent";w(p,function(_){_.offset=(_.coord-d)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new Cf(0,0,0,0,p,!0);return y[n]=d,y[n+"2"]=m,y}}}function Ak(r,e,t){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(n&&Dk(a,e))){var o=e.mapDimension(a.dim),s={};return w(a.getViewLabels(),function(l){l.tick.offInterval||(s[Ni(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Dk(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Wl.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function Ek(r){for(var e=r.length/2;e>0&&qt(r[e*2-2],r[e*2-1]);e--);return e-1}function rC(r,e){return[r[e*2],r[e*2+1]]}function Mk(r,e,t){for(var i=r.length/2,n=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+n],!qt(o,r[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function iC(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<pt.length;e++)if(r.get([pt[e],"endLabel","show"]))return!0;return!1}function Km(r,e,t,i){if(ki(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=iC(i)?function(h,v){r._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Xm(e,t,i,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return qm(e,t,i)}function Ik(r,e){var t=e.getBaseAxis(),i=t.isHorizontal(),n=t.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var Lk=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new ye,i=new cs;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t,this._changePolyState=$(this._changePolyState,this)},e.prototype.render=function(t,i,n){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,v=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&t.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=gp(a,s,_),S=y&&Tk(a,s,x),b=t.get("showSymbol"),T=t.get("connectNulls"),A=b&&!c&&Ak(t,s,a),C=this._data;C&&C.eachItemGraphicEl(function(Ee,Ve){Ee.__temp&&(o.remove(Ee),C.setItemGraphicEl(Ve,null))}),b||h.remove(),o.add(m);var D=c?!1:t.get("step"),E;a&&a.getArea&&t.get("clip",!0)&&(E=a.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var I=Ck(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&D===this._step))b&&h.updateData(s,{isIgnore:A,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Ee){return[f[Ee*2],f[Ee*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,E),D&&(S&&(S=On(S,f,a,D,T)),f=On(f,null,a,D,T)),v=this._newPolyline(f),y?d=this._newPolygon(f,S):d&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,Pr(I)),m.setClipPath(Km(this,a,!0,t));else{y&&!d?d=this._newPolygon(f,S):d&&!y&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,Pr(I));var M=m.getClipPath();if(M){var O=Km(this,a,!1,t);rt(M,{shape:O.shape},t)}else m.setClipPath(Km(this,a,!0,t));b&&h.updateData(s,{isIgnore:A,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Ee){return[f[Ee*2],f[Ee*2+1]]}}),(!$w(this._stackedOnPoints,S)||!$w(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,n,D,_,T):(D&&(S&&(S=On(S,f,a,D,T)),f=On(f,null,a,D,T)),v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})))}var R=t.getModel("emphasis"),k=R.get("focus"),G=R.get("blurScope"),B=R.get("disabled");if(v.useStyle(ie(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Ci(v,t,"lineStyle"),v.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var Y=v.getState("emphasis").style;Y.lineWidth=+v.style.lineWidth+1}le(v).seriesIndex=t.seriesIndex,ir(v,k,G,B);var q=tC(t.get("smooth")),K=t.get("smoothMonotone");if(v.setShape({smooth:q,smoothMonotone:K,connectNulls:T}),d){var J=s.getCalculationInfo("stackedOnSeries"),te=0;d.useStyle(ie(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),J&&(te=tC(J.get("smooth"))),d.setShape({smooth:q,stackedOnSmooth:te,smoothMonotone:K,connectNulls:T}),Ci(d,t,"areaStyle"),le(d).seriesIndex=t.seriesIndex,ir(d,k,G,B)}var j=this._changePolyState;s.eachItemGraphicEl(function(Ee){Ee&&(Ee.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=D,this._valueOrigin=_;var ge=t.get("triggerEvent"),Te=t.get("triggerLineEvent"),Je=Te===!0||ge===!0||ge==="line",ut=Te===!0||ge===!0||ge==="area";this.packEventData(t,v,Je),d&&this.packEventData(t,d,ut)},e.prototype.packEventData=function(t,i,n){le(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,i,n,a){var o=t.getData(),s=vr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(qt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=t.get("zlevel")||0,h=t.get("z")||0;u=new Wl(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else bt.prototype.highlight.call(this,t,i,n,a)},e.prototype.downplay=function(t,i,n,a){var o=t.getData(),s=vr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else bt.prototype.downplay.call(this,t,i,n,a)},e.prototype._changePolyState=function(t){var i=this._polygon;Vv(this._polyline,t),i&&Vv(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new qw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Kw({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");Z(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=Z(c)?c(null):c;t.eachItemGraphicEl(function(h,v){var d=h;if(d){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var b=n;a?(g=b.x,y=b.x+b.width,_=h.x):(g=b.y+b.height,y=b.y,_=h.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var A=Z(c)?c(v):f*T+p,C=d.getSymbolPath(),D=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,n){var a=t.getModel("endLabel");if(iC(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new De({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=Ek(l);f>=0&&(Gt(s,Ct(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?dp(o,h):fs(o,c)},enableTextSetter:!0},Ik(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?d:0)*(y?-1:1),b=(g?0:-d)*(y?-1:1),T=g?"x":"y",A=Mk(c,x,T),C=A.range,D=C[1]-C[0],E=void 0;if(D>=1){if(D>1&&!h){var I=rC(c,C[0]);u.attr({x:I[0]+S,y:I[1]+b}),o&&(E=p.getRawValue(C[0]))}else{var I=f.getPointOn(x,T);I&&u.attr({x:I[0]+S,y:I[1]+b});var M=p.getRawValue(C[0]),O=p.getRawValue(C[1]);o&&(E=lv(n,v,M,O,A.t))}a.lastFrameIndex=C[0]}else{var R=t===1||a.lastFrameIndex>0?C[0]:0,I=rC(c,R);o&&(E=p.getRawValue(R)),u.attr({x:I[0]+S,y:I[1]+b})}if(o){var k=Uo(u);typeof k.setLabelText=="function"&&k.setLabelText(E)}}},e.prototype._doUpdateAnimation=function(t,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,p=Wm(this._data,t,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,v=p.stackedOnCurrent,d=p.next,m=p.stackedOnNext;if(o&&(v=On(p.stackedOnCurrent,p.current,n,o,l),h=On(p.current,null,n,o,l),m=On(p.stackedOnNext,p.next,n,o,l),d=On(p.next,null,n,o,l)),eC(h,d)>3e3||f&&eC(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:d}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),Le(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),Le(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=t.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,A=0;A<y.length;A++){var C=y[A].el,D=y[A].ptIdx*2;C.x=T[D],C.y=T[D+1],C.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(bt),nC=Lk;function Ha(r,e){return{seriesType:r,plan:La(),reset:function(t){var i=t.getData(),n=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(n){var s=z(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Nr(i,s[0])&&(s[0]=u),Nr(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var d=h.end-h.start,m=o&&ur(d*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var b=f.get(c,_);S=n.dataToPoint(b,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),S=n.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):v.setItemLayout(_,S.slice())}o&&(v.setLayout("points",m),v.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var Ok={average:function(r){for(var e=0,t=0,i=0;i<r.length;i++)isNaN(r[i])||(e+=r[i],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},Pk=function(r){return Math.round(r.length/2)};function Zl(r){return{seriesType:r,reset:function(e,t,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;U(a)?v=Ok[a]:Z(a)&&(v=a),v&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,Pk))}}}}}function jm(r){r.registerChartView(nC),r.registerSeriesModel(Hw),r.registerLayout(Ha("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Zl("line"))}var Rk=(function(r){L(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(Ew),aC=Rk;var Nk=null;function Ga(){return Nk}var oC="expandAxisBreak";var Pn=Math.PI,kk=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Bk=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Rn=Q(),uC=Q(),$m=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[t]||(n[t]=[]);return a[i]||(a[i]={ready:{}})},r})();function zk(r,e,t,i){var n=t.axis,a=e.ensureRecord(t),o=[],s,l=tg(r.axisName)&&Dn(r.nameLocation);w(i,function(v){var d=zr(v);if(!(!d||d.label.ignore)){o.push(d);var m=a.transGroup;l&&(m.transform?Gr(Xl,m.transform):hi(Xl),d.transform&&Xi(Xl,Xl,d.transform),re.copy(xp,d.localRect),xp.applyTransform(Xl),s?s.union(xp):re.copy(s=new re(0,0,0,0),xp))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new re(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Xl=Mt(),xp=new re(0,0,0,0),Jm=function(r,e,t,i,n,a){if(Dn(r.nameLocation)){var o=a.stOccupiedRect;o&&fC(zw({},o,a.transGroup.transform),i,n)}else eg(a.labelInfoList,a.dirVec,i,n)};function fC(r,e,t){var i=new ue;vp(r,e,i,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&Uw(e,i)}function eg(r,e,t,i){for(var n=ue.dot(i,e)>=0,a=0,o=r.length;a<o;a++){var s=r[n?a:o-1-a];s.label.ignore||fC(s,t,i)}}var Ya=(function(){function r(e,t,i,n){this.group=new ye,this._axisModel=e,this._api=t,this._local={},this._shared=n||new $m(Jm),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(e){if(0)var t;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,i=t.getDefaultOption?t.getDefaultOption():{},n=F(e.axisName,t.get("name")),a=t.get("nameMoveOverlap");(a==null||a==="auto")&&(a=F(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:F(e.nameDirection,1),tickDirection:F(e.tickDirection,1),labelDirection:F(e.labelDirection,1),labelOffset:F(e.labelOffset,0),silent:F(e.silent,!0),axisName:n,nameLocation:Qt(t.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:tg(n)&&a,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new ye({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new ue(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w(Uk,function(n){e[n]&&Vk[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,t||{})}),this},r.innerTextLayout=function(e,t,i){var n=tv(t-e),a,o;return Vs(n)?(o=i>0?"top":"bottom",a="center"):Vs(n-Pn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Pn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),Uk=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Vk={axisLine:function(r,e,t,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(yt(c,c,f),yt(p,p,f));var v=P({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&ba(i.axis.scale))Ga().buildAxisBreakLine(i,n,a,d);else{var m=new nr(P({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));ga(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);U(g)&&(g=[g,g]),(U(y)||se(y))&&(y=[y,y]);var _=Na(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];w([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(b,T){if(g[T]!=="none"&&g[T]!=null){var A=vt(g[T],-x/2,-S/2,x,S,v.stroke,!0),C=b.r+b.offset,D=h?p:c;A.attr({rotation:b.rotate,x:D[0]+C*Math.cos(r.rotation),y:D[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),n.add(A)}})}}},axisTickLabelEstimate:function(r,e,t,i,n,a,o,s){if(0)var l;var u=lC(e,n,s);u&&sC(r,e,t,i,n,a,o,Xt.estimate)},axisTickLabelDetermine:function(r,e,t,i,n,a,o,s){if(0)var l;var u=lC(e,n,s);u&&sC(r,e,t,i,n,a,o,Xt.determine);var f=Yk(r,n,a,i);Gk(r,e.labelLayoutList,f),Wk(r,n,a,i,r.tickDirection)},axisName:function(r,e,t,i,n,a,o,s){var l=t.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=r.axisName;if(tg(f)){var c=r.nameLocation,p=r.nameDirection,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new ue(0,0),y=new ue(0,0);c==="start"?(g.x=d[0]-m*v,y.x=-m):c==="end"?(g.x=d[1]+m*v,y.x=m):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+p*v,y.y=p);var _=Mt();y.transform(io(_,_,r.rotation));var x=i.get("nameRotate");x!=null&&(x=x*Pn/180);var S,b;Dn(c)?S=Ya.innerTextLayout(r.rotation,x??r.rotation,p):(S=Fk(r.rotation,c,x||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var T=h.getFont(),A=i.get("nameTruncate",!0)||{},C=A.ellipsis,D=jt(r.raw.nameTruncateMaxWidth,A.maxWidth,b),E=s.nameMarginLevel||0,I=new De({x:g.x,y:g.y,rotation:S.rotation,silent:Ya.isLabelSilent(i),style:Ht(h,{text:f,font:T,overflow:"truncate",width:D,ellipsis:C,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Bo({el:I,componentModel:i,itemName:f}),I.__fullText=f,I.anid="name",i.get("triggerEvent")){var M=Ya.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,le(I).eventData=M}a.add(I),I.updateTransform(),e.nameEl=I;var O=l.nameLayout=zr({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:Dn(c)?kk[E]:Bk[E]});if(l.nameLocation=c,n.add(I),I.decomposeTransform(),r.shouldNameMoveOverlap&&O){var R=t.ensureRecord(i);t.resolveAxisNameOverlap(r,t,i,O,y,R)}}}};function sC(r,e,t,i,n,a,o,s){pC(e)||Zk(r,e,n,s,i,o);var l=e.labelLayoutList;Xk(r,i,l,a),jk(i,r.rotation,l);var u=r.optionHideOverlap;Hk(i,l,u),u&&Fw(Me(l,function(f){return f&&!f.label.ignore})),zk(r,t,i,l)}function Fk(r,e,t,i){var n=tv(t-r),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return Vs(n-Pn/2)?(o=l?"bottom":"top",a="center"):Vs(n-Pn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<Pn*1.5&&n>Pn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function Hk(r,e,t){var i=r.axis,n=r.get(["axisLabel","customValues"]);if(W1(i))return;function a(u,f,c){var p=zr(e[f]),h=zr(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!t&&n)return;var d=Rn(p.label).labelInfo.tick;if(si(v)&&d.notNice||qe(v)&&d.offInterval){ps(p.label);return}}if(u===!1||p.suggestIgnore){ps(p.label);return}if(h.suggestIgnore){ps(h.label);return}var m=.1;if(!t){var g=[0,0,0,0];p=Ym({marginForce:g},p),h=Ym({marginForce:g},h)}vp(p,h,null,{touchThreshold:m})&&ps(u?h.label:p.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function Gk(r,e,t){r.showMinorTicks||w(e,function(i){if(i&&i.label.ignore)for(var n=0;n<t.length;n++){var a=t[n],o=uC(a),s=Rn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){ps(a);return}}})}function ps(r){r&&(r.ignore=!0)}function cC(r,e,t,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(yt(o,o,e),yt(s,s,e));var f=new nr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ga(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f);var c=uC(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return a}function Yk(r,e,t,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=n.getTicksCoords(),f=cC(u,t.transform,l,ie(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function Wk(r,e,t,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!r.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ie(l.getLineStyle(),ie(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=cC(s[c],t.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function lC(r,e,t){if(pC(r)){var i=r.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(t.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(r.labelGroup),Qm(r,null,null,null))}return!0}function Zk(r,e,t,i,n,a){var o=n.axis,s=jt(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new ye;t.add(l);var u=us(i);if(!s||o.scale.isBlank()){Qm(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(jt(r.raw.labelRotate,f.get("rotate"))||0)*Pn/180,h=Ya.innerTextLayout(r.rotation,p,r.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;w(c,function(x,S){var b,T=x.tick,A=x.formattedLabel,C=x.rawLabel,D=f,E=Ni(o.scale,T);if(v&&v[E]){var I=v[E];W(I)&&I.textStyle&&(D=new Oe(I.textStyle,f,n.ecModel))}var M=D.getTextColor()||n.get(["axisLine","lineStyle","color"]),O=D.getShallow("align",!0)||h.textAlign,R=F(D.getShallow("alignMinLabel",!0),O),k=F(D.getShallow("alignMaxLabel",!0),O),G=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||h.textVerticalAlign,B=F(D.getShallow("verticalAlignMinLabel",!0),G),Y=F(D.getShallow("verticalAlignMaxLabel",!0),G),q=10+(((b=T.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,q),y=Math.max(y,q);var K=new De({x:0,y:0,rotation:0,silent:Ya.isLabelSilent(n),z2:q,style:Ht(D,{text:A,align:S===0?R:S===c.length-1?k:O,verticalAlign:S===0?B:S===c.length-1?Y:G,fill:Z(M)?M(o.type==="category"?C:o.type==="value"?E+"":E,S):M})});K.anid="label_"+E;var J=Rn(K);if(J.labelInfo=x,J.layoutRotation=h.rotation,Bo({el:K,componentModel:n,itemName:A,formatterParamsExtra:{isTruncated:function(){return K.isTruncated},value:C,tickIndex:S}}),m){var te=Ya.makeAxisEventDataBase(n);te.targetType="axisLabel",te.value=C,te.tickIndex=S;var j=x.tick.break;if(j){var ge=j.parsedBreak;te.break={start:ge.vmin,end:ge.vmax}}o.type==="category"&&(te.dataIndex=E),le(K).eventData=te,j&&Kk(n,a,K,j)}d.push(K),l.add(K)});var _=z(d,function(x){return{label:x,priority:Rn(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});Qm(e,_,l,u)}function pC(r){return!!r.labelLayoutList}function Qm(r,e,t,i){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=i}function Xk(r,e,t,i){var n=e.get(["axisLabel","margin"]);w(t,function(a,o){var s=zr(a);if(s){var l=s.label,u=Rn(l);s.suggestIgnore=l.ignore,l.ignore=!1,po(Bi,qk);var f=e.axis;Bi.x=f.dataToCoord(Ni(f.scale,u.labelInfo.tick)),Bi.y=r.labelOffset+r.labelDirection*n,Bi.rotation=u.layoutRotation,i.add(Bi),Bi.updateTransform(),i.remove(Bi),Bi.decomposeTransform(),po(l,Bi),l.markRedraw(),Yl(s,!0),zr(s)}})}var Bi=new xe,qk=new xe;function tg(r){return!!r}function Kk(r,e,t,i){t.on("click",function(n){var a={type:oC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(a)})}function jk(r,e,t){var i=Fe();if(i){var n=i.retrieveAxisBreakPairs(t,function(o){return o&&Rn(o.label).labelInfo.tick.break},!0),a=r.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&w(n,function(o){Ga().adjustBreakLabelPair(r.axis.inverse,e,[zr(t[o[0]]),zr(t[o[1]])])})}}var Sp=Ya;function ql(r,e,t){t=t||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),jt(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function hC(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function vC(r){var e={xAxisModel:null,yAxisModel:null};return w(e,function(t,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,We).models[0];e[i]=a}),e}function dC(r,e,t,i,n,a){for(var o=ql(r,t),s=!1,l=!1,u=0;u<e.length;u++)qc(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Sp(t,i,o,n)}function mC(r,e,t){var i=ql(e,t);if(0)var n;r.updateCfg(i)}function gC(){iw("liPosMinGap",$k)}function $k(r,e,t){var i=V(),n=t.serUids,a=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=gc(f);function p(_){lp(r,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&_(b,x,S.getStore())})}var h=0;if(p(function(_,x,S){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),h+=S.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}_p(Wa,h);var v=0;p(function(_,x,S){for(var b=0,T=S.count();b<T;++b){var A=S.get(_,b);isFinite(A)&&(!f||yc(c,A))&&(u&&(A=l.transformIn(A,null)),Wa.arr[v++]=A)}});var d=Wa.typed?Wa.arr.subarray(0,v):(Wa.arr.length=v,Wa.arr);Wa.typed?d.sort():xt(d);for(var m=1/0,g=1;g<v;++g){var y=d[g]-d[g-1];y>0&&y<m&&(m=y)}t.liPosMinGap=e.liPosMinGap=tt(m)?m:v>0?sp:K1,t.serUids=i}var Wa=_p({ctor:Zw},50);function yC(r){return function(e,t){var i=Br(e,{fromStat:{key:r}});if(tt(i.w2))return[-i.w2/2,i.w2/2]}}function Kl(r,e){return r+op+e}function _C(r){return gC(),{liPosMinGap:!qe(r.scale)}}var zi="bar";function xC(r,e,t,i){aw(r,{key:e,seriesType:t,coordSysType:i,getMetrics:_C})}function SC(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var rg={left:0,right:0,top:0,bottom:0},jl=["25%","25%"],Tr="cartesian2d",Jk=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,i){var n=_r(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&or(t.outerBounds,n)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&or(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:rg,outerBoundsContain:"all",outerBoundsClampWidth:jl[0],outerBoundsClampHeight:jl[1],backgroundColor:H.color.transparent,borderWidth:1,borderColor:H.color.neutral30},e})(be),bC=Jk;var e2=bo(),t2="__ec_stack_";function TC(r){return r.get("stack")||t2+r.seriesIndex}function r2(r,e){var t=i2(r,e);return t.columnMap=n2(t),t}function i2(r,e){var t=Kl(e,Tr),i=[],n=Br(r,{fromStat:{key:t},min:1});return Nm(r,t,function(a){i.push({barWidth:_e(a.get("barWidth"),n.w),barMaxWidth:_e(a.get("barMaxWidth"),n.w),barMinWidth:_e(a.get("barMinWidth")||(AC(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:TC(a)})}),{bandWidthResult:n,seriesInfo:i}}function n2(r){var e=r.bandWidthResult.w,t=e,i=0,n,a,o=[],s={};w(r.seriesInfo,function(d,m){m||(a=d.defaultBarGap||0);var g=d.stackId;Ce(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=d.barWidth;_&&!y.width&&(y.width=_,_=ke(t,_),t-=_);var x=d.barMaxWidth;x&&(y.maxWidth=x);var S=d.barMinWidth;S&&(y.minWidth=S);var b=d.barGap;b!=null&&(a=b);var T=d.barCategoryGap;T!=null&&(n=T)}),n==null&&(n=de(35-o.length*4,15)+"%");var l=_e(n,e),u=_e(a,1),f=(t-l)/(i+(i-1)*u);f=de(f,0),w(o,function(d){var m=s[d],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=ke(_,g)),y&&(_=de(_,y)),m.width=_,t-=_+u*_,i--}else{var _=f;g&&g<_&&(_=ke(g,t)),y&&y>_&&(_=y),_!==f&&(m.width=_,t-=_+u*_,i--)}}),f=(t-l)/(i+(i-1)*u),f=de(f,0);var c=0,p;w(o,function(d){var m=s[d];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},v=-c/2;return w(o,function(d){var m=s[d];h[d]=h[d]||{bandWidth:e,offset:v,width:m.width},v+=m.width*(1+u)}),h}function wC(r){return{seriesType:r,overallReset:function(e){var t=Kl(r,Tr);rw(e,t,function(i){var n=r2(i,r);Nm(i,t,function(a){var o=n.columnMap[TC(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function CC(r){return{seriesType:r,plan:La(),reset:function(e){if(hC(e)){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),c=Nr(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(SC(a))),v=AC(e),d=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=v&&ur(S*3),T=v&&l&&ur(S*3),A=v&&ur(S),C=i.master.getRect(),D=p?C.width:C.height,E,I=x.getStore(),M=0;(E=_.next())!=null;){var O=I.get(c?m:o,E),R=I.get(s,E),k=h,G=void 0;c&&(G=+O-I.get(o,E));var B=void 0,Y=void 0,q=void 0,K=void 0;if(p){var J=i.dataToPoint([O,R]);c&&(k=i.dataToPoint([G,R])[0]),B=k,Y=J[1]+y,q=J[0]-k,K=g,Ie(q)<d&&(q=(q<0?-1:1)*d)}else{var J=i.dataToPoint([R,O]);c&&(k=i.dataToPoint([R,G])[1]),B=J[0]+y,Y=k,q=g,K=J[1]-k,Ie(K)<d&&(K=(K<=0?-1:1)*d)}v?(b[M]=B,b[M+1]=Y,b[M+2]=p?q:K,T&&(T[M]=p?C.x:B,T[M+1]=p?Y:C.y,T[M+2]=D),A[E]=E):x.setItemLayout(E,{x:B,y:Y,width:q,height:K}),M+=3}v&&x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:T,valueAxisHorizontal:p})}}}}}}function AC(r){return r.pipelineContext&&r.pipelineContext.large}function a2(r){return yC(Kl(r,Tr))}function DC(r){e2(r,function(){function e(t){var i=Kl(t,Tr);xC(r,i,t,Tr),vw(i,a2(t))}e("bar"),e("pictorialBar")})}var EC=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return An(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(n)w(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),d=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d&&(m+=1),v.length<2)return;if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<v.length;S++){var b=v[S].coord,T=S===v.length-1?v[S-1].tickValue+x:v[S].tickValue;if(T===m){_=b;break}else if(T<m)y=b;else if(y!=null&&T>m){_=(b+y)/2;break}S===1&&(x=T-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Pt);Pt.registerClass(EC);var ig=EC;var o2=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return An(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,i){var n=tf(this,t,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,i,n){return n.rect(i.getItemLayout(t))},e.type="series."+zi,e.dependencies=["grid","polar"],e.defaultOption=dn(ig.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}),e})(ig),MC=o2;var s2=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),l2=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new s2},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,p=i.clockwise,h=Math.PI*2,v=p?c-f<h:f-c<h;v||(f=c-(p?h:-h));var d=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);v?(t.moveTo(d*o+n,m*o+a),t.arc(d*u+n,m*u+a,l,-Math.PI+f,f,!p)):t.moveTo(d*s+n,m*s+a),t.arc(n,a,s,f,c,!p),t.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&t.arc(n,a,o,c,f,p)},e})(oe),ng=l2;function IC(r,e){e=e||{};var t=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return ea(i,n,a);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,v=(p+h)/2,d=u.startAngle,m=u.endAngle,g=(d+m)/2,y=t?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,S=f+p*_(d),b=c+p*x(d),T="left",A="top";switch(s){case"startArc":S=f+(h-l)*_(g),b=c+(h-l)*x(g),T="center",A="top";break;case"insideStartArc":S=f+(h+l)*_(g),b=c+(h+l)*x(g),T="center",A="bottom";break;case"startAngle":S=f+v*_(d)+bp(d,l+y,!1),b=c+v*x(d)+Tp(d,l+y,!1),T="right",A="middle";break;case"insideStartAngle":S=f+v*_(d)+bp(d,-l+y,!1),b=c+v*x(d)+Tp(d,-l+y,!1),T="left",A="middle";break;case"middle":S=f+v*_(g),b=c+v*x(g),T="center",A="middle";break;case"endArc":S=f+(p+l)*_(g),b=c+(p+l)*x(g),T="center",A="bottom";break;case"insideEndArc":S=f+(p-l)*_(g),b=c+(p-l)*x(g),T="center",A="top";break;case"endAngle":S=f+v*_(m)+bp(m,l+y,!0),b=c+v*x(m)+Tp(m,l+y,!0),T="left",A="middle";break;case"insideEndAngle":S=f+v*_(m)+bp(m,-l+y,!0),b=c+v*x(m)+Tp(m,-l+y,!0),T="right",A="middle";break;default:return ea(i,n,a)}return i=i||{},i.x=S,i.y=b,i.align=T,i.verticalAlign=A,i}}function LC(r,e,t,i){if(se(i)){r.setTextConfig({rotation:i});return}else if(N(e)){r.setTextConfig({rotation:0});return}var n=r.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function bp(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Tp(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Za(r,e,t){var i=r.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;N(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:z(i,function(a){return Ar(a,n)})}}var ag=Math.max,og=Math.min,u2=(function(r){L(e,r);function e(){var t=r.call(this)||this;return t.type=zi,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,n,a){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,n):this._renderNormal(t,i,n,a))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){Di(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,n,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=t.isAnimationEnabled()?t:null,h=f2(t,u);h&&this._enableRealtimeSort(h,s,n);var v=t.get("clip",!0)||h,d=u.getArea();o.removeClipPath();var m=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function A(E){var I=wp[u.type](s,E);if(!I)return null;var M=g2(u,c,I);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[E]=M,M}s.diff(l).add(function(E){var I=s.getItemModel(E),M=wp[u.type](s,E,I);if(M&&(g&&A(E),!(!s.hasValue(E)||!kC[u.type](M)))){var O=!1;v&&(O=OC[u.type](d,M));var R=PC[u.type](t,s,E,M,c,p,f.model,!1,m);h&&(R.forceLabelAnimation=!0),BC(R,s,E,I,M,t,c,u.type==="polar"),b?R.attr({shape:M}):h?RC(h,p,R,M,E,c,!1,!1):rt(R,{shape:M},t,E),s.setItemGraphicEl(E,R),o.add(R),R.ignore=O}}).update(function(E,I){var M=s.getItemModel(E),O=wp[u.type](s,E,M);if(O){if(g){var R=void 0;S.length===0?R=A(I):(R=S[I],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),x[E]=R);var k=wp[u.type](s,E),G=HC(c,k,u);Le(R,{shape:G},p,E)}var B=l.getItemGraphicEl(I);if(!s.hasValue(E)||!kC[u.type](O)){o.remove(B);return}var Y=!1;v&&(Y=OC[u.type](d,O),Y&&o.remove(B));var q=B&&(B.type==="sector"&&m||B.type==="sausage"&&!m);if(q&&(B&&pn(B,t,I),B=null),B?No(B):B=PC[u.type](t,s,E,O,c,p,f.model,!0,m),h&&(B.forceLabelAnimation=!0),T){var K=B.getTextContent();if(K){var J=Uo(K);J.prevValue!=null&&(J.prevValue=J.value)}}else BC(B,s,E,M,O,t,c,u.type==="polar");b?B.attr({shape:O}):h?RC(h,p,B,O,E,c,!0,T):Le(B,{shape:O},t,E,null),s.setItemGraphicEl(E,B),B.ignore=Y,o.add(B)}}).remove(function(E){var I=l.getItemGraphicEl(E);I&&pn(I,t,E)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ye);C.removeAll();for(var D=0;D<x.length;++D)C.add(x[D]);o.add(C),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(t,i,n){this._clear(),UC(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),UC(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&jw(t.coordinateSystem,!1,t),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,n){var a=this;if(i.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,n){var a=[];return t.each(t.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,n){for(var a=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(t.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,n,a){if(this._isOrderChangedWithinSameData(t,i,n)){var o=this._dataSort(t,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,n){var a=i.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){pn(a,t,le(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=zi,e})(bt),OC={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,a=r.y+r.height,o=ag(e.x,r.x),s=og(e.x+e.width,n),l=ag(e.y,r.y),u=og(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var n=og(e.r,r.r),a=ag(e.r0,r.r0);e.r=n,e.r0=a;var o=n-a<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},PC={cartesian2d:function(r,e,t,i,n,a,o,s,l){var u=new xe({shape:P({},i),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,e,t,i,n,a,o,s,l){var u=!n&&l?ng:Lr,f=new u({shape:i,z2:1});f.name="item";var c=FC(n);if(f.calculateTextPosition=IC(c,{isRoundCap:u===ng}),a){var p=f.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?Le:rt)(f,{shape:v},a)}return f}};function f2(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function RC(r,e,t,i,n,a,o,s){var l,u;a?(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||(o?Le:rt)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Le:rt)(t,{shape:u},f,n)}function NC(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var c2=["x","y","width","height"],p2=["cx","cy","r","startAngle","endAngle"],kC={cartesian2d:function(r){return!NC(r,c2)},polar:function(r){return!NC(r,p2)}},wp={cartesian2d:function(r,e,t){var i=r.getItemLayout(e);if(!i)return null;var n=t?v2(t,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,e,t){var i=r.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function h2(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function FC(r){return(function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}})(r)}function BC(r,e,t,i,n,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,c=Za(i.getModel("itemStyle"),f,!0);P(f,c),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var p=i.getShallow("cursor");p&&r.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?y2(n,a.coordinateSystem):_2(n,a.coordinateSystem),v=Ct(i);Gt(r,v,{labelFetcher:a,labelDataIndex:t,defaultText:fs(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,LC(r,m==="outside"?h:m,FC(o),i.get(["label","rotate"]))}mS(d,v,a.getRawValue(t),function(y){return dp(e,y)});var g=i.getModel(["emphasis"]);ir(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),Ci(r,i),h2(n)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function v2(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var d2=(function(){function r(){}return r})(),zC=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new d2},e.prototype.buildPath=function(t,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(oe);function UC(r,e,t,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?ef(r):0;if(u){var c=new zC({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var p=new zC({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,le(p).seriesIndex=r.seriesIndex,r.get("silent")||(p.on("mousedown",VC),p.on("mousemove",VC)),t&&t.push(p)}var VC=Sl(function(r){var e=this,t=m2(e,r.offsetX,r.offsetY);le(e).dataIndex=t>=0?t:null},30,!1);function m2(r,e,t){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function HC(r,e,t){if(ki(t,"cartesian2d")){var i=e,n=t.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=t.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function g2(r,e,t){var i=r.type==="polar"?Lr:xe;return new i({shape:HC(e,t,r),silent:!0,z2:0})}function y2(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function _2(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}var GC=u2;function sg(r){r.registerChartView(GC),r.registerSeriesModel(MC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,wC(zi)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,CC(zi)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Zl(zi)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),DC(r)}function lg(r){return{seriesType:r,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=e.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function ug(r,e,t){e=N(e)&&{coordDimensions:e}||P({encodeDefine:r.getEncode()},e);var i=r.getSource(),n=Bl(i,e).dimensions,a=new lr(n,r);return a.initData(i,t),a}var x2=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r})(),YC=x2;var Ur="pie",S2=Q(),WC=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new YC($(this.getData,this),$(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ug(this,{coordDimensions:["value"],encodeDefaulter:ce(ZS,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),n=S2(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=$_(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ra(t,"labelLine",["show"]);var i=t.labelLine,n=t.emphasis.labelLine;i.show=i.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series."+Ur,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Pt);kS({fullType:WC.type,getCoord2:function(r){return r.getShallow("center")}});var ZC=WC;var b2=Math.PI/180;function XC(r,e,t,i,n,a,o,s,l,u){if(r.length<2)return;function f(d){for(var m=d.rB,g=m*m,y=0;y<d.list.length;y++){var _=d.list[y],x=Math.abs(_.label.y-t),S=i+_.len,b=S*S,T=Math.sqrt(Math.abs((1-x*x/g)*b)),A=e+(T+_.len2)*n,C=A-_.label.x,D=_.targetTextWidth-C*n;KC(_,D,!0),_.label.x=A}}function c(d){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<d.length;y++)if(d[y].labelAlignTo==="none"){var _=d[y],x=_.label.y>t?g:m,S=Math.abs(_.label.y-t);if(S>=x.maxY){var b=_.label.x-e-_.len2*n,T=i+_.len,A=Math.abs(b)<T?Math.sqrt(S*S/(1-b*b/T/T)):T;x.rB=A,x.maxY=S}x.list.push(_)}f(m),f(g)}for(var p=r.length,h=0;h<p;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var v=r[h].label.x-u;r[h].linePoints[1][0]+=v,r[h].label.x=u}Vw(r,1,l,l+o)&&c(r)}function T2(r,e,t,i,n,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<r.length;p++){var h=r[p].label;fg(r[p])||(h.x<e?(f=Math.min(f,h.x),l.push(r[p])):(c=Math.max(c,h.x),u.push(r[p])))}for(var p=0;p<r.length;p++){var v=r[p];if(!fg(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,d=v.linePoints,m=void 0;v.labelAlignTo==="edge"?h.x<e?m=d[2][0]-v.labelDistance-o-v.edgeDistance:m=o+n-v.edgeDistance-d[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<e?m=f-o-v.bleedMargin:m=o+n-c-v.bleedMargin:h.x<e?m=h.x-o-v.bleedMargin:m=o+n-h.x-v.bleedMargin,v.targetTextWidth=m,KC(v,m,!1)}}XC(u,e,t,i,1,n,a,o,s,c),XC(l,e,t,i,-1,n,a,o,s,f);for(var p=0;p<r.length;p++){var v=r[p];if(!fg(v)&&v.linePoints){var h=v.label,d=v.linePoints,g=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:_,S=v.rect.width+x,b=d[1][0]-d[2][0];g?h.x<e?d[2][0]=o+v.edgeDistance+S+v.labelDistance:d[2][0]=o+n-v.edgeDistance-S-v.labelDistance:(h.x<e?d[2][0]=h.x+v.labelDistance:d[2][0]=h.x-v.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=h.y}}}function KC(r,e,t){if(r.labelStyleWidth==null){var i=r.label,n=i.style,a=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var p=e-l,h=e<f?p:t?p>r.unconstrainedWidth?null:p:null;i.setStyle("width",h)}jC(a,i)}}}function jC(r,e){qC.rect=r,Gm(qC,e,w2)}var w2={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},qC={};function fg(r){return r.position==="center"}function cg(r){var e=r.getData(),t=[],i,n,a=!1,o=(r.get("minShowLabelAngle")||0)*b2,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,p=s.height;function h(b){b.ignore=!0}function v(b){if(!b.ignore)return!0;for(var T in b.states)if(b.states[T].ignore===!1)return!0;return!1}e.each(function(b){var T=e.getItemGraphicEl(b),A=T.shape,C=T.getTextContent(),D=T.getTextGuideLine(),E=e.getItemModel(b),I=E.getModel("label"),M=I.get("position")||E.get(["emphasis","label","position"]),O=I.get("distanceToLabelLine"),R=I.get("alignTo"),k=_e(I.get("edgeDistance"),u),G=I.get("bleedMargin");G==null&&(G=Math.min(u,p)>200?10:2);var B=E.getModel("labelLine"),Y=B.get("length");Y=_e(Y,u);var q=B.get("length2");if(q=_e(q,u),Math.abs(A.endAngle-A.startAngle)<o){w(C.states,h),C.ignore=!0,D&&(w(D.states,h),D.ignore=!0);return}if(v(C)){var K=(A.startAngle+A.endAngle)/2,J=Math.cos(K),te=Math.sin(K),j,ge,Te,Je;i=A.cx,n=A.cy;var ut=M==="inside"||M==="inner";if(M==="center")j=A.cx,ge=A.cy,Je="center";else{var Ee=(ut?(A.r+A.r0)/2*J:A.r*J)+i,Ve=(ut?(A.r+A.r0)/2*te:A.r*te)+n;if(j=Ee+J*3,ge=Ve+te*3,!ut){var pe=Ee+J*(Y+l-A.r),we=Ve+te*(Y+l-A.r),Vr=pe+(J<0?-1:1)*q,ft=we;R==="edge"?j=J<0?f+k:f+u-k:j=Vr+(J<0?-O:O),ge=ft,Te=[[Ee,Ve],[pe,we],[Vr,ft]]}Je=ut?"center":R==="edge"?J>0?"right":"left":J>0?"left":"right"}var Fi=Math.PI,fi=0,zn=I.get("rotate");if(se(zn))fi=zn*(Fi/180);else if(M==="center")fi=0;else if(zn==="radial"||zn===!0){var AE=J<0?-K+Fi:-K;fi=AE}else if(zn==="tangential"||zn==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var ja=Math.atan2(J,te);ja<0&&(ja=Fi*2+ja);var DE=te>0;DE&&zn!=="tangential-noflip"&&(ja=Fi+ja),fi=ja-Fi}if(a=!!fi,C.x=j,C.y=ge,C.rotation=fi,C.setStyle({verticalAlign:"middle"}),ut){C.setStyle({align:Je});var rh=C.states.select;rh&&(rh.x+=C.x,rh.y+=C.y)}else{var th=new re(0,0,0,0);jC(th,C),t.push({label:C,labelLine:D,position:M,len:Y,len2:q,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new ue(J,te),linePoints:Te,textAlign:Je,labelDistance:O,labelAlignTo:R,edgeDistance:k,bleedMargin:G,rect:th,unconstrainedWidth:th.width,labelStyleWidth:C.style.width})}T.setTextConfig({inside:ut})}}),!a&&r.get("avoidLabelOverlap")&&T2(t,i,n,l,u,p,f,c);for(var d=0;d<t.length;d++){var m=t[d],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(w(g.states,h),g.ignore=!0);var x=g.states.select;x&&(x.x+=g.x,x.y+=g.y)}if(y){var S=m.linePoints;_||!S?(w(y.states,h),y.ignore=!0):(Iw(S,m.minTurnAngle),Lw(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new ue(S[0][0],S[0][1])})}}}var QC=Math.PI*2,Cp=Math.PI/180,$C=d0(Ur,C2);function C2(r,e){r.eachSeriesByType(Ur,function(t){var i=t.getData(),n=i.mapDimension("value"),a=VS(t,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-t.get("startAngle")*Cp,p=t.get("endAngle"),h=t.get("padAngle")*Cp;p=p==="auto"?c-QC:-p*Cp;var v=t.get("minAngle")*Cp,d=v+h,m=0;i.each(n,function(k){!isNaN(k)&&m++});var g=i.getSum(n),y=Math.PI/(g||m)*2,_=t.get("clockwise"),x=t.get("roseType"),S=t.get("stillShowZeroSum"),b=i.getDataExtent(n);b[0]=0;var T=_?1:-1,A=[c,p],C=T*h/2;Iv(A,!_),c=A[0],p=A[1];var D=pg(t);D.startAngle=c,D.endAngle=p,D.clockwise=_,D.cx=o,D.cy=s,D.r=l,D.r0=u;var E=Math.abs(p-c),I=E,M=0,O=c;if(i.setLayout({viewRect:f,r:l}),i.each(n,function(k,G){var B;if(isNaN(k)){i.setItemLayout(G,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:x?NaN:l});return}x!=="area"?B=g===0&&S?y:k*y:B=E/m,B<d?(B=d,I-=d):M+=k;var Y=O+T*B,q=0,K=0;h>B?(q=O+T*B/2,K=q):(q=O+C,K=Y-C),i.setItemLayout(G,{angle:B,startAngle:q,endAngle:K,clockwise:_,cx:o,cy:s,r0:u,r:x?Be(k,b,[u,l]):l}),O=Y}),I<QC&&m)if(I<=.001){var R=E/m;i.each(n,function(k,G){if(!isNaN(k)){var B=i.getItemLayout(G);B.angle=R;var Y=0,q=0;R<h?(Y=c+T*(G+1/2)*R,q=Y):(Y=c+T*G*R+C,q=c+T*(G+1)*R-C),B.startAngle=Y,B.endAngle=q}})}else y=I/M,O=c,i.each(n,function(k,G){if(!isNaN(k)){var B=i.getItemLayout(G),Y=B.angle===d?d:k*y,q=0,K=0;Y<h?(q=O+T*Y/2,K=q):(q=O+C,K=O+T*Y-C),B.startAngle=q,B.endAngle=K,O+=T*Y}})})}var pg=Q();var A2=(function(r){L(e,r);function e(t,i,n){var a=r.call(this)||this;a.z2=2;var o=new De;return a.setTextContent(o),a.updateData(t,i,n,!0),a}return e.prototype.updateData=function(t,i,n,a){var o=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),f=t.getItemLayout(i),c=P(Za(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(rt(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):p==="scale"?(o.shape.r=f.r0,rt(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),rt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Le(o,{shape:{endAngle:f.endAngle}},s,i))}else No(o),Le(o,{shape:c},s,i);o.useStyle(t.getItemVisual(i,"style")),Ci(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),d=Math.cos(h)*v,m=Math.sin(h)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,i),o.ensureState("emphasis").shape=P({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Za(u.getModel("itemStyle"),f)),P(o.ensureState("select"),{x:d,y:m,shape:Za(l.getModel(["select","itemStyle"]),f)}),P(o.ensureState("blur"),{shape:Za(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&P(y.ensureState("select"),{x:d,y:m}),P(_.ensureState("select"),{x:d,y:m}),ir(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;Gt(a,Ct(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||i.getName(n)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ai,this.setTextGuideLine(h)),Ow(this,Pw(o),{stroke:u,opacity:Qt(s.get(["lineStyle","opacity"]),f,1)})}},e})(Lr),D2=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ur,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,n,a){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var p=pg(t),h=new Lr({shape:ee(p)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var d=new A2(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var m=s.getItemGraphicEl(d);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var d=s.getItemGraphicEl(v);pn(d,t,v)}).execute(),cg(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=Ur,e})(bt),JC=D2;function hg(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(se(o)&&!isNaN(o)&&o<0)})}}}function vg(r){r.registerChartView(JC),r.registerSeriesModel(ZC),sT(Ur,r.registerAction),r.registerLayout($C),r.registerProcessor(lg(Ur)),r.registerProcessor(hg(Ur))}var E2=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return An(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,n){return n.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:H.color.primary}},universalTransition:{divideShape:"clone"}},e})(Pt),eA=E2;var tA=4,M2=(function(){function r(){}return r})(),I2=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new M2},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<tA,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<n.length;){var p=n[c++],h=n[c++];isNaN(p)||isNaN(h)||f&&!f.contain(p,h)||(s.x=p-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,n=t.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,p=a[f+1]-l/2;if(t>=c&&i>=p&&t<=c+s&&i<=p+l)return u}return-1},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(t=n[0],i=n[1],a.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,p=0;p<n.length;){var h=n[p++],v=n[p++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(v,u),c=Math.max(v,c)}t=this._rect=new re(l-o/2,u-s/2,f-l+o,c-u+s)}return t},e})(oe),L2=(function(){function r(){this.group=new ye}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var i=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;i=new Float32Array(i.buffer,o,a)}n.setShape("points",i),n.reset(),n.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,i,n){var a=this._newAdded[0],o=t.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=i,f.setShape({points:o}),this._setCommon(f,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new I2({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,i){var n=t.hostModel;i=i||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=vt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<tA;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=le(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),rA=L2;var O2=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,dg(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,n){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,n){this._symbolDraw.incrementalUpdate(t,i.getData(),ef(i),dg(i)),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,n){var a=t.getData();if(this.group.dirty(),this._finished){var o=Ha("").reset(t,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(dg(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new rA:new cs,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(bt);function dg(r){return{clipShape:Qw(r)}}var iA=O2;var Ap=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",We).models[0]},e.type="cartesian2dAxis",e})(be);mt(Ap,q1);var nA={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"}},P2=fe({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},nA),mg=fe({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}}},nA),R2=fe({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},mg),N2=ie({logBase:10},mg),aA={category:P2,value:mg,time:R2,log:N2};function Dp(r,e,t,i){w(tp,function(n,a){var o=fe(fe({},aA[a],!0),i,!0),s=(function(l){L(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=gn(this),h=p?_r(f):{},v=c.getTheme();fe(f,v.get(a+"Axis")),fe(f,this.getDefaultOption()),f.type=oA(f),p&&or(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=zl.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Ga();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",oA)}function oA(r){return r.type||(r.data?"category":"value")}var k2=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Me(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),sA=k2;var Ql=["x","y"];function lA(r){return(r.type==="interval"||r.type==="time")&&!ba(r)}var B2=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Tr,t.dimensions=Ql,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!lA(t)||!lA(i))){var n=Ua(t,null),a=Ua(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,p,h];this._invTransform=Gr([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var n=this.dataToPoint(t),a=this.dataToPoint(i),o=this.getArea(),s=new re(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,n){n=n||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return yt(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(t,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(t[0]),u=a.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i,n){if(n=n||[],this._invTransform)return yt(n,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(t[0]),i),n[1]=o.coordToData(o.toLocalCoord(t[1]),i),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(i[0],i[1])-a+t,l=Math.max(n[0],n[1])-o+t;return new re(a,o,s,l)},e})(sA),uA=B2;function fA(r,e){var t=r.scale,i=r.model,n=fp(t,i,i.ecModel,r,null),a=li(t),o=li(e)?e.intervalStub:e,s=a?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=Ie(u[0].value-u[1].value),m=Ie(u[1].value-u[2].value);p=h=0,d===m?v=2:(v=1,d<m?p=d/m:h=m/d)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,v=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=t.getExtent(),b=s.getExtent(),T=jc(b,x),A,C,D,E,I,M;function O(J){for(var te=50,j=0;j<te&&!J();j++)D=a?D*de(l,2):w1(D),E=kr(D)}function R(){A=me(M-D*p,E)}function k(){C=me(I+D*h,E)}function G(){M=p?me(A+D*p,E):A}function B(){I=h?me(C-D*h,E):C}if(x[0]&&x[1]){A=T[0],C=T[1],D=(C-A)/(v+p+h);var Y=r.getExtent(),q=Ie(Y[1]-Y[0]);E=ju([C,A],q,.5/v),G(),B(),tt(E)&&(D=me(D,E))}else{var K=T[1]-T[0];D=a?de(Qu(K),1):ta(K/v,rv),E=kr(D),x[0]?(A=T[0],O(function(){if(G(),I=me(M+D*v,E),k(),C>=T[1])return!0})):x[1]?(C=T[1],O(function(){if(B(),M=me(I-D*v,E),R(),A<=T[0])return!0})):O(function(){M=me(Zr(T[0]/D)*D,E),I=me(hr(T[1]/D)*D,E);var J=er((I-M)/D);if(J<=v){var te=v-J,j=void 0,ge=n.incl0||a;if(ge&&T[0]===0)j=[0,te];else if(ge&&T[1]===0)j=[te,0];else{var Te=hr(te/2);j=te%2===0?[Te,Te]:A+C<T[0]+T[1]?[Te,Te+1]:[Te+1,Te]}if(M=me(M-D*j[0],E),I=me(I+D*j[1],E),R(),k(),A<=T[0]&&C>=T[1])return!0}})}np(t,x,b,[A,C],S,{interval:D,intervalCount:v,intervalPrecision:E,niceExtent:[M,I]})}var cA=[[3,1],[0,2]],z2=(function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ql,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;w(this._axesList,function(o){up(o,lw);var s=o.scale;qe(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=he(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Um(f)}w(l,function(c){V2(c,c.__alignTo)?Um(c):fA(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};w(i.x,function(o){pA(i,"y",o,a)}),w(i.y,function(o){pA(i,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var n=Mi(e,t),a=this._rect=Wt(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(gg(o,a),!i){var u=H2(a,s,o,l,t),f=void 0;if(l)mA?(mA(this._axesList,a),gg(o,a)):f=gA(a.clone(),"axisLabel",null,a,o,u,n);else{var c=G2(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;p&&(f=gA(p,h,v,a,o,u,n))}yA(a,o,Xt.determine,null,f,n),w(this._coordsList,function(d){d.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}W(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===t)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",We).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",We).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,ae(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,c){w(s.y,function(p,h){var v="x"+c+"y"+h,d=new uA(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),vA(s.x),vA(s.y);function u(f){return function(c,p){if(U2(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=V1(c),d=new aC(f,F1(c,v,!0),[0,0],v,h);d.onBand=ap(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],i=[];return w(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);ae(t,a)<0&&t.push(a),ae(i,o)<0&&i.push(o)}),{baseAxes:t,otherAxes:i}},r.create=function(e,t){var i=[];return e.eachComponent("grid",function(n,a){var o=new r(n,e,t);o.name="grid_"+a,o.resize(n,t,!0),n.coordinateSystem=o,i.push(o),w(o._axesList,function(s){pw(s,r.dimIdxMap)})}),e.eachSeries(function(n){var a,o;zS({targetModel:n,coordSysType:Tr,coordSysProvider:s});function s(){var l=vC(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Bm(a,n,Tr),Bm(o,n,Tr))},this),i},r.dimensions=Ql,r.dimIdxMap=Ol(Ql),r})();function U2(r,e){return r.getCoordSysModel()===e}function pA(r,e,t,i){t.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)hA(s,n[l])&&(a=n[l]);else for(var u in n)if(Ce(n,u)&&hA(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function hA(r,e){if(!e)return!1;var t=e.scale,i=H1(t,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==rp;return n&&r==="auto"&&Y1(e)&&(n=!1),n}function vA(r){for(var e=he(r),t,i=[],n=e.length-1;n>=0;n--){var a=r[+e[n]];qc(a.scale)&&Om(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):t=a)}t||(t=i.pop()),t&&w(i,function(o){o.__alignTo=t})}function V2(r,e){return ba(r.scale)||ba(e.scale)||e.scale.getTicks().length<2}function F2(r,e){var t=r.getExtent(),i=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return i-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function gg(r,e){w(r.x,function(t){return dA(t,e.x,e.width)}),w(r.y,function(t){return dA(t,e.y,e.height)})}function dA(r,e,t){var i=[0,t],n=r.inverse?1:0;r.setExtent(i[n],i[1-n]),F2(r,e)}var mA;function gA(r,e,t,i,n,a,o){yA(i,n,Xt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Ey(s,function(p){return p>0})==null;return ko(i,s,!0,!0,t),gg(n,i),l;function u(p){w(n[ni[p]],function(h){if(Fa(h.model)){var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=h.scale.normalize(Ni(h.scale,Rn(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=Dn(v.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,v){var d=r[ni[h]]-p[ni[h]],m=p[hn[h]]+p[ni[h]]-(r[hn[h]]+r[ni[h]]);d=c(d,1-v),m=c(m,v);var g=cA[h][0],y=cA[h][1];s[g]=de(s[g],d),s[y]=de(s[y],m)}function c(p,h){return p>0&&!Yi(h)&&h>1e-4&&(p/=h),p}}function H2(r,e,t,i,n){var a=new $m(Y2);return w(t,function(o){return w(o,function(s){if(Fa(s.model)){var l=!i;s.axisBuilder=dC(r,e,s.model,n,a,l)}})}),a}function yA(r,e,t,i,n,a){var o=t===Xt.determine;w(e,function(u){return w(u,function(f){Fa(f.model)&&(mC(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ni[1-u]]=r[hn[u]]<=a.refContainer[hn[u]]*.5?0:1-u===1?2:1}w(e,function(u,f){return w(u,function(c){Fa(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function G2(r,e,t){var i,n=r.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=Wt(r.get("outerBounds",!0)||rg,t.refContainer));var a=r.get("outerBoundsContain",!0),o;a==null||a==="auto"||ae(["all","axisLabel"],a)<0?o="all":o=a;var s=[Ku(F(r.get("outerBoundsClampWidth",!0),jl[0]),e.width),Ku(F(r.get("outerBoundsClampHeight",!0),jl[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Y2=function(r,e,t,i,n,a){var o=t.axis.dim==="x"?"y":"x";Jm(r,e,t,i,n,a),Dn(r.nameLocation)||w(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&eg(s.labelInfoList,s.dirVec,i,n)})},_A=z2;function xA(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return W2(t,r,e),t.seriesInvolved&&X2(t,r),t}function W2(r,e,t){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];w(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=hs(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(w(s.getAxes(),ce(d,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&w(v.baseAxes,ce(d,h?"cross":!0,p)),h&&w(v.otherAxes,ce(d,"cross",!1))}function d(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!m&&!_g(_))){g==null&&(g=_.get("triggerTooltip")),_=m?Z2(y,c,n,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),T=hs(y.model),A=g||S||y.type==="category",C=r.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:A,snap:S,useHandle:_g(_),seriesModels:[],linkGroup:null};u[T]=C,r.seriesInvolved=r.seriesInvolved||A;var D=q2(a,y);if(D!=null){var E=o[D]||(o[D]={axesInfo:{}});E.axesInfo[T]=C,E.mapper=a[D].mapper,C.linkGroup=E}}}})}function Z2(r,e,t,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(p){l[p]=ee(o.get(p))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&ie(u,c.textStyle)}}return r.model.getModel("axisPointer",new Oe(l,t,i))}function X2(r,e){e.eachSeries(function(t){var i=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[hs(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function q2(r,e){for(var t=e.model,i=e.dim,n=0;n<r.length;n++){var a=r[n]||{};if(yg(a[i+"AxisId"],t.id)||yg(a[i+"AxisIndex"],t.componentIndex)||yg(a[i+"AxisName"],t.name))return n}}function yg(r,e){return r==="all"||N(r)&&ae(r,e)>=0||r===e}function SA(r){var e=Ep(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,n=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=_g(t);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function Ep(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[hs(r)]}function bA(r){var e=Ep(r);return e&&e.axisPointerModel}function _g(r){return!!r.get(["handle","show"])}function hs(r){return r.type+"||"+r.id}var TA={},K2=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this.axisPointerClass&&SA(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,i,n,a){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=bA(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){TA[t]=i},e.getAxisPointerClass=function(t){return t&&TA[t]},e.type="axis",e})(He),Mp=K2;var Sg=Q();function wA(r,e,t,i){var n=t.axis;if(!n.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Sg(r).splitAreaColors,p=V(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=N(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,b=void 0;n.isHorizontal()?(_=m,x=l.y,S=y-_,b=l.height,m=_+S):(_=l.x,x=m,S=l.width,b=y-x,m=x+b);var T=u[v-1].tickValue;T!=null&&p.set(T,h),e.add(new xe({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:S,height:b},style:ie({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}Sg(r).splitAreaColors=p}}}function CA(r){Sg(r).splitAreaColors=null}var j2=["splitArea","splitLine","minorSplitLine","breakArea"],AA=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ye,this.group.add(this._axisGroup),!!Fa(t)){this._axisGroup.add(t.axis.axisBuilder.group),w(j2,function(l){t.get([l,"show"])&&Q2[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||fd(o,this._axisGroup,t),r.prototype.render.call(this,t,i,n,a)}},e.prototype.remove=function(){CA(this)},e.type="cartesianAxis",e})(Mp),Q2={splitLine:function(r,e,t,i,n){var a=t.axis;if(!a.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=N(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var x=v[y].tickValue;p?(d[0]=_,d[1]=c.y,m[0]=_,m[1]=c.y+c.height):(d[0]=c.x,d[1]=_,m[0]=c.x+c.width,m[1]=_);var S=h++%l.length,b=new nr({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:ie({stroke:l[S]},g),silent:!0});ga(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(r,e,t,i,n){var a=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var m=a.toGlobalCoord(f[v][d].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new nr({anid:"minor_line_"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});ga(g.shape,h.lineWidth),e.add(g)}},splitArea:function(r,e,t,i,n){wA(r,e,t,i)},breakArea:function(r,e,t,i,n){var a=Ga(),o=t.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,r,t,i.coordinateSystem.getRect(),n)}},bg=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(AA);var DA=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=bg.type,t}return e.type="yAxis",e})(AA);var $2=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new xe({shape:t.coordinateSystem.getRect(),style:ie({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(He),EA={offset:0};function Ip(r){r.registerComponentView($2),r.registerComponentModel(bC),r.registerCoordinateSystem("cartesian2d",_A),Dp(r,"x",Ap,EA),Dp(r,"y",Ap,EA),r.registerComponentView(bg),r.registerComponentView(DA),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Tg(r){lt(Ip),r.registerSeriesModel(eA),r.registerChartView(iA),r.registerLayout(Ha("scatter"))}var J2=Q();function wg(r,e){return!!J2(r)[e]}Pi({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ne);var tB={axisPointer:1,tooltip:1,brush:1};function MA(r,e,t){var i=e.getComponentByElement(r.topTarget);if(!i||i===t||tB.hasOwnProperty(i.mainType))return!1;var n=i.coordinateSystem;if(!n||n.model===t)return!1;var a=ai(i),o=ai(t);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var rB=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i._zr=t;var n=$(i._mousedownHandler,i),a=$(i._mousemoveHandler,i),o=$(i._mouseupHandler,i),s=$(i._mousewheelHandler,i),l=$(i._pinchHandler,i);return i.enable=function(u,f){var c=f.zInfo,p=ai(c.component),h=p.z,v=p.zlevel,d={component:c.component,z:h,zlevel:v,z2:F(c.z2,-1/0)},m=P({},f.triggerInfo);this._opt=ie(P({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:m,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(Jl(t,"mousedown",n,d),Jl(t,"mousemove",a,d),Jl(t,"mouseup",o,d)),(u===!0||u==="scale"||u==="zoom")&&(Jl(t,"mousewheel",s,d),Jl(t,"pinch",l,d)))},i.disable=function(){this._enabled&&(this._enabled=!1,eu(t,"mousedown",n),eu(t,"mousemove",a),eu(t,"mouseup",o),eu(t,"mousewheel",s),eu(t,"pinch",l))},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,i,n){var a=this._opt,o=a.zInfoParsed;if(MA(t,a.api,o.component))return!1;var s=a.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,i,n)),u&&s.isInClip&&!s.isInClip(t,i,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,i,n,a){var o=t.target;if(!o&&this._checkPointer(t,i,n))return this._opt.cursorGrab;if(a)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(hh(t)||$l(t))){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=t.offsetX,a=t.offsetY;this._checkPointer(t,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var i=this._zr;if(!(t.gestureEvent==="pinch"||wg(i,"globalPan")||$l(t))){var n=t.offsetX,a=t.offsetY;if(!this._dragging||!Lp("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,n,a,!1);o&&i.setCursorStyle(o);return}i.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=n-s,f=a-l;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Hr(t.event),t.__ecRoamConsumed=!0,IA(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!$l(t)){var i=this._zr;if(!hh(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&i.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!$l(t)){var i=Lp("zoomOnMouseWheel",t,this._opt),n=Lp("moveOnMouseWheel",t,this._opt),a=t.wheelDelta,o=Math.abs(a),s=t.offsetX,l=t.offsetY;if(!(a===0||!i&&!n)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(a),p=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(wg(this._zr,"globalPan")||$l(t))){var i=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,i,n,a,o){t._checkPointer(a,o.originX,o.originY)&&(Hr(a.event),a.__ecRoamConsumed=!0,IA(t,i,n,a,o))},e})(nt);function $l(r){return r.__ecRoamConsumed}var iB=Q();function Op(r){var e=iB(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Jl(r,e,t,i){for(var n=Op(r),a=n.roam,o=a[e]=a[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-i.zlevel||l.z-i.z||l.z2-i.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:i}),nB(r,e)}function eu(r,e,t){for(var i=Op(r),n=i.roam[e]||[],a=0;a<n.length;a++)if(n[a].listener===t){n.splice(a,1),n.length||aB(r,e);return}}function nB(r,e){var t=Op(r);t.uniform[e]||r.on(e,t.uniform[e]=function(i){var n=t.roam[e];if(n)for(var a=0;a<n.length;a++)n[a].listener(i)})}function aB(r,e){var t=Op(r),i=t.uniform;i[e]&&(r.off(e,i[e]),i[e]=null)}function IA(r,e,t,i,n){n.isAvailableBehavior=$(Lp,null,t,i),r.trigger(e,n)}function Lp(r,e,t){var i=t[r];return!r||i&&(!U(i)||e.event[i+"Key"])}var LA=rB;var OA=nr.prototype,Cg=ol.prototype,PA=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),a$=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(PA);function Ag(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var oB=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:H.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new PA},e.prototype.buildPath=function(t,i){Ag(i)?OA.buildPath.call(this,t,i):Cg.buildPath.call(this,t,i)},e.prototype.pointAt=function(t){return Ag(this.shape)?OA.pointAt.call(this,t):Cg.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var i=this.shape,n=Ag(i)?[i.x2-i.x1,i.y2-i.y1]:Cg.tangentAt.call(this,t);return to(n,n)},e})(oe),RA=oB;var Dg=["fromSymbol","toSymbol"];function NA(r){return"_"+r+"Type"}function kA(r,e,t){var i=e.getItemVisual(t,r);if(!i||i==="none")return i;var n=e.getItemVisual(t,r+"Size"),a=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Al(n),u=Na(o||0,l);return i+l+u+(a||"")+(s||"")}function BA(r,e,t){var i=e.getItemVisual(t,r);if(!(!i||i==="none")){var n=e.getItemVisual(t,r+"Size"),a=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Al(n),u=Na(o||0,l),f=vt(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function sB(r){var e=new RA({name:"line",subPixelOptimize:!0});return Eg(e.shape,r),e}function Eg(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var lB=(function(r){L(e,r);function e(t,i,n){var a=r.call(this)||this;return a._createLine(t,i,n),a}return e.prototype._createLine=function(t,i,n){var a=t.hostModel,o=t.getItemLayout(i),s=t.getItemVisual(i,"z2"),l=sB(o);l.shape.percent=0,rt(l,{z2:F(s,0),shape:{percent:1}},a,i),this.add(l),w(Dg,function(u){var f=BA(u,t,i);this.add(f),this[NA(u)]=kA(u,t,i)},this),this._updateCommonStl(t,i,n)},e.prototype.updateData=function(t,i,n){var a=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(i),l={shape:{}};Eg(l.shape,s),Le(o,l,a,i),w(Dg,function(u){var f=kA(u,t,i),c=NA(u);if(this[c]!==f){this.remove(this.childOfName(u));var p=BA(u,t,i);this.add(p)}this[c]=f},this),this._updateCommonStl(t,i,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,i,n){var a=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,p=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var v=t.getItemModel(i),d=v.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),p=d.get("focus"),h=d.get("blurScope"),f=Ct(v)}var m=t.getItemVisual(i,"style"),g=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,w(Dg,function(b){var T=this.childOfName(b);if(T){T.setColor(g),T.style.opacity=m.opacity;for(var A=0;A<pt.length;A++){var C=pt[A],D=o.getState(C);if(D){var E=D.style||{},I=T.ensureState(C),M=I.style||(I.style={});E.stroke!=null&&(M[T.__isEmptyBrush?"stroke":"fill"]=E.stroke),E.opacity!=null&&(M.opacity=E.opacity)}}T.markRedraw()}},this);var y=a.getRawValue(i);Gt(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,T){return a.getFormattedLabel(b,T,t.dataType)}},inheritColor:g||H.color.neutral99,defaultOpacity:m.opacity,defaultText:(y==null?t.getName(i):isFinite(y)?me(y,10):y)+""});var _=this.getTextContent();if(_){var x=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var S=x.get("distance");N(S)||(S=[S,S]),_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),ir(this,p,h,c)},e.prototype.highlight=function(){Ti(this)},e.prototype.downplay=function(){wi(this)},e.prototype.updateLayout=function(t,i){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(i))},e.prototype.setLinePoints=function(t){var i=this.childOfName("line");Eg(i.shape,t),i.dirty()},e.prototype.beforeUpdate=function(){var t=this,i=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),a=t.getTextContent();if(!i&&!n&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),p=yu([],c,f);to(p,p);function h(D,E){var I=D.__specifiedRotation;if(I==null){var M=l.tangentAt(E);D.attr("rotation",(E===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else D.attr("rotation",I)}if(i&&(i.setPosition(f),h(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&(n.setPosition(c),h(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,d=void 0,m=a.__labelDistance,g=m[0]*o,y=m[1]*o,_=u/2,x=l.tangentAt(_),S=[x[1],-x[0]],b=l.pointAt(_);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var T=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var A=-Math.atan2(x[1],x[0]);c[0]<f[0]&&(A=Math.PI+A),a.rotation=A}var C=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-y,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=y,d="top";break;default:C=0,d="middle"}switch(a.__position){case"end":a.x=p[0]*g+c[0],a.y=p[1]*y+c[1],v=p[0]>.8?"left":p[0]<-.8?"right":"center",d=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":a.x=-p[0]*g+f[0],a.y=-p[1]*y+f[1],v=p[0]>.8?"right":p[0]<-.8?"left":"center",d=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=g*T+f[0],a.y=f[1]+C,v=x[0]<0?"right":"left",a.originX=-g*T,a.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+C,v="center",a.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-g*T+c[0],a.y=c[1]+C,v=x[0]>=0?"right":"left",a.originX=g*T,a.originY=-C;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||d,align:a.__align||v})}},e})(ye),zA=lB;var uB=(function(){function r(e){this.group=new ye,this._LineCtor=e||zA}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,n=i.group,a=i._lineData;i._lineData=e,a||n.removeAll();var o=UA(e);e.diff(a).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(a,e,l,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=UA(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[];function n(l){!l.isGroup&&!fB(l)&&(l.incremental=i,l.ensureState("emphasis").hoverLayer=ma)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(Mg(o)){var s=new this._LineCtor(t,a,this._seriesScope);s.traverse(n),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Di(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,i){var n=e.getItemLayout(t);if(Mg(n)){var a=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,a),this.group.add(a)}},r.prototype._doUpdate=function(e,t,i,n,a){var o=e.getItemGraphicEl(i);if(!Mg(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,a):o=new this._LineCtor(t,n,a),t.setItemGraphicEl(n,o),this.group.add(o)},r})();function fB(r){return r.animators&&r.animators.length>0}function UA(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Ct(e)}}function VA(r){return isNaN(r[0])||isNaN(r[1])}function Mg(r){return r&&!VA(r[0])&&!VA(r[1])}var FA=uB;function Ui(r,e,t,i,n,a){r=r||0;var o=gi(t[1],-t[0]);if(n!=null&&(n=vs(n,[0,o])),a!=null&&(a=Math.max(a,n??0)),i==="all"){var s=Math.abs(gi(e[1],-e[0]));s=vs(s,[0,o]),n=a=vs(s,[n,a]),i=0}e[0]=vs(e[0],t),e[1]=vs(e[1],t);var l=Ig(e,i);e[i]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]=gi(f[0],u):f[1]=gi(f[1],-u),e[i]=vs(e[i],f);var c;return c=Ig(e,i),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-i]=gi(e[i],l.sign*n)),c=Ig(e,i),a!=null&&c.span>a&&(e[1-i]=gi(e[i],c.sign*a)),e}function Ig(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function vs(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Xa=Q(),HA=ee,Lg=$,cB=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,n){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new ye,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var p=ce(GA,t,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,t)}WA(s,t,!0),this._renderHandle(a)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),n=e.axis,a=n.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&Br(n).w>s)return!0;if(o){var l=Ep(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,n,a){},r.prototype.createPointerEl=function(e,t,i,n){var a=t.pointer;if(a){var o=Xa(e).pointerEl=new ze[a.type](HA(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,n){if(t.label){var a=Xa(e).labelEl=new De(HA(t.label));e.add(a),YA(a,n)}},r.prototype.updatePointerEl=function(e,t,i){var n=Xa(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,n){var a=Xa(e).labelEl;a&&(a.setStyle(t.label.style),i(a,{x:t.label.x,y:t.label.y}),YA(a,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=ul(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Hr(u.event)},onmousedown:Lg(this._onHandleDragMove,this,0,0),drift:Lg(this._onHandleDragMove,this),ondragend:Lg(this._onHandleDragEnd,this)}),i.add(n)),WA(n,t,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");N(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Sn(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){GA(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Og(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Og(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Og(n)),Xa(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Oa(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r})();function GA(r,e,t,i){ZA(Xa(t).lastProp,i)||(Xa(t).lastProp=i,e?Le(t,i,r):(t.stopAnimation(),t.attr(i)))}function ZA(r,e){if(W(r)&&W(e)){var t=!0;return w(e,function(i,n){t=t&&ZA(r[n],i)}),!!t}else return r===e}function YA(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Og(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function WA(r,e,t){var i=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=t)})}var XA=cB;function qA(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function pB(r,e,t,i,n){var a=t.get("value"),o=Pg(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=mn(s.get("padding")||0),u=s.getFont(),f=Yu(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var d=n.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),hB(c,p,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ht(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function hB(r,e,t,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Pg(r,e,t,i,n){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:ss(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),U(o)?a=o.replace("{value}",a):Z(o)&&(a=o(s))}return a}function Rg(r,e,t){var i=Mt();return io(i,i,t.rotation),ws(i,i,t.position),ya([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function KA(r,e,t,i,n,a){var o=Sp.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),pB(e,i,n,a,{position:Rg(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function jA(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function QA(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function $A(r,e,t){return Br(r,{fromStat:{sers:z(e,function(i){return t.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function JA(r,e,t){return[de(ke(e[0],e[1]),r-t/2),ke(r+t/2,de(e[0],e[1]))]}var vB=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=tD(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=qA(a),v=dB[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=ql(l.getRect(),n);KA(i,t,d,n,a,o)},e.prototype.getHandleTransform=function(t,i,n){var a=ql(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Rg(i.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=tD(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=i[f],c[f]=ke(l[1],c[f]),c[f]=de(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:v[f]}},e})(XA);function tD(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var dB={line:function(r,e,t,i){var n=jA([e,i[0]],[e,i[1]],rD(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t,i,n,a){var o=$A(r,n,a),s=i[1]-i[0],l=JA(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:QA([u,i[0]],[f-u,s],rD(r))}}};function rD(r){return r.dim==="x"?0:1}var iD=vB;var mB=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color: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}},e})(be),nD=mB;var Vi=Q(),gB=w;function Pp(r,e,t){if(!ne.node){var i=e.getZr();Vi(i).records||(Vi(i).records={}),yB(i,e);var n=Vi(i).records[r]||(Vi(i).records[r]={});n.handler=t}}function yB(r,e){if(Vi(r).initialized)return;Vi(r).initialized=!0,t("click",ce(Ng,"click")),t("mousemove",ce(Ng,"mousemove")),t("mousewheel",ce(Ng,"mousewheel")),t("globalout",xB);function t(i,n){r.on(i,function(a){var o=SB(e);gB(Vi(r).records,function(s){s&&n(s,a,o.dispatchAction)}),_B(o.pendings,e)})}}function _B(r,e){var t=r.showTip.length,i=r.hideTip.length,n;t?n=r.showTip[t-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function xB(r,e,t){r.handler("leave",null,t)}function Ng(r,e,t,i){e.handler(r,t,i)}function SB(r){var e={showTip:[],hideTip:[]},t=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function tu(r,e){if(!ne.node){var t=e.getZr(),i=(Vi(t).records||{})[r];i&&(Vi(t).records[r]=null)}}var bB=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=i.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";Pp("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){tu("axisPointer",i)},e.prototype.dispose=function(t,i){tu("axisPointer",i)},e.type="axisPointer",e})(He),oD=bB;function ru(r,e){var t=[],i=r.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=vr(a,r);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(a.getValues(z(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var sD=Q();function kg(r,e,t){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||$(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Rp(n)&&(n=ru({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Rp(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||Rp(n),p={},h={},v={list:[],map:{}},d={showPointer:ce(wB,h),showTooltip:ce(CB,v)};w(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);w(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,T=MB(u,x);if(!c&&_&&(!u||T)){var A=T&&T.value;A==null&&!l&&(A=b.pointToData(n)),A!=null&&lD(x,A,d,!1,p)}})});var m={};return w(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&w(_.axesInfo,function(x,S){var b=h[S];if(x!==g&&b){var T=b.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,uD(x),uD(g)))),m[g.key]=T}})}),w(m,function(g,y){lD(f[y],g,d,!0,p)}),AB(h,f,p),DB(v,n,r,o),EB(f,o,t),p}}function lD(r,e,t,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=TB(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&P(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function TB(r,e){var t=e.axis,i=t.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],r,t.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(tt(c)){var v=r-c,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,n=c,a.length=0),w(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function wB(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function CB(r,e,t,i){var n=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=hs(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function AB(r,e,t){var i=t.axesInfo=[];w(e,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function DB(r,e,t,i){if(Rp(e)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function EB(r,e,t){var i=t.getZr(),n="axisPointerLastHighlights",a=sD(i)[n]||{},o=sD(i)[n]={};w(r,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&w(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}w(a,function(f,c){!o[c]&&l.push(u(f))}),w(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function MB(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function uD(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function Rp(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Np(r){Mp.registerAxisPointerClass("CartesianAxisPointer",iD),r.registerComponentModel(nD),r.registerComponentView(oD),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!N(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=xA(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kg)}function Bg(r){lt(Ip),lt(Np)}var zg=["x","y","radius","angle","single"],IB=Q(),LB=["cartesian2d","polar","singleAxis"];function fD(r){var e=r.get("coordinateSystem");return ae(LB,e)>=0}function wr(r){return r+"Axis"}function cD(r,e){var t=V(),i=[],n=V();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!n.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){n.set(f.uid,!0),i.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(p,h){var v=t.get(p);v&&v[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,p){(t.get(c)||t.set(c,[]))[p]=!0})}return i}function kp(r){var e=r.ecModel,t={infoList:[],infoMap:V()};return r.eachTargetAxis(function(i,n){var a=e.getComponent(wr(i),n);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}function pD(r){var e=IB(Mc(r));return e.axisProxyMap||(e.axisProxyMap=V())}function ds(r){if(r)return pD(r.ecModel).get(r.uid)}function hD(r,e){pD(r.ecModel).set(r.uid,e)}function Bp(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?ds(t.model):null}var Ug=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),OB=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,n){var a=vD(t);this.settledOption=a,this.mergeDefaultAndTheme(t,n),this._doInit(a)},e.prototype.mergeOption=function(t){var i=vD(t);fe(this.option,t,!0),fe(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(i[a[0]]=n[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=V(),n=this._fillSpecifiedTargetAxis(i);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return w(zg,function(n){var a=this.getReferringComponents(wr(n),s0);if(a.specified){i=!0;var o=new Ug;w(a.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var n=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var c=u[0];if(c){var p=new Ug;if(p.add(c.componentIndex),t.set(f,p),a=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",We).models[0];h&&w(u,function(v){c.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",We).models[0]&&p.add(v.componentIndex)})}}}a&&w(zg,function(u){if(a){var f=n.findComponents({mainType:wr(u),filter:function(p){return p.get("type",!0)==="category"}});if(f[0]){var c=new Ug;c.add(f[0].componentIndex),t.set(u,c),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,n=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":n?i[o]=n[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,n){t==null&&(t=this.ecModel.getComponent(wr(i),n))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(n,a){w(n.indexList,function(o){t.call(i,a,o)})})},e.prototype.getAxisProxy=function(t,i){return ds(this.getAxisModel(t,i))},e.prototype.getAxisModel=function(t,i){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[i])return this.ecModel.getComponent(wr(t),i)},e.prototype.setRawRange=function(t){var i=this.option,n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(i[a[0]]=n[a[0]]=t[a[0]],i[a[1]]=n[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;w(["start","startValue","end","endValue"],function(n){i[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(t,i).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return ds(t);for(var i,n=this._targetAxisInfoMap.keys(),a=0;a<n.length;a++)for(var o=n[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(be);function vD(r){var e={};return w(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var ms=OB;var PB=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this.dataZoomModel=t,this.ecModel=i,this.api=n},e.type="dataZoom",e})(He),zp=PB;var RB=(function(){function r(e,t,i,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=i}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getWindow=function(){return ee(this._window)},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(fD(t)){var i=wr(this._dimName),n=t.getReferringComponents(i,We).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ee(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._extent,i=this.getAxisModel().axis,n=i.scale,a=this._dataZoomModel,o=a.getRangePropMode(),s=[0,100],l=[],u=[],f,c=[!1,!1];w(["start","end"],function(_,x){var S=e[_],b=e[_+"Value"];o[x]==="percent"?(S==null&&(S=s[x]),b=Be(S,s,t),c[x]=!0):(f=!0,b==null?b=t[x]:(b=n.parse(b),n.sanitize&&(b=n.sanitize(b,t))),S=Be(b,t,s)),u[x]=b==null||isNaN(b)?t[x]:b,l[x]=S==null||isNaN(S)?s[x]:S}),xt(u),xt(l);var p=this._minMaxSpan;f?h(u,l,t,s,!1):h(l,u,s,t,!0);function h(_,x,S,b,T){var A=T?"Span":"ValueSpan";Ui(0,_,S,"all",p["min"+A],p["max"+A]);for(var C=0;C<2;C++)x[C]=Be(_[C],S,b,!0),T&&(x[C]=x[C],c[C]=!0);So(x)}var v=qe(n)||si(n),d=i.getExtent(),m=Ie(d[1]-d[0]),g=v?0:ju(u,m,.5);w([[0,Zr],[1,hr]],function(_){var x=_[0],S=_[1];!c[x]||!isFinite(g)||(u[x]=me(u[x],g),u[x]=ke(t[1],de(t[0],u[x])),l[x]===s[x]&&(u[x]=t[x],v&&(u[x]=S(u[x]))))}),So(u);var y=[Be(u[0],t,s,!0),Be(u[1],t,s,!0)];return So(y),{value:u,percent:l,percentInverted:y,valuePrecision:g}},r.prototype.reset=function(e,t){if(this.hostedBy(e)){var i=this.getAxisModel().axis;up(i,uw);var n=i.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var a=e.settledOption;t&&(a=ie({start:t[0],end:t[1]},a));var o=this._window=this.calculateDataWindow(a),s=o.percent,l=o.value;s[0]!==0&&n.setZoomMM(0,l[0]),s[1]!==100&&n.setZoomMM(1,l[1])}},r.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var i=this._dimName,n=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._window.value;if(a==="none")return;w(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(a==="weakFilter"){var c=u.getStore(),p=z(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,d,m,g=0;g<f.length;g++){var y=c.get(p[g],h),_=!isNaN(y),x=y<o[0],S=y>o[1];if(_&&!x&&!S)return!0;_&&(m=!0),x&&(v=!0),S&&(d=!0)}return m&&v&&d})}else w(f,function(h){if(a==="empty")l.setData(u=u.map(h,function(d){return s(d)?d:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});w(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._extent;w(["min","max"],function(n){var a=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Be(i[0]+o,i,[0,100],!0):a!=null&&(o=Be(a,[0,100],i,!0)-i[0]),e[n+"Span"]=a,e[n+"ValueSpan"]=o},this)},r})(),dD=RB;var NB={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(wr(o),s);n(o,s,l,a)})})}var t=[];e(function(n,a,o,s){if(!ds(o)){var l=new dD(n,a,s,r);t.push(l),hD(o,l)}});var i=V();return w(t,function(n){w(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var i=[];t.eachTargetAxis(function(n,a){var o=t.getAxisProxy(n,a),s=Bp(t,o);s?i.push([o,s]):o.reset(t,null)}),w(i,function(n){n[0].reset(t,n[1].getWindow().percentInverted)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var n=i.getWindow(),a=n.percent,o=n.value;t.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}},mD=NB;function Vg(r){r.registerAction("dataZoom",function(e,t){var i=cD(t,e);w(i,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var kB=bo();function iu(r){kB(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,mD),Vg(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function gD(r,e){var t=mn(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new xe({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var BB=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor: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}},e})(be),yD=BB;function Up(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function _D(r){if(ne.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t<i;t++)if(r[t]in e)return r[t]}}var Fg=_D(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xD=_D(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Hg(r,e){if(!r)return e;e=jf(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function SD(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var zB=Hg(xD,"transition"),Gg=Hg(Fg,"transform"),UB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ne.transform3dSupported?"will-change:transform;":"");function VB(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function FB(r,e,t){if(!U(t)||t==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");e=Pr(e);var a=VB(t),o=Math.max(Math.round(n)*1.5,6),s="",l=Gg+":",u;ae(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function HB(r,e,t){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return t&&(n=" "+r/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+r+"s "+i,a+=(a.length?",":"")+(ne.transformSupported?""+Gg+n:",left"+n+",top"+n)),zB+":"+a}function bD(r,e,t){var i=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!ne.transformSupported)return t?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=ne.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return t?"top:0;left:0;"+Gg+":"+o+";":[["top",0],["left",0],[Fg,o]]}function GB(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont());var n=F(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),w(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function YB(r,e,t,i){var n=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),p=Sc(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push(HB(a,t,i)),o&&n.push("background-color:"+o),w(["width","color","radius"],function(v){var d="border-"+v,m=jf(d),g=r.get(m);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(GB(c)),p!=null&&n.push("padding:"+mn(p).join("px ")+"px"),n.join(";")+";"}function TD(r,e,t,i,n){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&By(r,o,t,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var WB=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ne.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=t.appendTo,o=a&&(U(a)?document.querySelector(a):Qa(a)?a:Z(a)&&a(e.getDom()));TD(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;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=n.handler,f=n.painter.getViewportRoot();Bt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=SD(t,"position"),n=t.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=UB+YB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+bD(a[0],a[1],!0)+("border-color:"+Pr(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(a)&&i.get("trigger")==="item"&&!Up(i)&&(s=FB(i,n,a)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",N(e)||(e=[e]);for(var l=0;l<e.length;l++)Qa(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var i=this._styleCoord;if(TD(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var n=this.el.style,a=bD(i[0],i[1]);w(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",ne.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;zy(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var i=t.parentNode;i&&i.removeChild(t)}this.el=this._container=null},r})(),wD=WB;var ZB=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),AD(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,i,n,a){var o=this;W(e)&&Se(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new De({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Sc(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=CD(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},r.prototype.moveTo=function(e,t){var i=this.el;if(i){var n=this._styleCoord;AD(n,this._zr,e,t),e=n[0],t=n[1];var a=i.style,o=Nn(a.borderWidth||0),s=CD(a);i.x=e+o+s.left,i.y=t+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Nn(r){return Math.max(0,r)}function CD(r){var e=Nn(r.shadowBlur||0),t=Nn(r.shadowOffsetX||0),i=Nn(r.shadowOffsetY||0);return{left:Nn(e-t),right:Nn(e+t),top:Nn(e-i),bottom:Nn(e+i)}}function AD(r,e,t,i){r[0]=t,r[1]=i,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var DD=ZB;var XB=new xe({shape:{x:-1,y:-1,width:2,height:2}}),qB=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(ne.node||!i.getDom())){var n=t.getComponent("tooltip"),a=this._renderMode=f0(n.get("renderMode"));this._tooltipContent=a==="richText"?new DD(i):new wD(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,i,n){if(!(ne.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Sn(this,"_updatePosition",50,"fixRate"):Oa(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");Pp("itemTooltip",this._api,$(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,n=this._api,a=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,n,a){if(!(a.from===this.uid||ne.node||!n.getDom())){var o=ED(a,n);this._ticket="";var s=a.dataByCoordSys,l=$B(a,i,n);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=XB;f.x=a.x,f.y=a.y,f.update(),le(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,n,a))return;var c=ru(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(ED(a,n))},e.prototype._manuallyAxisShowTip=function(t,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=nu([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,i){var n=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=le(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Pa(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(le(f).dataIndex!=null?l=f:le(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var n=t.get("showDelay");i=$(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(t,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=nu([i.tooltipOption],a),l=this._renderMode,u=[],f=oi("section",{blocks:[],noHeader:!0}),c=[],p=new bc;w(t,function(y){w(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,b=x.axis,T=b.scale.parse(S);if(!(!x||S==null)){var A=Pg(S,b,n,_.seriesDataIndices,_.valueLabelOpt),C=oi("section",{header:A,noHeader:!gt(A),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(D){var E=n.getSeriesByIndex(D.seriesIndex),I=D.dataIndexInside,M=E.getDataParams(I);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=ss(x.axis,{value:T}),M.axisValueLabel=A,M.marker=p.makeTooltipMarker("item",Pr(M.color),l);var O=Yd(E.formatTooltip(I,!0,null)),R=O.frag;if(R){var k=nu([E],a).get("valueFormatter");C.blocks.push(k?P({valueFormatter:k},R):R)}O.text&&c.push(O.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),d=Qd(f,p,l,v,n.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var m=l==="richText"?`
15
+
16
+ `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(t,i,n){var a=this._ecModel,o=le(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,v=t.positionDefault,d=nu([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new bc;g.marker=y.makeTooltipMarker("item",Pr(g.color),h);var _=Yd(u.formatTooltip(f,!1,c)),x=d.get("order"),S=d.get("valueFormatter"),b=_.frag,T=b?Qd(S?P({valueFormatter:S},b):b,y,h,x,a.get("useUTC"),d.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,T,g,A,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,n){var a=this._renderMode==="html",o=le(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=ee(l),l.content=_t(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=t.positionDefault,v=nu(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),m=Math.random()+"",g=new bc;this._showOrMove(v,function(){var y=ee(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,m,t.offsetX,t.offsetY,t.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,n,a,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var p=t.get("formatter");l=l||t.get("position");var h=i,v=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),d=v.color;if(p)if(U(p)){var m=t.ecModel.get("useUTC"),g=N(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=Ta(g.axisValue,h,m)),h=$f(h,n,!0)}else if(Z(p)){var _=$(function(x,S){x===this._ticket&&(c.setContent(S,f,t,d,l),this._updatePosition(t,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,t,d,l),c.show(t,d),this._updatePosition(t,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(t,i,n,a,o){if(n==="axis"||N(i))return{color:a||o};if(!N(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var c=o.getSize(),p=t.get("align"),h=t.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Z(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),N(i))n=_e(i[0],u),a=_e(i[1],f);else if(W(i)){var d=i;d.width=c[0],d.height=c[1];var m=Wt(d,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(U(i)&&l){var g=QB(i,v,c,t.get("borderWidth"));n=g[0],a=g[1]}else{var g=KB(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=MD(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=MD(h)?c[1]/2:h==="bottom"?c[1]:0),Up(t)){var g=jB(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===t.length;return o&&w(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(p,h){var v=c[h]||{},d=p.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&d.length===m.length,o&&w(d,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&w(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){ne.node||!i.getDom()||(Oa(this,"_updatePosition"),this._tooltipContent.dispose(),tu("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(He);function nu(r,e,t){var i=e.ecModel,n;t?(n=new Oe(t,i,i),n=new Oe(e.option,n,i)):n=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Oe&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new Oe(o,n,i)))}return n}function ED(r,e){return r.dispatchAction||$(e.dispatchAction,e)}function KB(r,e,t,i,n,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function jB(r,e,t,i,n){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function QB(r,e,t,i){var n=t[0],a=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function MD(r){return r==="center"||r==="middle"}function $B(r,e,t){var i=Gs(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=tn(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=le(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var ID=qB;function Yg(r){lt(Np),r.registerComponentModel(yD),r.registerComponentView(ID),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ne),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ne)}var JB=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.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}},e})(be),ez=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=F(t.get("textBaseline"),t.get("textVerticalAlign")),f=new De({style:Ht(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),p=t.get("subtext"),h=new De({style:Ht(s,{text:p,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),d=t.get("sublink"),m=t.get("triggerEvent",!0);f.silent=!v&&!m,h.silent=!d&&!m,v&&f.on("click",function(){Md(v,"_"+t.get("target"))}),d&&h.on("click",function(){Md(d,"_"+t.get("subtarget"))}),le(f).eventData=le(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(f),p&&a.add(h);var g=a.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Mi(t,n),x=Wt(y,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),h.setStyle(S),g=a.getBoundingRect();var b=x.margin,T=t.getItemStyle(["color","opacity"]);T.fill=t.get("backgroundColor");var A=new xe({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(A)}},e.type="title",e})(He);function Wg(r){r.registerComponentModel(JB),r.registerComponentView(ez)}function qa(r,e){if(!r)return!1;for(var t=N(r)?r:[r],i=0;i<t.length;i++)if(t[i]&&t[i][e])return!0;return!1}function Vp(r){ra(r,"label",["show"])}var Fp=Q(),LD=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(ne.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,i){this._mergeOption(t,i,!1,!1)},e.prototype._mergeOption=function(t,i,n,a){var o=this.mainType;n||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Fp(s)[o];if(!l||!l.data){Fp(s)[o]=null;return}u?u._mergeOption(l,i,!0):(a&&Vp(l),w(l.data,function(f){f instanceof Array?(Vp(f[0]),Vp(f[1])):Vp(f)}),u=this.createMarkerModelFromSeries(l,this,i),P(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Fp(s)[o]=u},this)},e.prototype.formatTooltip=function(t,i,n){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t);return oi("section",{header:this.name,blocks:[oi("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,i){var n=_l.prototype.getDataParams.call(this,t,i),a=this.__hostSeries;return a&&(n.seriesId=a.id,n.seriesName=a.name,n.seriesType=a.subType),n},e.getMarkerModelFromSeries=function(t,i){return Fp(t)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(be);mt(LD,_l.prototype);var Dt=LD;var tz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(Dt),OD=tz;function Zg(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function rz(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Hp(r,e,t,i,n,a,o){var s=[],l=Nr(e,n),u=l?e.getCalculationInfo("stackResultDimension"):n,f=au(e,u,r),c=e.hostModel,p=c.indicesOfNearest(t,u,f)[0];s[a]=e.get(i,p),s[o]=e.get(u,p);var h=e.get(n,p),v=Jt(e.get(n,p));return v=Math.min(v,20),v>=0&&(s[o]=+s[o].toFixed(v)),[s,h]}var Gp={min:ce(Hp,"min"),max:ce(Hp,"max"),average:ce(Hp,"average"),median:ce(Hp,"median")};function kn(r,e){if(e){var t=r.getData(),i=r.coordinateSystem,n=i&&i.dimensions;if(!rz(e)&&!N(e.coord)&&N(n)){var a=Xg(e,t,i,r);if(e=ee(e),e.type&&Gp[e.type]&&a.baseAxis&&a.valueAxis){var o=ae(n,a.baseAxis.dim),s=ae(n,a.valueAxis.dim),l=Gp[e.type](t,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!N(n)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&Gp[e.type]){var f=i.getOtherAxis(u);f&&(e.value=au(t,t.mapDimension(f.dim),e.type))}}else for(var c=e.coord,p=0;p<2;p++)Gp[c[p]]&&(c[p]=au(t,t.mapDimension(n[p]),c[p]));return e}}function Xg(r,e,t,i){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(iz(i,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=i.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function iz(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function Bn(r,e){return r&&r.containData&&e.coord&&!Zg(e)?r.containData(e.coord):!0}function PD(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Zg(e)&&!Zg(t)?r.containZone(e.coord,t.coord):!0}function Yp(r,e){return r?function(t,i,n,a){var o=a<2?t.coord&&t.coord[a]:t.value;return Sr(o,e[a])}:function(t,i,n,a){return Sr(t.value,e[a])}}function au(r,e,t){if(t==="average"){var i=0,n=0;return r.each(e,function(a,o){isNaN(a)||(i+=a,n++)}),i/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Kg=Q(),nz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=V()},e.prototype.render=function(t,i,n){var a=this,o=this.markerGroupMap;o.each(function(s){Kg(s).keep=!1}),i.eachSeries(function(s){var l=Dt.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,i,n)}),o.each(function(s){!Kg(s).keep&&a.group.remove(s.group)}),az(i,o,this.type)},e.prototype.markKeep=function(t){Kg(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var n=this;w(t,function(a){var o=Dt.getMarkerModelFromSeries(a,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(i?gf(l):el(l))})}})},e.type="marker",e})(He);function az(r,e,t){r.eachSeries(function(i){var n=Dt.getMarkerModelFromSeries(i,t),a=e.get(i.id);if(n&&a&&a.group){var o=ai(n),s=o.z,l=o.zlevel;fl(a.group,s,l)}})}var gs=nz;function RD(r,e,t){var i=e.coordinateSystem,n=t.getWidth(),a=t.getHeight(),o=i&&i.getArea&&i.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:n,c=u?o?o.height:0:a,p=u&&o?o.x:0,h=u&&o?o.y:0,v,d=_e(l.get("x"),f)+p,m=_e(l.get("y"),c)+h;if(!isNaN(d)&&!isNaN(m))v=[d,m];else if(e.getMarkerPosition)v=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(i){var g=r.get(i.dimensions[0],s),y=r.get(i.dimensions[1],s);v=i.dataToPoint([g,y])}isNaN(d)||(v[0]=d),isNaN(m)||(v[1]=m),r.setItemLayout(s,v)})}var oz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,n){i.eachSeries(function(a){var o=Dt.getMarkerModelFromSeries(a,"markPoint");o&&(RD(o.getData(),a,n),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,n,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new cs),c=sz(o,t,i);i.setData(c),RD(i.getData(),t,a),c.each(function(p){var h=c.getItemModel(p),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Z(v)||Z(d)||Z(m)||Z(g)){var _=i.getRawValue(p),x=i.getDataParams(p);Z(v)&&(v=v(_,x)),Z(d)&&(d=d(_,x)),Z(m)&&(m=m(_,x)),Z(g)&&(g=g(_,x))}var S=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),T=bn(l,"color");S.fill||(S.fill=T),c.setItemVisual(p,{z2:F(b,0),symbol:v,symbolSize:d,symbolRotate:m,symbolOffset:g,symbolKeepAspect:y,style:S})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(p){p.traverse(function(h){le(h).dataModel=i})}),this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e})(gs);function sz(r,e,t){var i;r?i=z(r&&r.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return P(P({},u),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var n=new lr(i,t),a=z(t.get("data"),ce(kn,e));r&&(a=Me(a,ce(Bn,r)));var o=Yp(!!r,i);return n.initData(a,null,o),n}var ND=oz;function jg(r){r.registerComponentModel(OD),r.registerComponentView(ND),r.registerPreprocessor(function(e){qa(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var lz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markLine",e.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"},e})(Dt),kD=lz;var Wp=Q(),uz=function(r,e,t,i){var n=r.getData(),a;if(N(i))a=i;else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=jt(i.yAxis,i.xAxis);else{var u=Xg(i,n,e,r);s=u.valueAxis;var f=Wc(n,u.valueDataDim);l=au(n,f,o)}var c=s.dim==="x"?0:1,p=1-c,h=ee(i),v={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,v.coord[p]=1/0;var d=t.get("precision");d>=0&&se(l)&&(l=+l.toFixed(Math.min(d,20))),h.coord[c]=v.coord[c]=l,a=[h,v,{type:o,valueIndex:i.valueIndex,value:l}]}else a=[]}var m=[kn(r,a[0]),kn(r,a[1]),P({},a[2])];return m[2].type=m[2].type||null,fe(m[2],m[0]),fe(m[2],m[1]),m};function Zp(r){return!isNaN(r)&&!isFinite(r)}function BD(r,e,t,i){var n=1-r,a=i.dimensions[r];return Zp(e[n])&&Zp(t[n])&&e[r]===t[r]&&i.getAxis(a).containData(e[r])}function fz(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(BD(1,t,i,r)||BD(0,t,i,r)))return!0}return Bn(r,e[0])&&Bn(r,e[1])}function Qg(r,e,t,i,n){var a=i.coordinateSystem,o=r.getItemModel(e),s,l=_e(o.get("x"),n.getWidth()),u=_e(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=a.dimensions,c=r.get(f[0],e),p=r.get(f[1],e);s=a.dataToPoint([c,p])}if(ki(a,"cartesian2d")){var h=a.getAxis("x"),v=a.getAxis("y"),f=a.dimensions;Zp(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):Zp(r.get(f[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var cz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,n){i.eachSeries(function(a){var o=Dt.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Wp(o).from,u=Wp(o).to;l.each(function(f){Qg(l,f,!0,a,n),Qg(u,f,!1,a,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,n,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new FA);this.group.add(f.group);var c=pz(o,t,i),p=c.from,h=c.to,v=c.line;Wp(i).from=p,Wp(i).to=h,i.setData(v);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");N(d)||(d=[d,d]),N(m)||(m=[m,m]),N(g)||(g=[g,g]),N(y)||(y=[y,y]),c.from.each(function(x){_(p,x,!0),_(h,x,!1)}),v.each(function(x){var S=v.getItemModel(x),b=S.getModel("lineStyle").getLineStyle();v.setItemLayout(x,[p.getItemLayout(x),h.getItemLayout(x)]);var T=S.get("z2");b.stroke==null&&(b.stroke=p.getItemVisual(x,"style").fill),v.setItemVisual(x,{z2:F(T,0),fromSymbolKeepAspect:p.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(x,"symbolOffset"),fromSymbolRotate:p.getItemVisual(x,"symbolRotate"),fromSymbolSize:p.getItemVisual(x,"symbolSize"),fromSymbol:p.getItemVisual(x,"symbol"),toSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(x,"symbolOffset"),toSymbolRotate:h.getItemVisual(x,"symbolRotate"),toSymbolSize:h.getItemVisual(x,"symbolSize"),toSymbol:h.getItemVisual(x,"symbol"),style:b})}),f.updateData(v),c.line.eachItemGraphicEl(function(x){le(x).dataModel=i,x.traverse(function(S){le(S).dataModel=i})});function _(x,S,b){var T=x.getItemModel(S);Qg(x,S,b,t,a);var A=T.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=bn(l,"color")),x.setItemVisual(S,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:F(T.get("symbolOffset",!0),y[b?0:1]),symbolRotate:F(T.get("symbolRotate",!0),g[b?0:1]),symbolSize:F(T.get("symbolSize"),m[b?0:1]),symbol:F(T.get("symbol",!0),d[b?0:1]),style:A})}this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e})(gs);function pz(r,e,t){var i;r?i=z(r&&r.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return P(P({},c),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var n=new lr(i,t),a=new lr(i,t),o=new lr([],t),s=z(t.get("data"),ce(uz,e,r,t));r&&(s=Me(s,ce(fz,r)));var l=Yp(!!r,i);return n.initData(z(s,function(u){return u[0]}),null,l),a.initData(z(s,function(u){return u[1]}),null,l),o.initData(z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:a,line:o}}var zD=cz;function $g(r){r.registerComponentModel(kD),r.registerComponentView(zD),r.registerPreprocessor(function(e){qa(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(Dt),UD=hz;var Xp=Q(),vz=function(r,e,t,i){var n=i[0],a=i[1];if(!(!n||!a)){var o=kn(r,n),s=kn(r,a),l=o.coord,u=s.coord;l[0]=jt(l[0],-1/0),l[1]=jt(l[1],-1/0),u[0]=jt(u[0],1/0),u[1]=jt(u[1],1/0);var f=Cy([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function qp(r){return!isNaN(r)&&!isFinite(r)}function VD(r,e,t,i){var n=1-r;return qp(e[n])&&qp(t[n])}function dz(r,e){var t=e.coord[0],i=e.coord[1],n={coord:t,x:e.x0,y:e.y0},a={coord:i,x:e.x1,y:e.y1};return ki(r,"cartesian2d")?t&&i&&(VD(1,t,i,r)||VD(0,t,i,r))?!0:PD(r,n,a):Bn(r,n)||Bn(r,a)}function FD(r,e,t,i,n){var a=i.coordinateSystem,o=r.getItemModel(e),s,l=_e(o.get(t[0]),n.getWidth()),u=_e(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var f=r.getValues(["x0","y0"],e),c=r.getValues(["x1","y1"],e),p=a.clampData(f),h=a.clampData(c),v=[];t[0]==="x0"?v[0]=p[0]>h[0]?c[0]:f[0]:v[0]=p[0]>h[0]?f[0]:c[0],t[1]==="y0"?v[1]=p[1]>h[1]?c[1]:f[1]:v[1]=p[1]>h[1]?f[1]:c[1],s=i.getMarkerPosition(v,t,!0)}else{var d=r.get(t[0],e),m=r.get(t[1],e),g=[d,m];a.clampData&&a.clampData(g,g),s=a.dataToPoint(g,!0)}if(ki(a,"cartesian2d")){var y=a.getAxis("x"),_=a.getAxis("y"),d=r.get(t[0],e),m=r.get(t[1],e);qp(d)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):qp(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var HD=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,n){i.eachSeries(function(a){var o=Dt.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=z(HD,function(c){return FD(s,l,c,a,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,n,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new ye});this.group.add(f.group),this.markKeep(f);var c=gz(o,t,i);i.setData(c),c.each(function(p){var h=z(HD,function(D){return FD(c,p,D,t,a)}),v=o.getAxis("x").scale,d=o.getAxis("y").scale,m=v.getExtent(),g=d.getExtent(),y=[v.parse(c.get("x0",p)),v.parse(c.get("x1",p))],_=[d.parse(c.get("y0",p)),d.parse(c.get("y1",p))];xt(y),xt(_);var x=!(m[0]>y[1]||m[1]<y[0]||g[0]>_[1]||g[1]<_[0]),S=!x;c.setItemLayout(p,{points:h,allClipped:S});var b=c.getItemModel(p),T=b.getModel("itemStyle").getItemStyle(),A=b.get("z2"),C=bn(l,"color");T.fill||(T.fill=C,U(T.fill)&&(T.fill=Lh(T.fill,.4))),T.stroke||(T.stroke=C),c.setItemVisual(p,"style",T),c.setItemVisual(p,"z2",F(A,0))}),c.diff(Xp(f).data).add(function(p){var h=c.getItemLayout(p),v=c.getItemVisual(p,"z2");if(!h.allClipped){var d=new cn({z2:F(v,0),shape:{points:h.points}});c.setItemGraphicEl(p,d),f.group.add(d)}}).update(function(p,h){var v=Xp(f).data.getItemGraphicEl(h),d=c.getItemLayout(p),m=c.getItemVisual(p,"z2");d.allClipped?v&&f.group.remove(v):(v?Le(v,{z2:F(m,0),shape:{points:d.points}},i,p):v=new cn({shape:{points:d.points}}),c.setItemGraphicEl(p,v),f.group.add(v))}).remove(function(p){var h=Xp(f).data.getItemGraphicEl(p);f.group.remove(h)}).execute(),c.eachItemGraphicEl(function(p,h){var v=c.getItemModel(h),d=c.getItemVisual(h,"style");p.useStyle(c.getItemVisual(h,"style")),Gt(p,Ct(v),{labelFetcher:i,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:U(d.fill)?Lh(d.fill,1):H.color.neutral99}),Ci(p,v),ir(p,null,null,v.get(["emphasis","disabled"])),le(p).dataModel=i}),Xp(f).data=c,f.group.silent=i.get("silent")||t.get("silent")},e.type="markArea",e})(gs);function gz(r,e,t){var i,n,a=["x0","y0","x1","y1"];if(r){var o=z(r&&r.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return P(P({},c),{name:u,ordinalMeta:null})});n=z(a,function(u,f){return{name:u,type:o[f%2].type}}),i=new lr(n,t)}else n=[{name:"value",type:"float"}],i=new lr(n,t);var s=z(t.get("data"),ce(vz,e,r,t));r&&(s=Me(s,ce(dz,r)));var l=r?function(u,f,c,p){var h=u.coord[Math.floor(p/2)][p%2];return Sr(h,n[p])}:function(u,f,c,p){return Sr(u.value,n[p])};return i.initData(s,null,l),i.hasItemOption=!0,i}var GD=mz;function Jg(r){r.registerComponentModel(UD),r.registerComponentView(GD),r.registerPreprocessor(function(e){qa(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var yz=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},_z=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,n=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),N(i)&&w(i,function(a,o){U(a)&&(a={type:a}),i[o]=fe(a,yz(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<t.length;n++){var a=t[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&xo(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=V(),s=z(a,function(l){return(U(l)||se(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Oe(l,this,this.ecModel))},this);this._data=Me(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;w(a,function(o){i[o.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;w(t,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;w(t,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&ae(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom: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},e})(be),ou=_z;var ys=ce,ey=w,Kp=ye,xz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Kp),this.group.add(this._selectorGroup=new Kp),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,n,l,s,u);var f=Mi(t,n).refContainer,c=t.getBoxLayoutParams(),p=t.get("padding"),h=Wt(c,f,p),v=this.layoutInner(t,o,h,a,l,u),d=Wt(ie({width:v.width,height:v.height},c),f,p);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=gD(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this.getContentGroup(),f=V(),c=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ey(i.getData(),function(v,d){var m=this,g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
17
+ `)){var y=new Kp;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},b=x.getVisual("legendIcon"),T=x.getVisual("style"),A=this._createItem(_,g,d,v,i,t,S,T,b,c,a);A.on("click",ys(YD,g,null,a,h)).on("mouseover",ys(ty,_.name,null,a,h)).on("mouseout",ys(ry,_.name,null,a,h)),n.ssr&&A.eachChild(function(C){var D=le(C);D.seriesIndex=_.seriesIndex,D.dataIndex=d,D.ssrType="legend"}),p&&A.eachChild(function(C){m.packEventData(C,i,_,d,g)}),f.set(g,!0)}else n.eachRawSeries(function(C){var D=this;if(!f.get(g)&&C.legendVisualProvider){var E=C.legendVisualProvider;if(!E.containName(g))return;var I=E.indexOfName(g),M=E.getItemVisual(I,"style"),O=E.getItemVisual(I,"legendIcon"),R=zt(M.fill);R&&R[3]===0&&(R[3]=.2,M=P(P({},M),{fill:$i(R,"rgba")}));var k=this._createItem(C,g,d,v,i,t,{},M,O,c,a);k.on("click",ys(YD,null,g,a,h)).on("mouseover",ys(ty,null,g,a,h)).on("mouseout",ys(ry,null,g,a,h)),n.ssr&&k.eachChild(function(G){var B=le(G);B.seriesIndex=C.seriesIndex,B.dataIndex=d,B.ssrType="legend"}),p&&k.eachChild(function(G){D.packEventData(G,i,C,d,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(t,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};le(t).eventData=s},e.prototype._createSelector=function(t,i,n,a,o){var s=this.getSelectorGroup();ey(t,function(u){var f=u.type,c=new De({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);Gt(c,{normal:p,emphasis:h},{defaultText:u.title}),Io(c)})},e.prototype._createItem=function(t,i,n,a,o,s,l,u,f,c,p){var h=t.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=Sz(f,a,l,u,h,m,p),S=new Kp,b=a.getModel("textStyle");if(Z(t.getLegendIcon)&&(!_||_==="inherit"))S.add(t.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;S.add(bz({itemWidth:v,itemHeight:d,icon:f,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var A=s==="left"?v+5:-5,C=s,D=o.get("formatter"),E=i;U(D)&&D?E=D.replace("{name}",i??""):Z(D)&&(E=D(i));var I=m?b.getTextColor():a.get("inactiveColor");S.add(new De({style:Ht(b,{text:E,x:A,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var M=new xe({shape:S.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&Bo({el:M,componentModel:o,itemName:i,itemTooltipOption:O.option}),S.add(M),S.eachChild(function(R){R.silent=!0}),M.silent=!c,this.getContentGroup().add(S),Io(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ca(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ca("horizontal",u,t.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],v=t.get("selectorButtonGap",!0),d=t.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:c[d]+=p[m]+v,h[1-d]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+v+p[m],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+h[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(He);function Sz(r,e,t,i,n,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),ey(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:Ml(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:t).opacity),s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function bz(r){var e=r.icon||"roundRect",t=vt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=H.color.neutral00,t.style.lineWidth=2),t}function YD(r,e,t,i){ry(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r??e}),ty(r,e,t,i)}function ty(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:i})}function ry(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:i})}var jp=xz;function su(r,e,t){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){i?s[r]():s[r](e.name),WD(s,n),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){w(n,function(l,u){s[l?"select":"unSelect"](u)}),WD(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function WD(r,e){var t=e||{};return w(r.getData(),function(i){var n=i.get("name");if(!(n===`
18
+ `||n==="")){var a=r.isSelected(n);Ce(t,n)?t[n]=t[n]&&a:t[n]=a}}),t}function ZD(r){r.registerAction("legendToggleSelect","legendselectchanged",ce(su,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ce(su,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ce(su,"inverseSelect")),r.registerAction("legendSelect","legendselected",ce(su,"select")),r.registerAction("legendUnSelect","legendunselected",ce(su,"unSelect"))}var XD=wo(Tz);function Tz(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function Qp(r){r.registerComponentModel(ou),r.registerComponentView(jp),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,XD),r.registerSubTypeDefaulter("legend",function(){return"plain"}),ZD(r)}var wz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,n){var a=_r(t);r.prototype.init.call(this,t,i,n),qD(this,t,a)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),qD(this,this.option,t)},e.type="legend.scroll",e.defaultOption=dn(ou.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}),e})(ou);function qD(r,e,t){var i=r.getOrient(),n=[1,1];n[i.index]=0,or(e,t,{type:"box",ignoreSize:!!n})}var KD=wz;var jD=ye,iy=["width","height"],ny=["x","y"],Cz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new jD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new jD)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=N(c)?c:[c,c];v("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new De({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,m){var g=d+"DataIndex",y=ul(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:$(u._pageGo,u,g,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=iy[u],c=ny[u],p=iy[1-u],h=ny[1-u];o&&Ca("horizontal",l,t.get("selectorItemGap",!0));var v=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=ee(n);o&&(g[f]=n[f]-d[f]-v);var y=this._layoutContentAndController(t,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=d[f]+v;m[u]-=_,y[c]-=_}y[f]+=d[f]+v,m[1-u]+=y[h]+y[p]/2-d[p]/2,y[p]=Math.max(y[p],d[p]),y[h]=Math.min(y[h],d[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;Ca(t.get("orient"),f,t.get("itemGap"),a?n.width:null,a?null:n.height),Ca("horizontal",p,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=p.getBoundingRect(),d=this._showController=h[o]>n[o],m=[-h.x,-h.y];i||(m[a]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=F(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var x=t.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-v[o]:g[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var S={x:0,y:0};if(S[o]=d?n[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-v[o]-_,0),b[s]=S[s],c.setClipPath(new xe({shape:b})),c.__rectSize=b[o]}else p.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&Le(f,{x:T.contentPosition[0],y:T.contentPosition[1]},d?t:null),this._updatePageInfoView(t,T),S},e.prototype._pageGo=function(t,i,n){var a=this._getPageInfo(i)[t];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var n=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=iy[o],l=ny[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=x(c);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var m=u-1,g=d,y=d,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;return v;function x(b){if(b){var T=b.getBoundingRect(),A=T[l]+b[l];return{s:A,e:A+T[s],i:b.__legendDataIndex}}}function S(b,T){return b.e>=T&&b.s<=T+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(i=s)}),i??a},e.type="legend.scroll",e})(jp),QD=Cz;function ay(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function $D(r){lt(Qp),r.registerComponentModel(KD),r.registerComponentView(QD),ay(r)}function oy(r){lt(Qp),lt($D)}var Az=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=dn(ms.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(ms),JD=Az;var sy=Q();function eE(r,e,t){sy(r).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function tE(r,e){for(var t=sy(r).coordSysRecordMap,i=t.keys(),n=0;n<i.length;n++){var a=i[n],o=t.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||rE(t,o))}}}function rE(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Dz(r,e){var t={model:e,containsPoint:ce(Mz,e),dispatchAction:ce(Ez,r),dataZoomInfoMap:null,controller:null},i=t.controller=new LA(r.getZr());return w(["pan","zoom","scrollMove"],function(n){i.on(n,function(a){var o=[];t.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function Ez(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Mz(r,e,t,i){return r.coordinateSystem.containPoint([t,i])}function Iz(r,e,t){var i,n="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return r.each(function(u){var f=u.model,c=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;a[n+c]>a[n+i]&&(i=c),o=o&&f.get("preventDefaultMouseMove",!0),s=F(f.get("cursorGrab",!0),s),l=F(f.get("cursorGrabbing",!0),l)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function iE(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var i=sy(t),n=i.coordSysRecordMap||(i.coordSysRecordMap=V());n.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=kp(a);w(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,Dz(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=V());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){rE(n,a);return}var f=Iz(l,a,t);o.enable(f.controlType,f.opt),Sn(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Oz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),eE(n,t,{pan:$(ly.pan,this),zoom:$(ly.zoom,this),scrollMove:$(ly.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){tE(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(zp),ly={zoom:function(r,e,t,i){var n=this.range,a=n.slice(),o=r.axisModels[0];if(o){var s=uy[e](null,[i.originX,i.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ui(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}},pan:nE(function(r,e,t,i,n,a){var o=uy[i]([a.oldX,a.oldY],[a.newX,a.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:nE(function(r,e,t,i,n,a){var o=uy[i]([0,0],[a.scrollDelta,a.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*a.scrollDelta})};function nE(r){return function(e,t,i,n){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,i,n);if(Ui(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var uy={grid:function(r,e,t,i,n){var a=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,e,t,i,n){var a=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,e,t,i,n){var a=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},aE=Oz;function oE(r){iu(r),r.registerComponentModel(JD),r.registerComponentView(aE),iE(r)}var Pz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=dn(ms.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}),e})(ms),sE=Pz;var lu=xe,Rz=1,fy=30,Nz=7,uu="horizontal",lE="vertical",kz=5,Bz=["line","bar","candlestick","scatter"],zz={easing:"cubicOut",duration:100,delay:0},Uz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=$(this._onBrush,this),this._onBrushEnd=$(this._onBrushEnd,this)},e.prototype.render=function(t,i,n,a){if(r.prototype.render.apply(this,arguments),Sn(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Oa(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ye;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,n=t.get("brushSelect"),a=n?Nz:0,o=Mi(t,i).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===uu?{right:o.width-s.x-s.width,top:o.height-fy-l-a,width:s.width,height:fy}:{right:l,top:s.y,width:fy,height:s.height},f=_r(t.option);w(["right","top","width","height"],function(p){f[p]==="ph"&&(f[p]=u[p])});var c=Wt(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===lE&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===uu&&!o?{scaleY:l?1:-1,scaleX:1}:n===uu&&o?{scaleY:l?1:-1,scaleX:-1}:n===lE&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,c=isNaN(u.y)?0:u.y;t.x=i.x-f,t.y=i.y-c,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=t.get("brushSelect");n.add(new lu({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new lu({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:$(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,n=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==n[0]||i[1]!==n[1]){var c=o.getDataExtent(t.thisDim),p=o.getDataExtent(l),h=(p[1]-p[0])*.3;p=[p[0]-h,p[1]+h];var v=[0,i[1]],d=[0,i[0]],m=[[i[0],0],[0,0]],g=[],y=d[1]/Math.max(1,o.count()-1),_=i[0]/(c[1]-c[0]),x=t.thisAxis.type==="time",S=-y,b=Math.round(o.count()/i[0]),T;o.each([t.thisDim,l],function(I,M,O){if(b>0&&O%b){x||(S+=y);return}S=x?(+I-c[0])*_:S+y;var R=M==null||isNaN(M)||M==="",k=R?0:Be(M,p,v,!0);R&&!T&&O?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!R&&T&&(m.push([S,0]),g.push([S,0])),R||(m.push([S,k]),g.push([S,k])),T=R}),u=this._shadowPolygonPts=m,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var A=this.dataZoomModel;function C(I){var M=A.getModel(I?"selectedDataBackground":"dataBackground"),O=new ye,R=new cn({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new Ai({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return O.add(R),O.add(k),O}for(var D=0;D<3;D++){var E=C(D===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var n,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!n&&!(i!==!0&&ae(Bz,u.get("type"))<0)){var f=a.getComponent(wr(o),s).axis,c=Vz(o),p,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(p=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var v=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:v,otherDim:c,otherAxisInverse:p}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,n=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),p=i.filler=new lu({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(p),o.add(new lu({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Rz,fill:H.color.transparent}})),w([0,1],function(_){var x=l.get("handleIcon");!Cl[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var S=vt(x,-1,0,2,2,null,!0);S.attr({cursor:Fz(this._orient),draggable:!0,drift:$(this._onDragMove,this,_),ondragend:$(this._onDragEnd,this),onmouseover:$(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$(this._onOverDataInfoTriggerArea,this,!1),z2:5});var b=S.getBoundingRect(),T=l.get("handleSize");this._handleHeight=_e(T,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Io(S);var A=l.get("handleColor");A!=null&&(S.style.fill=A),o.add(n[_]=S);var C=l.getModel("textStyle"),D=l.get("handleLabel")||{},E=D.show||!1;t.add(a[_]=new De({silent:!0,invisible:!E,style:Ht(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=p;if(c){var v=_e(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new xe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,g=i.moveHandleIcon=vt(l.get("moveHandleIcon"),-m/2,-m/2,m,m,H.color.neutral00,!0);g.silent=!0,g.y=s[1]+v/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=i.moveZone=new xe({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:$(this._onActualMoveZoneDrift,this),ondragstart:$(this._onActualMoveZoneDragStart,this),ondragend:$(this._onActualMoveZoneDragEnd,this),onmouseover:$(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Be(t[0],[0,100],i,!0),Be(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ui(i,a,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Be(s.minSpan,l,o,!0):null,s.maxSpan!=null?Be(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=xt([Be(a[0],o,l,!0),Be(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var i=this._displayables,n=this._handleEnds,a=xt(n.slice()),o=this._size;w([0,1],function(h){var v=i.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:n[h]+(h?-1:1),y:o[1]/2-d/2})},this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[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,a[0],a[1],o[0]],f=0;f<l.length;f++){var c=l[f],p=c.getClipPath();p||(p=new xe,c.setClipPath(p)),p.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,c;if(t){var p={start:f[0],end:f[1]},h=Bp(i,l);if(h){var v=h.calculateDataWindow(p).percentInverted;p={start:v[0],end:v[1]}}c=l.calculateDataWindow(p)}else c=l.getWindow();s=[uE(i,0,c,u),uE(i,1,c,u)]}}var d=xt(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(g){var y=ld(n.handles[g].parent,this.group),_=ud(g===0?"right":"left",y),x=this._handleWidth/2+kz,S=ya([d[g]+(g===0?-x:x),this._size[1]/2],y);a[g].setStyle({x:S[0],y:S[1],verticalAlign:o===uu?"middle":_,align:o===uu?_:"center",text:s[g]})}},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var i=this.dataZoomModel.get("handleLabel")||{},n=i.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,i,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,i,n)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,i,n,a){this._dragging=!0,Hr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ya([i,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var i=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>i[0]||n[1]<0||n[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,n=t.offsetY;this._brushStart=new ue(i,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var n=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Ui(0,l,o,0,u.minSpan!=null?Be(u.minSpan,s,o,!0):null,u.maxSpan!=null?Be(u.maxSpan,s,o,!0):null),this._range=xt([Be(l[0],o,s,!0),Be(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Hr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new lu({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?zz:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=kp(this.dataZoomModel).infoList;if(!t&&i.length){var n=i[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(zp);function uE(r,e,t,i){var n=r.get("labelFormatter"),a=r.get("labelPrecision");(a==null||a==="auto")&&(a=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":qe(i)||si(i)?i.getLabel({value:Math.round(o)}):isFinite(a)?me(o,a,!0):o+"";return Z(n)?n(o,s):U(n)?n.replace("{value}",s):s}function Vz(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Fz(r){return r==="vertical"?"ns-resize":"ew-resize"}var fE=Uz;function cE(r){r.registerComponentModel(sE),r.registerComponentView(fE),iu(r)}function cy(r){lt(oE),lt(cE)}var pE={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Hz=(function(){function r(e){var t=this._condVal=U(e)?new RegExp(e):Iy(e)?e:null;if(t==null){var i="";Se(i)}}return r.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):se(t)?this._condVal.test(e+""):!1},r})(),Gz=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),Yz=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),Wz=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),Zz=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),Xz=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,i=t(this.valueGetterParam),n=e?this.valueParser(i):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(e?n:i))return!1;return!0},r})();function py(r,e){if(r===!0||r===!1){var t=new Gz;return t.value=r,t}var i="";return vE(r)||Se(i),r.and?hE("and",r,e):r.or?hE("or",r,e):r.not?qz(r,e):Kz(r,e)}function hE(r,e,t){var i=e[r],n="";N(i)||Se(n),i.length||Se(n);var a=r==="and"?new Yz:new Wz;return a.children=z(i,function(o){return py(o,t)}),a.children.length||Se(n),a}function qz(r,e){var t=r.not,i="";vE(t)||Se(i);var n=new Zz;return n.child=py(t,e),n.child||Se(i),n}function Kz(r,e){for(var t="",i=e.prepareGetValue(r),n=[],a=he(r),o=r.parser,s=o?dc(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=Ce(pE,u)?pE[u]:u,c=r[u],p=s?s(c):c,h=xb(f,p)||f==="reg"&&new Hz(p);h||Se(t),n.push(h)}}n.length||Se(t);var v=new Xz;return v.valueGetterParam=i,v.valueParser=s,v.getValue=e.getValue,v.subCondList=n,v}function vE(r){return W(r)&&!Ge(r)}var jz=(function(){function r(e,t){this._cond=py(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function dE(r,e){return new jz(r,e)}var mE={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,i=dE(r.config,{valueGetterAttrMap:V({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Ce(s,"dimension")||Se(l);var f=e.getDimensionInfo(u);return f||Se(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],a=0,o=e.count();a<o;a++)t=e.getRawDataItem(a),i.evaluate()&&n.push(t);return{data:n}}};var gE={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,i="",n=Pe(t);n.length||Se(i);var a=[];w(n,function(f){var c=f.dimension,p=f.order,h=f.parser,v=f.incomparable;if(c==null&&Se(i),p!=="asc"&&p!=="desc"&&Se(i),v&&v!=="min"&&v!=="max"){var d="";Se(d)}if(p!=="asc"&&p!=="desc"){var m="";Se(m)}var g=e.getDimensionInfo(c);g||Se(i);var y=h?dc(h):null;h&&!y&&Se(i),a.push({dimIdx:g.index,parser:y,comparator:new mc(p,v)})});var o=e.sourceFormat;o!==Ze&&o!==ct&&Se(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,c){for(var p=0;p<a.length;p++){var h=a[p],v=e.retrieveValueFromItem(f,h.dimIdx),d=e.retrieveValueFromItem(c,h.dimIdx);h.parser&&(v=h.parser(v),d=h.parser(d));var m=h.comparator.evaluate(v,d);if(m!==0)return m}return 0}),{data:s}}};function hy(r){r.registerTransform(mE),r.registerTransform(gE)}var Qz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,i,n){r.prototype.init.call(this,t,i,n),this._sourceManager=new xc(this),qd(this)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),qd(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ot},e})(be);var $z=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(He);function vy(r){r.registerComponentModel(Qz),r.registerComponentView($z)}function yE(r,e,t){var i=je.createCanvas(),n=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*t,i.height=a*t,i}function $p(r){return!r.__cursors.get(ed)}function _E(r){var e=r.__cursors.get(ed);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var Jz=(function(r){L(e,r);function e(t,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Po,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||Qn,typeof t=="string"?o=yE(t,i,n):W(t)&&(o=t,t=o.id),a.id=t,a.dom=o;var s=o.style;return s&&(mu(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=_E(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=yE("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new re(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new re(0,0,0,0);S.copy(x),o.push(S)}else{for(var b=!1,T=1/0,A=0,C=0;C<o.length;++C){var D=o[C];if(D.intersect(x)){var E=new re(0,0,0,0);E.copy(D),E.union(x),o[C]=E,b=!0;break}else if(l){u.copy(x),u.union(D);var I=x.width*x.height,M=D.width*D.height,O=u.width*u.height,R=O-I-M;R<T&&(T=R,A=C)}}if(l&&(o[A].union(x),b=!0),!b){var S=new re(0,0,0,0);S.copy(x),o.push(S)}l||(l=o.length>=s)}}for(var c=_E(this),p=c.startIdx;p<c.endIdx;++p){var h=t[p];if(h){var v=h.shouldBePainted(n,a,!0,!0),d=h.__isRendered&&(h.__dirty&Qe||!v)?h.getPrevPaintRect():null;d&&f(d);var m=v&&(h.__dirty&Qe||!h.__isRendered)?h.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,p=g.startIdx;p<g.endIdx;++p){var h=i[p],v=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var y;do{y=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var _=p+1;_<o.length;)o[p].intersect(o[_])?(y=!0,o[p].union(o[_]),o.splice(_,1)):_++;p++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=t+"px",o.height=i+"px"),a.width=t*n,a.height=i*n,s&&(s.width=t*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function v(d,m,g,y){if(o.clearRect(d,m,g,y),i&&i!=="transparent"){var _=void 0;if(Gi(i)){var x=i.global||i.__width===g&&i.__height===y;_=x&&i.__canvasGradient||Dl(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=_,i.__width=g,i.__height=y}else My(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,_=Pc(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(d,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,d,m,g,y),o.restore())}!n||u?v(0,0,s,l):n.length&&w(n,function(d){v(d.x*c,d.y*c,d.width*c,d.height*c)})},e})(nt),dy=Jz;var xE=1e5,Ka=314159,my=void 0,eU=1,gy=2;function tU(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function rU(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}function SE(r,e,t,i){var n=new dy(r,e,e.dpr);return n.zlevel=t,n.zlevel2=i,n.__builtin__=!0,bE(n),n}function bE(r){r.__cursorStack=[],r.__cursors=V()}function iU(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function nU(r,e){var t=r.__cursors,i=+e;return t.get(i)||(r.__cursorStack.push(i),t.set(i,iU({key:i})))}function Jp(r,e){for(var t=r.__cursorStack,i=0;i<t.length;i++)e(r.__cursors.get(t[i]))}function yy(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function Et(r,e,t){for(var i=r.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=r.layers[a][o];(!t||(!(t&fu)||s.__builtin__)&&(!(t&_y)||!s.__builtin__)&&(!(t&TE)||s!==r.hoverlayer))&&e(s,a,o,n)}}var fu=1,_y=2,TE=4,eh=fu|TE,aU=(function(){function r(e,t,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=P({},i||{}),this.dpr=i.devicePixelRatio||Qn,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(mu(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=SE(l,this,Ka,Po);c.initContext(),this._insertLayer(c,Ka,Po,!0),this._domRoot=e}else{this._width=El(e,0,i),this._height=El(e,1,i);var s=this._domRoot=rU(this._width,this._height);e.appendChild(s)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t;e&&!W(e)?t={paintAll:!!e}:t=e||{};var i=F(t.refresh,!0),n=F(t.refreshHover,!1);if(n&&(this._hoverLayerDirty=gy),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return Et(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},_y),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=my,i!==my&&(!t&&i===gy&&(t=this._i.hoverlayer=this._ensureLayer(xE)),!!t)){t.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=t.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Tn(a,l,n),u&&(l.style=f)}}a&&(Ba(a,n),a.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(xE)},r.prototype.paintOne=function(e,t){Rc(e,t)},r.prototype._paintList=function(e,t,i){if(this._redrawId===i){var n=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),n)Et(this._i,function(o){o.afterBrush&&o.afterBrush()},eh),this._paintHoverList(e);else{var a=this;Is(function(){a._paintList(e,t,i)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(Ka).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),Et(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,t,i)},fu)},r.prototype._doPaintList=function(e,t){var i=this,n=!0;return Et(this._i,function(a){var o=!1;if(Jp(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!$p(a)?a.createRepaintRects(e,t,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,f,s)}Jp(a,function(c){var p=i._paintPerCursor(a,c,e,s,u);n=n&&p})}},eh),ne.wxa&&Et(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},r.prototype._paintPerCursor=function(e,t,i,n,a){var o=e.ctx;if(n)if(!n.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,i,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,i,null,a),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=$p(e),u=l&&je.getTime(),f=t.drawIdx,c=t.notClearIdx,p=c>=0?Math.min(c,f):f;p<t.endIdx;p++){var h=i[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=gy),n!=null){var v=h.getPaintRect();v&&v.intersect(n)&&(Tn(s,h,o),h.setPrevPaintRect(v))}else Tn(s,h,o);if(l){var d=je.getTime()-u;if(d>15){p++;break}}}}Ba(s,o),t.drawIdx=Math.max(p,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,i){t=t||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=Ka,t=0);var a=yy(this._i,e)[t];return a||(a=SE("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&fe(a,this._layerConfig[e],!0),(i||n&&e!==Ka)&&(a.virtual=!0),this._insertLayer(a,e,t,!1),a.initContext()),a},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[t]&&o[t][i])&&tU(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<t||s[c].zl===t&&s[c].zl2<i);)c++;if(c>0&&(u=yy(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:t,zl2:i}),yy(a,t)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(e,t){return Et(this._i,function(i,n){e.call(t,i,n)})},r.prototype.eachBuiltinLayer=function(e,t){return Et(this._i,function(i,n){e.call(t,i,n)},fu)},r.prototype.eachOtherLayer=function(e,t){return Et(this._i,function(i,n){e.call(t,i,n)},_y)},r.prototype.getLayers=function(){var e={};return Et(this._i,function(t,i,n){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}Et(i._i,function(m){m.__dirty=!1,Jp(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},eh);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,v=void 0;if(o!==p&&(o=p,u=!1),h?(u=!0,v=eS):v=u?Jx:Po,(!s||p!==s.zlevel||v!==s.zlevel2)&&(s=i._ensureLayer(p,v),l=null,!s.__builtin__)){Ja("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=nU(s,h),!l.used))if(l.used=!0,!t&&l.first===a.id){var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&Qe&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Et(i._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,_=g.length-1;_>=0;_--){var x=y.get(g[_]);if(!x.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var S=x.endIdxNew;($p(m)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(m.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}m.__dirty&&(Jp(m,function(b){b.drawIdx=b.startIdx}),i._hoverLayerDirty===my&&(i._hoverLayerDirty=eU))},eh)},r.prototype.clear=function(){return Et(this._i,function(e){e.clear(),bE(e)},fu),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Et(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?fe(i[e],t,!0):i[e]=t,Et(this._i,function(n,a){fe(n,i[a],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,i=this._i.layers,n=t.length-1;n>=0;n--){var a=t[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(t.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;e!=null&&(n.width=e),t!=null&&(n.height=t),e=El(a,0,n),t=El(a,1,n),i.style.display="",(this._width!==e||t!==this._height)&&(i.style.width=e+"px",i.style.height=t+"px",Et(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(Ka).resize(e,t)}return this},r.prototype.clearLayer=function(e){w(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Ka][0].dom;var t=new dy("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var i=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,a=t.dom.height;Et(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,a):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Tn(i,f,o)}Ba(i,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})(),wE=aU;function xy(r){r.registerPainter("canvas",wE)}lt([sg,jm,vg,Tg,Bg,Yg,oy,Wg,cy,$g,Jg,jg,vy,hy,xy]);function oU(r,e,t){let i=t!==void 0&&t.height!==void 0?{height:t.height}:void 0,n=i1(r,void 0,i);return n.setOption(e),n}var CE=globalThis,sU=CE.__GenuiAssets__??(CE.__GenuiAssets__={});sU.echartsCore={createChart:oU};})();
19
+ /*! Bundled license information:
20
+
21
+ tslib/tslib.es6.js:
22
+ (*! *****************************************************************************
23
+ Copyright (c) Microsoft Corporation.
24
+
25
+ Permission to use, copy, modify, and/or distribute this software for any
26
+ purpose with or without fee is hereby granted.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
29
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
30
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
31
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
32
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
33
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
34
+ PERFORMANCE OF THIS SOFTWARE.
35
+ ***************************************************************************** *)
36
+
37
+ zrender/lib/zrender.js:
38
+ (*!
39
+ * ZRender, a high performance 2d drawing library.
40
+ *
41
+ * Copyright (c) 2013, Baidu Inc.
42
+ * All rights reserved.
43
+ *
44
+ * LICENSE
45
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
46
+ *)
47
+ */