dsh-motion-ui 0.5.6 → 0.7.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 (164) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/README.md +112 -4
  3. package/VERIFICATION.md +145 -0
  4. package/client.js +4869 -22533
  5. package/examples/mechanism-assembly.json +50 -0
  6. package/examples/mechanism-crank.json +103 -0
  7. package/examples/mechanism-gears.json +103 -0
  8. package/index.js +52 -15
  9. package/lib/assets/echarts-core.js +47 -0
  10. package/lib/assets/echarts-full.js +78 -0
  11. package/lib/assets/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  12. package/lib/assets/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  13. package/lib/assets/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  14. package/lib/assets/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  15. package/lib/assets/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  16. package/lib/assets/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  17. package/lib/assets/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  18. package/lib/assets/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  19. package/lib/assets/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  20. package/lib/assets/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  21. package/lib/assets/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  22. package/lib/assets/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  23. package/lib/assets/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  24. package/lib/assets/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  25. package/lib/assets/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  26. package/lib/assets/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  27. package/lib/assets/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  28. package/lib/assets/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  29. package/lib/assets/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  30. package/lib/assets/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  31. package/lib/assets/katex.css +1 -0
  32. package/lib/assets/mermaid.js +3644 -0
  33. package/lib/assets/standalone-runtime.css +1 -0
  34. package/lib/assets/standalone-runtime.js +330 -0
  35. package/lib/assets/three.js +3842 -0
  36. package/lib/assets/visual.css +1 -0
  37. package/lib/assets/visual.js +416 -0
  38. package/lib/author-expression.js +3 -2
  39. package/lib/authoring-guide.js +4 -3
  40. package/lib/build-info.js +1 -1
  41. package/lib/canvas-system.js +3 -3
  42. package/lib/catalog.js +94 -92
  43. package/lib/components.js +11 -6
  44. package/lib/delivery.js +18 -0
  45. package/lib/diagnostics-route.js +6 -0
  46. package/lib/document-update.js +27 -0
  47. package/lib/export-runtime-bundle.js +1 -1
  48. package/lib/expressive-examples.js +6 -0
  49. package/lib/fence-feedback.js +61 -0
  50. package/lib/fence-route.js +14 -0
  51. package/lib/fences.js +9 -0
  52. package/lib/freeform.js +4 -3
  53. package/lib/inspection.js +3 -2
  54. package/lib/links.js +13 -0
  55. package/lib/mechanism-catalog.js +24 -0
  56. package/lib/mechanism-css.js +13 -0
  57. package/lib/mechanism-entry.js +20 -0
  58. package/lib/mechanism-geometry.js +62 -0
  59. package/lib/mechanism-render.js +24 -0
  60. package/lib/mechanism-runtime-bundle.js +2 -0
  61. package/lib/mechanism-scenes.js +20 -0
  62. package/lib/motion-library.js +18 -0
  63. package/lib/normalize-authoring.js +52 -3
  64. package/lib/normalize-visual.js +36 -0
  65. package/lib/presentation.js +1 -1
  66. package/lib/protocol.js +361 -318
  67. package/lib/sandbox.js +2 -0
  68. package/lib/scene-library.js +13 -0
  69. package/lib/store.js +17 -2
  70. package/lib/stream.js +12 -0
  71. package/lib/style-system.js +28 -0
  72. package/lib/text-document.js +25 -0
  73. package/lib/text-guide.js +13 -0
  74. package/lib/third-party/anatomy-LICENSE.txt +21 -0
  75. package/lib/third-party/anatomy-NOTICE.md +13 -0
  76. package/lib/third-party/anatomy-iso.mjs +674 -0
  77. package/lib/third-party/bundled/@braintree_sanitize-url-LICENSE +21 -0
  78. package/lib/third-party/bundled/@iconify_utils-license.txt +21 -0
  79. package/lib/third-party/bundled/@mermaid-js_parser-LICENSE +21 -0
  80. package/lib/third-party/bundled/@upsetjs_venn.js-LICENSE +22 -0
  81. package/lib/third-party/bundled/cose-base-LICENSE +21 -0
  82. package/lib/third-party/bundled/cytoscape-LICENSE +19 -0
  83. package/lib/third-party/bundled/cytoscape-cose-bilkent-LICENSE +21 -0
  84. package/lib/third-party/bundled/cytoscape-fcose-LICENSE +19 -0
  85. package/lib/third-party/bundled/cytoscape-license-update.mjs +32 -0
  86. package/lib/third-party/bundled/d3-LICENSE +13 -0
  87. package/lib/third-party/bundled/d3-array-LICENSE +27 -0
  88. package/lib/third-party/bundled/d3-axis-LICENSE +13 -0
  89. package/lib/third-party/bundled/d3-brush-LICENSE +13 -0
  90. package/lib/third-party/bundled/d3-chord-LICENSE +13 -0
  91. package/lib/third-party/bundled/d3-color-LICENSE +13 -0
  92. package/lib/third-party/bundled/d3-contour-LICENSE +13 -0
  93. package/lib/third-party/bundled/d3-delaunay-LICENSE +14 -0
  94. package/lib/third-party/bundled/d3-dispatch-LICENSE +13 -0
  95. package/lib/third-party/bundled/d3-drag-LICENSE +13 -0
  96. package/lib/third-party/bundled/d3-dsv-LICENSE +13 -0
  97. package/lib/third-party/bundled/d3-ease-LICENSE +28 -0
  98. package/lib/third-party/bundled/d3-fetch-LICENSE +13 -0
  99. package/lib/third-party/bundled/d3-force-LICENSE +13 -0
  100. package/lib/third-party/bundled/d3-format-LICENSE +13 -0
  101. package/lib/third-party/bundled/d3-geo-LICENSE +34 -0
  102. package/lib/third-party/bundled/d3-hierarchy-LICENSE +13 -0
  103. package/lib/third-party/bundled/d3-interpolate-LICENSE +13 -0
  104. package/lib/third-party/bundled/d3-path-LICENSE +27 -0
  105. package/lib/third-party/bundled/d3-polygon-LICENSE +13 -0
  106. package/lib/third-party/bundled/d3-quadtree-LICENSE +13 -0
  107. package/lib/third-party/bundled/d3-random-LICENSE +13 -0
  108. package/lib/third-party/bundled/d3-sankey-LICENSE +27 -0
  109. package/lib/third-party/bundled/d3-scale-LICENSE +13 -0
  110. package/lib/third-party/bundled/d3-scale-chromatic-LICENSE +28 -0
  111. package/lib/third-party/bundled/d3-selection-LICENSE +13 -0
  112. package/lib/third-party/bundled/d3-shape-LICENSE +13 -0
  113. package/lib/third-party/bundled/d3-time-LICENSE +13 -0
  114. package/lib/third-party/bundled/d3-time-format-LICENSE +13 -0
  115. package/lib/third-party/bundled/d3-timer-LICENSE +13 -0
  116. package/lib/third-party/bundled/d3-transition-LICENSE +13 -0
  117. package/lib/third-party/bundled/d3-zoom-LICENSE +13 -0
  118. package/lib/third-party/bundled/dagre-d3-es-LICENSE.md +23 -0
  119. package/lib/third-party/bundled/dayjs-LICENSE +21 -0
  120. package/lib/third-party/bundled/delaunator-LICENSE +15 -0
  121. package/lib/third-party/bundled/dompurify-LICENSE +202 -0
  122. package/lib/third-party/bundled/dompurify-LICENSE-MPL +373 -0
  123. package/lib/third-party/bundled/echarts-LICENSE +222 -0
  124. package/lib/third-party/bundled/echarts-NOTICE +5 -0
  125. package/lib/third-party/bundled/es-toolkit-LICENSE +21 -0
  126. package/lib/third-party/bundled/es-toolkit-NOTICE +39 -0
  127. package/lib/third-party/bundled/internmap-LICENSE +13 -0
  128. package/lib/third-party/bundled/katex-LICENSE +21 -0
  129. package/lib/third-party/bundled/khroma-license +21 -0
  130. package/lib/third-party/bundled/layout-base-LICENSE +21 -0
  131. package/lib/third-party/bundled/lodash-es-LICENSE +47 -0
  132. package/lib/third-party/bundled/marked-LICENSE.md +44 -0
  133. package/lib/third-party/bundled/mermaid-LICENSE +21 -0
  134. package/lib/third-party/bundled/react-LICENSE +21 -0
  135. package/lib/third-party/bundled/react-dom-LICENSE +21 -0
  136. package/lib/third-party/bundled/robust-predicates-LICENSE +24 -0
  137. package/lib/third-party/bundled/roughjs-LICENSE +21 -0
  138. package/lib/third-party/bundled/scheduler-LICENSE +21 -0
  139. package/lib/third-party/bundled/stylis-LICENSE +21 -0
  140. package/lib/third-party/bundled/three-LICENSE +21 -0
  141. package/lib/third-party/bundled/ts-dedent-LICENSE +21 -0
  142. package/lib/third-party/bundled/tslib-LICENSE.txt +12 -0
  143. package/lib/third-party/bundled/uuid-LICENSE.md +9 -0
  144. package/lib/third-party/bundled/zrender-LICENSE +29 -0
  145. package/lib/third-party/dsh-genui-LICENSE.txt +21 -0
  146. package/lib/third-party/dsh-genui-NOTICE.md +26 -0
  147. package/lib/third-party/echarts-LICENSE.txt +222 -0
  148. package/lib/third-party/echarts-NOTICE.txt +5 -0
  149. package/lib/third-party/katex-LICENSE.txt +21 -0
  150. package/lib/third-party/lucian-uxui-LICENSE.txt +21 -0
  151. package/lib/third-party/lucian-uxui-NOTICE.md +1 -0
  152. package/lib/third-party/mermaid-LICENSE.txt +21 -0
  153. package/lib/third-party/three-LICENSE.txt +21 -0
  154. package/lib/tool-schema.js +20 -9
  155. package/lib/typography.js +16 -0
  156. package/lib/ui-intent.js +15 -14
  157. package/lib/ui-skill.js +54 -47
  158. package/lib/visual-assets.js +7 -0
  159. package/lib/visual-defaults.js +2 -0
  160. package/lib/visual-guard.js +2 -0
  161. package/lib/visual-styles.js +142 -0
  162. package/lib/visual.js +40 -0
  163. package/package.json +20 -5
  164. package/skills/intelligent-ui/SKILL.md +22 -2
@@ -0,0 +1,78 @@
1
+ (()=>{var ZW=Object.defineProperty;var ef=(r,e)=>{for(var t in e)ZW(r,t,{get:e[t],enumerable:!0})};var v_=function(r,e){return v_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])},v_(r,e)};function I(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");v_(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var KW=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),qW=(function(){function r(){this.browser=new KW,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})(),jo=new qW;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(jo.wxa=!0,jo.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?jo.worker=!0:!jo.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(jo.node=!0,jo.svgSupported=!0):jW(navigator.userAgent,jo);function jW(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),a&&(t.ie=!0,t.version=a[1]),n&&(t.edge=!0,t.version=n[1],t.newEdge=+n[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 Ue=jo;var od=12,h_="sans-serif",fi=od+"px "+h_,JW=20,QW=100,$W="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function eY(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),a=(r.charCodeAt(t)-JW)/QW;e[i]=a}return e}var tY=eY($W),Nt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,i){if(!r){var a=Nt.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==i&&(e=r.font=i||fi),r.measureText(t);t=t||"",i=i||fi;var n=/((?:\d+)?\.?\d*)px/.exec(i),o=n&&+n[1]||od,s=0;if(i.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=tY[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 zD=fr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),VD=fr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),tf=Object.prototype.toString,ld=Array.prototype,rY=ld.forEach,iY=ld.filter,m_=ld.slice,aY=ld.map,ND=function(){}.constructor,sd=ND?ND.prototype:null,g_="__proto__",d_=2311,nY=Math.pow(2,53)-1;function ud(){return d_>=nY&&(d_=0),d_++}function hl(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ae(r){if(r==null||typeof r!="object")return r;var e=r,t=tf.call(r);if(t==="[object Array]"){if(!Sc(r)){e=[];for(var i=0,a=r.length;i<a;i++)e[i]=ae(r[i])}}else if(VD[t]){if(!Sc(r)){var n=r.constructor;if(n.from)e=n.from(r);else{e=new n(r.length);for(var i=0,a=r.length;i<a;i++)e[i]=r[i]}}}else if(!zD[t]&&!Sc(r)&&!Jo(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==g_&&(e[o]=ae(r[o]))}return e}function _e(r,e,t){if(!se(e)||!se(r))return t?ae(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==g_){var a=r[i],n=e[i];se(n)&&se(a)&&!V(n)&&!V(a)&&!Jo(n)&&!Jo(a)&&!kD(n)&&!kD(a)&&!Sc(n)&&!Sc(a)?_e(a,n,t):(t||!(i in r))&&(r[i]=ae(e[i]))}return r}function rf(r,e){for(var t=r[0],i=1,a=r.length;i<a;i++)t=_e(t,r[i],e);return t}function k(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==g_&&(r[t]=e[t]);return r}function UD(r,e,t){r=r||{};for(var i=0;i<t.length;i++){var a=t[i];r[a]=e[a]}return r}function re(r,e,t){for(var i=Te(e),a=0,n=i.length;a<n;a++){var o=i[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var Toe=Nt.createCanvas;function de(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 fd(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function st(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),a=0;a<i.length;a++){var n=i[a];n!=="constructor"&&(t?e[n]!=null:r[n]==null)&&(r[n]=e[n])}else re(r,e,t)}function kt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,e,t){if(r&&e)if(r.forEach&&r.forEach===rY)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r);else for(var n in r)r.hasOwnProperty(n)&&e.call(t,r[n],n,r)}function U(r,e,t){if(!r)return[];if(!e)return pd(r);if(r.map&&r.map===aY)return r.map(e,t);for(var i=[],a=0,n=r.length;a<n;a++)i.push(e.call(t,r[a],a,r));return i}function fr(r,e,t,i){if(r&&e){for(var a=0,n=r.length;a<n;a++)t=e.call(i,t,r[a],a,r);return t}}function Ne(r,e,t){if(!r)return[];if(!e)return pd(r);if(r.filter&&r.filter===iY)return r.filter(e,t);for(var i=[],a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r)&&i.push(r[a]);return i}function Vi(r,e,t){if(r&&e){for(var i=0,a=r.length;i<a;i++)if(e.call(t,r[i],i,r))return r[i]}}function Te(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 oY(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat(m_.call(arguments)))}}var K=sd&&ee(sd.bind)?sd.call.bind(sd.bind):oY;function be(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(m_.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):tf.call(r)==="[object Array]"}function ee(r){return typeof r=="function"}function W(r){return typeof r=="string"}function bc(r){return tf.call(r)==="[object String]"}function Ce(r){return typeof r=="number"}function se(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function kD(r){return!!zD[tf.call(r)]}function Yt(r){return!!VD[tf.call(r)]}function Jo(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Qo(r){return r.colorStops!=null}function BD(r){return r.image!=null}function FD(r){return tf.call(r)==="[object RegExp]"}function zt(r){return r!==r}function Pt(){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 J(r,e){return r??e}function Rt(r,e,t){return r??e??t}function pd(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return m_.apply(r,e)}function $o(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 lt(r,e){if(!r)throw new Error(e)}function Jt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var GD="__ec_primitive__";function dl(r){r[GD]=!0}function Sc(r){return r[GD]}var sY=(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 Te(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},r})(),HD=typeof Map=="function";function lY(){return HD?new Map:new sY}var uY=(function(){function r(e){var t=V(e);this.data=lY();var i=this;e instanceof r?e.each(a):e&&T(e,a);function a(n,o){t?i.set(n,o):i.set(o,n)}}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,a){e.call(t,i,a)})},r.prototype.keys=function(){var e=this.data.keys();return HD?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function Z(r){return new uY(r)}function fo(r,e){for(var t=new r.constructor(r.length+e.length),i=0;i<r.length;i++)t[i]=r[i];for(var a=r.length,i=0;i<e.length;i++)t[i+a]=e[i];return t}function es(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}return e&&k(t,e),t}function cd(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function le(r,e){return r.hasOwnProperty(e)}function nt(){}var af=180/Math.PI,Coe=Number.EPSILON||Math.pow(2,-52);function wn(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function rr(r,e){return r[0]=e[0],r[1]=e[1],r}function pi(r){return[r[0],r[1]]}function ta(r,e,t){return r[0]=e,r[1]=t,r}function y_(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function wc(r,e,t,i){return r[0]=e[0]+t[0]*i,r[1]=e[1]+t[1]*i,r}function Va(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function vd(r){return Math.sqrt(fY(r))}function fY(r){return r[0]*r[0]+r[1]*r[1]}function nf(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function ra(r,e){var t=vd(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function hd(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var ia=hd;function pY(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var po=pY;function of(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 ft(r,e,t){var i=e[0],a=e[1];return r[0]=t[0]*i+t[2]*a+t[4],r[1]=t[1]*i+t[3]*a+t[5],r}function Ui(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Bi(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var sf=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),cY=(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 sf(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,a=e.offsetY,n=i-this._x,o=a-this._y;this._x=i,this._y=a,t.drift(n,o,e),this.handler.dispatchToElement(new sf(t,e),"drag",e.event);var s=this.handler.findHover(i,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new sf(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new sf(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new sf(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new sf(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),WD=cY;var vY=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof t=="function"&&(a=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),n[e]||(n[e]=[]);for(var s=0;s<n[e].length;s++)if(n[e][s].h===i)return this;var l={h:i,query:t,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},u=n[e].length-1,f=n[e][u];return f&&f.callAtLast?n[e].splice(u,0,l):n[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 a=[],n=0,o=i[e].length;n<o;n++)i[e][n].h!==t&&a.push(i[e][n]);i[e]=a}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 a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(n&&n.filter&&u.query!=null&&!n.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 n&&n.afterTrigger&&n.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 a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(n&&n.filter&&f.query!=null&&!n.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 n&&n.afterTrigger&&n.afterTrigger(e),this},r})(),Qt=vY;var hY=Math.log(2);function x_(r,e,t,i,a,n){var o=i+"-"+a,s=r.length;if(n.hasOwnProperty(o))return n[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/hY);return r[t][l]}for(var u=i|1<<t,f=t+1;i&1<<f;)f++;for(var p=0,c=0,v=0;c<s;c++){var h=1<<c;h&a||(p+=(v%2?-1:1)*r[t][c]*x_(r,e-1,f,u,a|h,n),v++)}return n[o]=p,p}function __(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={},a=x_(t,8,0,0,0,i);if(a!==0){for(var n=[],o=0;o<8;o++)for(var s=0;s<8;s++)n[s]==null&&(n[s]=0),n[s]+=((o+s)%2?-1:1)*x_(t,7,o===0?1:0,1<<o,1<<s,i)/a*e[o];return function(l,u,f){var p=u*n[6]+f*n[7]+1;l[0]=(u*n[0]+f*n[1]+n[2])/p,l[1]=(u*n[3]+f*n[4]+n[5])/p}}}var dd="___zrEVENTSAVED",S_=[];function YD(r,e,t,i,a){return md(S_,e,i,a,!0)&&md(r,t,S_[0],S_[1])}function XD(r,e){r&&t(r),e&&t(e);function t(i){var a=i[dd];a&&(a.clearMarkers&&a.clearMarkers(),delete i[dd])}}function md(r,e,t,i,a){if(e.getBoundingClientRect&&Ue.domSupported&&!b_(e)){var n=e[dd]||(e[dd]={}),o=dY(e,n),s=mY(o,n,a);if(s)return s(r,t,i),!0}return!1}function dY(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],a=["top","bottom"],n=0;n<4;n++){var o=document.createElement("div"),s=o.style,l=n%2,u=(n>>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",a[u]+":0",i[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){T(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function mY(r,e,t){for(var i=t?"invTrans":"trans",a=e[i],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),p=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&n&&c===n[p]&&v===n[p+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[i]=t?__(s,o):__(o,s))}function b_(r){return r.nodeName.toUpperCase()==="CANVAS"}var gY=/([&<>"'])/g,yY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Xt(r){return r==null?"":(r+"").replace(gY,function(e,t){return yY[t]})}var xY=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,w_=[],_Y=Ue.browser.firefox&&+Ue.browser.version.split(".")[0]<39;function gd(r,e,t,i){return t=t||{},i?ZD(r,e,t):_Y&&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):ZD(r,e,t),t}function ZD(r,e,t){if(Ue.domSupported&&r.getBoundingClientRect){var i=e.clientX,a=e.clientY;if(b_(r)){var n=r.getBoundingClientRect();t.zrX=i-n.left,t.zrY=a-n.top;return}else if(md(w_,r,i,a)){t.zrX=w_[0],t.zrY=w_[1];return}}t.zrX=t.zrY=0}function yd(r){return r||window.event}function ci(r,e,t){if(e=yd(e),e.zrX!=null)return e;var i=e.type,a=i&&i.indexOf("touch")>=0;if(a){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&gd(r,o,e,t)}else{gd(r,e,e,t);var n=SY(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&xY.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function SY(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var a=Math.abs(i!==0?i:t),n=i>0?-1:i<0?1:t>0?-1:1;return 3*a*n}function Tc(r,e,t,i){r.addEventListener(e,t,i)}function KD(r,e,t,i){r.removeEventListener(e,t,i)}var vi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function T_(r){return r.which===2||r.which===3}var jD=(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 a=e.touches;if(a){for(var n={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=gd(i,l,{});n.points.push([u.zrX,u.zrY]),n.touches.push(l)}this._track.push(n)}},r.prototype._recognize=function(e){for(var t in C_)if(C_.hasOwnProperty(t)){var i=C_[t](this._track,e);if(i)return i}},r})();function qD(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function bY(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var C_={pinch:function(r,e){var t=r.length;if(t){var i=(r[t-1]||{}).points,a=(r[t-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var n=qD(i)/qD(a);!isFinite(n)&&(n=1),e.pinchScale=n;var o=bY(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function it(){return[1,0,0,1,0,0]}function Ua(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Tn(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 ar(r,e,t){var i=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],n=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]=a,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function xr(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 Pr(r,e,t,i){i===void 0&&(i=[0,0]);var a=e[0],n=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),p=Math.cos(t);return r[0]=a*p+s*f,r[1]=-a*f+s*p,r[2]=n*p+l*f,r[3]=-n*f+p*l,r[4]=p*(o-i[0])+f*(u-i[1])+i[0],r[5]=p*(u-i[1])-f*(o-i[0])+i[1],r}function uf(r,e,t){var i=t[0],a=t[1];return r[0]=e[0]*i,r[1]=e[1]*a,r[2]=e[2]*i,r[3]=e[3]*a,r[4]=e[4]*i,r[5]=e[5]*a,r}function Zt(r,e){var t=e[0],i=e[2],a=e[4],n=e[1],o=e[3],s=e[5],l=t*o-n*i;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*a)*l,r[5]=(n*a-t*s)*l,r):null}function JD(r){var e=it();return Tn(e,r),e}var wY=(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,a){e.x=t.x+i.x*a,e.y=t.y+i.y*a},r.lerp=function(e,t,i,a){var n=1-a;e.x=n*t.x+a*i.x,e.y=n*t.y+a*i.y},r})(),ye=wY;var _l=Math.min,ff=Math.max,D_=Math.abs,QD=["x","y"],TY=["width","height"],ml=new ye,gl=new ye,yl=new ye,xl=new ye,Fi=L_(),Cc=Fi.minTv,M_=Fi.maxTv,Ac=[0,0],co=(function(){function r(e,t,i,a){A_(this,e,t,i,a)}return r.set=function(e,t,i,a,n){return a<0&&(t=t+a,a=-a),n<0&&(i=i+n,n=-n),e.x=t,e.y=i,e.width=a,e.height=n,e},r.prototype.union=function(e){var t=_l(e.x,this.x),i=_l(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ff(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ff(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 I_(it(),this,e)},r.prototype.intersect=function(e,t,i){return r.intersect(this,e,t,i)},r.intersect=function(e,t,i,a){i&&ye.set(i,0,0);var n=a&&a.outIntersectRect||null,o=a&&a.clamp;if(n&&(n.x=n.y=n.width=n.height=NaN),!e||!t)return!1;e instanceof r||(e=A_(CY,e.x,e.y,e.width,e.height)),t instanceof r||(t=A_(AY,t.x,t.y,t.width,t.height));var s=!!i;Fi.reset(a,s);var l=Fi.touchThreshold,u=e.x+l,f=e.x+e.width-l,p=e.y+l,c=e.y+e.height-l,v=t.x+l,h=t.x+t.width-l,d=t.y+l,m=t.y+t.height-l;if(u>f||p>c||v>h||d>m)return!1;var g=!(f<v||h<u||c<d||m<p);return(s||n)&&(Ac[0]=1/0,Ac[1]=0,$D(u,f,v,h,0,s,n,o),$D(p,c,d,m,1,s,n,o),s&&ye.copy(i,g?Fi.useDir?Fi.dirMinTv:Cc:M_)),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){Sl(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&&Sl(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],n=i[3],o=i[4],s=i[5];e.x=t.x*a+o,e.y=t.y*n+s,e.width=t.width*a,e.height=t.height*n,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ml.x=yl.x=t.x,ml.y=xl.y=t.y,gl.x=xl.x=t.x+t.width,gl.y=yl.y=t.y+t.height,ml.transform(i),xl.transform(i),gl.transform(i),yl.transform(i),e.x=_l(ml.x,gl.x,yl.x,xl.x),e.y=_l(ml.y,gl.y,yl.y,xl.y);var l=ff(ml.x,gl.x,yl.x,xl.x),u=ff(ml.y,gl.y,yl.y,xl.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,i){var a=i.width/t.width,n=i.height/t.height;return e=Ua(e||[]),xr(e,e,ta(E_,-t.x,-t.y)),uf(e,e,ta(E_,a,n)),xr(e,e,ta(E_,i.x,i.y)),e},r})(),Ec=co.create,A_=co.set,Sl=co.copy,I_=co.calculateTransform,xd=co.applyTransform,eM=co.contain,CY=new co(0,0,0,0),AY=new co(0,0,0,0),E_=[];function $D(r,e,t,i,a,n,o,s){var l=D_(e-t),u=D_(i-r),f=_l(l,u),p=QD[a],c=QD[1-a],v=TY[a];e<t||i<r?l<u?(n&&(M_[p]=-l),s&&(o[p]=e,o[v]=0)):(n&&(M_[p]=u),s&&(o[p]=r,o[v]=0)):(o&&(o[p]=ff(r,t),o[v]=_l(e,i)-o[p]),n&&(f<Ac[0]||Fi.useDir)&&(Ac[0]=_l(f,Ac[0]),(l<u||!Fi.bidirectional)&&(Cc[p]=l,Cc[c]=0,Fi.useDir&&Fi.calcDirMTV()),(l>=u||!Fi.bidirectional)&&(Cc[p]=-u,Cc[c]=0,Fi.useDir&&Fi.calcDirMTV())))}function L_(){var r=0,e=new ye,t=new ye,i={minTv:new ye,maxTv:new ye,useDir:!1,dirMinTv:new ye,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(n,o){i.touchThreshold=0,n&&n.touchThreshold!=null&&(i.touchThreshold=ff(0,n.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,n&&n.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),t.copy(i.minTv),r=n.direction,i.bidirectional=n.bidirectional==null||!!n.bidirectional,i.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var n=i.minTv,o=i.dirMinTv,s=n.y*n.y+n.x*n.x,l=Math.sin(r),u=Math.cos(r),f=l*n.y+u*n.x;if(a(f)){a(n.x)&&a(n.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,a(t.x)&&a(t.y)){o.set(0,0);return}(i.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function a(n){return D_(n)<1e-10}return i}var fe=co;var rM="silent";function EY(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:DY}}function DY(){vi(this.event)}var MY=(function(r){I(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})(Qt),Dc=(function(){function r(e,t){this.x=e,this.y=t}return r})(),IY=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],P_=new fe(0,0,0,0),iM=(function(r){I(e,r);function e(t,i,a,n,o){var s=r.call(this)||this;return s._hovered=new Dc(0,0),s.storage=t,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new MY,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new WD(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(T(IY,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,a=t.zrY,n=aM(this,i,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new Dc(i,a):this.findHover(i,a),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 Dc(0,0)},e.prototype.dispatch=function(t,i){var a=this[t];a&&a.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,a){t=t||{};var n=t.target;if(!(n&&n.silent)){for(var o="on"+i,s=EY(i,t,a);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(i,s),n=n.__hostTarget?n.__hostTarget:n.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,a){var n=this.storage.getDisplayList(),o=new Dc(t,i);if(tM(n,o,t,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new fe(t-u,i-u,l,l),p=n.length-1;p>=0;p--){var c=n[p];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(P_.copy(c.getBoundingRect()),c.transform&&P_.applyTransform(c.transform),P_.intersect(f)&&s.push(c))}if(s.length)for(var v=4,h=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=v)for(var g=0;g<d;g+=h){var y=t+m*Math.cos(g),x=i+m*Math.sin(g);if(tM(s,o,y,x,a),o.target)return o}}return o},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new jD);var a=this._gestureMgr;i==="start"&&a.clear();var n=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&a.clear(),n){var o=n.type;t.gestureEvent=o;var s=new Dc;s.target=n.target,this.dispatchToElement(s,o,n.event)}},e})(Qt);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){iM.prototype[r]=function(e){var t=e.zrX,i=e.zrY,a=aM(this,t,i),n,o;if((r!=="mouseup"||!a)&&(n=this.findHover(t,i),o=n.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||ia(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function LY(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(a=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return a?rM:!0}return!1}function tM(r,e,t,i,a){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==a&&!o.ignore&&(s=LY(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==rM)){e.target=o;break}}}function aM(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var nM=iM;var lM=32,Mc=7;function PY(r){for(var e=0;r>=lM;)e|=r&1,r>>=1;return r+e}function oM(r,e,t,i){var a=e+1;if(a===t)return 1;if(i(r[a++],r[e])<0){for(;a<t&&i(r[a],r[a-1])<0;)a++;RY(r,e,a)}else for(;a<t&&i(r[a],r[a-1])>=0;)a++;return a-e}function RY(r,e,t){for(t--;e<t;){var i=r[e];r[e++]=r[t],r[t--]=i}}function sM(r,e,t,i,a){for(i===e&&i++;i<t;i++){for(var n=r[i],o=e,s=i,l;o<s;)l=o+s>>>1,a(n,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]=n}}function R_(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])>0){for(s=i-a;l<s&&n(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&n(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);n(r,e[t+f])>0?o=f+1:l=f}return l}function O_(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])<0){for(s=a+1;l<s&&n(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l<s&&n(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);n(r,e[t+f])<0?l=f:o=f+1}return l}function OY(r,e){var t=Mc,i,a,n=0,o=[];i=[],a=[];function s(v,h){i[n]=v,a[n]=h,n+=1}function l(){for(;n>1;){var v=n-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function u(){for(;n>1;){var v=n-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var h=i[v],d=a[v],m=i[v+1],g=a[v+1];a[v]=d+g,v===n-3&&(i[v+1]=i[v+2],a[v+1]=a[v+2]),n--;var y=O_(r[m],r,h,d,0,e);h+=y,d-=y,d!==0&&(g=R_(r[h+d-1],r,m,g,g-1,e),g!==0&&(d<=g?p(h,d,m,g):c(h,d,m,g)))}function p(v,h,d,m){var g=0;for(g=0;g<h;g++)o[g]=r[v+g];var y=0,x=d,_=v;if(r[_++]=r[x++],--m===0){for(g=0;g<h;g++)r[_+g]=o[y+g];return}if(h===1){for(g=0;g<m;g++)r[_+g]=r[x+g];r[_+m]=o[y];return}for(var S=t,b,w,A;;){b=0,w=0,A=!1;do if(e(r[x],o[y])<0){if(r[_++]=r[x++],w++,b=0,--m===0){A=!0;break}}else if(r[_++]=o[y++],b++,w=0,--h===1){A=!0;break}while((b|w)<S);if(A)break;do{if(b=O_(r[x],o,y,h,0,e),b!==0){for(g=0;g<b;g++)r[_+g]=o[y+g];if(_+=b,y+=b,h-=b,h<=1){A=!0;break}}if(r[_++]=r[x++],--m===0){A=!0;break}if(w=R_(o[y],r,x,m,0,e),w!==0){for(g=0;g<w;g++)r[_+g]=r[x+g];if(_+=w,x+=w,m-=w,m===0){A=!0;break}}if(r[_++]=o[y++],--h===1){A=!0;break}S--}while(b>=Mc||w>=Mc);if(A)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),h===1){for(g=0;g<m;g++)r[_+g]=r[x+g];r[_+m]=o[y]}else{if(h===0)throw new Error;for(g=0;g<h;g++)r[_+g]=o[y+g]}}function c(v,h,d,m){var g=0;for(g=0;g<m;g++)o[g]=r[d+g];var y=v+h-1,x=m-1,_=d+m-1,S=0,b=0;if(r[_--]=r[y--],--h===0){for(S=_-(m-1),g=0;g<m;g++)r[S+g]=o[g];return}if(m===1){for(_-=h,y-=h,b=_+1,S=y+1,g=h-1;g>=0;g--)r[b+g]=r[S+g];r[_]=o[x];return}for(var w=t;;){var A=0,C=0,E=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],A++,C=0,--h===0){E=!0;break}}else if(r[_--]=o[x--],C++,A=0,--m===1){E=!0;break}while((A|C)<w);if(E)break;do{if(A=h-O_(o[x],r,v,h,h-1,e),A!==0){for(_-=A,y-=A,h-=A,b=_+1,S=y+1,g=A-1;g>=0;g--)r[b+g]=r[S+g];if(h===0){E=!0;break}}if(r[_--]=o[x--],--m===1){E=!0;break}if(C=m-R_(r[y],o,0,m,m-1,e),C!==0){for(_-=C,x-=C,m-=C,b=_+1,S=x+1,g=0;g<C;g++)r[b+g]=o[S+g];if(m<=1){E=!0;break}}if(r[_--]=r[y--],--h===0){E=!0;break}w--}while(A>=Mc||C>=Mc);if(E)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),m===1){for(_-=h,y-=h,b=_+1,S=y+1,g=h-1;g>=0;g--)r[b+g]=r[S+g];r[_]=o[x]}else{if(m===0)throw new Error;for(S=_-(m-1),g=0;g<m;g++)r[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function bl(r,e,t,i){t||(t=0),i||(i=r.length);var a=i-t;if(!(a<2)){var n=0;if(a<lM){n=oM(r,t,i,e),sM(r,t,i,t+n,e);return}var o=OY(r,e),s=PY(a);do{if(n=oM(r,t,i,e),n<s){var l=a;l>s&&(l=s),sM(r,t,t+l,t+n,e),n=l}o.pushRun(t,n),o.mergeRuns(),a-=n,t+=n}while(a!==0);o.forceMergeRuns()}}var $t=1,wl=2,ts=4;var uM=!1;function N_(){uM||(uM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function fM(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var NY=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=fM}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,a=0,n=t.length;a<n;a++)this._updateAndAddDisplayable(t[a],null,e);i.length=this._displayListLen,bl(i,fM)},r.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),n=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(n||a)){if(s||(s=e.__clipPaths=[]),n)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=a,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 p=e.childrenRef(),c=0;c<p.length;c++){var v=p[c];e.__dirty&&(v.__dirty|=$t),this._updateAndAddDisplayable(v,s,i)}e.__dirty=0}else{var h=e;isNaN(h.z)&&(N_(),h.z=0),isNaN(h.z2)&&(N_(),h.z2=0),isNaN(h.zlevel)&&(N_(),h.zlevel=0),this._displayList[this._displayListLen++]=h}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 a=de(this._roots,e);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),pM=NY;var cM;cM=Ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Ic=cM;var _d={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-_d.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?_d.bounceIn(r*2)*.5:_d.bounceOut(r*2-1)*.5+.5}},Sd=_d;var bd=Math.pow,is=Math.sqrt,Td=1e-8,hM=1e-4,vM=is(3),wd=1/3,Cn=wn(),aa=wn(),pf=wn();function rs(r){return r>-Td&&r<Td}function dM(r){return r>Td||r<-Td}function Vt(r,e,t,i,a){var n=1-a;return n*n*(n*r+3*a*e)+a*a*(a*i+3*n*t)}function k_(r,e,t,i,a){var n=1-a;return 3*(((e-r)*n+2*(t-e)*a)*n+(i-t)*a*a)}function Tl(r,e,t,i,a,n){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,p=s*l-9*o*u,c=l*l-3*s*u,v=0;if(rs(f)&&rs(p))if(rs(s))n[0]=0;else{var h=-l/s;h>=0&&h<=1&&(n[v++]=h)}else{var d=p*p-4*f*c;if(rs(d)){var m=p/f,h=-s/o+m,g=-m/2;h>=0&&h<=1&&(n[v++]=h),g>=0&&g<=1&&(n[v++]=g)}else if(d>0){var y=is(d),x=f*s+1.5*o*(-p+y),_=f*s+1.5*o*(-p-y);x<0?x=-bd(-x,wd):x=bd(x,wd),_<0?_=-bd(-_,wd):_=bd(_,wd);var h=(-s-(x+_))/(3*o);h>=0&&h<=1&&(n[v++]=h)}else{var S=(2*f*s-3*o*p)/(2*is(f*f*f)),b=Math.acos(S)/3,w=is(f),A=Math.cos(b),h=(-s-2*w*A)/(3*o),g=(-s+w*(A+vM*Math.sin(b)))/(3*o),C=(-s+w*(A-vM*Math.sin(b)))/(3*o);h>=0&&h<=1&&(n[v++]=h),g>=0&&g<=1&&(n[v++]=g),C>=0&&C<=1&&(n[v++]=C)}}return v}function Cd(r,e,t,i,a){var n=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(rs(o)){if(dM(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(rs(f))a[0]=-n/(2*o);else if(f>0){var p=is(f),u=(-n+p)/(2*o),c=(-n-p)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function na(r,e,t,i,a,n){var o=(e-r)*a+r,s=(t-e)*a+e,l=(i-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,p=(f-u)*a+u;n[0]=r,n[1]=o,n[2]=u,n[3]=p,n[4]=p,n[5]=f,n[6]=l,n[7]=i}function Ad(r,e,t,i,a,n,o,s,l,u,f){var p,c=.005,v=1/0,h,d,m,g;Cn[0]=l,Cn[1]=u;for(var y=0;y<1;y+=.05)aa[0]=Vt(r,t,a,o,y),aa[1]=Vt(e,i,n,s,y),m=po(Cn,aa),m<v&&(p=y,v=m);v=1/0;for(var x=0;x<32&&!(c<hM);x++)h=p-c,d=p+c,aa[0]=Vt(r,t,a,o,h),aa[1]=Vt(e,i,n,s,h),m=po(aa,Cn),h>=0&&m<v?(p=h,v=m):(pf[0]=Vt(r,t,a,o,d),pf[1]=Vt(e,i,n,s,d),g=po(pf,Cn),d<=1&&g<v?(p=d,v=g):c*=.5);return f&&(f[0]=Vt(r,t,a,o,p),f[1]=Vt(e,i,n,s,p)),is(v)}function mM(r,e,t,i,a,n,o,s,l){for(var u=r,f=e,p=0,c=1/l,v=1;v<=l;v++){var h=v*c,d=Vt(r,t,a,o,h),m=Vt(e,i,n,s,h),g=d-u,y=m-f;p+=Math.sqrt(g*g+y*y),u=d,f=m}return p}function Ft(r,e,t,i){var a=1-i;return a*(a*r+2*i*e)+i*i*t}function Lc(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function gM(r,e,t,i,a){var n=r-2*e+t,o=2*(e-r),s=r-i,l=0;if(rs(n)){if(dM(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(rs(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var p=is(f),u=(-o+p)/(2*n),c=(-o-p)/(2*n);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function Ed(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function as(r,e,t,i,a){var n=(e-r)*i+r,o=(t-e)*i+e,s=(o-n)*i+n;a[0]=r,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function Dd(r,e,t,i,a,n,o,s,l){var u,f=.005,p=1/0;Cn[0]=o,Cn[1]=s;for(var c=0;c<1;c+=.05){aa[0]=Ft(r,t,a,c),aa[1]=Ft(e,i,n,c);var v=po(Cn,aa);v<p&&(u=c,p=v)}p=1/0;for(var h=0;h<32&&!(f<hM);h++){var d=u-f,m=u+f;aa[0]=Ft(r,t,a,d),aa[1]=Ft(e,i,n,d);var v=po(aa,Cn);if(d>=0&&v<p)u=d,p=v;else{pf[0]=Ft(r,t,a,m),pf[1]=Ft(e,i,n,m);var g=po(pf,Cn);m<=1&&g<p?(u=m,p=g):f*=.5}}return l&&(l[0]=Ft(r,t,a,u),l[1]=Ft(e,i,n,u)),is(p)}function yM(r,e,t,i,a,n,o){for(var s=r,l=e,u=0,f=1/o,p=1;p<=o;p++){var c=p*f,v=Ft(r,t,a,c),h=Ft(e,i,n,c),d=v-s,m=h-l;u+=Math.sqrt(d*d+m*m),s=v,l=h}return u}var kY=/cubic-bezier\(([0-9,\.e ]+)\)/;function cf(r){var e=r&&kY.exec(r);if(e){var t=e[1].split(","),i=+Jt(t[0]),a=+Jt(t[1]),n=+Jt(t[2]),o=+Jt(t[3]);if(isNaN(i+a+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Tl(0,i,n,1,l,s)&&Vt(0,a,o,1,s[0])}}}var zY=(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||nt,this.ondestroy=e.ondestroy||nt,this.onrestart=e.onrestart||nt,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,a=e-this._startTime-this._pausedTime,n=a/i;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=a%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=ee(e)?e:Sd[e]||cf(e)},r})(),xM=zY;var _M=(function(){function r(e){this.value=e}return r})();var VY=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new _M(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 UY=(function(){function r(e){this._list=new VY,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,a=this._map,n=null;if(a[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new _M(t),s.key=e,i.insertEntry(s),a[e]=s}return n},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})(),An=UY;var SM={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 Ba(r){return r=Math.round(r),r<0?0:r>255?255:r}function BY(r){return r=Math.round(r),r<0?0:r>360?360:r}function Rc(r){return r<0?0:r>1?1:r}function z_(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ba(parseFloat(e)/100*255):Ba(parseInt(e,10))}function vo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Rc(parseFloat(e)/100):Rc(parseFloat(e))}function V_(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 ns(r,e,t){return r+(e-r)*t}function oa(r,e,t,i,a){return r[0]=e,r[1]=t,r[2]=i,r[3]=a,r}function U_(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var wM=new An(20),Md=null;function vf(r,e){Md&&U_(Md,e),Md=wM.put(r,Md||e.slice())}function nr(r,e){if(r){e=e||[];var t=wM.get(r);if(t)return U_(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in SM)return U_(e,SM[i]),vf(r,e),e;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var n=parseInt(i.slice(1,4),16);if(!(n>=0&&n<=4095)){oa(e,0,0,0,1);return}return oa(e,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),vf(r,e),e}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){oa(e,0,0,0,1);return}return oa(e,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),vf(r,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===a){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?oa(e,+u[0],+u[1],+u[2],1):oa(e,0,0,0,1);f=vo(u.pop());case"rgb":if(u.length>=3)return oa(e,z_(u[0]),z_(u[1]),z_(u[2]),u.length===3?f:vo(u[3])),vf(r,e),e;oa(e,0,0,0,1);return;case"hsla":if(u.length!==4){oa(e,0,0,0,1);return}return u[3]=vo(u[3]),B_(u,e),vf(r,e),e;case"hsl":if(u.length!==3){oa(e,0,0,0,1);return}return B_(u,e),vf(r,e),e;default:return}}oa(e,0,0,0,1)}}function B_(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=vo(r[1]),a=vo(r[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return e=e||[],oa(e,Ba(V_(o,n,t+1/3)*255),Ba(V_(o,n,t)*255),Ba(V_(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function FY(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,a=Math.min(e,t,i),n=Math.max(e,t,i),o=n-a,s=(n+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+a):u=o/(2-n-a);var f=((n-e)/6+o/2)/o,p=((n-t)/6+o/2)/o,c=((n-i)/6+o/2)/o;e===n?l=c-p:t===n?l=1/3+f-c:i===n&&(l=2/3+p-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function Id(r,e){var t=nr(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 di(t,t.length===4?"rgba":"rgb")}}function Ld(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=e[a],s=e[n],l=i-a;return t[0]=Ba(ns(o[0],s[0],l)),t[1]=Ba(ns(o[1],s[1],l)),t[2]=Ba(ns(o[2],s[2],l)),t[3]=Rc(ns(o[3],s[3],l)),t}}function TM(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=nr(e[a]),s=nr(e[n]),l=i-a,u=di([Ba(ns(o[0],s[0],l)),Ba(ns(o[1],s[1],l)),Ba(ns(o[2],s[2],l)),Rc(ns(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}function sa(r,e,t,i){var a=nr(r);if(r)return a=FY(a),e!=null&&(a[0]=BY(ee(e)?e(a[0]):e)),t!=null&&(a[1]=vo(ee(t)?t(a[1]):t)),i!=null&&(a[2]=vo(ee(i)?i(a[2]):i)),di(B_(a),"rgba")}function Cl(r,e){var t=nr(r);if(t&&e!=null)return t[3]=Rc(e),di(t,"rgba")}function di(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 hf(r,e){var t=nr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var bM=new An(100);function Oc(r){if(W(r)){var e=bM.get(r);return e||(e=Id(r,-.1),bM.put(r,e)),e}else if(Qo(r)){var t=k({},r);return t.colorStops=U(r.colorStops,function(i){return{offset:i.offset,color:Id(i.color,-.1)}}),t}return r}var Od=Math.round;function os(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=nr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var CM=1e-4;function En(r){return r<CM&&r>-CM}function Rd(r){return Od(r*1e3)/1e3}function Nd(r){return Od(r*1e4)/1e4}function AM(r){return"matrix("+Rd(r[0])+","+Rd(r[1])+","+Rd(r[2])+","+Rd(r[3])+","+Nd(r[4])+","+Nd(r[5])+")"}var EM={left:"start",right:"end",center:"middle",middle:"middle"};function DM(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function MM(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function IM(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function F_(r){return r&&!!r.image}function GY(r){return r&&!!r.svgElement}function Nc(r){return F_(r)||GY(r)}function kd(r){return r.type==="linear"}function zd(r){return r.type==="radial"}function Vd(r){return r&&(r.type==="linear"||r.type==="radial")}function kc(r){return"url(#"+r+")"}function Ud(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Bd(r){var e=r.x||0,t=r.y||0,i=(r.rotation||0)*af,a=J(r.scaleX,1),n=J(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(a!==1||n!==1)&&l.push("scale("+a+","+n+")"),(o||s)&&l.push("skew("+Od(o*af)+"deg, "+Od(s*af)+"deg)"),l.join(" ")}var LM=(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 H_=Array.prototype.slice;function ho(r,e,t){return(e-r)*t+r}function G_(r,e,t,i){for(var a=e.length,n=0;n<a;n++)r[n]=ho(e[n],t[n],i);return r}function HY(r,e,t,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=ho(e[o][s],t[o][s],i)}return r}function Fd(r,e,t,i){for(var a=e.length,n=0;n<a;n++)r[n]=e[n]+t[n]*i;return r}function PM(r,e,t,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=e[o][s]+t[o][s]*i}return r}function WY(r,e){for(var t=r.length,i=e.length,a=t>i?e:r,n=Math.min(t,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(t,i);s++)a.push({offset:o.offset,color:o.color.slice()})}function YY(r,e,t){var i=r,a=e;if(!(!i.push||!a.push)){var n=i.length,o=a.length;if(n!==o){var s=n>o;if(s)i.length=o;else for(var l=n;l<o;l++)i.push(t===1?a[l]:H_.call(a[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=a[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=a[l][f])}}function Al(r){if(kt(r)){var e=r.length;if(kt(r[0])){for(var t=[],i=0;i<e;i++)t.push(H_.call(r[i]));return t}return H_.call(r)}return r}function Wd(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 XY(r){return kt(r&&r[0])?2:1}var Gd=0,Yd=1,NM=2,Vc=3,W_=4,Y_=5,RM=6;function OM(r){return r===W_||r===Y_}function Hd(r){return r===Yd||r===NM}var zc=[0,0,0,0],ZY=(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 a=this.keyframes,n=a.length,o=!1,s=RM,l=t;if(kt(t)){var u=XY(t);s=u,(u===1&&!Ce(t[0])||u===2&&!Ce(t[0][0]))&&(o=!0)}else if(Ce(t)&&!zt(t))s=Gd;else if(W(t))if(!isNaN(+t))s=Gd;else{var f=nr(t);f&&(l=f,s=Vc)}else if(Qo(t)){var p=k({},l);p.colorStops=U(t.colorStops,function(v){return{offset:v.offset,color:nr(v.color)}}),kd(t)?s=W_:zd(t)&&(s=Y_),l=p}n===0?this.valType=s:(s!==this.valType||s===RM)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return i&&(c.easing=i,c.easingFunc=ee(i)?i:Sd[i]||cf(i)),a.push(c),c},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=Hd(a),u=OM(a),f=0;f<n;f++){var p=i[f],c=p.value,v=o.value;p.percent=p.time/e,s||(l&&f!==n-1?YY(c,v,a):u&&WY(c.colorStops,v.colorStops))}if(!s&&a!==Y_&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var h=i[0].value,f=0;f<n;f++)a===Gd?i[f].additiveValue=i[f].value-h:a===Vc?i[f].additiveValue=Fd([],i[f].value,h,-1):Hd(a)&&(i[f].additiveValue=a===Yd?Fd([],i[f].value,h,-1):PM([],i[f].value,h,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===Vc,f,p=this._lastFr,c=Math.min,v,h;if(s===1)v=h=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=c(p+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=p;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}h=o[f+1],v=o[f]}if(v&&h){this._lastFr=f,this._lastFrP=t;var m=h.percent-v.percent,g=m===0?1:c((t-v.percent)/m,1);h.easingFunc&&(g=h.easingFunc(g));var y=i?this._additiveValue:u?zc:e[l];if((Hd(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?v.rawValue:h.rawValue;else if(Hd(n))n===Yd?G_(y,v[a],h[a],g):HY(y,v[a],h[a],g);else if(OM(n)){var x=v[a],_=h[a],S=n===W_;e[l]={type:S?"linear":"radial",x:ho(x.x,_.x,g),y:ho(x.y,_.y,g),colorStops:U(x.colorStops,function(w,A){var C=_.colorStops[A];return{offset:ho(w.offset,C.offset,g),color:Wd(G_([],w.color,C.color,g))}}),global:_.global},S?(e[l].x2=ho(x.x2,_.x2,g),e[l].y2=ho(x.y2,_.y2,g)):e[l].r=ho(x.r,_.r,g)}else if(u)G_(y,v[a],h[a],g),i||(e[l]=Wd(y));else{var b=ho(v[a],h[a],g);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,a=this._additiveValue;t===Gd?e[i]=e[i]+a:t===Vc?(nr(e[i],zc),Fd(zc,zc,a,1),e[i]=Wd(zc)):t===Yd?Fd(e[i],e[i],a,1):t===NM&&PM(e[i],e[i],a,1)},r})(),KY=(function(){function r(e,t,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){hl("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,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,Te(t),i)},r.prototype.whenWithKeys=function(e,t,i,a){for(var n=this._tracks,o=0;o<i.length;o++){var s=i[o],l=n[s];if(!l){l=n[s]=new ZY(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var p=f.keyframes,c=p[p.length-1];u=c&&c.value,f.valType===Vc&&u&&(u=Wd(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Al(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Al(t[s]),a)}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 a=0;a<i.length;a++){var n=i[a].getTrack(e);n&&(t=n)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],a=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var p=u[f-1];p&&(t._target[s.propName]=p.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new xM({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var h=t._additiveAnimators;if(h){for(var d=!1,m=0;m<h.length;m++)if(h[m]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(t._target,v);var g=t._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.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 U(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,a=this._trackKeys,n=0;n<e.length;n++){var o=i[e[n]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<a.length;n++)if(!i[a[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var n=t[a],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[n]=Al(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Te(e);for(var i=0;i<t.length;i++){var a=t[i],n=this._tracks[a];if(n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r})(),Uc=KY;function El(){return new Date().getTime()}var qY=(function(r){I(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,a=t.next;i?i.next=a:this._head=a,a?a.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=El()-this._pausedTime,a=i-this._time,n=this._head;n;){var o=n.next,s=n.step(i,a);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=i,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Ic(i),!t._paused&&t.update())}Ic(i)},e.prototype.start=function(){this._running||(this._time=El(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=El(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=El()-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 a=new Uc(t,i.loop);return this.addAnimator(a),a},e})(Qt),kM=qY;var jY=300,X_=Ue.domSupported,Z_=(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=U(r,function(a){var n=a.replace("mouse","pointer");return t.hasOwnProperty(n)?n:a});return{mouse:r,touch:e,pointer:i}})(),zM={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},VM=!1;function j_(r){var e=r.pointerType;return e==="pen"||e==="touch"}function JY(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 K_(r){r&&(r.zrByTouch=!0)}function QY(r,e){return ci(r.dom,new $Y(r,e),!0)}function BM(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 $Y=(function(){function r(e,t){this.stopPropagation=nt,this.stopImmediatePropagation=nt,this.preventDefault=nt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Fa={mousedown:function(r){r=ci(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ci(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=ci(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ci(this.dom,r);var e=r.toElement||r.relatedTarget;BM(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){VM=!0,r=ci(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){VM||(r=ci(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ci(this.dom,r),K_(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Fa.mousemove.call(this,r),Fa.mousedown.call(this,r)},touchmove:function(r){r=ci(this.dom,r),K_(r),this.handler.processGesture(r,"change"),Fa.mousemove.call(this,r)},touchend:function(r){r=ci(this.dom,r),K_(r),this.handler.processGesture(r,"end"),Fa.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<jY&&Fa.click.call(this,r)},pointerdown:function(r){Fa.mousedown.call(this,r)},pointermove:function(r){j_(r)||Fa.mousemove.call(this,r)},pointerup:function(r){Fa.mouseup.call(this,r)},pointerout:function(r){j_(r)||Fa.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){Fa[r]=function(e){e=ci(this.dom,e),this.trigger(r,e)}});var J_={pointermove:function(r){j_(r)||J_.mousemove.call(this,r)},pointerup:function(r){J_.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 e4(r,e){var t=e.domHandlers;Ue.pointerEventsSupported?T(Z_.pointer,function(i){Xd(e,i,function(a){t[i].call(r,a)})}):(Ue.touchEventsSupported&&T(Z_.touch,function(i){Xd(e,i,function(a){t[i].call(r,a),JY(e)})}),T(Z_.mouse,function(i){Xd(e,i,function(a){a=yd(a),e.touching||t[i].call(r,a)})}))}function t4(r,e){Ue.pointerEventsSupported?T(zM.pointer,t):Ue.touchEventsSupported||T(zM.mouse,t);function t(i){function a(n){n=yd(n),BM(r,n.target)||(n=QY(r,n),e.domHandlers[i].call(r,n))}Xd(e,i,a,{capture:!0})}}function Xd(r,e,t,i){r.mounted[e]=t,r.listenerOpts[e]=i,Tc(r.domTarget,e,t,i)}function q_(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&KD(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var UM=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),r4=(function(r){I(e,r);function e(t,i){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=i,a._localHandlerScope=new UM(t,Fa),X_&&(a._globalHandlerScope=new UM(document,J_)),e4(a,a._localHandlerScope),a}return e.prototype.dispose=function(){q_(this._localHandlerScope),X_&&q_(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,X_&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?t4(this,i):q_(i)}},e})(Qt),FM=r4;var GM=1;Ue.hasGlobalWindow&&(GM=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Dl=GM,Bc=.4,Fc="#333",Gc="#ccc",HM="#eee";var WM=Ua,YM=5e-5;function Ml(r){return r>YM||r<-YM}var Il=[],df=[],Q_=it(),$_=Math.abs,eS=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return Dn(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 Ml(this.rotation)||Ml(this.x)||Ml(this.y)||Ml(this.scaleX-1)||Ml(this.scaleY-1)||Ml(this.skewX)||Ml(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(WM(i),this.invTransform=null);return}i=i||it(),t?this.getLocalTransform(i):WM(i),e&&(t?ar(i,e,i):Tn(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||it(),Zt(this.invTransform,i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Il);var i=Il[0]<0?-1:1,a=Il[1]<0?-1:1,n=((Il[0]-i)*t+i)/Il[0]||0,o=((Il[1]-a)*t+a)/Il[1]||0;e[0]*=n,e[1]*=n,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],a=Math.atan2(e[1],e[0]),n=Math.PI/2+a-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(n),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-a,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||it(),ar(df,e.invTransform,t),t=df);var i=this.originX,a=this.originY;(i||a)&&(Q_[4]=i,Q_[5]=a,ar(df,t,Q_),df[4]-=i,df[5]-=a,t=df),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],a=this.invTransform;return a&&ft(i,i,a),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],a=this.transform;return a&&ft(i,i,a),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&$_(e[0]-1)>1e-10&&$_(e[3]-1)>1e-10?Math.sqrt($_(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){mi(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,a=e.originY||0,n=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,p=e.y,c=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(i||a||s||l){var h=i+s,d=a+l;t[4]=-h*n-c*d*o,t[5]=-d*o-v*h*n}else t[4]=t[5]=0;return t[0]=n,t[3]=o,t[1]=v*n,t[2]=c*o,u&&Pr(t,t,u),t[4]+=i+f,t[5]+=a+p,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})(),Dn=eS.getLocalTransform;function Ll(){return new eS}var la=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mi(r,e){return UD(r,e,la)}var gi=eS;function Ga(r){Zd||(Zd=new An(100)),r=r||fi;var e=Zd.get(r);return e||(e={font:r,strWidthCache:new An(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Nt.measureText("\u56FD",r).width,asciiCharWidth:Nt.measureText("a",r).width},Zd.put(r,e)),e}var Zd;function i4(r){if(!(tS>=XM)){r=r||fi;for(var e=[],t=+new Date,i=0;i<=127;i++)e[i]=Nt.measureText(String.fromCharCode(i),r).width;var a=+new Date-t;return a>16?tS=XM:a>2&&tS++,e}}var tS=0,XM=5;function rS(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=i4(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Ha(r,e){var t=r.strWidthCache,i=t.get(e);return i==null&&(i=Nt.measureText(e,r.font).width,t.put(e,i)),i}function ZM(r,e,t,i){var a=Ha(Ga(e),r),n=Pl(e),o=ls(0,a,t),s=mo(0,n,i),l=new fe(o,s,a,n);return l}function ss(r,e,t,i){var a=((r||"")+"").split(`
2
+ `),n=a.length;if(n===1)return ZM(a[0],e,t,i);for(var o=new fe(0,0,0,0),s=0;s<a.length;s++){var l=ZM(a[s],e,t,i);s===0?o.copy(l):o.union(l)}return o}function ls(r,e,t,i){return t==="right"?i?r+=e:r-=e:t==="center"&&(i?r+=e/2:r-=e/2),r}function mo(r,e,t,i){return t==="middle"?i?r+=e/2:r-=e/2:t==="bottom"&&(i?r+=e:r-=e),r}function Pl(r){return Ga(r).stWideCharWidth}function Rr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Rl(r,e,t){var i=e.position||"inside",a=e.distance!=null?e.distance:5,n=t.height,o=t.width,s=n/2,l=t.x,u=t.y,f="left",p="top";if(i instanceof Array)l+=Rr(i[0],t.width),u+=Rr(i[1],t.height),f=null,p=null;else switch(i){case"left":l-=a,u+=s,f="right",p="middle";break;case"right":l+=a+o,u+=s,p="middle";break;case"top":l+=o/2,u-=a,f="center",p="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",p="middle";break;case"insideLeft":l+=a,u+=s,p="middle";break;case"insideRight":l+=o-a,u+=s,f="right",p="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",p="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=n-a,p="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",p="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=p,r}var iS="__zr_normal__",aS=la.concat(["ignore"]),a4=fr(la,function(r,e){return r[e]=!0,r},{ignore:!1}),mf={},n4=new fe(0,0,0,0),qd=[],jd=0,gf=1,sS=(function(){function r(e){this.id=ud(),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 a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[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,a=i.local,n=t.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;n.copyTransform(t);var f=i.position!=null,p=i.autoOverflowArea,c=void 0;if((p||f)&&(c=n4,i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(mf,i,c):Rl(mf,i,c),n.x=mf.x,n.y=mf.y,o=mf.align,s=mf.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var h=void 0,d=void 0;v==="center"?(h=c.width*.5,d=c.height*.5):(h=Rr(v[0],c.width),d=Rr(v[1],c.height)),u=!0,n.originX=-n.x+h+(a?0:c.x),n.originY=-n.y+d+(a?0:c.y)}}i.rotation!=null&&(n.rotation=i.rotation);var m=i.offset;m&&(n.x+=m[0],n.y+=m[1],u||(n.originX=-m[0],n.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(p){var y=g.overflowRect=g.overflowRect||new fe(0,0,0,0);n.getLocalTransform(qd),Zt(qd,qd),fe.copy(y,c),y.applyTransform(qd)}else g.overflowRect=null;var x=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,_=void 0,S=void 0,b=void 0;x&&this.canBeInsideText()?(_=i.insideFill,S=i.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(_),b=!0)):(_=i.outsideFill,S=i.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(_),b=!0)),_=_||"#000",(_!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=_,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=$t,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()?Gc:Fc},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&nr(t);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*a+(n?0:255)*(1-a);return i[3]=1,di(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||{},k(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(se(e))for(var i=e,a=Te(i),n=0;n<a.length;n++){var o=a[n];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 a=this.animators[i],n=a.__fromStateTransition;if(!(a.getLoop()||n&&n!==iS)){var o=a.targetName,s=o?t[o]:t;a.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,aS)},r.prototype._savePrimaryToNormal=function(e,t,i){for(var a=0;a<i.length;a++){var n=i[a];e[n]!=null&&!(n in t)&&(t[n]=this[n])}},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(iS,!1,e)},r.prototype.useState=function(e,t,i,a){var n=e===iS,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(de(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){hl("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=this._textContent,p=KM(this,f,u,a);p&&!this.__inHover&&(this.__inHover=p),this._applyStateObj(e,u,this._normalState,t,jM(this,i,l),l);var c=this._textGuide;return f&&f.useState(e,t,i,!!p),c&&c.useState(e,t,i,!!p),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!p&&this.__inHover&&(this.__inHover=jd,this.__dirty&=~$t),u}}},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var a=[],n=this.currentStates,o=e.length,s=o===n.length;if(s){for(var l=0;l<o;l++)if(e[l]!==n[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&&a.push(f)}var p=a[o-1],c=this._textContent,v=KM(this,c,p,i);v&&!this.__inHover&&(this.__inHover=v);var h=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,jM(this,t,d),d);var m=this._textGuide;c&&c.useStates(e,t,!!v),m&&m.useStates(e,t,!!v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=jd,this.__dirty&=~$t)}},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=de(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 a=this.currentStates.slice(),n=de(a,e),o=de(a,t)>=0;n>=0?o?a.splice(n,1):a[n]=t:i&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,a=0;a<e.length;a++){var n=e[a];k(t,n),n.textConfig&&(i=i||{},k(i,n.textConfig))}return i&&(t.textConfig=i),t},r.prototype._applyStateObj=function(e,t,i,a,n,o){if(this.__inHover!==gf){var s=!(t&&a);t&&t.textConfig?(this.textConfig=k({},a?this.textConfig:i.textConfig),k(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<aS.length;f++){var p=aS[f],c=n&&a4[p];t&&t[p]!=null?c?(u=!0,l[p]=t[p]):this[p]=t[p]:s&&i[p]!=null&&(c?(u=!0,l[p]=i[p]):this[p]=i[p])}if(!n)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],h=v.targetName;v.getLoop()||v.__changeFinalValue(h?(t||i)[h]: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 gi,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k(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|=$t;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 a=e?this[e]:this,n=new Uc(a,t,i);return e&&(n.targetName=e),this.addAnimator(n,e),n},r.prototype.addAnimator=function(e,t){var i=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var n=a.animators,o=de(n,e);o>=0&&n.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,a=i.length,n=[],o=0;o<a;o++){var s=i[o];!e||e===s.scope?s.stop(t):n.push(s)}return this.animators=n,this},r.prototype.animateTo=function(e,t,i){nS(this,e,t,i)},r.prototype.animateFrom=function(e,t,i){nS(this,e,t,i,!0)},r.prototype._transitionState=function(e,t,i,a){for(var n=nS(this,t,i,a),o=0;o<n.length;o++)n[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=jd,e.__dirty=$t;var t={};function i(n,o,s){t[n+o+s]||(console.warn("DEPRECATED: '"+n+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[n+o+s]=!0)}function a(n,o,s,l){Object.defineProperty(e,n,{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,p){Object.defineProperty(p,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(p,1,{get:function(){return f[l]},set:function(c){f[l]=c}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))})(),r})();st(sS,Qt);st(sS,gi);function nS(r,e,t,i,a){t=t||{};var n=[];JM(r,"",r,e,t,i,n,a);var o=n.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},p=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),n.length>0&&t.during&&n[0].during(function(h,d){t.during(d)});for(var c=0;c<n.length;c++){var v=n[c];f&&v.done(f),p&&v.aborted(p),t.force&&v.duration(t.duration),v.start(t.easing)}return n}function oS(r,e,t){for(var i=0;i<t;i++)r[i]=e[i]}function o4(r){return kt(r[0])}function s4(r,e,t){if(kt(e[t]))if(kt(r[t])||(r[t]=[]),Yt(e[t])){var i=e[t].length;r[t].length!==i&&(r[t]=new e[t].constructor(i),oS(r[t],e[t],i))}else{var a=e[t],n=r[t],o=a.length;if(o4(a))for(var s=a[0].length,l=0;l<o;l++)n[l]?oS(n[l],a[l],s):n[l]=Array.prototype.slice.call(a[l]);else oS(n,a,o);n.length=a.length}else r[t]=e[t]}function l4(r,e){return r===e||kt(r)&&kt(e)&&u4(r,e)}function u4(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 JM(r,e,t,i,a,n,o,s){for(var l=Te(i),u=a.duration,f=a.delay,p=a.additive,c=a.setToFinal,v=!se(n),h=r.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&t[g]!=null&&(v||n[g]))if(se(y)&&!kt(y)&&!Qo(y)){if(e){s||(t[g]=y,r.updateDuringAnimation(e));continue}JM(r,g,t[g],y,a,n&&n[g],o,s)}else d.push(g);else s||(t[g]=y,r.updateDuringAnimation(e),d.push(g))}var x=d.length;if(!p&&x)for(var _=0;_<h.length;_++){var S=h[_];if(S.targetName===e){var b=S.stopTracks(d);if(b){var w=de(h,S);h.splice(w,1)}}}if(a.force||(d=Ne(d,function(D){return!l4(i[D],t[D])}),x=d.length),x>0||a.force&&!o.length){var A=void 0,C=void 0,E=void 0;if(s){C={},c&&(A={});for(var _=0;_<x;_++){var g=d[_];C[g]=t[g],c?A[g]=i[g]:t[g]=i[g]}}else if(c){E={};for(var _=0;_<x;_++){var g=d[_];E[g]=Al(t[g]),s4(t,i,g)}}var S=new Uc(t,!1,!1,p?Ne(h,function(L){return L.targetName===e}):null);S.targetName=e,a.scope&&(S.scope=a.scope),c&&A&&S.whenWithKeys(0,A,d),E&&S.whenWithKeys(0,E,d),S.whenWithKeys(u??500,s?C:i,d).delay(f||0),r.addAnimator(S,e),o.push(S)}}function KM(r,e,t,i){return!(t&&t.hoverLayer||i)||qM(r)||e&&qM(e)?jd:gf}function qM(r){return r.type==="text"||r.type==="tspan"}function jM(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var Jd=sS;var QM=(function(r){I(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,a=0;a<i.length;a++)if(i[a].name===t)return i[a]},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 a=this._children,n=a.indexOf(i);n>=0&&(a.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var a=de(this._children,t);return a>=0&&this.replaceAt(i,a),this},e.prototype.replaceAt=function(t,i){var a=this._children,n=a[i];if(t&&t!==this&&t.parent!==this&&t!==n){a[i]=t,n.parent=null;var o=this.__zr;o&&n.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,a=this._children,n=de(a,t);return n<0?this:(a.splice(n,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,a=0;a<t.length;a++){var n=t[a];i&&n.removeSelfFromZr(i),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var a=this._children,n=0;n<a.length;n++){var o=a[n];t.call(i,o,n)}return this},e.prototype.traverse=function(t,i){for(var a=0;a<this._children.length;a++){var n=this._children[a],o=t.call(i,n);n.isGroup&&!o&&n.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 a=this._children[i];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new fe(0,0,0,0),a=t||this._children,n=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(n);f?(fe.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Jd);QM.prototype.type="group";var te=QM;var Qd={},$M={};function f4(r){delete $M[r]}function p4(r){if(!r)return!1;if(typeof r=="string")return hf(r,1)<Bc;if(r.colorStops){for(var e=r.colorStops,t=0,i=e.length,a=0;a<i;a++)t+=hf(e[a].color,1);return t/=i,t<Bc}return!1}var c4=(function(){function r(e,t,i){var a=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 n=new pM,o=i.renderer||"canvas";Qd[o]||(o=Te(Qd)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Qd[o](t,n,i,e),l=i.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!Ue.node&&!Ue.worker&&!l?new FM(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,p=f==null||f==="auto"?Ue.touchEventsSupported:!!f,c=44,v;p&&(v=J(i.pointerSize,c)),this.handler=new nM(n,s,u,s.root,v),this.animation=new kM({stage:{update:l?null:function(){return a._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=p4(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=El(),a=this._needsRefresh,n=this._needsRefreshHover;(a||n)&&(t=!0,this._refresh({animUpdate:e,refresh:a,refreshHover:n}));var o=El();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 te&&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,f4(this.id))},r})();function uS(r,e){var t=new c4(ud(),r,e);return $M[t.id]=t,t}function eI(r,e){Qd[r]=e}var lS;function tI(r){if(typeof lS=="function")return lS(r)}function rI(r){lS=r}var iI=1e-4,$d=20,aI=14;function h4(r){return r.replace(/^\s+|\s+$/g,"")}var Ye=Math.min,Ae=Math.max,ht=Math.abs,yi=Math.round,_r=Math.floor,ua=Math.ceil,fs=Math.pow,us=Math.log,Hc=Math.LN10,yf=Math.PI,d4=Math.random;function Ge(r,e,t,i){var a=e[0],n=e[1],o=t[0],s=t[1],l=n-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=a)return o;if(r>=n)return s}else{if(r>=a)return o;if(r<=n)return s}else{if(r===a)return o;if(r===n)return s}return(r-a)/l*u+o}var $=m4;function m4(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 xf(r,e,t)}function xf(r,e,t){return W(r)?oI(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function nI(r){return W(r)&&oI(r)}function oI(r){return!!h4(r).match(/%$/)}function Be(r,e,t){return isNaN(e)?t?""+r:+r:(e=Ye(Ae(0,e),$d),r=(+r).toFixed(e),t?r:+r)}function sI(r,e,t){return e==null&&(e=10),Be(r,e,t)}function gt(r){return r.sort(function(e,t){return e-t}),r}function Yr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(yi(r*e)/e===r)return t}return fS(r)}function fS(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,a=t>0?t:e.length,n=e.indexOf("."),o=n<0?0:a-1-n;return Ae(0,o-i)}function lI(r,e){var t=_r(us(r[1]-r[0])/Hc),i=yi(us(ht(e[1]-e[0]))/Hc),a=Ye(Ae(-t+i,0),$d);return isFinite(a)?a:$d}function _f(r,e,t){var i=ht(r[1]-r[0]);if(!isFinite(i)||i===0)return NaN;var a=us(2*ht(t||1)*ht(i))/Hc,n=us(ht(e))/Hc,o=Ae(0,ua(-a+n));return isFinite(o)||(o=NaN),o}function uI(r,e,t){if(!r[e])return 0;var i=pS(r,t);return i[e]||0}function pS(r,e){var t=fr(r,function(v,h){return v+(isNaN(h)?0:h)},0);if(t===0)return[];for(var i=fs(10,e),a=U(r,function(v){return(isNaN(v)?0:v)/t*i*100}),n=i*100,o=U(a,function(v){return _r(v)}),s=fr(o,function(v,h){return v+h},0),l=U(a,function(v,h){return v-o[h]});s<n;){for(var u=Number.NEGATIVE_INFINITY,f=null,p=0,c=l.length;p<c;++p)l[p]>u&&(u=l[p],f=p);++o[f],l[f]=0,++s}return U(o,function(v){return v/i})}function go(r,e){var t=Ae(Yr(r),Yr(e)),i=r+e;return t>$d?i:Be(i,t)}var ps=fs(2,53)-1;function Wc(r){var e=yf*2;return(r%e+e)%e}function Mn(r){return r>-iI&&r<iI}var g4=/^(?:(\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(W(r)){var e=g4.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(yi(r))}function Sf(r){return fs(10,bf(r))}function bf(r){if(r===0)return 0;var e=_r(us(r)/Hc);return r/fs(10,e)>=10&&e++,e}var cS=2;function yo(r,e){var t=bf(r),i=fs(10,t),a=r/i,n;return e===cS?n=1:e?a<1.5?n=1:a<2.5?n=2:a<4?n=3:a<7?n=5:n=10:a<1?n=1:a<2?n=2:a<3?n=3:a<5?n=5:n=10,r=n*i,Be(r,-t)}function wf(r,e){var t=(r.length-1)*e+1,i=_r(t),a=+r[i-1],n=t-i;return n?a+n*(r[i]-a):a}function Yc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i<r.length;){for(var a=r[i].interval,n=r[i].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,n[o]=o?1:1-t),e=a[o],t=n[o];a[0]===a[1]&&n[0]*n[1]!==1?r.splice(i,1):i++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function xi(r){var e=parseFloat(r);return e==r&&(e!==0||!W(r)||r.indexOf("x")<=0)?e:NaN}function Ol(r){return!isNaN(xi(r))}function Xc(){return yi(d4()*9)}function fI(r,e){return e===0?r:fI(e,r%e)}function vS(r,e){return r==null?e:e==null?r:r*e/fI(r,e)}function or(r){return r!=null&&isFinite(r)}var y4="[ECharts] ",pI={},x4=typeof console<"u"&&console.warn&&console.log;function cI(r,e,t){if(x4){if(t){if(pI[e])return;pI[e]=!0}console[r](y4+e)}}function vI(r,e){cI("warn",r,e)}function hS(r,e){cI("error",r,e)}function Ke(r){throw new Error(r)}function hI(r,e,t){return(e-r)*t+r}var dI="series\0",mI="\0_ec_\0";function qe(r){return r instanceof Array?r:r==null?[]:[r]}function Gi(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var i=0,a=t.length;i<a;i++){var n=t[i];!r.emphasis[e].hasOwnProperty(n)&&r[e].hasOwnProperty(n)&&(r.emphasis[e][n]=r[e][n])}}}var dS=["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 Ya(r){return se(r)&&!V(r)&&!(r instanceof Date)?r.value:r}function gI(r){return se(r)&&!(r instanceof Array)}function em(r,e,t){var i=t==="normalMerge",a=t==="replaceMerge",n=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Z();T(e,function(l,u){if(!se(l)){e[u]=null;return}});var s=_4(r,o,t);return(i||a)&&S4(s,r,o,e),i&&b4(s,e),i||a?w4(s,e,a):n&&T4(s,e),C4(s),s}function _4(r,e,t){var i=[];if(t==="replaceAll")return i;for(var a=0;a<r.length;a++){var n=r[a];n&&n.id!=null&&e.set(n.id,a),i.push({existing:t==="replaceMerge"||Tf(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return i}function S4(r,e,t,i){T(i,function(a,n){if(!(!a||a.id==null)){var o=Zc(a.id),s=t.get(o);if(s!=null){var l=r[s];lt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],i[n]=null}}})}function b4(r,e){T(e,function(t,i){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var n=r[a].existing;if(!r[a].newOption&&n&&(n.id==null||t.id==null)&&!Tf(t)&&!Tf(n)&&yI("name",n,t)){r[a].newOption=t,e[i]=null;return}}})}function w4(r,e,t){T(e,function(i){if(i){for(var a,n=0;(a=r[n])&&(a.newOption||Tf(a.existing)||a.existing&&i.id!=null&&!yI("id",i,a.existing));)n++;a?(a.newOption=i,a.brandNew=t):r.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),n++}})}function T4(r,e){T(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function C4(r){var e=Z();T(r,function(t){var i=t.existing;i&&e.set(i.id,t)}),T(r,function(t){var i=t.newOption;lt(!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={})}),T(r,function(t,i){var a=t.existing,n=t.newOption,o=t.keyInfo;if(se(n)){if(o.name=n.name!=null?Zc(n.name):a?a.name:dI+i,a)o.id=Zc(a.id);else if(n.id!=null)o.id=Zc(n.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function yI(r,e,t){var i=wt(e[r],null),a=wt(t[r],null);return i!=null&&a!=null&&i===a}function Zc(r){return wt(r,"")}function wt(r,e){return r==null?e:W(r)?r:Ce(r)||bc(r)?r+"":e}function Cf(r){var e=r.name;return!!(e&&e.indexOf(dI))}function Tf(r){return r&&r.id!=null&&Zc(r.id).indexOf(mI)===0}function xI(r){return mI+r}function _I(r,e,t){T(r,function(i){var a=i.newOption;se(a)&&(i.keyInfo.mainType=e,i.keyInfo.subType=A4(e,a,i.existing,t))})}function A4(r,e,t,i){var a=e.type?e.type:t?t.subType:i.determineSubType(r,e);return a}function SI(r,e){var t={},i={};return a(r||[],t),a(e||[],i,t),[n(t),n(i)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var p=wt(o[u].seriesId,null);if(p==null)return;for(var c=qe(o[u].dataIndex),v=l&&l[p],h=0,d=c.length;h<d;h++){var m=c[h];v&&v[m]?v[m]=null:(s[p]||(s[p]={}))[m]=1}}}function n(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=n(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function fa(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return V(e.dataIndex)?U(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return V(e.name)?U(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ue(){var r="__ec_inner_"+E4++;return function(e){return e[r]||(e[r]={})}}var E4=Xc();function In(r,e,t){var i=Kc(e,t),a=i.mainTypeSpecified,n=i.queryOptionMap,o=i.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&n.set(l,{}),n.each(function(u,f){var p=Ln(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"]=p.models,s[f+"Model"]=p.models[0]}),s}function Kc(r,e){var t;if(W(r)){var i={};i[r+"Index"]=0,t=i}else t=r;var a=Z(),n={},o=!1;return T(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){n[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],p=(u[2]||"").toLowerCase();if(!(!f||!p||e&&e.includeMainTypes&&de(e.includeMainTypes,f)<0)){o=o||!!f;var c=a.get(f)||a.set(f,{});c[p]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:n}}var $e={useDefault:!0,enableAll:!1,enableNone:!1},bI={useDefault:!1,enableAll:!0,enableNone:!0};function Ln(r,e,t,i){i=i||$e;var a=t.index,n=t.id,o=t.name,s={models:null,specified:a!=null||n!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(i.enableNone)return s.models=[],s;a=-1}return a==="all"&&(i.enableAll?a=n=o=null:a=-1),s.models=r.queryComponents({mainType:e,index:a,id:n,name:o}),s}function Af(r,e,t){var i={};i[e+"Id"]=r[e+"Id"],i[e+"Index"]=r[e+"Index"],i[e+"Name"]=r[e+"Name"];var a={mainType:e,query:i};return t&&(a.subType=t),a}function mS(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function wI(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function TI(r){return r==="auto"?Ue.domSupported?"html":"richText":r||"html"}function qc(r,e){var t=Z(),i=[];return T(r,function(a){var n=e(a);(t.get(n)||(i.push(n),t.set(n,[]))).push(a)}),{keys:i,buckets:t}}function tm(r,e,t,i,a){var n=e==null||e==="auto";if(i==null)return i;if(Ce(i)){var o=hI(t||0,i,a);return Be(o,n?Math.max(Yr(t||0),Yr(i)):e)}else{if(W(i))return a<1?t:i;for(var s=[],l=t,u=i,f=Math.max(l?l.length:0,u.length),p=0;p<f;++p){var c=r.getDimensionInfo(p);if(c&&c.type==="ordinal")s[p]=(a<1&&l?l:u)[p];else{var v=l&&l[p]?l[p]:0,h=u[p],o=hI(v,h,a);s[p]=Be(o,n?Math.max(Yr(v),Yr(h)):e)}}return s}}var Xa=(function(){function r(){}return r.prototype.reset=function(e,t,i,a){return this._list=e,this._step=a=a||1,this._idx=t,this._end=i??(a>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 rm(r){r.option=r.parentModel=r.ecModel=null}function Ot(){return[1/0,-1/0]}function jc(r,e){Wa(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function gS(r,e){Wa(e)&&e<r[0]&&(r[0]=e)}function yS(r,e){Wa(e)&&e>r[1]&&(r[1]=e)}function CI(r,e){Za(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function Wa(r){return r!=null&&isFinite(r)}function Za(r,e){return Wa(r)&&Wa(e)&&r<=e}function AI(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function Ef(r){Za(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function pa(){var r="__ec_once_"+D4++;return function(e,t){le(e,r)||(e[r]=1,t())}}var D4=Xc();function cs(r,e,t){var i=Z(),a=0;T(r,function(n){var o=e(n),s=i.get(o)||0;t&&t(n,s),!s&&!t&&(r[a++]=n),i.set(o,s+1)}),t||(r.length=a)}function EI(r){return r.value+""}function DI(r){return r+""}function Sr(r,e){return J(e,!0)?r.seriesIndex+2:0}function im(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 et(r,e){return{seriesType:r,overallReset:e}}function Pn(r){return{overallReset:r}}var M4=".",Nl="___EC__COMPONENT__CONTAINER___",MI="___EC__EXTENDED_CLASS___";function Si(r){var e={main:"",sub:""};if(r){var t=r.split(M4);e.main=t[0]||"",e.sub=t[1]||""}return e}function I4(r){lt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function II(r){return!!(r&&r[MI])}function Df(r,e){r.$constructor=r,r.extend=function(t){var i=this,a;return L4(i)?a=(function(n){I(o,n);function o(){return n.apply(this,arguments)||this}return o})(i):(a=function(){(t.$constructor||i).apply(this,arguments)},fd(a,this)),k(a.prototype,t),a[MI]=!0,a.extend=this.extend,a.superCall=R4,a.superApply=O4,a.superClass=i,a}}function L4(r){return ee(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function am(r,e){r.extend=e.extend}var P4=Math.round(Math.random()*10);function LI(r){var e=["__\0is_clz",P4++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function R4(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 O4(r,e,t){return this.superClass.prototype[e].apply(r,t)}function vs(r){var e={};r.registerClass=function(i){var a=i.type||i.prototype.type;if(a){I4(a),i.prototype.type=a;var n=Si(a);if(!n.sub)e[n.main]=i;else if(n.sub!==Nl){var o=t(n);o[n.sub]=i}}return i},r.getClass=function(i,a,n){var o=e[i];if(o&&o[Nl]&&(o=a?o[a]:null),n&&!o)throw new Error(a?"Component "+i+"."+(a||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var a=Si(i),n=[],o=e[a.main];return o&&o[Nl]?T(o,function(s,l){l!==Nl&&n.push(s)}):n.push(o),n},r.hasClass=function(i){var a=Si(i);return!!e[a.main]},r.getAllClassMainTypes=function(){var i=[];return T(e,function(a,n){i.push(n)}),i},r.hasSubTypes=function(i){var a=Si(i),n=e[a.main];return n&&n[Nl]};function t(i){var a=e[i.main];return(!a||!a[Nl])&&(a=e[i.main]={},a[Nl]=!0),a}}function bi(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,a,n){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&de(a,l)>=0||n&&de(n,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var N4=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],k4=bi(N4),PI=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return k4(this,e,t)},r})();var _S=new An(50);function OI(r){if(typeof r=="string"){var e=_S.get(r);return e&&e.image}else return r}function Jc(r,e,t,i,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=_S.get(r),o={hostEl:t,cb:i,cbPayload:a};return n?(e=n.image,!Mf(e)&&n.pending.push(o)):(e=Nt.loadImage(r,RI,RI),e.__zrImageSrc=r,_S.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function RI(){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 Mf(r){return r&&r.width&&r.height}var SS=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function wS(r,e,t,i,a){var n={};return VI(n,r,e,t,i,a),n.text}function VI(r,e,t,i,a,n){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
3
+ `);n=UI(t,i,a,n);for(var s=!1,l={},u=0,f=o.length;u<f;u++)BI(l,o[u],n),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
+ `),r.isTruncated=s}function UI(r,e,t,i){i=i||{};var a=k({},i);t=J(t,"..."),a.maxIterations=J(i.maxIterations,2);var n=a.minChar=J(i.minChar,0),o=a.fontMeasureInfo=Ga(e),s=o.asciiCharWidth;a.placeholder=J(i.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<n&&l>=s;u++)l-=s;var f=Ha(o,t);return f>l&&(t="",f=0),l=r-f,a.ellipsis=t,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=r,a}function BI(r,e,t){var i=t.containerWidth,a=t.contentWidth,n=t.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Ha(n,e);if(o<=i){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?V4(e,a,n):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=Ha(n,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function V4(r,e,t){for(var i=0,a=0,n=r.length;a<n&&i<e;a++)i+=rS(t,r.charCodeAt(a));return a}function FI(r,e,t,i){var a=CS(r),n=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=n==="truncate",p=Pl(u),c=J(e.lineHeight,p),v=e.lineOverflow==="truncate",h=!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&&(n==="break"||n==="breakAll")?g=a?HI(a,e.font,d,n==="breakAll",0).lines:[]:g=a?a.split(`
5
+ `):[];var y=g.length*c;if(m==null&&(m=y),y>m&&v){var x=Math.floor(m/c);h=h||g.length>x,g=g.slice(0,x),y=g.length*c}if(a&&f&&d!=null)for(var _=UI(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)BI(S,g[b],_),g[b]=S.textLine,h=h||S.isTruncated;for(var w=m,A=0,C=Ga(u),b=0;b<g.length;b++)A=Math.max(Ha(C,g[b]),A);d==null&&(d=A);var E=d;return w+=l,E+=s,{lines:g,height:m,outerWidth:E,outerHeight:w,lineHeight:c,calculatedLineHeight:p,contentWidth:A,contentHeight:y,width:d,isTruncated:h}}var U4=(function(){function r(){}return r})(),NI=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),B4=(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 GI(r,e,t,i,a){var n=new B4,o=CS(r);if(!o)return n;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 p=e.height;p==null&&i!=null&&(p=i-u);for(var c=e.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,h=SS.lastIndex=0,d;(d=SS.exec(o))!=null;){var m=d.index;m>h&&bS(n,o.substring(h,m),e,v),bS(n,d[2],e,v,d[1]),h=SS.lastIndex}h<o.length&&bS(n,o.substring(h,o.length),e,v);var g=[],y=0,x=0,_=c==="truncate",S=e.lineOverflow==="truncate",b={};function w(ne,ve,pe){ne.width=ve,ne.lineHeight=pe,y+=pe,x=Math.max(x,ve)}e:for(var A=0;A<n.lines.length;A++){for(var C=n.lines[A],E=0,D=0,L=0;L<C.tokens.length;L++){var M=C.tokens[L],P=M.styleName&&e.rich[M.styleName]||{},O=M.textPadding=P.padding,R=O?O[1]+O[3]:0,z=M.font=P.font||e.font;M.contentHeight=Pl(z);var B=J(P.height,M.contentHeight);if(M.innerHeight=B,O&&(B+=O[0]+O[2]),M.height=B,M.lineHeight=Rt(P.lineHeight,e.lineHeight,B),M.align=P&&P.align||a,M.verticalAlign=P&&P.verticalAlign||"middle",S&&p!=null&&y+M.lineHeight>p){var F=n.lines.length;L>0?(C.tokens=C.tokens.slice(0,L),w(C,D,E),n.lines=n.lines.slice(0,A+1)):n.lines=n.lines.slice(0,A),n.isTruncated=n.isTruncated||n.lines.length<F;break e}var H=P.width,Y=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")M.percentWidth=H,g.push(M),M.contentWidth=Ha(Ga(z),M.text);else{if(Y){var q=P.backgroundColor,oe=q&&q.image;oe&&(oe=OI(oe),Mf(oe)&&(M.width=Math.max(M.width,oe.width*B/oe.height)))}var X=_&&f!=null?f-D:null;X!=null&&X<M.width?!Y||X<R?(M.text="",M.width=M.contentWidth=0):(VI(b,M.text,X-R,z,e.ellipsis,{minChar:e.truncateMinChar}),M.text=b.text,n.isTruncated=n.isTruncated||b.isTruncated,M.width=M.contentWidth=Ha(Ga(z),M.text)):M.contentWidth=Ha(Ga(z),M.text)}M.width+=R,D+=M.width,P&&(E=Math.max(E,M.lineHeight))}w(C,D,E)}n.outerWidth=n.width=J(f,x),n.outerHeight=n.height=J(p,y),n.contentHeight=y,n.contentWidth=x,n.outerWidth+=l,n.outerHeight+=u;for(var A=0;A<g.length;A++){var M=g[A],G=M.percentWidth;M.width=parseInt(G,10)/100*n.width}return n}function bS(r,e,t,i,a){var n=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,f,p;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var h=Rr(o.width,i.width)+v;s.length>0&&h+i.accumWidth>i.width&&(f=e.split(`
6
+ `),u=!0),i.accumWidth=h}else{var d=HI(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+v,p=d.linesWidths,f=d.lines}}f||(f=e.split(`
7
+ `));for(var m=Ga(l),g=0;g<f.length;g++){var y=f[g],x=new U4;if(x.styleName=a,x.text=y,x.isLineHolder=!y&&!n,typeof o.width=="number"?x.width=o.width:x.width=p?p[g]:Ha(m,y),!g&&!u){var _=(s[s.length-1]||(s[0]=new NI)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=x:(y||!S||n)&&_.push(x)}else s.push(new NI([x]))}}function F4(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var G4=fr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function H4(r){return F4(r)?!!G4[r]:!0}function HI(r,e,t,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,p=Ga(e),c=0;c<r.length;c++){var v=r.charAt(c);if(v===`
8
+ `){l&&(s+=l,f+=u),n.push(s),o.push(f),s="",l="",u=0,f=0;continue}var h=rS(p,v.charCodeAt(0)),d=i?!1:!H4(v);if(n.length?f+h>t:a+f+h>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=v,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=v,f=h)):d?(n.push(l),o.push(u),l=v,u=h):(n.push(v),o.push(h));continue}f+=h,d?(l+=v,u+=h):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}function TS(r,e,t,i,a,n){if(r.baseX=t,r.baseY=i,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;fe.set(kI,ls(t,o,a),mo(i,s,n),o,s),fe.intersect(e,kI,null,zI);var l=zI.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=ls(l.x,l.width,a,!0),r.baseY=mo(l.y,l.height,n,!0)}}var kI=new fe(0,0,0,0),zI={outIntersectRect:{},clamp:!0};function CS(r){return r!=null?r+="":r=""}function WI(r){var e=CS(r.text),t=r.font,i=Ha(Ga(t),e),a=Pl(t);return nm(r,i,a,null)}function nm(r,e,t,i){var a=new fe(ls(r.x||0,e,r.textAlign),mo(r.y||0,t,r.textBaseline),e,t),n=i??(AS(r)?r.lineWidth:0);return n>0&&(a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n),a}function AS(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var MS="__zr_style_"+Math.round(Math.random()*10),Rn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},kl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Rn[MS]=!0;var YI=["z","z2","invisible"],W4=["invisible"],Y4=(function(r){I(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=Te(t),a=0;a<i.length;a++){var n=i[a];n==="style"?this.useStyle(t[n]):r.prototype.attrKV.call(this,n,t[n])}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,a,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&X4(this,t,i)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&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 a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();return n.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,l=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new fe(0,0,0,0)),i?fe.applyTransform(t,a,i):t.copy(a),(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 fe(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:k(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=wl,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&wl)},e.prototype.styleUpdated=function(){this.__dirty&=~wl},e.prototype.createStyle=function(t){return es(Rn,t)},e.prototype.useStyle=function(t){t[MS]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[MS]},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,YI)},e.prototype._applyStateObj=function(t,i,a,n,o,s){r.prototype._applyStateObj.call(this,t,i,a,n,o,s);var l=!(i&&n),u=this.__inHover===gf,f;if(i&&i.style?o?n?f=i.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(f,i.style)):l&&(f=a.style),f)if(o){var p=this.style;if(this.style=this.createStyle(l?{}:p),l)for(var c=Te(p),v=0;v<c.length;v++){var h=c[v];h in f&&(f[h]=f[h],this.style[h]=p[h])}for(var d=Te(f),v=0;v<d.length;v++){var h=d[v];this.style[h]=this.style[h]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?W4:YI,v=0;v<m.length;v++){var h=m[v];i&&i[h]!=null?this[h]=i[h]:l&&a[h]!=null&&(this[h]=a[h])}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),a,n=0;n<t.length;n++){var o=t[n];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(i.style=a),i},e.prototype._mergeStyle=function(t,i){return k(t,i),t},e.prototype.getAnimationStyleProps=function(){return kl},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=$t|wl})(),e})(Jd),ES=new fe(0,0,0,0),DS=new fe(0,0,0,0);function X4(r,e,t){return ES.copy(r.getBoundingRect()),r.transform&&ES.applyTransform(r.transform),DS.width=e,DS.height=t,!ES.intersect(DS)}var Gt=Y4;var wi=Math.min,Ti=Math.max,IS=Math.sin,LS=Math.cos,zl=Math.PI*2,om=wn(),sm=wn(),lm=wn();function Vl(r,e,t){if(r.length!==0){for(var i=r[0],a=i[0],n=i[0],o=i[1],s=i[1],l=1;l<r.length;l++)i=r[l],a=wi(a,i[0]),n=Ti(n,i[0]),o=wi(o,i[1]),s=Ti(s,i[1]);e[0]=a,e[1]=o,t[0]=n,t[1]=s}}function PS(r,e,t,i,a,n){a[0]=wi(r,t),a[1]=wi(e,i),n[0]=Ti(r,t),n[1]=Ti(e,i)}var XI=[],ZI=[];function KI(r,e,t,i,a,n,o,s,l,u){var f=Cd,p=Vt,c=f(r,t,a,o,XI);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var h=p(r,t,a,o,XI[v]);l[0]=wi(h,l[0]),u[0]=Ti(h,u[0])}c=f(e,i,n,s,ZI);for(var v=0;v<c;v++){var d=p(e,i,n,s,ZI[v]);l[1]=wi(d,l[1]),u[1]=Ti(d,u[1])}l[0]=wi(r,l[0]),u[0]=Ti(r,u[0]),l[0]=wi(o,l[0]),u[0]=Ti(o,u[0]),l[1]=wi(e,l[1]),u[1]=Ti(e,u[1]),l[1]=wi(s,l[1]),u[1]=Ti(s,u[1])}function qI(r,e,t,i,a,n,o,s){var l=Ed,u=Ft,f=Ti(wi(l(r,t,a),1),0),p=Ti(wi(l(e,i,n),1),0),c=u(r,t,a,f),v=u(e,i,n,p);o[0]=wi(r,a,c),o[1]=wi(e,n,v),s[0]=Ti(r,a,c),s[1]=Ti(e,n,v)}function jI(r,e,t,i,a,n,o,s,l){var u=Ui,f=Bi,p=Math.abs(a-n);if(p%zl<1e-4&&p>1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(om[0]=LS(a)*t+r,om[1]=IS(a)*i+e,sm[0]=LS(n)*t+r,sm[1]=IS(n)*i+e,u(s,om,sm),f(l,om,sm),a=a%zl,a<0&&(a=a+zl),n=n%zl,n<0&&(n=n+zl),a>n&&!o?n+=zl:a<n&&o&&(a+=zl),o){var c=n;n=a,a=c}for(var v=0;v<n;v+=Math.PI/2)v>a&&(lm[0]=LS(v)*t+r,lm[1]=IS(v)*i+e,u(s,lm,s),f(l,lm,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ul=[],Bl=[],On=[],hs=[],Nn=[],kn=[],RS=Math.min,OS=Math.max,Fl=Math.cos,Gl=Math.sin,xo=Math.abs,zS=Math.PI,ds=zS*2,NS=typeof Float32Array<"u",Qc=[];function kS(r){var e=Math.round(r/zS*1e8)/1e8;return e%2*zS}function Hl(r,e){var t=kS(r[0]);t<0&&(t+=ds);var i=t-r[0],a=r[1];a+=i,!e&&a-t>=ds?a=t+ds:e&&t-a>=ds?a=t-ds:!e&&t>a?a=t+(ds-kS(t-a)):e&&t<a&&(a=t-(ds-kS(a-t))),r[0]=t,r[1]=a}var Z4=(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=xo(i/Dl/e)||0,this._uy=xo(i/Dl/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(xt.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=xo(e-this._xi),a=xo(t-this._yi),n=i>this._ux||a>this._uy;if(this.addData(xt.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){return this._drawPendingPt(),this.addData(xt.C,e,t,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,a,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,a){return this._drawPendingPt(),this.addData(xt.Q,e,t,i,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,a),this._xi=i,this._yi=a,this},r.prototype.arc=function(e,t,i,a,n,o){this._drawPendingPt(),Qc[0]=a,Qc[1]=n,Hl(Qc,o),a=Qc[0],n=Qc[1];var s=n-a;return this.addData(xt.A,e,t,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,a,n,o),this._xi=Fl(n)*i+e,this._yi=Gl(n)*i+t,this},r.prototype.arcTo=function(e,t,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,a,n),this},r.prototype.rect=function(e,t,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,a),this.addData(xt.R,e,t,i,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(xt.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)&&NS&&(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,a=this._len,n=0;n<t;n++)i+=e[n].len();var o=this.data;if(NS&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+i),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var n=0;n<t;n++)for(var l=e[n].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},r.prototype.addData=function(e,t,i,a,n,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var p=0;p<arguments.length;p++)f[this._len++]=arguments[p]}},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,NS&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){On[0]=On[1]=Nn[0]=Nn[1]=Number.MAX_VALUE,hs[0]=hs[1]=kn[0]=kn[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,a=0,n=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],i=e[o+1],a=t,n=i),s){case xt.M:t=a=e[o++],i=n=e[o++],Nn[0]=a,Nn[1]=n,kn[0]=a,kn[1]=n;break;case xt.L:PS(t,i,e[o],e[o+1],Nn,kn),t=e[o++],i=e[o++];break;case xt.C:KI(t,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Nn,kn),t=e[o++],i=e[o++];break;case xt.Q:qI(t,i,e[o++],e[o++],e[o],e[o+1],Nn,kn),t=e[o++],i=e[o++];break;case xt.A:var u=e[o++],f=e[o++],p=e[o++],c=e[o++],v=e[o++],h=e[o++]+v;o+=1;var d=!e[o++];l&&(a=Fl(v)*p+u,n=Gl(v)*c+f),jI(u,f,p,c,v,h,d,Nn,kn),t=Fl(h)*p+u,i=Gl(h)*c+f;break;case xt.R:a=t=e[o++],n=i=e[o++];var m=e[o++],g=e[o++];PS(a,n,a+m,n+g,Nn,kn);break;case xt.Z:t=a,i=n;break}Ui(On,On,Nn),Bi(hs,hs,kn)}return o===0&&(On[0]=On[1]=hs[0]=hs[1]=0),new fe(On[0],On[1],hs[0]-On[0],hs[1]-On[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,a=this._uy,n=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,p=0,c=0;c<t;){var v=e[c++],h=c===1;h&&(n=e[c],o=e[c+1],s=n,l=o);var d=-1;switch(v){case xt.M:n=s=e[c++],o=l=e[c++];break;case xt.L:{var m=e[c++],g=e[c++],y=m-n,x=g-o;(xo(y)>i||xo(x)>a||c===t-1)&&(d=Math.sqrt(y*y+x*x),n=m,o=g);break}case xt.C:{var _=e[c++],S=e[c++],m=e[c++],g=e[c++],b=e[c++],w=e[c++];d=mM(n,o,_,S,m,g,b,w,10),n=b,o=w;break}case xt.Q:{var _=e[c++],S=e[c++],m=e[c++],g=e[c++];d=yM(n,o,_,S,m,g,10),n=m,o=g;break}case xt.A:var A=e[c++],C=e[c++],E=e[c++],D=e[c++],L=e[c++],M=e[c++],P=M+L;c+=1,h&&(s=Fl(L)*E+A,l=Gl(L)*D+C),d=OS(E,D)*RS(ds,Math.abs(M)),n=Fl(P)*E+A,o=Gl(P)*D+C;break;case xt.R:{s=n=e[c++],l=o=e[c++];var O=e[c++],R=e[c++];d=O*2+R*2;break}case xt.Z:{var y=s-n,x=l-o;d=Math.sqrt(y*y+x*x),n=s,o=l;break}}d>=0&&(u[p++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,p,c,v=t<1,h,d,m=0,g=0,y,x=0,_,S;if(!(v&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,d=this._pathLen,y=t*d,!y)))e:for(var b=0;b<o;){var w=i[b++],A=b===1;switch(A&&(u=i[b],f=i[b+1],s=u,l=f),w!==xt.L&&x>0&&(e.lineTo(_,S),x=0),w){case xt.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case xt.L:{p=i[b++],c=i[b++];var C=xo(p-u),E=xo(c-f);if(C>a||E>n){if(v){var D=h[g++];if(m+D>y){var L=(y-m)/D;e.lineTo(u*(1-L)+p*L,f*(1-L)+c*L);break e}m+=D}e.lineTo(p,c),u=p,f=c,x=0}else{var M=C*C+E*E;M>x&&(_=p,S=c,x=M)}break}case xt.C:{var P=i[b++],O=i[b++],R=i[b++],z=i[b++],B=i[b++],F=i[b++];if(v){var D=h[g++];if(m+D>y){var L=(y-m)/D;na(u,P,R,B,L,Ul),na(f,O,z,F,L,Bl),e.bezierCurveTo(Ul[1],Bl[1],Ul[2],Bl[2],Ul[3],Bl[3]);break e}m+=D}e.bezierCurveTo(P,O,R,z,B,F),u=B,f=F;break}case xt.Q:{var P=i[b++],O=i[b++],R=i[b++],z=i[b++];if(v){var D=h[g++];if(m+D>y){var L=(y-m)/D;as(u,P,R,L,Ul),as(f,O,z,L,Bl),e.quadraticCurveTo(Ul[1],Bl[1],Ul[2],Bl[2]);break e}m+=D}e.quadraticCurveTo(P,O,R,z),u=R,f=z;break}case xt.A:var H=i[b++],Y=i[b++],q=i[b++],oe=i[b++],X=i[b++],G=i[b++],ne=i[b++],ve=!i[b++],pe=q>oe?q:oe,j=xo(q-oe)>.001,me=X+G,ie=!1;if(v){var D=h[g++];m+D>y&&(me=X+G*(y-m)/D,ie=!0),m+=D}if(j&&e.ellipse?e.ellipse(H,Y,q,oe,ne,X,me,ve):e.arc(H,Y,pe,X,me,ve),ie)break e;A&&(s=Fl(X)*q+H,l=Gl(X)*oe+Y),u=Fl(me)*q+H,f=Gl(me)*oe+Y;break;case xt.R:s=u=i[b],l=f=i[b+1],p=i[b++],c=i[b++];var he=i[b++],ze=i[b++];if(v){var D=h[g++];if(m+D>y){var Se=y-m;e.moveTo(p,c),e.lineTo(p+RS(Se,he),c),Se-=he,Se>0&&e.lineTo(p+he,c+RS(Se,ze)),Se-=ze,Se>0&&e.lineTo(p+OS(he-Se,0),c+ze),Se-=he,Se>0&&e.lineTo(p,c+OS(ze-Se,0));break e}m+=D}e.rect(p,c,he,ze);break;case xt.Z:if(v){var D=h[g++];if(m+D>y){var L=(y-m)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}m+=D}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=xt,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})(),pr=Z4;function zn(r,e,t,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>i+s||o<e-s&&o<i-s||n>r+s&&n>t+s||n<r-s&&n<t-s)return!1;if(r!==t)l=(e-i)/(r-t),u=(r*i-t*e)/(r-t);else return Math.abs(n-r)<=s/2;var f=l*n-o+u,p=f*f/(l*l+1);return p<=s/2*s/2}function $I(r,e,t,i,a,n,o,s,l,u,f){if(l===0)return!1;var p=l;if(f>e+p&&f>i+p&&f>n+p&&f>s+p||f<e-p&&f<i-p&&f<n-p&&f<s-p||u>r+p&&u>t+p&&u>a+p&&u>o+p||u<r-p&&u<t-p&&u<a-p&&u<o-p)return!1;var c=Ad(r,e,t,i,a,n,o,s,u,f,null);return c<=p/2}function um(r,e,t,i,a,n,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>n+u||l<e-u&&l<i-u&&l<n-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var f=Dd(r,e,t,i,a,n,s,l,null);return f<=u/2}var tL=Math.PI*2;function br(r){return r%=tL,r<0&&(r+=tL),r}var $c=Math.PI*2;function rL(r,e,t,i,a,n,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-a)%$c<1e-4)return!0;if(n){var p=i;i=br(a),a=br(p)}else i=br(i),a=br(a);i>a&&(a+=$c);var c=Math.atan2(l,s);return c<0&&(c+=$c),c>=i&&c<=a||c+$c>=i&&c+$c<=a}function ca(r,e,t,i,a,n){if(n>e&&n>i||n<e&&n<i||i===e)return 0;var o=(n-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===a?1/0:l>a?s:0}var ms=pr.CMD,Wl=Math.PI*2,j4=1e-4;function J4(r,e){return Math.abs(r-e)<j4}var Kr=[-1,-1,-1],va=[-1,-1];function Q4(){var r=va[0];va[0]=va[1],va[1]=r}function $4(r,e,t,i,a,n,o,s,l,u){if(u>e&&u>i&&u>n&&u>s||u<e&&u<i&&u<n&&u<s)return 0;var f=Tl(e,i,n,s,u,Kr);if(f===0)return 0;for(var p=0,c=-1,v=void 0,h=void 0,d=0;d<f;d++){var m=Kr[d],g=m===0||m===1?.5:1,y=Vt(r,t,a,o,m);y<l||(c<0&&(c=Cd(e,i,n,s,va),va[1]<va[0]&&c>1&&Q4(),v=Vt(e,i,n,s,va[0]),c>1&&(h=Vt(e,i,n,s,va[1]))),c===2?m<va[0]?p+=v<e?g:-g:m<va[1]?p+=h<v?g:-g:p+=s<h?g:-g:m<va[0]?p+=v<e?g:-g:p+=s<v?g:-g)}return p}function e8(r,e,t,i,a,n,o,s){if(s>e&&s>i&&s>n||s<e&&s<i&&s<n)return 0;var l=gM(e,i,n,s,Kr);if(l===0)return 0;var u=Ed(e,i,n);if(u>=0&&u<=1){for(var f=0,p=Ft(e,i,n,u),c=0;c<l;c++){var v=Kr[c]===0||Kr[c]===1?.5:1,h=Ft(r,t,a,Kr[c]);h<o||(Kr[c]<u?f+=p<e?v:-v:f+=n<p?v:-v)}return f}else{var v=Kr[0]===0||Kr[0]===1?.5:1,h=Ft(r,t,a,Kr[0]);return h<o?0:n<e?v:-v}}function t8(r,e,t,i,a,n,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Kr[0]=-l,Kr[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=Wl-1e-4){i=0,a=Wl;var f=n?1:-1;return o>=Kr[0]+r&&o<=Kr[1]+r?f:0}if(i>a){var p=i;i=a,a=p}i<0&&(i+=Wl,a+=Wl);for(var c=0,v=0;v<2;v++){var h=Kr[v];if(h+r>o){var d=Math.atan2(s,h),f=n?1:-1;d<0&&(d=Wl+d),(d>=i&&d<=a||d+Wl>=i&&d+Wl<=a)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),c+=f)}}return c}function iL(r,e,t,i,a){for(var n=r.data,o=r.len(),s=0,l=0,u=0,f=0,p=0,c,v,h=0;h<o;){var d=n[h++],m=h===1;switch(d===ms.M&&h>1&&(t||(s+=ca(l,u,f,p,i,a))),m&&(l=n[h],u=n[h+1],f=l,p=u),d){case ms.M:f=n[h++],p=n[h++],l=f,u=p;break;case ms.L:if(t){if(zn(l,u,n[h],n[h+1],e,i,a))return!0}else s+=ca(l,u,n[h],n[h+1],i,a)||0;l=n[h++],u=n[h++];break;case ms.C:if(t){if($I(l,u,n[h++],n[h++],n[h++],n[h++],n[h],n[h+1],e,i,a))return!0}else s+=$4(l,u,n[h++],n[h++],n[h++],n[h++],n[h],n[h+1],i,a)||0;l=n[h++],u=n[h++];break;case ms.Q:if(t){if(um(l,u,n[h++],n[h++],n[h],n[h+1],e,i,a))return!0}else s+=e8(l,u,n[h++],n[h++],n[h],n[h+1],i,a)||0;l=n[h++],u=n[h++];break;case ms.A:var g=n[h++],y=n[h++],x=n[h++],_=n[h++],S=n[h++],b=n[h++];h+=1;var w=!!(1-n[h++]);c=Math.cos(S)*x+g,v=Math.sin(S)*_+y,m?(f=c,p=v):s+=ca(l,u,c,v,i,a);var A=(i-g)*_/x+g;if(t){if(rL(g,y,_,S,S+b,w,e,A,a))return!0}else s+=t8(g,y,_,S,S+b,w,A,a);l=Math.cos(S+b)*x+g,u=Math.sin(S+b)*_+y;break;case ms.R:f=l=n[h++],p=u=n[h++];var C=n[h++],E=n[h++];if(c=f+C,v=p+E,t){if(zn(f,p,c,p,e,i,a)||zn(c,p,c,v,e,i,a)||zn(c,v,f,v,e,i,a)||zn(f,v,f,p,e,i,a))return!0}else s+=ca(c,p,c,v,i,a),s+=ca(f,v,f,p,i,a);break;case ms.Z:if(t){if(zn(l,u,f,p,e,i,a))return!0}else s+=ca(l,u,f,p,i,a);l=f,u=p;break}}return!t&&!J4(u,p)&&(s+=ca(l,u,f,p,i,a)||0),s!==0}function aL(r,e,t){return iL(r,0,!1,e,t)}function nL(r,e,t,i){return iL(r,e,!0,t,i)}var If=re({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Rn),i8={style:re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},kl.style)},VS=la.concat(["invisible","culling","z","z2","zlevel","parent"]),a8=(function(r){I(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 a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var n=a.style;for(var o in i)n[o]!==i[o]&&(n[o]=i[o]);n.fill=i.fill?i.decal:null,n.decal=null,n.shadowColor=null,i.strokeFirst&&(n.stroke=null);for(var s=0;s<VS.length;++s)a[VS[s]]=this[VS[s]];a.__dirty|=$t}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=Te(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var n=0;n<i.length;n++){var o=i[n],s=t[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(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(W(t)){var i=hf(t,0);return i>.5?Fc:i>.2?HM:Gc}else if(t)return Gc}return Fc},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(W(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=hf(t,0)<Bc;if(n===o)return i}},e.prototype.buildPath=function(t,i,a){},e.prototype.pathUpdated=function(){this.__dirty&=~ts},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 pr(!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,a=!t;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&ts)&&(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||a){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 a=this.transformCoordToLocal(t,i),n=this.getBoundingRect(),o=this.style;if(t=a[0],i=a[1],n.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)),nL(s,l/u,t,i)))return!0}if(this.hasFill())return aL(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ts,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 a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=i:k(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ts)},e.prototype.createStyle=function(t){return es(If,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=k({},this.shape))},e.prototype._applyStateObj=function(t,i,a,n,o,s){if(r.prototype._applyStateObj.call(this,t,i,a,n,o,s),this.__inHover!==gf){var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=k({},a.shape),k(u,i.shape)):(u=k({},n?this.shape:a.shape),k(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=k({},this.shape);for(var f={},p=Te(u),c=0;c<p.length;c++){var v=p[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}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),a,n=0;n<t.length;n++){var o=t[n];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(i.shape=a),i},e.prototype.getAnimationStyleProps=function(){return i8},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=(function(n){I(o,n);function o(s){var l=n.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ae(t.style)},o.prototype.getDefaultShape=function(){return ae(t.shape)},o})(e);for(var a in t)typeof t[a]=="function"&&(i.prototype[a]=t[a]);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=$t|wl|ts})(),e})(Gt),ge=a8;var n8=re({strokeFirst:!0,font:fi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},If),oL=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return AS(this.style)},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return es(n8,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=WI(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Gt);oL.prototype.type="tspan";var _o=oL;var o8=re({x:0,y:0},Rn),s8={style:re({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},kl.style)};function l8(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var sL=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return es(o8,t)},e.prototype._getSize=function(t){var i=this.style,a=i[t];if(a!=null)return a;var n=l8(i.image)?i.image:this.__image;if(!n)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?n[t]:n[t]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return s8},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new fe(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Gt);sL.prototype.type="image";var pt=sL;function lL(r,e){var t=e.x,i=e.y,a=e.width,n=e.height,o=e.r,s,l,u,f;a<0&&(t=t+a,a=-a),n<0&&(i=i+n,n=-n),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 p;s+l>a&&(p=s+l,s*=a/p,l*=a/p),u+f>a&&(p=u+f,u*=a/p,f*=a/p),l+u>n&&(p=l+u,l*=n/p,u*=n/p),s+f>n&&(p=s+f,s*=n/p,f*=n/p),r.moveTo(t+s,i),r.lineTo(t+a-l,i),l!==0&&r.arc(t+a-l,i+l,l,-Math.PI/2,0),r.lineTo(t+a,i+n-u),u!==0&&r.arc(t+a-u,i+n-u,u,0,Math.PI/2),r.lineTo(t+f,i+n),f!==0&&r.arc(t+f,i+n-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 Lf=Math.round;function Yl(r,e,t){if(e){var i=e.x1,a=e.x2,n=e.y1,o=e.y2;r.x1=i,r.x2=a,r.y1=n,r.y2=o;var s=t&&t.lineWidth;return s&&(Lf(i*2)===Lf(a*2)&&(r.x1=r.x2=qr(i,s,!0)),Lf(n*2)===Lf(o*2)&&(r.y1=r.y2=qr(n,s,!0))),r}}function fm(r,e,t){if(e){var i=e.x,a=e.y,n=e.width,o=e.height;r.x=i,r.y=a,r.width=n,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=qr(i,s,!0),r.y=qr(a,s,!0),r.width=Math.max(qr(i+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(qr(a+o,s,!1)-r.y,o===0?0:1)),r}}function qr(r,e,t){if(!e)return r;var i=Lf(r*2);return(i+Lf(e))%2===0?i/2:(i+(t?1:-1))/2}var p8=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})();var c8={},uL=(function(r){I(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new p8},e.prototype.buildPath=function(t,i){var a,n,o,s;if(this.subPixelOptimize){var l=fm(c8,i,this.style);a=l.x,n=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else a=i.x,n=i.y,o=i.width,s=i.height;i.r?lL(t,i):t.rect(a,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ge);uL.prototype.type="rect";var xe=uL;var fL={fill:"#000"},pL=2,Vn={},v8={style:re({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},kl.style)},xL=(function(r){I(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=fL,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,m8(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 fe(0,0,0,0),i=this._children,a=[],n=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(t.copy(l),t.applyTransform(u),n=n||t.clone(),n.union(t)):(n=n||l.clone(),n.union(l))}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||fL},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var a=i.rich,n=t.rich||a&&{};return k(t,i),a&&n?(this._mergeRich(n,a),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,i){for(var a=Te(i),n=0;n<a.length;n++){var o=a[n];t[o]=t[o]||{},k(t[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return v8},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||fi,a=t.padding,n=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||n.align||"left",u=t.verticalAlign||n.verticalAlign||"top";TS(Vn,n.overflowRect,o,s,l,u),o=Vn.baseX,s=Vn.baseY;var f=yL(t),p=FI(f,t,Vn.outerWidth,Vn.outerHeight),c=US(t),v=!!t.backgroundColor,h=p.outerHeight,d=p.outerWidth,m=p.lines,g=p.lineHeight;this.isTruncated=!!p.isTruncated;var y=o,x=mo(s,p.contentHeight,u);if(c||a){var _=ls(o,d,l),S=mo(s,h,u);c&&this._renderBackground(t,t,_,S,d,h)}x+=g/2,a&&(y=gL(o,l,a),u==="top"?x+=a[0]:u==="bottom"&&(x-=a[2]));for(var b=0,w=!1,A=!1,C=mL("fill"in t?t.fill:(A=!0,n.fill)),E=dL("stroke"in t?t.stroke:!v&&(!n.autoStroke||A)?(b=pL,w=!0,n.stroke):null),D=t.textShadowBlur>0,L=0;L<m.length;L++){var M=this._getOrCreateChild(_o),P=M.createStyle();M.useStyle(P),P.text=m[L],P.x=y,P.y=x,l&&(P.textAlign=l),P.textBaseline="middle",P.opacity=t.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=t.textShadowBlur||0,P.shadowColor=t.textShadowColor||"transparent",P.shadowOffsetX=t.textShadowOffsetX||0,P.shadowOffsetY=t.textShadowOffsetY||0),P.stroke=E,P.fill=C,E&&(P.lineWidth=t.lineWidth||b,P.lineDash=t.lineDash,P.lineDashOffset=t.lineDashOffset||0),P.font=i,vL(P,t),x+=g,M.setBoundingRect(nm(P,p.contentWidth,p.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,i=this._defaultStyle,a=t.align||i.align,n=t.verticalAlign||i.verticalAlign,o=t.x||0,s=t.y||0;TS(Vn,i.overflowRect,o,s,a,n),o=Vn.baseX,s=Vn.baseY;var l=yL(t),u=GI(l,t,Vn.outerWidth,Vn.outerHeight,a),f=u.width,p=u.outerWidth,c=u.outerHeight,v=t.padding;this.isTruncated=!!u.isTruncated;var h=ls(o,p,a),d=mo(s,c,n),m=h,g=d;v&&(m+=v[3],g+=v[0]);var y=m+f;US(t)&&this._renderBackground(t,t,h,d,p,c);for(var x=!!t.backgroundColor,_=0;_<u.lines.length;_++){for(var S=u.lines[_],b=S.tokens,w=b.length,A=S.lineHeight,C=S.width,E=0,D=m,L=y,M=w-1,P=void 0;E<w&&(P=b[E],!P.align||P.align==="left");)this._placeToken(P,t,A,g,D,"left",x),C-=P.width,D+=P.width,E++;for(;M>=0&&(P=b[M],P.align==="right");)this._placeToken(P,t,A,g,L,"right",x),C-=P.width,L-=P.width,M--;for(D+=(f-(D-m)-(y-L)-C)/2;E<=M;)P=b[E],this._placeToken(P,t,A,g,D+P.width/2,"center",x),D+=P.width,E++;g+=A}},e.prototype._placeToken=function(t,i,a,n,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,p=n+a/2;f==="top"?p=n+t.height/2:f==="bottom"&&(p=n+a-t.height/2);var c=!t.isLineHolder&&US(u);c&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,p-t.height/2,t.width,t.height);var v=!!u.backgroundColor,h=t.textPadding;h&&(o=gL(o,s,h),p-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(_o),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,x=0,_=!1,S=mL("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=dL("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!g.autoStroke||y)?(x=pL,_=!0,g.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;m.text=t.text,m.x=o,m.y=p,w&&(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||fi,m.opacity=Rt(u.opacity,i.opacity,1),vL(m,u),b&&(m.lineWidth=Rt(u.lineWidth,i.lineWidth,x),m.lineDash=J(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),d.setBoundingRect(nm(m,t.contentWidth,t.contentHeight,_?0:null))},e.prototype._renderBackground=function(t,i,a,n,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,p=l&&l.image,c=l&&!p,v=t.borderRadius,h=this,d,m;if(c||t.lineHeight||u&&f){d=this._getOrCreateChild(xe),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=n,g.width=o,g.height=s,g.r=v,d.dirtyShape()}if(c){var y=d.style;y.fill=l||null,y.fillOpacity=J(t.fillOpacity,1)}else if(p){m=this._getOrCreateChild(pt),m.onload=function(){h.dirtyStyle()};var x=m.style;x.image=l.image,x.x=a,x.y=n,x.width=o,x.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=J(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 _=(d||m).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Rt(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return FS(t)&&(i=[t.fontStyle,t.fontWeight,BS(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&Jt(i)||t.textFont||t.font},e})(Gt),h8={left:!0,right:1,center:1},d8={top:1,bottom:1,middle:1},cL=["fontStyle","fontWeight","fontSize","fontFamily"];function BS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?od+"px":r+"px"}function vL(r,e){for(var t=0;t<cL.length;t++){var i=cL[t],a=e[i];a!=null&&(r[i]=a)}}function FS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function m8(r){return hL(r),T(r.rich,hL),r}function hL(r){if(r){r.font=xL.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||h8[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||d8[t]?t:"top";var i=r.padding;i&&(r.padding=$o(r.padding))}}function dL(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function mL(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function gL(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function yL(r){var e=r.text;return e!=null&&(e+=""),e}function US(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Ee=xL;var ce=ue(),ev=function(r,e,t,i){if(i){var a=ce(i);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",i.type==="group"&&i.traverse(function(n){var o=ce(n);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}};var gs="undefined",wr="series",pm=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),cr="original",Ut="arrayRows",hr="objectRows",Ci="keyedColumns",Hi="typedArray",GS="unknown",jr="column",Un="row",HS="Roam";var g8=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],y8=(function(){function r(e){T(g8,function(t){this[t]=K(e[t],e)},this)}return r})();function cm(r,e){return e.mainType===wr?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var vm=y8;var _L=1,SL={},AL=ue(),XS=ue(),ZS=0,Xl=1,tv=2,sr=["emphasis","blur","select"],ys=["normal","emphasis","blur","select"],So=10,x8=9,xs="highlight",rv="downplay",iv="select",dm="unselect",av="toggleSelect",mm="selectchanged";function Pf(r){return r!=null&&r!=="none"}function gm(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function EL(r){gm(r,"emphasis",tv)}function DL(r){r.hoverState===tv&&gm(r,"normal",ZS)}function KS(r){gm(r,"blur",Xl)}function ML(r){r.hoverState===Xl&&gm(r,"normal",ZS)}function _8(r){r.selected=!0}function S8(r){r.selected=!1}function bL(r,e,t){e(r,t)}function bo(r,e,t){bL(r,e,t),r.isGroup&&r.traverse(function(i){bL(i,e,t)})}function Zl(r,e){switch(e){case"emphasis":r.hoverState=tv;break;case"normal":r.hoverState=ZS;break;case"blur":r.hoverState=Xl;break;case"select":r.selected=!0}}function b8(r,e,t,i){for(var a=r.style,n={},o=0;o<e.length;o++){var s=e[o],l=a[s];n[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(n,e)}return n}function w8(r,e,t,i){var a=t&&de(t,"select")>=0,n=!1;if(r instanceof ge){var o=AL(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Pf(s)||Pf(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=k({},i),u=k({},u),u.fill=s):!Pf(u.fill)&&Pf(s)?(n=!0,i=k({},i),u=k({},u),u.fill=Oc(s)):!Pf(u.stroke)&&Pf(l)&&(n||(i=k({},i),u=k({},u)),u.stroke=Oc(l)),i.style=u}}if(i&&i.z2==null){n||(i=k({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??So)}return i}function T8(r,e,t){if(t&&t.z2==null){t=k({},t);var i=r.z2SelectLift;t.z2=r.z2+(i??x8)}return t}function C8(r,e,t){var i=de(r.currentStates,e)>=0,a=r.style.opacity,n=i?null:b8(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=k({},t),o=k({opacity:i?a:n.opacity*.1},o),t.style=o),t}function WS(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return w8(this,r,e,t);if(r==="blur")return C8(this,r,t);if(r==="select")return T8(this,r,t)}return t}function Ka(r){r.stateProxy=WS;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=WS),t&&(t.stateProxy=WS)}function wL(r,e){!IL(r,e)&&!r.__highByOuter&&bo(r,EL)}function TL(r,e){!IL(r,e)&&!r.__highByOuter&&bo(r,DL)}function Or(r,e){r.__highByOuter|=1<<(e||0),bo(r,EL)}function Nr(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&bo(r,DL)}function ym(r){bo(r,KS)}function nv(r){bo(r,ML)}function qS(r){bo(r,_8)}function jS(r){bo(r,S8)}function IL(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function JS(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(a,n){var o=XS(n),s=cm(r,n),l=a==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){ML(u)}),l&&t.push(n)),o.isBlured=!1}),T(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function YS(r,e,t,i){var a=i.getModel();t=t||"coordinateSystem";function n(u,f){for(var p=0;p<f.length;p++){var c=u.getItemGraphicEl(f[p]);c&&nv(c)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,p=u.coordinateSystem;p&&p.master&&(p=p.master);var c=p&&s?p===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var v=i.getViewOfSeriesModel(u);if(v.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||KS(m)}),kt(e))n(u.getData(),e);else if(se(e))for(var h=Te(e),d=0;d<h.length;d++)n(u.getData(h[d]),e[h[d]]);l.push(u),XS(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var p=i.getViewOfComponentModel(f);p&&p.toggleBlurSeries&&p.toggleBlurSeries(l,!0,a)}})}}function hm(r,e,t){if(!(r==null||e==null)){var i=t.getModel().getComponent(r,e);if(i){XS(i).isBlured=!0;var a=t.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(n){KS(n)})}}}function LL(r,e,t){var i=r.seriesIndex,a=r.getData(e.dataType);if(a){var n=fa(a,e);n=(V(n)?n[0]:n)||0;var o=a.getItemGraphicEl(n);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ce(o);YS(i,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),p=r.get(["emphasis","blurScope"]);f!=null&&YS(i,f,p,t)}}}function xm(r,e,t,i){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var n=i.getModel().getComponent(r,e);if(!n)return a;var o=i.getViewOfComponentModel(n);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(ce(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function PL(r,e,t){var i=ce(r),a=xm(i.componentMainType,i.componentIndex,i.componentHighDownName,t),n=a.dispatchers,o=a.focusSelf;n?(o&&hm(i.componentMainType,i.componentIndex,t),T(n,function(s){return wL(s,e)})):(YS(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&hm(i.componentMainType,i.componentIndex,t),wL(r,e))}function RL(r,e,t){JS(t);var i=ce(r),a=xm(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;a?T(a,function(n){return TL(n,e)}):TL(r,e)}function OL(r,e,t){if(Sm(e)){var i=e.dataType,a=r.getData(i),n=fa(a,e);V(n)||(n=[n]),r[e.type===av?"toggleSelect":e.type===iv?"select":"unselect"](n,i)}}function QS(r){var e=r.getAllData();T(e,function(t){var i=t.data,a=t.type;i.eachItemGraphicEl(function(n,o){r.isSelected(o,a)?qS(n):jS(n)})})}function NL(r){var e=[];return r.eachSeries(function(t){var i=t.getAllData();T(i,function(a){var n=a.data,o=a.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 ha(r,e,t){wo(r,!0),bo(r,Ka),_m(r,e,t)}function A8(r){wo(r,!1)}function He(r,e,t,i){i?A8(r):ha(r,e,t)}function _m(r,e,t){var i=ce(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var CL=["emphasis","blur","select"],E8={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ut(r,e,t,i){t=t||"itemStyle";for(var a=0;a<CL.length;a++){var n=CL[a],o=e.getModel([n,t]),s=r.ensureState(n);s.style=i?i(o):o[E8[t]]()}}function wo(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 _s(r){return!!(r&&r.__highDownDispatcher)}function kL(r,e,t){var i=ce(r);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=t}function zL(r){var e=SL[r];return e==null&&_L<=32&&(e=SL[r]=_L++),e}function Sm(r){var e=r.type;return e===iv||e===dm||e===av}function $S(r){var e=r.type;return e===xs||e===rv}function VL(r){var e=AL(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 Ie={};ef(Ie,{Arc:()=>jl,BezierCurve:()=>Co,BoundingRect:()=>fe,Circle:()=>Tr,CompoundPath:()=>Fn,Ellipse:()=>Kl,Group:()=>te,HOVER_LAYER_FOR_INCREMENTAL:()=>ja,HOVER_LAYER_FROM_THRESHOLD:()=>pb,HOVER_LAYER_NO:()=>fb,Image:()=>pt,IncrementalDisplayable:()=>Rm,Line:()=>ct,LinearGradient:()=>Ei,OrientedBoundingRect:()=>Pm,Path:()=>ge,Point:()=>ye,Polygon:()=>_t,Polyline:()=>mt,RadialGradient:()=>kf,Rect:()=>xe,Ring:()=>To,Sector:()=>Dt,Text:()=>Ee,WH:()=>St,XY:()=>De,applyTransform:()=>Cr,calcZ2Range:()=>db,clipPointsByRect:()=>cv,clipRectByRect:()=>hb,createIcon:()=>Qa,decomposeTransform:()=>hv,ensureCopyRect:()=>Uf,ensureCopyTransform:()=>zm,expandOrShrinkRect:()=>ma,extendPath:()=>vb,extendShape:()=>cb,getCurrentCanvasPainter:()=>Vm,getShapeClass:()=>Ss,getTransform:()=>Ja,groupTransition:()=>Mo,initProps:()=>Xe,isBoundingRectAxisAligned:()=>km,isElementRemoved:()=>Ao,lineLineIntersect:()=>gP,linePolygonIntersect:()=>Vf,makeImage:()=>fv,makePath:()=>Eo,mergePath:()=>mr,payloadDisableAnimation:()=>vv,registerShape:()=>Wi,removeElement:()=>da,removeElementWithFadeOut:()=>Di,resizePath:()=>Nm,retrieveZInfo:()=>ga,setTooltipConfig:()=>zr,subPixelOptimize:()=>pv,subPixelOptimizeLine:()=>Do,subPixelOptimizeRect:()=>i6,transformDirection:()=>$l,traverseElements:()=>Jr,traverseUpdateZ:()=>eu,updateProps:()=>Pe});var Rf=pr.CMD,D8=[[],[],[]],UL=Math.sqrt,M8=Math.atan2;function bm(r,e){if(e){var t=r.data,i=r.len(),a,n,o,s,l,u,f=Rf.M,p=Rf.C,c=Rf.L,v=Rf.R,h=Rf.A,d=Rf.Q;for(o=0,s=0;o<i;){switch(a=t[o++],s=o,n=0,a){case f:n=1;break;case c:n=1;break;case p:n=3;break;case d:n=2;break;case h:var m=e[4],g=e[5],y=UL(e[0]*e[0]+e[1]*e[1]),x=UL(e[2]*e[2]+e[3]*e[3]),_=M8(-e[1]/x,e[0]/y);t[o]*=y,t[o++]+=m,t[o]*=x,t[o++]+=g,t[o++]*=y,t[o++]*=x,t[o++]+=_,t[o++]+=_,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],ft(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],ft(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<n;l++){var S=D8[l];S[0]=t[o++],S[1]=t[o++],ft(S,S,e),t[s++]=S[0],t[s++]=S[1]}}r.increaseVersion()}}var eb=Math.sqrt,wm=Math.sin,Tm=Math.cos,ov=Math.PI;function BL(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function tb(r,e){return(r[0]*e[0]+r[1]*e[1])/(BL(r)*BL(e))}function FL(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(tb(r,e))}function GL(r,e,t,i,a,n,o,s,l,u,f){var p=l*(ov/180),c=Tm(p)*(r-t)/2+wm(p)*(e-i)/2,v=-1*wm(p)*(r-t)/2+Tm(p)*(e-i)/2,h=c*c/(o*o)+v*v/(s*s);h>1&&(o*=eb(h),s*=eb(h));var d=(a===n?-1:1)*eb((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,m=d*o*v/s,g=d*-s*c/o,y=(r+t)/2+Tm(p)*m-wm(p)*g,x=(e+i)/2+wm(p)*m+Tm(p)*g,_=FL([1,0],[(c-m)/o,(v-g)/s]),S=[(c-m)/o,(v-g)/s],b=[(-1*c-m)/o,(-1*v-g)/s],w=FL(S,b);if(tb(S,b)<=-1&&(w=ov),tb(S,b)>=1&&(w=0),w<0){var A=Math.round(w/ov*1e6)/1e6;w=ov*2+A%2*ov}f.addData(u,y,x,o,s,_,w,p,n)}var I8=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,L8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function P8(r){var e=new pr;if(!r)return e;var t=0,i=0,a=t,n=i,o,s=pr.CMD,l=r.match(I8);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],p=f.charAt(0),c=void 0,v=f.match(L8)||[],h=v.length,d=0;d<h;d++)v[d]=parseFloat(v[d]);for(var m=0;m<h;){var g=void 0,y=void 0,x=void 0,_=void 0,S=void 0,b=void 0,w=void 0,A=t,C=i,E=void 0,D=void 0;switch(p){case"l":t+=v[m++],i+=v[m++],c=s.L,e.addData(c,t,i);break;case"L":t=v[m++],i=v[m++],c=s.L,e.addData(c,t,i);break;case"m":t+=v[m++],i+=v[m++],c=s.M,e.addData(c,t,i),a=t,n=i,p="l";break;case"M":t=v[m++],i=v[m++],c=s.M,e.addData(c,t,i),a=t,n=i,p="L";break;case"h":t+=v[m++],c=s.L,e.addData(c,t,i);break;case"H":t=v[m++],c=s.L,e.addData(c,t,i);break;case"v":i+=v[m++],c=s.L,e.addData(c,t,i);break;case"V":i=v[m++],c=s.L,e.addData(c,t,i);break;case"C":c=s.C,e.addData(c,v[m++],v[m++],v[m++],v[m++],v[m++],v[m++]),t=v[m-2],i=v[m-1];break;case"c":c=s.C,e.addData(c,v[m++]+t,v[m++]+i,v[m++]+t,v[m++]+i,v[m++]+t,v[m++]+i),t+=v[m-2],i+=v[m-1];break;case"S":g=t,y=i,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=i-D[E-3]),c=s.C,A=v[m++],C=v[m++],t=v[m++],i=v[m++],e.addData(c,g,y,A,C,t,i);break;case"s":g=t,y=i,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=i-D[E-3]),c=s.C,A=t+v[m++],C=i+v[m++],t+=v[m++],i+=v[m++],e.addData(c,g,y,A,C,t,i);break;case"Q":A=v[m++],C=v[m++],t=v[m++],i=v[m++],c=s.Q,e.addData(c,A,C,t,i);break;case"q":A=v[m++]+t,C=v[m++]+i,t+=v[m++],i+=v[m++],c=s.Q,e.addData(c,A,C,t,i);break;case"T":g=t,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=i-D[E-3]),t=v[m++],i=v[m++],c=s.Q,e.addData(c,g,y,t,i);break;case"t":g=t,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=i-D[E-3]),t+=v[m++],i+=v[m++],c=s.Q,e.addData(c,g,y,t,i);break;case"A":x=v[m++],_=v[m++],S=v[m++],b=v[m++],w=v[m++],A=t,C=i,t=v[m++],i=v[m++],c=s.A,GL(A,C,t,i,b,w,x,_,S,c,e);break;case"a":x=v[m++],_=v[m++],S=v[m++],b=v[m++],w=v[m++],A=t,C=i,t+=v[m++],i+=v[m++],c=s.A,GL(A,C,t,i,b,w,x,_,S,c,e);break}}(p==="z"||p==="Z")&&(c=s.Z,e.addData(c),t=a,i=n),o=c}return e.toStatic(),e}var HL=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(ge);function WL(r){return r.setData!=null}function YL(r,e){var t=P8(r),i=k({},e);return i.buildPath=function(a){var n=WL(a);if(n&&a.canSave()){a.appendPath(t);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=n?a.getContext():a;o&&t.rebuildPath(o,1)}},i.applyTransform=function(a){bm(t,a),this.dirtyShape()},i}function Cm(r,e){return new HL(YL(r,e))}function XL(r,e){var t=YL(r,e),i=(function(a){I(n,a);function n(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return n})(HL);return i}function ZL(r,e){for(var t=[],i=r.length,a=0;a<i;a++){var n=r[a];t.push(n.getUpdatedPathProxy(!0))}var o=new ge(e);return o.createPathProxy(),o.buildPath=function(s){if(WL(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Of(r,e){e=e||{};var t=new ge;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?bm(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var O8=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})();var KL=(function(r){I(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new O8},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})(ge);KL.prototype.type="circle";var Tr=KL;var N8=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})();var qL=(function(r){I(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new N8},e.prototype.buildPath=function(t,i){var a=.5522848,n=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*a,f=l*a;t.moveTo(n-s,o),t.bezierCurveTo(n-s,o-f,n-u,o-l,n,o-l),t.bezierCurveTo(n+u,o-l,n+s,o-f,n+s,o),t.bezierCurveTo(n+s,o+f,n+u,o+l,n,o+l),t.bezierCurveTo(n-u,o+l,n-s,o+f,n-s,o),t.closePath()},e})(ge);qL.prototype.type="ellipse";var Kl=qL;var JL=Math.PI,rb=JL*2,ql=Math.sin,Nf=Math.cos,k8=Math.acos,kr=Math.atan2,jL=Math.abs,lv=Math.sqrt,sv=Math.max,Bn=Math.min,qa=1e-4;function z8(r,e,t,i,a,n,o,s){var l=t-r,u=i-e,f=o-a,p=s-n,c=p*l-f*u;if(!(c*c<qa))return c=(f*(e-n)-p*(r-a))/c,[r+c*l,e+c*u]}function Am(r,e,t,i,a,n,o){var s=r-t,l=e-i,u=(o?n:-n)/lv(s*s+l*l),f=u*l,p=-u*s,c=r+f,v=e+p,h=t+f,d=i+p,m=(c+h)/2,g=(v+d)/2,y=h-c,x=d-v,_=y*y+x*x,S=a-n,b=c*d-h*v,w=(x<0?-1:1)*lv(sv(0,S*S*_-b*b)),A=(b*x-y*w)/_,C=(-b*y-x*w)/_,E=(b*x+y*w)/_,D=(-b*y+x*w)/_,L=A-m,M=C-g,P=E-m,O=D-g;return L*L+M*M>P*P+O*O&&(A=E,C=D),{cx:A,cy:C,x0:-f,y0:-p,x1:A*(a/S-1),y1:C*(a/S-1)}}function V8(r){var e;if(V(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 QL(r,e){var t,i=sv(e.r,0),a=sv(e.r0||0,0),n=i>0,o=a>0;if(!(!n&&!o)){if(n||(i=a,a=0),a>i){var s=i;i=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,p=e.cy,c=!!e.clockwise,v=jL(u-l),h=v>rb&&v%rb;if(h>qa&&(v=h),!(i>qa))r.moveTo(f,p);else if(v>rb-qa)r.moveTo(f+i*Nf(l),p+i*ql(l)),r.arc(f,p,i,l,u,!c),a>qa&&(r.moveTo(f+a*Nf(u),p+a*ql(u)),r.arc(f,p,a,u,l,c));else{var d=void 0,m=void 0,g=void 0,y=void 0,x=void 0,_=void 0,S=void 0,b=void 0,w=void 0,A=void 0,C=void 0,E=void 0,D=void 0,L=void 0,M=void 0,P=void 0,O=i*Nf(l),R=i*ql(l),z=a*Nf(u),B=a*ql(u),F=v>qa;if(F){var H=e.cornerRadius;H&&(t=V8(H),d=t[0],m=t[1],g=t[2],y=t[3]);var Y=jL(i-a)/2;if(x=Bn(Y,g),_=Bn(Y,y),S=Bn(Y,d),b=Bn(Y,m),C=w=sv(x,_),E=A=sv(S,b),(w>qa||A>qa)&&(D=i*Nf(u),L=i*ql(u),M=a*Nf(l),P=a*ql(l),v<JL)){var q=z8(O,R,M,P,D,L,z,B);if(q){var oe=O-q[0],X=R-q[1],G=D-q[0],ne=L-q[1],ve=1/ql(k8((oe*G+X*ne)/(lv(oe*oe+X*X)*lv(G*G+ne*ne)))/2),pe=lv(q[0]*q[0]+q[1]*q[1]);C=Bn(w,(i-pe)/(ve+1)),E=Bn(A,(a-pe)/(ve-1))}}}if(!F)r.moveTo(f+O,p+R);else if(C>qa){var j=Bn(g,C),me=Bn(y,C),ie=Am(M,P,O,R,i,j,c),he=Am(D,L,z,B,i,me,c);r.moveTo(f+ie.cx+ie.x0,p+ie.cy+ie.y0),C<w&&j===me?r.arc(f+ie.cx,p+ie.cy,C,kr(ie.y0,ie.x0),kr(he.y0,he.x0),!c):(j>0&&r.arc(f+ie.cx,p+ie.cy,j,kr(ie.y0,ie.x0),kr(ie.y1,ie.x1),!c),r.arc(f,p,i,kr(ie.cy+ie.y1,ie.cx+ie.x1),kr(he.cy+he.y1,he.cx+he.x1),!c),me>0&&r.arc(f+he.cx,p+he.cy,me,kr(he.y1,he.x1),kr(he.y0,he.x0),!c))}else r.moveTo(f+O,p+R),r.arc(f,p,i,l,u,!c);if(!(a>qa)||!F)r.lineTo(f+z,p+B);else if(E>qa){var j=Bn(d,E),me=Bn(m,E),ie=Am(z,B,D,L,a,-me,c),he=Am(O,R,M,P,a,-j,c);r.lineTo(f+ie.cx+ie.x0,p+ie.cy+ie.y0),E<A&&j===me?r.arc(f+ie.cx,p+ie.cy,E,kr(ie.y0,ie.x0),kr(he.y0,he.x0),!c):(me>0&&r.arc(f+ie.cx,p+ie.cy,me,kr(ie.y0,ie.x0),kr(ie.y1,ie.x1),!c),r.arc(f,p,a,kr(ie.cy+ie.y1,ie.cx+ie.x1),kr(he.cy+he.y1,he.cx+he.x1),c),j>0&&r.arc(f+he.cx,p+he.cy,j,kr(he.y1,he.x1),kr(he.y0,he.x0),!c))}else r.lineTo(f+z,p+B),r.arc(f,p,a,u,l,c)}r.closePath()}}}var B8=(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 $L=(function(r){I(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new B8},e.prototype.buildPath=function(t,i){QL(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ge);$L.prototype.type="sector";var Dt=$L;var F8=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})();var eP=(function(r){I(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new F8},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.PI*2;t.moveTo(a+i.r,n),t.arc(a,n,i.r,0,o,!1),t.moveTo(a+i.r0,n),t.arc(a,n,i.r0,0,o,!0)},e})(ge);eP.prototype.type="ring";var To=eP;function ib(r,e,t,i){var a=[],n=[],o=[],s=[],l,u,f,p;if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Ui(f,f,r[c]),Bi(p,p,r[c]);Ui(f,f,i[0]),Bi(p,p,i[1])}for(var c=0,v=r.length;c<v;c++){var h=r[c];if(t)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){a.push(pi(r[c]));continue}else l=r[c-1],u=r[c+1];Va(n,u,l),nf(n,n,e);var d=hd(h,l),m=hd(h,u),g=d+m;g!==0&&(d/=g,m/=g),nf(o,n,-d),nf(s,n,m);var y=y_([],h,o),x=y_([],h,s);i&&(Bi(y,y,f),Ui(y,y,p),Bi(x,x,f),Ui(x,x,p)),a.push(y),a.push(x)}return t&&a.push(a.shift()),a}function Em(r,e,t){var i=e.smooth,a=e.points;if(a&&a.length>=2){if(i){var n=ib(a,i,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,p=a.length;s<p;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var G8=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})();var rP=(function(r){I(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new G8},e.prototype.buildPath=function(t,i){Em(t,i,!0)},e})(ge);rP.prototype.type="polygon";var _t=rP;var H8=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})();var iP=(function(r){I(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 H8},e.prototype.buildPath=function(t,i){Em(t,i,!1)},e})(ge);iP.prototype.type="polyline";var mt=iP;var W8={},Y8=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();var aP=(function(r){I(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 Y8},e.prototype.buildPath=function(t,i){var a,n,o,s;if(this.subPixelOptimize){var l=Yl(W8,i,this.style);a=l.x1,n=l.y1,o=l.x2,s=l.y2}else a=i.x1,n=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(a,n),u<1&&(o=a*(1-u)+o*u,s=n*(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})(ge);aP.prototype.type="line";var ct=aP;var Ai=[],X8=(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 nP(r,e,t){var i=r.cpx2,a=r.cpy2;return i!=null||a!=null?[(t?k_:Vt)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?k_:Vt)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Lc:Ft)(r.x1,r.cpx1,r.x2,e),(t?Lc:Ft)(r.y1,r.cpy1,r.y2,e)]}var oP=(function(r){I(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 X8},e.prototype.buildPath=function(t,i){var a=i.x1,n=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,p=i.cpy2,c=i.percent;c!==0&&(t.moveTo(a,n),f==null||p==null?(c<1&&(as(a,l,o,c,Ai),l=Ai[1],o=Ai[2],as(n,u,s,c,Ai),u=Ai[1],s=Ai[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(na(a,l,f,o,c,Ai),l=Ai[1],f=Ai[2],o=Ai[3],na(n,u,p,s,c,Ai),u=Ai[1],p=Ai[2],s=Ai[3]),t.bezierCurveTo(l,u,f,p,o,s)))},e.prototype.pointAt=function(t){return nP(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=nP(this.shape,t,!0);return ra(i,i)},e})(ge);oP.prototype.type="bezier-curve";var Co=oP;var Z8=(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 sP=(function(r){I(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 Z8},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),p=Math.sin(s);t.moveTo(f*o+a,p*o+n),t.arc(a,n,o,s,l,!u)},e})(ge);sP.prototype.type="arc";var jl=sP;var K8=(function(r){I(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(),a=0;a<t.length;a++)i=i||t[a].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(i[0],i[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var a=i.paths||[],n=0;n<a.length;n++)a[n].buildPath(t,a[n].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),ge.prototype.getBoundingRect.call(this)},e})(ge),Fn=K8;var q8=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),Dm=q8;var j8=(function(r){I(e,r);function e(t,i,a,n,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=i??0,l.x2=a??1,l.y2=n??0,l.type="linear",l.global=s||!1,l}return e})(Dm),Ei=j8;var J8=(function(r){I(e,r);function e(t,i,a,n,o){var s=r.call(this,n)||this;return s.x=t??.5,s.y=i??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(Dm),kf=J8;var ab=Math.min,Q8=Math.max,Mm=Math.abs,Jl=[0,0],Ql=[0,0],dr=L_(),Im=dr.minTv,Lm=dr.maxTv,$8=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ye;for(var i=0;i<2;i++)this._axes[i]=new ye;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var i=this._corners,a=this._axes,n=e.x,o=e.y,s=n+e.width,l=o+e.height;if(i[0].set(n,o),i[1].set(s,o),i[2].set(s,l),i[3].set(n,l),t)for(var u=0;u<4;u++)i[u].transform(t);ye.sub(a[0],i[1],i[0]),ye.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(i[0])},r.prototype.intersect=function(e,t,i){var a=!0,n=!t;return t&&ye.set(t,0,0),dr.reset(i,!n),!this._intersectCheckOneSide(this,e,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,n,-1)&&(a=!1,n)||!n&&!dr.negativeSize&&ye.copy(t,a?dr.useDir?dr.dirMinTv:Im:Lm),a},r.prototype._intersectCheckOneSide=function(e,t,i,a){for(var n=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Jl),e._getProjMinMaxOnAxis(o,t._corners,Ql),dr.negativeSize||Jl[1]<Ql[0]||Jl[0]>Ql[1]){if(n=!1,dr.negativeSize||i)return n;var l=Mm(Ql[0]-Jl[1]),u=Mm(Jl[0]-Ql[1]);ab(l,u)>Lm.len()&&(l<u?ye.scale(Lm,s,-l*a):ye.scale(Lm,s,u*a))}else if(!i){var l=Mm(Ql[0]-Jl[1]),u=Mm(Jl[0]-Ql[1]);(dr.useDir||ab(l,u)<Im.len())&&((l<u||!dr.bidirectional)&&(ye.scale(Im,s,l*a),dr.useDir&&dr.calcDirMTV()),(l>=u||!dr.bidirectional)&&(ye.scale(Im,s,-u*a),dr.useDir&&dr.calcDirMTV()))}}return n},r.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var a=this._axes[e],n=this._origin,o=t[0].dot(a)+n[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(a)+n[e];s=ab(f,s),l=Q8(f,l)}i[0]=s+dr.touchThreshold,i[1]=l-dr.touchThreshold,dr.negativeSize=i[1]<i[0]},r})(),Pm=$8;var nb=0,lP=1,uP=2,fP=1,zf=0;var e6=[],t6=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=lP,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 a=0;a<t.length;a++)this.addDisplayable(t[a],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 fe(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],n=a.getBoundingRect().clone();a.needLocalTransform()&&n.applyTransform(a.getLocalTransform(e6)),t.union(n)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(n.contain(a[0],a[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})(Gt),Rm=t6;var cP=ue();function Gn(r,e,t,i,a){var n;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();n=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,p=void 0;i?(u=J(i.duration,200),f=J(i.easing,"cubicOut"),p=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),p=e.getShallow(l?"animationDelayUpdate":"animationDelay")),n&&(n.duration!=null&&(u=n.duration),n.easing!=null&&(f=n.easing),n.delay!=null&&(p=n.delay)),ee(p)&&(p=p(t,a)),ee(u)&&(u=u(t));var c={duration:u||0,delay:p,easing:f};return c}else return null}function ob(r,e,t,i,a,n,o){var s=!1,l;ee(a)?(o=n,n=a,a=null):se(a)&&(n=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Gn(r,i,a,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var p=f.duration,c=f.delay,v=f.easing,h={duration:p,delay:c||0,easing:v,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,h):e.animateTo(t,h)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function Pe(r,e,t,i,a,n){ob("update",r,e,t,i,a,n)}function Xe(r,e,t,i,a,n){ob("enter",r,e,t,i,a,n)}function Ao(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 da(r,e,t,i,a,n){Ao(r)||ob("leave",r,e,t,i,a,n)}function pP(r,e,t,i){r.removeTextContent(),r.removeTextGuideLine(),da(r,{style:{opacity:0}},e,t,i)}function Di(r,e,t){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||pP(a,e,t,i)}):pP(r,e,t,i)}function Ht(r){cP(r).oldStyle=r.style}function vP(r){return cP(r).oldStyle}var lb={},De=["x","y"],St=["width","height"],fb=0,pb=1,ja=2;function cb(r){return ge.extend(r)}var r6=XL;function vb(r,e){return r6(r,e)}function Wi(r,e){lb[r]=e}function Ss(r){if(lb.hasOwnProperty(r))return lb[r]}function Eo(r,e,t,i){var a=Cm(r,e);return t&&(i==="center"&&(t=mP(t,a.getBoundingRect())),Nm(a,t)),a}function fv(r,e,t){var i=new pt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var n={width:a.width,height:a.height};i.setStyle(mP(e,n))}}});return i}function mP(r,e){var t=e.width/e.height,i=r.height*t,a;i<=r.width?a=r.height:(i=r.width,a=i/t);var n=r.x+r.width/2,o=r.y+r.height/2;return{x:n-i/2,y:o-a/2,width:i,height:a}}var mr=ZL;function Nm(r,e){if(r.applyTransform){var t=r.getBoundingRect(),i=t.calculateTransform(e);r.applyTransform(i)}}function Do(r,e){return Yl(r,r,{lineWidth:e}),r}function i6(r,e){return fm(r,r,e),r}var pv=qr;function Ja(r,e){for(var t=Ua([]);r&&r!==e;)ar(t,r.getLocalTransform(),t),r=r.parent;return t}function Cr(r,e,t){return e&&!kt(e)&&(e=gi.getLocalTransform(e)),t&&(e=Zt([],e)),ft([],r,e)}function $l(r,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:ht(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:ht(2*e[4]/e[2]),n=[r==="left"?-i:r==="right"?i:0,r==="top"?-a:r==="bottom"?a:0];return n=Cr(n,e,t),ht(n[0])>ht(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function hP(r){return!r.isGroup}function a6(r){return r.shape!=null}function Mo(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){hP(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return a6(o)&&(s.shape=ae(o.shape)),s}var n=i(r);e.traverse(function(o){if(hP(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),Pe(o,l,t,ce(o).dataIndex)}}})}function cv(r,e){return U(r,function(t){var i=t[0];i=Ae(i,e.x),i=Ye(i,e.x+e.width);var a=t[1];return a=Ae(a,e.y),a=Ye(a,e.y+e.height),[i,a]})}function hb(r,e){var t=Ae(r.x,e.x),i=Ye(r.x+r.width,e.x+e.width),a=Ae(r.y,e.y),n=Ye(r.y+r.height,e.y+e.height);if(i>=t&&n>=a)return{x:t,y:a,width:i-t,height:n-a}}function Qa(r,e,t){var i=k({rectHover:!0},e),a=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),re(a,t),new pt(i)):Eo(r.replace("path://",""),i,t,"center")}function Vf(r,e,t,i,a){for(var n=0,o=a[a.length-1];n<a.length;n++){var s=a[n];if(gP(r,e,t,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function gP(r,e,t,i,a,n,o,s){var l=t-r,u=i-e,f=o-a,p=s-n,c=sb(f,p,l,u);if(n6(c))return!1;var v=r-a,h=e-n,d=sb(v,h,l,u)/c;if(d<0||d>1)return!1;var m=sb(v,h,f,p)/c;return!(m<0||m>1)}function sb(r,e,t,i){return r*i-t*e}function n6(r){return r<=1e-6&&r>=-1e-6}function ma(r,e,t,i,a){return e==null||(Ce(e)?Lt[0]=Lt[1]=Lt[2]=Lt[3]=e:(Lt[0]=e[0],Lt[1]=e[1],Lt[2]=e[2],Lt[3]=e[3]),i&&(Lt[0]=Ae(0,Lt[0]),Lt[1]=Ae(0,Lt[1]),Lt[2]=Ae(0,Lt[2]),Lt[3]=Ae(0,Lt[3])),t&&(Lt[0]=-Lt[0],Lt[1]=-Lt[1],Lt[2]=-Lt[2],Lt[3]=-Lt[3]),dP(r,Lt,"x","width",3,1,a&&a[0]||0),dP(r,Lt,"y","height",0,2,a&&a[1]||0)),r}var Lt=[0,0,0,0];function dP(r,e,t,i,a,n,o){var s=e[n]+e[a],l=r[i];r[i]+=s,o=Ae(0,Ye(o,l)),r[i]<o?(r[i]=o,r[t]+=e[a]>=0?-e[a]:e[n]>=0?l+e[n]:ht(s)>1e-8?(l-o)*e[a]/s:0):r[t]-=e[a]}function zr(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,a=W(e)?{formatter:e}:e,n=t.mainType,o=t.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&T(Te(l),function(f){le(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ce(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:re({content:i,encodeHTMLContent:!0,formatterParams:s},a)}}function ub(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Jr(r,e){if(r)if(V(r))for(var t=0;t<r.length;t++)ub(r[t],e);else ub(r,e)}function km(r){return!r||ht(r[1])<Om&&ht(r[2])<Om||ht(r[0])<Om&&ht(r[3])<Om}var Om=1e-5;function Uf(r,e){return r?fe.copy(r,e):e.clone()}function zm(r,e){return e?Tn(r||it(),e):void 0}function ga(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function db(r){var e=-1/0,t=1/0;ub(r,function(n){i(n),i(n.getTextContent()),i(n.getTextGuideLine())});function i(n){if(!(!n||n.isGroup)){var o=n.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(n.states[o[s]]);a(n)}}function a(n){if(n){var o=n.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function eu(r,e,t){yP(r,e,t,-1/0)}function yP(r,e,t,i){if(r.ignoreModelZ)return i;var a=r.getTextContent(),n=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)i=Ae(yP(s[l],e,t,i),i);else r.z=e,r.zlevel=t,i=Ae(r.z2||0,i);if(a&&(a.z=e,a.zlevel=t,isFinite(i)&&(a.z2=i+2)),n){var u=r.textGuideLineConfig;n.z=e,n.zlevel=t,isFinite(i)&&(n.z2=i+(u&&u.showAbove?1:-1))}return i}function vv(r){return r.animation={duration:0},r}function hv(r,e){return e?Tn(uv.transform,e):Ua(uv.transform),uv.decomposeTransform(),mi(r,uv),r}var uv=new gi;uv.transform=it();function Vm(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}Wi("circle",Tr);Wi("ellipse",Kl);Wi("sector",Dt);Wi("ring",To);Wi("polygon",_t);Wi("polyline",mt);Wi("rect",xe);Wi("line",ct);Wi("bezierCurve",Co);Wi("arc",jl);var Um={};function wP(r,e){for(var t=0;t<sr.length;t++){var i=sr[t],a=e[i],n=r.ensureState(i);n.style=n.style||{},n.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function mb(r,e,t){var i=r.labelFetcher,a=r.labelDataIndex,n=r.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(a,"normal",null,n,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=ee(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<sr.length;u++){var f=sr[u],p=e[f];l[f]=J(i?i.getFormattedLabel(a,f,null,n,p&&p.get("formatter")):null,s)}return l}function ot(r,e,t,i){t=t||Um;for(var a=r instanceof Ee,n=!1,o=0;o<ys.length;o++){var s=e[ys[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=a?r:r.getTextContent();if(n){a||(l||(l=new Ee,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=mb(t,e),f=e.normal,p=!!f.getShallow("show"),c=je(f,i&&i.normal,t,!1,!a);c.text=u.normal,a||r.setTextConfig(dv(f,t,!1));for(var o=0;o<sr.length;o++){var v=sr[o],s=e[v];if(s){var h=l.ensureState(v),d=!!J(s.getShallow("show"),p);if(d!==p&&(h.ignore=!d),h.style=je(s,i&&i[v],t,!0,!a),h.style.text=u[v],!a){var m=r.ensureState(v);m.textConfig=dv(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!p,l.useStyle(c),l.dirty(),t.enableTextSetter&&(Io(l).setLabelText=function(g){var y=mb(t,e,g);wP(l,y)})}else l&&(l.ignore=!0);r.dirty()}function at(r,e){e=e||"label";for(var t={normal:r.getModel(e)},i=0;i<sr.length;i++){var a=sr[i];t[a]=r.getModel([a,e])}return t}function je(r,e,t,i,a){var n={};return o6(n,r,t,i,a),e&&k(n,e),n}function dv(r,e,t){e=e||{};var i={},a,n=r.getShallow("rotate"),o=J(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(i.position=a),s!=null&&(i.offset=s),n!=null&&(n*=Math.PI/180,i.rotation=n),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 o6(r,e,t,i,a){t=t||Um;var n=e.ecModel,o=n&&n.option.textStyle,s=s6(e),l;if(s){l={};var u="richInheritPlainLabel",f=J(e.get(u),n?n.get(u):void 0);for(var p in s)if(s.hasOwnProperty(p)){var c=e.getModel(["rich",p]);bP(l[p]={},c,o,e,f,t,i,a,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var h=e.get("lineOverflow");h&&(r.lineOverflow=h);var d=r,m=e.get("minMargin");if(m!=null)m=Ce(m)?m/2:0,d.margin=[m,m,m,m],d.__marginType=tu.minMargin;else{var g=e.get("textMargin");g!=null&&(d.margin=$o(g),d.__marginType=tu.textMargin)}bP(r,e,o,null,null,t,i,a,!0,!1)}function s6(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Um).rich;if(t){e=e||{};for(var i=Te(t),a=0;a<i.length;a++){var n=i[a];e[n]=1}}r=r.parentModel}return e}var xP=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],_P=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],SP=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function bP(r,e,t,i,a,n,o,s,l,u){t=!o&&t||Um;var f=n&&n.inheritColor,p=e.getShallow("color"),c=e.getShallow("textBorderColor"),v=J(e.getShallow("opacity"),t.opacity);(p==="inherit"||p==="auto")&&(f?p=f:p=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(p=p||t.color,c=c||t.textBorderColor),p!=null&&(r.fill=p),c!=null&&(r.stroke=c);var h=J(e.getShallow("textBorderWidth"),t.textBorderWidth);h!=null&&(r.lineWidth=h);var d=J(e.getShallow("textBorderType"),t.textBorderType);d!=null&&(r.lineDash=d);var m=J(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);m!=null&&(r.lineDashOffset=m),!o&&v==null&&!u&&(v=n&&n.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var g=0;g<xP.length;g++){var y=xP[g],x=a!==!1&&i?Rt(e.getShallow(y),i.getShallow(y),t[y]):J(e.getShallow(y),t[y]);x!=null&&(r[y]=x)}for(var g=0;g<_P.length;g++){var y=_P[g],x=e.getShallow(y);x!=null&&(r[y]=x)}if(r.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(r.verticalAlign=_)}if(!l||!n.disableBox){for(var g=0;g<SP.length;g++){var y=SP[g],x=e.getShallow(y);x!=null&&(r[y]=x)}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 Bf(r,e){var t=e&&e.getModel("textStyle");return Jt([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 Io=ue();function Bm(r,e,t,i){if(r){var a=Io(r);a.prevValue=a.value,a.value=t;var n=e.normal;a.valueAnimation=n.get("valueAnimation"),a.valueAnimation&&(a.precision=n.get("precision"),a.defaultInterpolatedText=i,a.statesModels=e)}}function Fm(r,e,t,i,a){var n=Io(r);if(!n.valueAnimation||n.prevValue===n.value)return;var o=n.defaultInterpolatedText,s=J(n.interpolatedValue,n.prevValue),l=n.value;function u(f){var p=tm(t,n.precision,s,l,f);n.interpolatedValue=f===1?null:p;var c=mb({labelDataIndex:e,labelFetcher:a,defaultText:o?o(p):p+""},n.statesModels,p);wP(r,c)}r.percent=0,(n.prevValue==null?Xe:Pe)(r,{percent:1},i,e,null,u)}var tu={minMargin:1,textMargin:2};var u6=["textStyle","color"],gb=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],yb=new Ee,f6=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(u6):null)},r.prototype.getFont=function(){return Bf({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<gb.length;i++)t[gb[i]]=this.getShallow(gb[i]);return yb.useStyle(t),yb.update(),yb.getBoundingRect()},r})(),TP=f6;var xb=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],p6=bi(xb),CP=(function(){function r(){}return r.prototype.getLineStyle=function(e){return p6(this,e)},r})();var _b=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],c6=bi(_b),AP=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return c6(this,e,t)},r})();var ru=(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 a=[],n=3;n<arguments.length;n++)a[n-3]=arguments[n]},r.prototype.mergeOption=function(e,t){_e(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,a=i==null?i:i[e];if(a==null&&!t){var n=this.parentModel;n&&(a=n.getShallow(e))}return a},r.prototype.getModel=function(e,t){var i=e!=null,a=i?this.parsePath(e):null,n=i?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(n,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(ae(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(!Ue.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 a=0;a<e.length&&!(e[a]&&(i=i&&typeof i=="object"?i[e[a]]:null,i==null));a++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},r})();Df(ru);LI(ru);st(ru,CP);st(ru,AP);st(ru,PI);st(ru,TP);var Re=ru;var v6=Math.round(Math.random()*10);function Mi(r){return[r||"",v6++].join("_")}function EP(r){var e={};r.registerSubTypeDefaulter=function(t,i){var a=Si(t);e[a.main]=i},r.determineSubType=function(t,i){var a=i.type;if(!a){var n=Si(t).main;r.hasSubTypes(t)&&e[n]&&(a=e[n](i))}return a}}function DP(r,e){r.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=t(o),f=u.graph,p=u.noEntryList,c={};for(T(n,function(y){c[y]=!0});p.length;){var v=p.pop(),h=f[v],d=!!c[v];d&&(s.call(l,v,h.originalDeps.slice()),delete c[v]),T(h.successor,d?g:m)}T(c,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&p.push(y)}function g(y){c[y]=!0,m(y)}};function t(n){var o={},s=[];return T(n,function(l){var u=i(o,l),f=u.originalDeps=e(l),p=a(f,n);u.entryCount=p.length,u.entryCount===0&&s.push(l),T(p,function(c){de(u.predecessor,c)<0&&u.predecessor.push(c);var v=i(o,c);de(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function i(n,o){return n[o]||(n[o]={predecessor:[],successor:[]}),n[o]}function a(n,o){var s=[];return T(n,function(l){de(o,l)>=0&&s.push(l)}),s}}function Vr(r,e){return _e(_e({},r,!0),e,!0)}var MP={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 IP={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 Hm="ZH",bb="EN",Ff=bb,Gm={},wb={},Wm=Ue.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ff).toUpperCase();return r.indexOf(Hm)>-1?Hm:Ff})():Ff;function LP(r,e){r=r.toUpperCase(),wb[r]=new Re(e),Gm[r]=e}function PP(r){if(W(r)){var e=Gm[r.toUpperCase()]||{};return r===Hm||r===bb?ae(e):_e(ae(e),ae(Gm[Ff]),!1)}else return _e(ae(r),ae(Gm[Ff]),!1)}function mv(r){return wb[r]}function RP(){return wb[Ff]}LP(bb,MP);LP(Hm,IP);var Tb=null;function OP(r){Tb||(Tb=r)}function yt(){return Tb}function Ym(r,e){var t=yt(),i=e.breakOption,a=e.breakParsed;return!a&&t&&(a=t.parseAxisBreakOption(i,r)),a}function iu(r){var e=r.brk;return e?e.breaks:[]}function au(r){var e=r.brk;return e?e.hasBreaks():!1}var Km=1e3,qm=Km*60,Gf=qm*60,Yi=Gf*24,Cb=Yi*365,h6={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})/},Zm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},d6="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Xm="{yyyy}-{MM}-{dd}",Ab={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xm,hour:Xm+" "+Zm.hour,minute:Xm+" "+Zm.minute,second:Xm+" "+Zm.second,millisecond:d6},Ii=["year","month","day","hour","minute","second","millisecond"],NP=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function kP(r){return!W(r)&&!ee(r)?m6(r):r}function m6(r){r=r||{};var e={},t=!0;return T(Ii,function(i){t&&(t=r[i]==null)}),T(Ii,function(i,a){var n=r[i];e[i]={};for(var o=null,s=a;s>=0;s--){var l=Ii[s],u=se(n)&&!V(n)?n[l]:n,f=void 0;V(u)?(f=u.slice(),o=f[0]||""):W(u)?(o=u,f=[o]):(o==null?o=Zm[i]:h6[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function Ur(r,e){return r+="","0000".substr(0,e-r.length)+r}function Hf(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 zP(r){return r===Hf(r)}function VP(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function nu(r,e,t,i){var a=Xr(r),n=a[Eb(t)](),o=a[Jm(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[Qm(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[$m(t)](),p=(f-1)%12+1,c=a[eg(t)](),v=a[tg(t)](),h=a[rg(t)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof Re?i:mv(i||Wm)||RP(),y=g.getModel("time"),x=y.get("month"),_=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,Ur(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,Ur(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ur(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ur(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ur(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Ur(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Ur(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ur(h,3)).replace(/{S}/g,h+"")}function UP(r,e,t,i,a){var n=null;if(W(t))n=t;else if(ee(t)){var o={time:r.time,level:r.time?r.time.level:0},s=yt();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),n=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];n=u[Math.min(l.level,u.length-1)]||""}else{var f=ou(r.value,a);n=t[f][f][0]}}return nu(new Date(r.value),n,a,i)}function ou(r,e){var t=Xr(r),i=t[Jm(e)]()+1,a=t[Qm(e)](),n=t[$m(e)](),o=t[eg(e)](),s=t[tg(e)](),l=t[rg(e)](),u=l===0,f=u&&s===0,p=f&&o===0,c=p&&n===0,v=c&&a===1,h=v&&i===1;return h?"year":v?"month":c?"day":p?"hour":f?"minute":u?"second":"millisecond"}function jm(r,e,t){switch(e){case"year":r[Db(t)](0);case"month":r[Mb(t)](1);case"day":r[Ib(t)](0);case"hour":r[Lb(t)](0);case"minute":r[Pb(t)](0);case"second":r[Rb(t)](0)}return r}function Eb(r){return r?"getUTCFullYear":"getFullYear"}function Jm(r){return r?"getUTCMonth":"getMonth"}function Qm(r){return r?"getUTCDate":"getDate"}function $m(r){return r?"getUTCHours":"getHours"}function eg(r){return r?"getUTCMinutes":"getMinutes"}function tg(r){return r?"getUTCSeconds":"getSeconds"}function rg(r){return r?"getUTCMilliseconds":"getMilliseconds"}function BP(r){return r?"setUTCFullYear":"setFullYear"}function Db(r){return r?"setUTCMonth":"setMonth"}function Mb(r){return r?"setUTCDate":"setDate"}function Ib(r){return r?"setUTCHours":"setHours"}function Lb(r){return r?"setUTCMinutes":"setMinutes"}function Pb(r){return r?"setUTCSeconds":"setSeconds"}function Rb(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Ob(r,e,t,i,a,n,o,s){var l=new Ee({style:{text:r,font:e,align:t,verticalAlign:i,padding:a,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function gv(r){if(!Ol(r))return W(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Wf(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 ya=$o;function ig(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Jt(f)?f:"-"}function n(f){return or(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 nu(l,i,t)}if(e==="ordinal")return bc(r)?a(r):Ce(r)&&n(r)?r+"":"-";var u=xi(r);return n(u)?gv(u):bc(r)?a(r):typeof r=="boolean"?r+"":"-"}var FP=["a","b","c","d","e","f","g"],Nb=function(r,e){return"{"+r+(e??"")+"}"};function Yf(r,e,t){V(e)||(e=[e]);var i=e.length;if(!i)return"";for(var a=e[0].$vars||[],n=0;n<a.length;n++){var o=FP[n];r=r.replace(Nb(o),Nb(o,0))}for(var s=0;s<i;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(Nb(FP[l],s),t?Xt(u):u)}return r}function ag(r,e,t){return T(e,function(i,a){r=r.replace("{"+a+"}",t?Xt(i):i)}),r}function ng(r,e){var t=W(r)?{color:r,extraCssText:e}:r||{},i=t.color,a=t.type;e=t.extraCssText;var n=t.renderMode||"html";if(!i)return"";if(n==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Xt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Xt(i)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function GP(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
9
+ yyyy`);var i=Xr(e),a=t?"getUTC":"get",n=i[a+"FullYear"](),o=i[a+"Month"]()+1,s=i[a+"Date"](),l=i[a+"Hours"](),u=i[a+"Minutes"](),f=i[a+"Seconds"](),p=i[a+"Milliseconds"]();return r=r.replace("MM",Ur(o,2)).replace("M",o).replace("yyyy",n).replace("yy",Ur(n%100+"",2)).replace("dd",Ur(s,2)).replace("d",s).replace("hh",Ur(l,2)).replace("h",l).replace("mm",Ur(u,2)).replace("m",u).replace("ss",Ur(f,2)).replace("s",f).replace("SSS",Ur(p,3)),r}function HP(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function $a(r,e){return e=e||"transparent",W(r)?r:se(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function su(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var sg={},kb={},g6=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=i(sg,!0),this._normalMasterList=i(kb,!1);function i(a,n){var o=[];return T(a,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){T(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"){sg[e]=t;return}kb[e]=t},r.get=function(e){return kb[e]||sg[e]},r})();function y6(r){return!!sg[r]}var x6=1,zb=2;function WP(r){YP.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var YP=Z();function ug(r){var e=r.getShallow("coord",!0),t=x6;if(e==null){var i=YP.get(r.type);i&&i.getCoord2&&(t=zb,e=i.getCoord2(r))}return{coord:e,from:t}}var Xf=0,lg=1,Vb=2;function Ub(r,e){var t=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),a=i!=null,n=Xf;if(t){var o=r.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(n=lg,o||(n=Xf)):i==="box"&&(n=Vb,!o&&!y6(t)&&(n=Xf))}return{coordSysType:t,kind:n}}function Hn(r){var e=r.targetModel,t=r.coordSysType,i=r.coordSysProvider,a=r.isDefaultDataCoordSys,n=r.allowNotFound,o=Ub(e,!0),s=o.kind,l=o.coordSysType;if(a&&s!==lg&&(s=lg,l=t),s===Xf||l!==t)return Xf;var u=i(t,e);return u?(s===lg?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Xf}var fg=function(r,e){var t=e.getReferringComponents(r,$e).models[0];return t&&t.coordinateSystem},Lo=g6;var pg=T,Bb=["left","right","top","bottom","width","height"],lu=[["width","left","right"],["height","top","bottom"]];function Fb(r,e,t,i,a){var n=0,o=0;i==null&&(i=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),p=e.childAt(u+1),c=p&&p.getBoundingRect(),v,h;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);v=n+d,v>i||l.newline?(n=0,v=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(c?-c.y+f.y:0);h=o+m,h>a||l.newline?(n+=s+t,o=0,h=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=v+t:o=h+t)})}var en=Fb,sce=be(Fb,"vertical"),lce=be(Fb,"horizontal");function cg(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 _6(r,e){var t=rt(r,e,{enableLayoutOnlyByCenter:!0}),i=r.getBoxLayoutParams(),a,n;if(t.type===yv.point)n=t.refPoint,a=Ze(i,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=V(o)?o:[o,o];a=Ze(i,t.refContainer),n=t.boxCoordFrom===zb?t.refPoint:[$(s[0],a.width)+a.x,$(s[1],a.height)+a.y]}return{viewRect:a,center:n}}function vg(r,e){var t=_6(r,e),i=t.viewRect,a=t.center,n=r.get("radius");V(n)||(n=[0,n]);var o=$(i.width,e.getWidth()),s=$(i.height,e.getHeight()),l=Math.min(o,s),u=$(n[0],l/2),f=$(n[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:i}}function Ze(r,e,t){t=ya(t||0);var i=e.width,a=e.height,n=$(r.left,i),o=$(r.top,a),s=$(r.right,i),l=$(r.bottom,a),u=$(r.width,i),f=$(r.height,a),p=t[2]+t[0],c=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-c-n),isNaN(f)&&(f=a-l-p-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>i/a?u=i*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(n)&&(n=i-s-u-c),isNaN(o)&&(o=a-l-f-p),r.left||r.right){case"center":n=i/2-u/2-t[3];break;case"right":n=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-p;break}n=n||0,o=o||0,isNaN(u)&&(u=i-c-n-(s||0)),isNaN(f)&&(f=a-p-o-(l||0));var h=new fe((e.x||0)+n+t[3],(e.y||0)+o+t[0],u,f);return h.margin=t,h}function hg(r,e,t){var i=r.getShallow("preserveAspect",!0);if(!i)return e;var a=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(a))<1e-9)return e;var n=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=i==="cover";return a>t&&!l||a<t&&l?(s.width=e.height*t,n==="left"?s.left=0:n==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),Ze(s,e)}var yv={rect:1,point:2};function rt(r,e,t){var i,a,n,o=r.boxCoordinateSystem,s;if(o){var l=ug(r),u=l.coord,f=l.from;if(o.dataToLayout){n=yv.rect,s=f;var p=o.dataToLayout(u);i=p.contentRect||p.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(n=yv.point,s=f,a=o.dataToPoint(u))}return n==null&&(n=yv.rect),n===yv.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[i.x+i.width/2,i.y+i.height/2]),{type:n,refContainer:i,refPoint:a,boxCoordFrom:s}}function bs(r,e,t,i,a,n){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new fe(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var p=Ze(re({width:u.width,height:u.height},e),t,i),c=o?p.x-u.x:0,v=s?p.y-u.y:0;return l==="raw"?(n.x=c,n.y=v):(n.x+=c,n.y+=v),n===r&&r.markRedraw(),!0}function XP(r,e){return r[lu[e][0]]!=null||r[lu[e][1]]!=null&&r[lu[e][2]]!=null}function ws(r){var e=r.layoutMode||r.constructor.layoutMode;return se(e)?e:e?{type:e}:null}function Ar(r,e,t){var i=t&&t.ignoreSize;!V(i)&&(i=[i,i]);var a=o(lu[0],0),n=o(lu[1],1);l(lu[0],r,a),l(lu[1],r,n);function o(u,f){var p={},c=0,v={},h=0,d=2;if(pg(u,function(y){v[y]=r[y]}),pg(u,function(y){le(e,y)&&(p[y]=v[y]=e[y]),s(p,y)&&c++,s(v,y)&&h++}),i[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(h===d||!c)return v;if(c>=d)return p;for(var m=0;m<u.length;m++){var g=u[m];if(!le(p,g)&&le(r,g)){p[g]=r[g];break}}return p}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,p){pg(u,function(c){f[c]=p[c]})}}function Li(r){return Gb({},r)}function Gb(r,e){return e&&r&&pg(Bb,function(t){le(e,t)&&(r[t]=e[t])}),r}var S6=ue(),Zf=(function(r){I(e,r);function e(t,i,a){var n=r.call(this,t,i,a)||this;return n.uid=Mi("ec_cpt_model"),n}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,i){var a=ws(this),n=a?Li(t):{},o=i.getTheme();_e(t,o.get(this.mainType)),_e(t,this.getDefaultOption()),a&&Ar(t,n,a)},e.prototype.mergeOption=function(t,i){_e(this.option,t,!0);var a=ws(this);a&&Ar(this.option,t,a)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!II(t))return t.defaultOption;var i=S6(this);if(!i.defaultOption){for(var a=[],n=t;n;){var o=n.prototype.defaultOption;o&&a.push(o),n=n.superClass}for(var s={},l=a.length-1;l>=0;l--)s=_e(s,a[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var a=t+"Index",n=t+"Id";return Ln(this.ecModel,t,{index:this.get(a,!0),id:this.get(n,!0)},i)},e.prototype.getBoxLayoutParams=function(){return cg(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})(Re);am(Zf,Re);vs(Zf);EP(Zf);DP(Zf,b6);function b6(r){var e=[];return T(Zf.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=U(e,function(t){return Si(t).main}),r!=="dataset"&&de(e,"dataset")<=0&&e.unshift("dataset"),e}var Le=Zf;var uu={color:{},darkColor:{},size:{}},Kt=uu.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)"};k(Kt,{primary:Kt.neutral80,secondary:Kt.neutral70,tertiary:Kt.neutral60,quaternary:Kt.neutral50,disabled:Kt.neutral20,border:Kt.neutral30,borderTint:Kt.neutral20,borderShade:Kt.neutral40,background:Kt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Kt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Kt.neutral70,axisLineTint:Kt.neutral40,axisTick:Kt.neutral70,axisTickMinor:Kt.neutral60,axisLabel:Kt.neutral70,axisSplitLine:Kt.neutral15,axisMinorSplitLine:Kt.neutral05});for(Ts in Kt)Kt.hasOwnProperty(Ts)&&(Hb=Kt[Ts],Ts==="theme"?uu.darkColor.theme=Kt.theme.slice():Ts==="highlight"?uu.darkColor.highlight="rgba(255,231,130,0.4)":Ts.indexOf("accent")===0?uu.darkColor[Ts]=sa(Hb,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):uu.darkColor[Ts]=sa(Hb,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)}));var Hb,Ts;uu.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var N=uu;var ZP="";typeof navigator<"u"&&(ZP=navigator.platform||"");var Kf="rgba(0, 0, 0, 0.2)",KP=N.color.theme[0],w6=sa(KP,null,null,.9),dg={darkMode:"auto",colorBy:"series",color:N.color.theme,gradientColor:[w6,KP],aria:{decal:{decals:[{color:Kf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Kf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Kf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Kf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Kf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Kf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ZP.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 vr={Must:1,Might:2,Not:3},qP=ue();function jP(r){qP(r).datasetMap=Z()}function mg(r,e,t){var i={},a=gg(e);if(!a||!r)return i;var n=[],o=[],s=e.ecModel,l=qP(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,p;r=r.slice(),T(r,function(d,m){var g=se(d)?d:r[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,p=h(g)),i[g.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:p,valueWayDim:0});T(r,function(d,m){var g=d.name,y=h(d);if(f==null){var x=c.valueWayDim;v(i[g],x,y),v(o,x,y),c.valueWayDim+=y}else if(f===m)v(i[g],0,y),v(n,0,y);else{var x=c.categoryWayDim;v(i[g],x,y),v(o,x,y),c.categoryWayDim+=y}});function v(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function h(d){var m=d.dimsDef;return m?m.length:1}return n.length&&(i.itemName=n),o.length&&(i.seriesName=o),i}function qf(r,e,t){var i={},a=gg(r);if(!a)return i;var n=e.sourceFormat,o=e.dimensionsDefine,s;(n===hr||n===Ci)&&T(o,function(f,p){(se(f)?f.name:f)==="name"&&(s=p)});var l=(function(){for(var f={},p={},c=[],v=0,h=Math.min(5,t);v<h;v++){var d=QP(e.data,n,e.seriesLayoutBy,o,e.startIndex,v);c.push(d);var m=d===vr.Not;if(m&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!m&&c[f.n]===vr.Not)&&(f.n=v),g(f)&&c[f.n]!==vr.Not)return f;m||(d===vr.Might&&p.v==null&&v!==s&&(p.v=v),(p.n==null||p.n===p.v)&&(p.n=v))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(p)?p:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function gg(r){var e=r.get("data",!0);if(!e)return Ln(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},$e).models[0]}function JP(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Ln(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},$e).models}function yg(r,e){return QP(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function QP(r,e,t,i,a,n){var o,s=5;if(Yt(r))return vr.Not;var l,u;if(i){var f=i[n];se(f)?(l=f.name,u=f.type):W(f)&&(l=f)}if(u!=null)return u==="ordinal"?vr.Must:vr.Not;if(e===Ut){var p=r;if(t===Un){for(var c=p[n],v=0;v<(c||[]).length&&v<s;v++)if((o=_(c[a+v]))!=null)return o}else for(var v=0;v<p.length&&v<s;v++){var h=p[a+v];if(h&&(o=_(h[n]))!=null)return o}}else if(e===hr){var d=r;if(!l)return vr.Not;for(var v=0;v<d.length&&v<s;v++){var m=d[v];if(m&&(o=_(m[l]))!=null)return o}}else if(e===Ci){var g=r;if(!l)return vr.Not;var c=g[l];if(!c||Yt(c))return vr.Not;for(var v=0;v<c.length&&v<s;v++)if((o=_(c[v]))!=null)return o}else if(e===cr)for(var y=r,v=0;v<y.length&&v<s;v++){var m=y[v],x=Ya(m);if(!V(x))return vr.Not;if((o=_(x[n]))!=null)return o}function _(S){var b=W(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?vr.Might:vr.Not;if(b&&S!=="-")return vr.Must}return vr.Not}var Wb=Z();function $P(r,e){lt(Wb.get(r)==null&&e),Wb.set(r,e)}function eR(r,e,t){var i=Wb.get(e);if(!i)return t;var a=i(r);if(!a)return t;if(0)for(var n;n<a.length;n++);return t.concat(a)}var tR=ue(),T6=ue(),xv=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,i){var a=qe(this.get("color",!0)),n=this.get("colorLayer",!0);return rR(this,tR,a,n,e,t,i)},r.prototype.clearColorPalette=function(){A6(this,tR)},r})();function _v(r,e,t,i){var a=qe(r.get(["aria","decal","decals"]));return rR(r,T6,a,null,e,t,i)}function C6(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 rR(r,e,t,i,a,n,o){n=n||r;var s=e(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!i?t:C6(i,o);if(f=f||t,!(!f||!f.length)){var p=f[l];return a&&(u[a]=p),s.paletteIdx=(l+1)%f.length,p}}function A6(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var xg,Sv,iR,aR="\0_ec_inner",E6=1;var lR=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,a,n,o,s){n=n||{},this.option=null,this._theme=new Re(n),this._locale=new Re(o),this._optionManager=s},e.prototype.setOption=function(t,i,a){var n=sR(i);this._optionManager.setOption(t,a,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,i){return this._resetOption(t,sR(i))},e.prototype._resetOption=function(t,i){var a=!1,n=this._optionManager;if(!t||t==="recreate"){var o=n.mountOption(t==="recreate");!this.option||t==="recreate"?iR(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=n.getMediaOption(this);l.length&&T(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=i&&i.replaceMergeMainTypeMap;jP(this),T(t,function(p,c){p!=null&&(Le.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?ae(p):_e(a[c],p,!0))}),u&&u.each(function(p,c){Le.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),Le.topologicalTravel(s,Le.getAllClassMainTypes(),f,this);function f(p){var c=eR(this,p,qe(t[p])),v=n.get(p),h=v?u&&u.get(p)?"replaceMerge":"normalMerge":"replaceAll",d=em(v,c,h);_I(d,p,Le),a[p]=null,n.set(p,null),o.set(p,0);var m=[],g=[],y=0,x,_;T(d,function(S,b){var w=S.existing,A=S.newOption;if(!A)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=p==="series",E=Le.getClass(p,S.keyInfo.subType,!C);if(!E){if(0)var D,L;return}if(p==="tooltip"){if(x)return;x=!0}if(w&&w.constructor===E)w.name=S.keyInfo.name,w.mergeOption(A,this),w.optionUpdated(A,!1);else{var M=k({componentIndex:b},S.keyInfo);w=new E(A,this,this,M),k(w,M),S.brandNew&&(w.__requireNewView=!0),w.init(A,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),a[p]=m,n.set(p,g),o.set(p,y),p==="series"&&xg(this)}this._seriesIndices||xg(this)},e.prototype.getOption=function(){var t=ae(this.option);return T(t,function(i,a){if(Le.hasClass(a)){for(var n=qe(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Tf(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[a]=n}}),delete t[aR],t},e.prototype.setTheme=function(t){this._theme=new Re(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 a=this._componentsMap.get(t);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var a=t.index,n=t.id,o=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return a!=null?(l=[],T(qe(a),function(u){s[u]&&l.push(s[u])})):n!=null?l=nR("id",n,s):o!=null?l=nR("name",o,s):l=Ne(s,function(u){return!!u}),oR(l,t)},e.prototype.findComponents=function(t){var i=t.query,a=t.mainType,n=s(i),o=n?this.queryComponents(n):Ne(this._componentsMap.get(a),function(u){return!!u});return l(oR(o,t));function s(u){var f=a+"Index",p=a+"Id",c=a+"Name";return u&&(u[f]!=null||u[p]!=null||u[c]!=null)?{mainType:a,index:u[f],id:u[p],name:u[c]}:null}function l(u){return t.filter?Ne(u,t.filter):u}},e.prototype.eachComponent=function(t,i,a){var n=this._componentsMap;if(ee(t)){var o=i,s=t;n.each(function(p,c){for(var v=0;p&&v<p.length;v++){var h=p[v];h&&s.call(o,c,h,h.componentIndex)}})}else for(var l=W(t)?n.get(t):se(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=wt(t,null);return Ne(this._componentsMap.get("series"),function(a){return!!a&&i!=null&&a.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ne(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return Ne(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){Sv(this),T(this._seriesIndices,function(a){var n=this._componentsMap.get("series")[a];t.call(i,n,a)},this)},e.prototype.eachRawSeries=function(t,i){T(this._componentsMap.get("series"),function(a){a&&t.call(i,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,a){Sv(this),T(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&i.call(a,o,n)},this)},e.prototype.eachRawSeriesByType=function(t,i,a){return T(this.getSeriesByType(t),i,a)},e.prototype.isSeriesFiltered=function(t){return Sv(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){Sv(this);var a=[];T(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];t.call(i,o,n)&&a.push(n)},this),this._seriesIndices=a,this._seriesIndicesMap=Z(a)},e.prototype.restoreData=function(t){xg(this);var i=this._componentsMap,a=[];i.each(function(n,o){Le.hasClass(o)&&a.push(o)}),Le.topologicalTravel(a,Le.getAllClassMainTypes(),function(n){T(i.get(n),function(o){o&&(n!=="series"||!D6(o,t))&&o.restoreData()})})},e.internalField=(function(){xg=function(t){var i=t._seriesIndices=[];T(t._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),t._seriesIndicesMap=Z(i)},Sv=function(t){},iR=function(t,i){t.option={},t.option[aR]=E6,t._componentsMap=Z({series:[]}),t._componentsCount=Z();var a=i.aria;se(a)&&a.enabled==null&&(a.enabled=!0),M6(i,t._theme.option),_e(i,dg,!1),t._mergeOption(i,null)}})(),e})(Re);function D6(r,e){if(e){var t=e.seriesIndex,i=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||i!=null&&r.id!==i||a!=null&&r.name!==a}}function M6(r,e){var t=r.color&&!r.colorLayer;T(e,function(i,a){a==="colorLayer"&&t||a==="color"&&r.color||Le.hasClass(a)||(typeof i=="object"?r[a]=r[a]?_e(r[a],i,!1):ae(i):r[a]==null&&(r[a]=i))})}function nR(r,e,t){if(V(e)){var i=Z();return T(e,function(n){if(n!=null){var o=wt(n,null);o!=null&&i.set(n,!0)}}),Ne(t,function(n){return n&&i.get(n[r])})}else{var a=wt(e,null);return Ne(t,function(n){return n&&a!=null&&n[r]===a})}}function oR(r,e){return e.hasOwnProperty("subType")?Ne(r,function(t){return t&&t.subType===e.subType}):r}function sR(r){var e=Z();return r&&T(qe(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}st(lR,xv);var _g=lR;var I6=/^(min|max)?(.+)$/,L6=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,i){e&&(T(qe(e.series),function(o){o&&o.data&&Yt(o.data)&&dl(o.data)}),T(qe(e.dataset),function(o){o&&o.source&&Yt(o.source)&&dl(o.source)})),e=ae(e);var a=this._optionBackup,n=P6(e,t,!a);this._newBaseOption=n.baseOption,a?(n.timelineOptions.length&&(a.timelineOptions=n.timelineOptions),n.mediaList.length&&(a.mediaList=n.mediaList),n.mediaDefault&&(a.mediaDefault=n.mediaDefault)):this._optionBackup=n},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ae(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var a=e.getComponent("timeline");a&&(t=ae(i[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!a.length&&!n)return s;for(var l=0,u=a.length;l<u;l++)R6(a[l].query,t,i)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!N6(o,this._currentMediaIndices)&&(s=U(o,function(f){return ae(f===-1?n.option:a[f].option)})),this._currentMediaIndices=o,s},r})();function P6(r,e,t){var i=[],a,n,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,p=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((p||f)&&(r.options=r.media=null),n=r),f&&V(u)&&T(u,function(v){v&&v.option&&(v.query?i.push(v):a||(a=v))}),c(n),T(l,function(v){return c(v)}),T(i,function(v){return c(v.option)});function c(v){T(e,function(h){h(v,t)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:a,mediaList:i}}function R6(r,e,t){var i={width:e,height:t,aspectratio:e/t},a=!0;return T(r,function(n,o){var s=o.match(I6);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();O6(i[u],n,l)||(a=!1)}}),a}function O6(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function N6(r,e){return r.join(",")===e.join(",")}var uR=L6;var tn=T,wv=se,fR=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Yb(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=fR.length;t<i;t++){var a=fR[t],n=e.normal,o=e.emphasis;n&&n[a]&&(r[a]=r[a]||{},r[a].normal?_e(r[a].normal,n[a]):r[a].normal=n[a],n[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?_e(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Br(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var i=r[e].normal,a=r[e].emphasis;i&&(t?(r[e].normal=r[e].emphasis=null,re(r[e],i)):r[e]=i),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function bv(r){Br(r,"itemStyle"),Br(r,"lineStyle"),Br(r,"areaStyle"),Br(r,"label"),Br(r,"labelLine"),Br(r,"upperLabel"),Br(r,"edgeLabel")}function er(r,e){var t=wv(r)&&r[e],i=wv(t)&&t.textStyle;if(i)for(var a=0,n=dS.length;a<n;a++){var o=dS[a];i.hasOwnProperty(o)&&(t[o]=i[o])}}function xa(r){r&&(bv(r),er(r,"label"),r.emphasis&&er(r.emphasis,"label"))}function k6(r){if(wv(r)){Yb(r),bv(r),er(r,"label"),er(r,"upperLabel"),er(r,"edgeLabel"),r.emphasis&&(er(r.emphasis,"label"),er(r.emphasis,"upperLabel"),er(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Yb(e),xa(e));var t=r.markLine;t&&(Yb(t),xa(t));var i=r.markArea;i&&xa(i);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var n=r.links||r.edges;if(n&&!Yt(n))for(var o=0;o<n.length;o++)xa(n[o]);T(r.categories,function(u){bv(u)})}if(a&&!Yt(a))for(var o=0;o<a.length;o++)xa(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)xa(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)V(l[o])?(xa(l[o][0]),xa(l[o][1])):xa(l[o]);r.type==="gauge"?(er(r,"axisLabel"),er(r,"title"),er(r,"detail")):r.type==="treemap"?(Br(r.breadcrumb,"itemStyle"),T(r.levels,function(u){bv(u)})):r.type==="tree"&&bv(r.leaves)}}function Po(r){return V(r)?r:r?[r]:[]}function pR(r){return(V(r)?r[0]:r)||{}}function Xb(r,e){tn(Po(r.series),function(i){wv(i)&&k6(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),tn(t,function(i){tn(Po(r[i]),function(a){a&&(er(a,"axisLabel"),er(a.axisPointer,"label"))})}),tn(Po(r.parallel),function(i){var a=i&&i.parallelAxisDefault;er(a,"axisLabel"),er(a&&a.axisPointer,"label")}),tn(Po(r.calendar),function(i){Br(i,"itemStyle"),er(i,"dayLabel"),er(i,"monthLabel"),er(i,"yearLabel")}),tn(Po(r.radar),function(i){er(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)}),tn(Po(r.geo),function(i){wv(i)&&(xa(i),tn(Po(i.regions),function(a){xa(a)}))}),tn(Po(r.timeline),function(i){xa(i),Br(i,"label"),Br(i,"itemStyle"),Br(i,"controlStyle",!0);var a=i.data;V(a)&&T(a,function(n){se(n)&&(Br(n,"label"),Br(n,"itemStyle"))})}),tn(Po(r.toolbox),function(i){Br(i,"iconStyle"),tn(i.feature,function(a){Br(a,"iconStyle")})}),er(pR(r.axisPointer),"label"),er(pR(r.tooltip).axisPointer,"label")}function z6(r,e){for(var t=e.split(","),i=r,a=0;a<t.length&&(i=i&&i[t[a]],i!=null);a++);return i}function V6(r,e,t,i){for(var a=e.split(","),n=r,o,s=0;s<a.length-1;s++)o=a[s],n[o]==null&&(n[o]={}),n=n[o];(i||n[a[s]]==null)&&(n[a[s]]=t)}function cR(r){r&&T(U6,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var U6=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],B6=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Zb=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Tv(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Zb.length;t++){var i=Zb[t][1],a=Zb[t][0];e[i]!=null&&(e[a]=e[i])}}function vR(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function hR(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function F6(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function dR(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&dR(r[t].children,e)}function Sg(r,e){Xb(r,e),r.series=qe(r.series),T(r.series,function(t){if(se(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),vR(t.label);var a=t.data;if(a&&!Yt(a))for(var n=0;n<a.length;n++)vR(a[n]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var o=z6(t,"pointer.color");o!=null&&V6(t,"itemStyle.color",o)}else if(i==="bar"){Tv(t),Tv(t.backgroundStyle),Tv(t.emphasis);var a=t.data;if(a&&!Yt(a))for(var n=0;n<a.length;n++)typeof a[n]=="object"&&(Tv(a[n]),Tv(a[n]&&a[n].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),hR(t),dR(t.data,hR)}else i==="graph"||i==="sankey"?F6(t):i==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&re(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),cR(t)}}),r.dataRange&&(r.visualMap=r.dataRange),T(B6,function(t){var i=r[t];i&&(V(i)||(i=[i]),T(i,function(a){cR(a)}))})}var mR=Pn(G6);function G6(r){var e=Z();r.eachSeries(function(t){var i=t.get("stack");if(i){var a=e.get(i)||e.set(i,[]),n=t.getData(),o={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(t){if(t.length!==0){var i=t[0].seriesModel,a=i.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&t.reverse(),T(t,function(n,o){n.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),H6(t)}})}function H6(r){T(r,function(e,t){var i=[],a=[NaN,NaN],n=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(n,function(u,f,p){var c=o.get(e.stackedDimension,p);if(isNaN(c))return a;var v,h;s?h=o.getRawIndex(p):v=o.get(e.stackedByDimension,p);for(var d=NaN,m=t-1;m>=0;m--){var g=r[m];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,v)),h>=0){var y=g.data.getByRawIndex(g.stackResultDimension,h);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=go(c,y),d=y;break}}}return i[0]=c,i[1]=d,i})})}var bg=(function(){function r(e){this.data=e.data||(e.sourceFormat===Ci?{}:[]),this.sourceFormat=e.sourceFormat||GS,this.seriesLayoutBy=e.seriesLayoutBy||jr,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 a=t[i];a.type==null&&yg(this,i)===vr.Must&&(a.type="ordinal")}}return r})();function jf(r){return r instanceof bg}function Cv(r,e,t){t=t||Kb(r);var i=e.seriesLayoutBy,a=W6(r,t,i,e.sourceHeader,e.dimensions),n=new bg({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ae(e)});return n}function Jf(r){return new bg({data:r,sourceFormat:Yt(r)?Hi:cr})}function xR(r){return new bg({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ae(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Kb(r){var e=GS;if(Yt(r))e=Hi;else if(V(r)){r.length===0&&(e=Ut);for(var t=0,i=r.length;t<i;t++){var a=r[t];if(a!=null){if(V(a)||Yt(a)){e=Ut;break}else if(se(a)){e=hr;break}}}}else if(se(r)){for(var n in r)if(le(r,n)&&kt(r[n])){e=Ci;break}}return e}function W6(r,e,t,i,a){var n,o;if(!r)return{dimensionsDefine:gR(a),startIndex:o,dimensionsDetectedCount:n};if(e===Ut){var s=r;i==="auto"||i==null?yR(function(u){u!=null&&u!=="-"&&(W(u)?o==null&&(o=1):o=0)},t,s,10):o=Ce(i)?i:i?1:0,!a&&o===1&&(a=[],yR(function(u,f){a[f]=u!=null?u+"":""},t,s,1/0)),n=a?a.length:t===Un?s.length:s[0]?s[0].length:null}else if(e===hr)a||(a=Y6(r));else if(e===Ci)a||(a=[],T(r,function(u,f){a.push(f)}));else if(e===cr){var l=Ya(r[0]);n=V(l)&&l.length||1}return{startIndex:o,dimensionsDefine:gR(a),dimensionsDetectedCount:n}}function Y6(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Te(t)}function gR(r){if(r){var e=Z();return U(r,function(t,i){t=se(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var n=e.get(a.name);return n?a.name+="-"+n.count++:e.set(a.name,{count:1}),a})}}function yR(r,e,t,i){if(e===Un)for(var a=0;a<t.length&&a<i;a++)r(t[a]?t[a][0]:null,a);else for(var n=t[0]||[],a=0;a<n.length&&a<i;a++)r(n[a],a)}function wg(r){var e=r.sourceFormat;return e===hr||e===Ci}var fu,pu,cu,vu,_R,SR,Cg=(function(){function r(e,t){var i=jf(e)?e:Jf(e);this._source=i;var a=this._data=i.data,n=i.sourceFormat,o=i.seriesLayoutBy;if(n===Hi&&(this._offset=0,this._dimSize=t,this._data=a),0)var s;SR(this,a,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;SR=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,p=l.startIndex,c=l.dimensionsDefine,v=_R[$b(u,f)];if(k(o,v),u===Hi)o.getItem=t,o.count=a,o.fillStorage=i;else{var h=jb(u,f);o.getItem=K(h,null,s,p,c);var d=Jb(u,f);o.count=K(d,null,s,p,c)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,p=0;p<u;p++)s[p]=l[f+p];return s},i=function(o,s,l,u){for(var f=this._data,p=this._dimSize,c=0;c<p;c++){for(var v=u[c],h=v[0]==null?1/0:v[0],d=v[1]==null?-1/0:v[1],m=s-o,g=l[c],y=0;y<m;y++){var x=f[y*p+c];g[o+y]=x,x<h&&(h=x),x>d&&(d=x)}v[0]=h,v[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};_R=(e={},e[Ut+"_"+jr]={pure:!0,appendData:n},e[Ut+"_"+Un]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[hr]={pure:!0,appendData:n},e[Ci]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),p=0;p<(l||[]).length;p++)f.push(l[p])})}},e[cr]={appendData:n},e[Hi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function n(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})();var Tg=function(r){V(r)||hS("series.data or dataset.source must be an array.")},fve=(fu={},fu[Ut+"_"+jr]=Tg,fu[Ut+"_"+Un]=Tg,fu[hr]=Tg,fu[Ci]=function(r,e){for(var t=0;t<e.length;t++){var i=e[t].name;i==null&&hS("dimension name must not be null/undefined.")}},fu[cr]=Tg,fu),bR=function(r,e,t,i){return r[i]},X6=(pu={},pu[Ut+"_"+jr]=function(r,e,t,i){return r[i+e]},pu[Ut+"_"+Un]=function(r,e,t,i,a){i+=e;for(var n=a||[],o=r,s=0;s<o.length;s++){var l=o[s];n[s]=l?l[i]:null}return n},pu[hr]=bR,pu[Ci]=function(r,e,t,i,a){for(var n=a||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;n[o]=l?l[i]:null}return n},pu[cr]=bR,pu);function jb(r,e){var t=X6[$b(r,e)];return t}var wR=function(r,e,t){return r.length},Z6=(cu={},cu[Ut+"_"+jr]=function(r,e,t){return Math.max(0,r.length-e)},cu[Ut+"_"+Un]=function(r,e,t){var i=r[0];return i?Math.max(0,i.length-e):0},cu[hr]=wR,cu[Ci]=function(r,e,t){var i=t[0].name,a=i!=null?r[i]:null;return a?a.length:0},cu[cr]=wR,cu);function Jb(r,e){var t=Z6[$b(r,e)];return t}var qb=function(r,e,t){return r[e]},K6=(vu={},vu[Ut]=qb,vu[hr]=function(r,e,t){return r[t]},vu[Ci]=qb,vu[cr]=function(r,e,t){var i=Ya(r);return i instanceof Array?i[e]:i},vu[Hi]=qb,vu);function Qb(r){var e=K6[r];return e}function $b(r,e){return r===Ut?r+"_"+e:r}function Ro(r,e,t){if(r){var i=r.getRawDataItem(e);if(i!=null){var a=r.getStore(),n=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return Qb(n)(i,o,s)}else{var l=i;return n===cr&&(l=Ya(i)),l}}}}var q6=/\{@(.+?)\}/g,hu=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var i=this.getData(t),a=this.getRawValue(e,t),n=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,p=this.mainType,c=p==="series",v=i.userOutput&&i.userOutput.get();return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:n,data:s,dataType:t,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,i,a,n,o){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),a!=null&&V(l.value)&&(l.value=l.value[a]),!n){var u=s.getItemModel(e);n=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(ee(n))return l.status=t,l.dimensionIndex=a,n(l);if(W(n)){var f=Yf(n,l);return f.replace(q6,function(p,c){var v=c.length,h=c;h.charAt(0)==="["&&h.charAt(v-1)==="]"&&(h=+h.slice(1,v-1));var d=Ro(s,e,h);if(o&&V(o.interpolatedValue)){var m=s.getDimensionIndex(h);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Ro(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r})();function e1(r){var e,t;return se(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Cs(r){return new j6(r)}var j6=(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 a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!i&&(n=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)&&(n="reset");function f(y){return!(y>=1)&&(y=1),y}var p;(this._dirty||n==="reset")&&(this._dirty=!1,p=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,h=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(p||v<h)){var d=this._progress;if(V(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],v,h,l,u);else this._doProgress(d,v,h,l,u)}this._dueIndex=h;var g=this._settedOutputEnd!=null?this._settedOutputEnd:h;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,a,n){TR.reset(t,i,a,n),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:TR.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),V(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.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 TR=(function(){var r,e,t,i,a,n={reset:function(l,u,f,p){e=l,r=u,t=f,i=p,a=Math.ceil(i/t),n.next=t>1&&i>0?s:o}};return n;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<i?l:e;return e++,u}})();function _a(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Ce(r)&&r!=null&&r!=="-"&&(r=+Xr(r)),r==null||r===""?NaN:Number(r))}var J6=Z({number:function(r){return parseFloat(r)},time:function(r){return+Xr(r)},trim:function(r){return W(r)?Jt(r):r}});function Ag(r){return J6.get(r)}var CR={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}},Q6=(function(){function r(e,t){if(!Ce(t)){var i="";Ke(i)}this._opFn=CR[e],this._rvalFloat=xi(t)}return r.prototype.evaluate=function(e){return Ce(e)?this._opFn(e,this._rvalFloat):this._opFn(xi(e),this._rvalFloat)},r})(),Eg=(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=Ce(e)?e:xi(e),a=Ce(t)?t:xi(t),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=W(e),l=W(t);s&&(i=l?e:0),l&&(a=s?t:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},r})();var $6=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=xi(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=xi(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function AR(r,e){return r==="eq"||r==="ne"?new $6(r==="eq",e):le(CR,r)?new Q6(r,e):null}function Dg(r){var e="",t=-1/0,i=-1/0,a=1/0,n=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,a=r.l),r.le!=null&&(e+="LE"+r.le,n=r.le)),{key:e,g:t,ge:i,l:a,le:n}}function Mg(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var eX=(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 _a(e,t)},r})();function tX(r,e){var t=new eX,i=r.data,a=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==jr&&Ke(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var x="";le(l,g)&&Ke(x),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var p=jb(a,jr);e.__isBuiltIn&&(t.getRawDataItem=function(d){return p(i,n,s,d)},t.getRawData=K(rX,null,r)),t.cloneRawData=K(iX,null,r);var c=Jb(a,jr);t.count=K(c,null,i,n,s);var v=Qb(a);t.retrieveValue=function(d,m){var g=p(i,n,s,d);return h(g,m)};var h=t.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return v(d,m,g.name)}};return t.getDimensionInfo=K(aX,null,s,l),t.cloneAllDimensionInfo=K(nX,null,s),t}function rX(r){var e=r.sourceFormat;if(!t1(e)){var t="";Ke(t)}return r.data}function iX(r){var e=r.sourceFormat,t=r.data;if(!t1(e)){var i="";Ke(i)}if(e===Ut){for(var a=[],n=0,o=t.length;n<o;n++)a.push(t[n].slice());return a}else if(e===hr){for(var a=[],n=0,o=t.length;n<o;n++)a.push(k({},t[n]));return a}}function aX(r,e,t){if(t!=null){if(Ce(t)||!isNaN(t)&&!le(e,t))return r[t];if(le(e,t))return e[t]}}function nX(r){return ae(r)}var ER=Z();function DR(r){r=ae(r);var e=r.type,t="";e||Ke(t);var i=e.split(":");i.length!==2&&Ke(t);var a=!1;i[0]==="echarts"&&(e=i[1],a=!0),r.__isBuiltIn=a,ER.set(e,r)}function MR(r,e,t){var i=qe(r),a=i.length,n="";a||Ke(n);for(var o=0,s=a;o<s;o++){var l=i[o];e=oX(l,e,t,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function oX(r,e,t,i){var a="";e.length||Ke(a),se(r)||Ke(a);var n=r.type,o=ER.get(n);o||Ke(a);var s=U(e,function(f){return tX(f,o)}),l=qe(o.transform({upstream:s[0],upstreamList:s,config:ae(r.config)}));if(0&&r.print)var u;return U(l,function(f,p){var c="";se(f)||Ke(c),f.data||Ke(c);var v=Kb(f.data);t1(v)||Ke(c);var h,d=e[0];if(d&&p===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),h={seriesLayoutBy:jr,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:jr,sourceHeader:0,dimensions:f.dimensions};return Cv(f.data,h,null)})}function t1(r){return r===Ut||r===hr}var sX=typeof Uint32Array===gs?Array:Uint32Array,lX=typeof Uint16Array===gs?Array:Uint16Array,i1=typeof Int32Array===gs?Array:Int32Array,IR=typeof Float64Array===gs?Array:Float64Array,PR={float:IR,int:i1,ordinal:Array,number:Array,time:IR},r1;function Qf(r){return r>65535?sX:lX}function uX(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function LR(r,e,t,i,a){var n=PR[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new n(i)}var fX=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return r.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),n=this.defaultDimValueGetter=r1[a.sourceFormat];this._dimValueGetter=i||n,this._rawExtent=[];var o=wg(a);this._dimensions=U(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,a=this._dimensions,n=i.get(e);if(n!=null){if(a[n].type===t)return n}else n=a.length;return a[n]={type:t},i.set(e,n),this._chunks[n]=new PR[t||"float"](this._rawCount),this._rawExtent[n]=Ot(),n},r.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],a=this._dimensions[e],n=this._rawExtent,o=a.ordinalOffset||0,s=i.length;o===0&&(n[e]=Ot());for(var l=n[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]))}a.ordinalMeta=t,a.ordinalOffset=s,a.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 a=t.count();return t.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},r.prototype.appendValues=function(e,t){for(var i=this._chunks,a=this._dimensions,n=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<n;u++){var f=a[u];LR(i,u,f.type,l,!0)}for(var p=[],c=s;c<l;c++)for(var v=c-s,h=0;h<n;h++){var f=a[h],d=r1.arrayRows.call(this,e[v]||p,f.property,v,h);i[h][c]=d;var m=o[h];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 a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),f=0;f<s;f++){var p=o[f];l[f]||(l[f]=Ot()),LR(n,f,p.type,t,i)}if(a.fillStorage)a.fillStorage(e,t,n,l);else for(var c=[],v=e;v<t;v++){c=a.getItem(v,c);for(var h=0;h<s;h++){var d=n[h],m=this._dimValueGetter(c,u[h],v,h);d[v]=m;var g=l[h];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.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=[],a=[];if(t==null){t=e,e=[];for(var n=0;n<this._dimensions.length;n++)a.push(n)}else a=e;for(var n=0,o=a.length;n<o;n++)i.push(this.get(a[n],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 a=0,n=this.count();a<n;a++){var o=this.get(e,a);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)}),gt(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 a=0,n=this._count-1;a<=n;){var o=(a+n)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)n=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,a=this._count;if(i===Array){e=new i(a);for(var n=0;n<a;n++)e[n]=t[n]}else e=new i(t.buffer,0,a)}else{var i=Qf(this._rawCount);e=new i(this.count());for(var n=0;n<e.length;n++)e[n]=n}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),a=i.count(),n=Qf(i._rawCount),o=new n(a),s=[],l=e.length,u=0,f=e[0],p=i._chunks,c=0;c<a;c++){var v=void 0,h=i.getRawIndex(c);if(l===0)v=t(c);else if(l===1){var d=p[f][h];v=t(d,c)}else{for(var m=0;m<l;m++)s[m]=p[e[m]][h];s[m]=c,v=t.apply(null,s)}v&&(o[u++]=h)}return u<a&&(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 a=Te(e),n=a.length;if(!n)return this;var o=t.count(),s=Qf(t._rawCount),l=new s(o),u=0,f=a[0],p=e[f][0],c=e[f][1],v=t._chunks,h=!1;if(!t._indices){var d=0;if(n===1){for(var m=v[a[0]],g=0;g<i;g++){var y=m[g];(y>=p&&y<=c||isNaN(y))&&(l[u++]=d),d++}h=!0}else if(n===2){for(var m=v[a[0]],x=v[a[1]],_=e[a[1]][0],S=e[a[1]][1],g=0;g<i;g++){var y=m[g],b=x[g];(y>=p&&y<=c||isNaN(y))&&(b>=_&&b<=S||isNaN(b))&&(l[u++]=d),d++}h=!0}}if(!h)if(n===1)for(var g=0;g<o;g++){var w=t.getRawIndex(g),y=v[a[0]][w];(y>=p&&y<=c||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var A=!0,w=t.getRawIndex(g),C=0;C<n;C++){var E=a[C],y=v[E][w];(y<e[E][0]||y>e[E][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 a=e._chunks,n=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Ot();for(var p=0;p<s;p++){for(var c=e.getRawIndex(p),v=0;v<o;v++)l[v]=a[t[v]][c];l[o]=p;var h=i&&i.apply(null,l);if(h!=null){typeof h!="object"&&(n[0]=h,h=n);for(var f=0;f<h.length;f++){var d=t[f],m=h[f],g=u[d],y=a[d];y&&(y[c]=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),a=i._chunks,n=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,p,c,v=new(Qf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var h=1;h<o-1;h+=l){for(var d=Math.min(h+l,o-1),m=Math.min(h+l*2,o),g=(m+d)/2,y=0,x=d;x<m;x++){var _=this.getRawIndex(x),S=n[_];isNaN(S)||(y+=S)}y/=m-d;var b=h,w=Math.min(h+l,o),A=h-1,C=n[u];f=-1,c=b;for(var E=-1,D=0,x=b;x<w;x++){var _=this.getRawIndex(x),S=n[_];if(isNaN(S)){D++,E<0&&(E=_);continue}p=Math.abs((A-g)*(S-C)-(A-x)*(y-C)),p>f&&(f=p,c=_)}D>0&&D<w-b&&(v[s++]=Math.min(E,c),c=Math.max(E,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(e,t){for(var i=this.clone([e],!0),a=i._chunks,n=Math.floor(1/t),o=a[e],s=this.count(),l=new(Qf(this._rawCount))(Math.ceil(s/n)*2),u=0,f=0;f<s;f+=n){var p=f,c=o[this.getRawIndex(p)],v=f,h=o[this.getRawIndex(v)],d=n;f+n>s&&(d=s-f);for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];y<c&&(c=y,p=f+m),y>h&&(h=y,v=f+m)}var x=this.getRawIndex(p),_=this.getRawIndex(v);p<v?(l[u++]=x,l[u++]=_):(l[u++]=_,l[u++]=x)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(e,t,i,a){for(var n=this.clone([e],!0),o=n._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),p=n._rawExtent[e]=Ot(),c=new(Qf(this._rawCount))(Math.ceil(f/l)),v=0,h=0;h<f;h+=l){l>f-h&&(l=f-h,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(h+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(h+a(s,g)||0,f-1));u[y]=g,g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g),c[v++]=y}return n._count=v,n._indices=c,n._updateGetRawIdx(),n},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,a=this._chunks,n=0,o=this.count();n<o;n++){var s=this.getRawIndex(n);switch(i){case 0:t(n);break;case 1:t(a[e[0]][s],n);break;case 2:t(a[e[0]][s],a[e[1]][s],n);break;default:for(var l=0,u=[];l<i;l++)u[l]=a[e[l]][s];u[l]=n,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var i=this._chunks[e],a=Ot();if(!i)return a;var n=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Dg(t),f=u.key,p=l[f];if(p)return p.slice();for(var c=a[0],v=a[1],h=0;h<n;h++){var d=this.getRawIndex(h),m=i[d];(!t||Mg(u,m))&&(m<c&&(c=m),m>v&&(v=m))}return l[f]=[c,v]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],a=this._chunks,n=0;n<a.length;n++)i.push(a[n][t]);return i},r.prototype.clone=function(e,t){var i=new r,a=this._chunks,n=e&&fr(e,function(s,l){return s[l]=!0,s},{});if(n)for(var o=0;o<a.length;o++)i._chunks[o]=n[o]?uX(a[o]):a[o];else i._chunks=a;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=ae(this._extent),e._rawExtent=ae(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 a=0;a<i;a++)t[a]=this._indices[a]}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,a,n){return _a(t[n],this._dimensions[n])}r1={arrayRows:e,objectRows:function(t,i,a,n){return _a(t[i],this._dimensions[n])},keyedColumns:e,original:function(t,i,a,n){var o=t&&(t.value==null?t:t.value);return _a(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(t,i,a,n){return t[n]}}})(),r})(),Av=fX;var Lg=(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,a,n;if(Ig(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,n=[f._getVersionSign()]}else s=o.get("data",!0),l=Yt(s)?Hi:cr,n=[];var p=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=J(p.seriesLayoutBy,c.seriesLayoutBy)||null,h=J(p.sourceHeader,c.sourceHeader),d=J(p.dimensions,c.dimensions),m=v!==c.seriesLayoutBy||!!h!=!!c.sourceHeader||d;a=m?[Cv(s,{seriesLayoutBy:v,sourceHeader:h,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(t);a=y.sourceList,n=y.upstreamSignList}else{var x=g.get("source",!0);a=[Cv(x,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var n="";e.length!==1&&RR(n)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(a||0),p="";a!=null&&!f&&RR(p),s.push(f),l.push(u._getVersionSign())}),i?o=MR(i,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[xR(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 a=0,n=this._storeList,o=n[a];o||(o=n[a]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Ig(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new Av,s.initData(new Cg(t,e.length),e)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ig(e)){var t=gg(e);return t?[t.getSourceManager()]:[]}else return U(JP(e),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,a;if(Ig(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=e;t=n.get("seriesLayoutBy",!0),i=n.get("sourceHeader",!0),a=n.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:a}},r})();function a1(r){var e=r.option.transform;e&&dl(r.option.transform)}function Ig(r){return r.mainType==="series"}function RR(r){throw new Error(r)}var pX="line-height:1";function OR(r){var e=r.lineHeight;return e==null?pX:"line-height:"+Xt(e+"")+"px"}function NR(r,e){var t=r.color||N.color.tertiary,i=r.fontSize||12,a=r.fontWeight||"400",n=r.color||N.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Xt(i+"")+"px;color:"+Xt(t)+";font-weight:"+Xt(a+""),valueStyle:"font-size:"+Xt(o+"")+"px;color:"+Xt(n)+";font-weight:"+Xt(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var cX=[0,10,20,30],vX=["",`
10
+ `,`
11
+
12
+ `,`
13
+
14
+
15
+ `];function vt(r,e){return e.type=r,e}function n1(r){return r.type==="section"}function kR(r){return n1(r)?hX:dX}function zR(r){if(n1(r)){var e=0,t=r.blocks.length,i=t>1||t>0&&!r.noHeader;return T(r.blocks,function(a){var n=zR(a);n>=e&&(e=n+ +(i&&(!n||n1(a)&&!a.noHeader)))}),e}return 0}function hX(r,e,t,i){var a=e.noHeader,n=mX(zR(e)),o=[],s=e.blocks||[];lt(!s||V(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(le(u,l)){var f=new Eg(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,m){var g=e.valueFormatter,y=kR(d)(g?k(k({},r),{valueFormatter:g}):r,d,m>0?n.html:0,i);y!=null&&o.push(y)});var p=r.renderMode==="richText"?o.join(n.richText):o1(i,o.join(""),a?t:n.html);if(a)return p;var c=ig(e.header,"ordinal",r.useUTC),v=NR(i,r.renderMode).nameStyle,h=OR(i);return r.renderMode==="richText"?VR(r,c,v)+n.richText+p:o1(i,'<div style="'+v+";"+h+';">'+Xt(c)+"</div>"+p,t)}function dX(r,e,t,i){var a=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(_){return _=V(_)?_:[_],U(_,function(S,b){return ig(S,V(v)?v[b]:v,u)})};if(!(n&&o)){var p=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||N.color.secondary,a),c=n?"":ig(l,"ordinal",u),v=e.valueType,h=o?[]:f(e.value,e.rawDataIndex),d=!s||!n,m=!s&&n,g=NR(i,a),y=g.nameStyle,x=g.valueStyle;return a==="richText"?(s?"":p)+(n?"":VR(r,c,y))+(o?"":xX(r,h,d,m,x)):o1(i,(s?"":p)+(n?"":gX(c,!s,y))+(o?"":yX(h,d,m,x)),t)}}function s1(r,e,t,i,a,n){if(r){var o=kR(r),s={useUTC:a,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function mX(r){return{html:cX[r],richText:vX[r]}}function o1(r,e,t){var i='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",n=OR(r);return'<div style="'+a+";"+n+';">'+e+i+"</div>"}function gX(r,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+Xt(r)+"</span>"}function yX(r,e,t,i){var a=t?"10px":"20px",n=e?"float:right;margin-left:"+a:"";return r=V(r)?r:[r],'<span style="'+n+";"+i+'">'+U(r,function(o){return Xt(o)}).join("&nbsp;&nbsp;")+"</span>"}function VR(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function xX(r,e,t,i,a){var n=[a],o=i?10:20;return t&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,n)}function Pg(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return $a(i)}function Rg(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Og=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Xc()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var a=i==="richText"?this._generateStyleName():null,n=ng({color:t,type:e,renderMode:i,markerId:a});return W(n)?n:(this.richTextStyles[a]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};V(t)?T(t,function(n){return k(i,n)}):k(i,t);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+e+"}"},r})();function Ng(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,a=e.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(t),l=V(s),u=Pg(e,t),f,p,c,v;if(o>1||l&&!o){var h=_X(s,e,t,n,u);f=h.inlineValues,p=h.inlineValueTypes,c=h.blocks,v=h.inlineValues[0]}else if(o){var d=a.getDimensionInfo(n[0]);v=f=Ro(a,t,n[0]),p=d.type}else v=f=l?s[0]:s;var m=Cf(e),g=m&&e.name||"",y=a.getName(t),x=i?g:y;return vt("section",{header:g,noHeader:i||!m,sortParam:v,blocks:[vt("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Jt(x),value:f,valueType:p,rawDataIndex:a.getRawIndex(t)})].concat(c||[])})}function _X(r,e,t,i,a){var n=e.getData(),o=fr(r,function(p,c,v){var h=n.getDimensionInfo(v);return p=p||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];i.length?T(i,function(p){f(Ro(n,t,p),p)}):T(r,f);function f(p,c){var v=n.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(vt("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:p,valueType:v.type})):(s.push(p),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var As=ue();function kg(r,e){return r.getName(e)||r.getId(e)}var Ev="__universalTransitionEnabled",zg=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,a){this.seriesIndex=this.componentIndex,this.dataTask=Cs({count:bX,reset:wX}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var n=As(this).sourceManager=new Lg(this);n.prepareSource();var o=this.getInitialData(t,a);BR(o,this),this.dataTask.context.data=o,As(this).dataBeforeProcessed=o,UR(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var a=ws(this),n=a?Li(t):{},o=this.subType;Le.hasClass(o)&&(o+="Series"),_e(t,i.getTheme().get(this.subType)),_e(t,this.getDefaultOption()),Gi(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Ar(t,n,a)},e.prototype.mergeOption=function(t,i){t=_e(this.option,t,!0),this.fillDataTextStyle(t.data);var a=ws(this);a&&Ar(this.option,t,a);var n=As(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,i);BR(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,As(this).dataBeforeProcessed=o,UR(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Yt(t))for(var i=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&Gi(t[a],"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=l1(this);if(i){var a=i.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return As(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=l1(this);if(i){var a=i.context;a.outputData=t,i!==this.dataTask&&(a.data=t)}As(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Z(t)},e.prototype.getSourceManager=function(){return As(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return As(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,a,n){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(a);n==null&&(n=1/0);for(var f=[],p=1/0,c=-1,v=0,h=o.getDimensionIndex(i),d=o.getStore(),m=0,g=d.count();m<g;m++){var y=d.get(h,m),x=l.dataToCoord(y),_=u-x,S=Math.abs(_);S<=n&&((S<p||S===p&&_>=0&&c<0)&&(p=S,c=_,v=0),_===c&&(f[v++]=m))}return f.length=v,f},e.prototype.formatTooltip=function(t,i,a){return Ng({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ue.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,a){var n=this.ecModel,o=xv.prototype.getColorFromPalette.call(this,t,i,a);return o||(o=n.getColorFromPalette(t,i,a)),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 a=this.option.selectedMap;if(a){var n=this.option.selectedMode,o=this.getData(i);if(n==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=kg(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var a=[],n=0;n<t.length;n++)a[0]=t[n],this.isSelected(t[n],i)?this.unselect(a,i):this.select(a,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=Te(t),a=[],n=0;n<i.length;n++){var o=t[i[n]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[kg(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Ev])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var a,n,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var p=i[f],c=kg(t,p);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(p)}}else if(s==="single"||s===!0){var v=i[l-1],c=kg(t,v);o.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(n={},n[c]=t.getRawIndex(v),n)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(a){var n=t.getRawDataItem(a);n&&n.selected&&i.push(a)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return Le.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})(Le);st(zg,hu);st(zg,xv);am(zg,Le);function UR(r){var e=r.name;Cf(r)||(r.name=SX(r)||e)}function SX(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return T(t,function(a){var n=e.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function bX(r){return r.model.getRawData().count()}function wX(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),TX}function TX(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function BR(r,e){T(fo(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,be(CX,e))})}function CX(r,e){var t=l1(r);return t&&t.setOutputEnd((e||this).count()),e}function l1(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(r.uid))}return i}}var Fe=zg;var u1=(function(){function r(){this.group=new te,this.uid=Mi("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){},r.prototype.updateLayout=function(e,t,i,a){},r.prototype.updateVisual=function(e,t,i,a){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Df(u1);vs(u1);var We=u1;function Qr(){var r=ue();return function(e){var t=r(e),i=e.pipelineContext,a=!!t.large,n=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var HR=ue(),AX=Qr(),f1=(function(){function r(){this.group=new te,this.uid=Mi("viewChart"),this.renderTask=Cs({plan:EX,reset:DX}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.highlight=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&GR(n,a,"emphasis")},r.prototype.downplay=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&GR(n,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateVisual=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.eachRendered=function(e){Jr(this.group,e)},r.markUpdateMethod=function(e,t){HR(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function FR(r,e,t){r&&_s(r)&&(e==="emphasis"?Or:Nr)(r,t)}function GR(r,e,t){var i=fa(r,e),a=e&&e.highlightKey!=null?zL(e.highlightKey):null;i!=null?T(qe(i),function(n){FR(r.getItemGraphicEl(n),t,a)}):r.eachItemGraphicEl(function(n){FR(n,t,a)})}Df(f1,["dispose"]);vs(f1);function EX(r){return AX(r.model)}function DX(r){var e=r.model,t=r.ecModel,i=r.api,a=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=a&&HR(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,a),MX[l]}var MX={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)}}},Ve=f1;var Vg="\0__throttleOriginMethod",WR="\0__throttleRate",YR="\0__throttleType";function Dv(r,e,t){var i,a=0,n=0,o=null,s,l,u,f;e=e||0;function p(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],h=0;h<arguments.length;h++)v[h]=arguments[h];i=new Date().getTime(),l=this,u=v;var d=f||e,m=f||t;f=null,s=i-(m?a:n)-d,clearTimeout(o),m?o=setTimeout(p,d):s>=0?p():o=setTimeout(p,-s),a=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Sa(r,e,t,i){var a=r[e];if(a){var n=a[Vg]||a,o=a[YR],s=a[WR];if(s!==t||o!==i){if(t==null||!i)return r[e]=n;a=r[e]=Dv(n,t,i==="debounce"),a[Vg]=n,a[YR]=i,a[WR]=t}return a}}function Oo(r,e){var t=r[e];t&&t[Vg]&&(t.clear&&t.clear(),r[e]=t[Vg])}var XR=ue(),ZR={itemStyle:bi(_b,!0),lineStyle:bi(xb,!0)},IX={lineStyle:"stroke",itemStyle:"fill"};function KR(r,e){var t=r.visualStyleMapper||ZR[e];return t||(console.warn("Unknown style type '"+e+"'."),ZR.itemStyle)}function qR(r,e){var t=r.visualDrawType||IX[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var jR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=r.getModel(i),n=KR(r,i),o=n(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=qR(r,i),u=o[l],f=ee(u)?u:null,p=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||p){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ee(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||ee(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,h){var d=r.getDataParams(h),m=k({},o);m[l]=f(d),v.setItemVisual(h,"style",m)}}}},Mv=new Re,JR={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=KR(r,i),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Mv.option=l[i];var u=a(Mv),f=o.ensureUniqueItemVisual(s,"style");k(f,u),Mv.option.decal&&(o.setItemVisual(s,"decal",Mv.option.decal),Mv.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},QR={performRawSeries:!0,overallReset:function(r){var e=Z();r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.type+"-"+t.getColorBy();XR(t).scope=e.get(i)||e.set(i,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.getRawData(),a={},n=t.getData(),o=XR(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=qR(t,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],p=n.getItemVisual(f,"colorFromPalette");if(p){var c=n.ensureUniqueItemVisual(f,"style"),v=i.getName(u)||u+"",h=i.count();c[l]=t.getColorFromPalette(v,o,h)}})}})}};var Bg=Math.PI;function p1(r,e){e=e||{},re(e,{text:"loading",textColor:N.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:N.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new te,i=new xe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var a=new Ee({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),n=new xe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(n);var o;return e.showSpinner&&(o=new jl({shape:{startAngle:-Bg/2,endAngle:-Bg/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:Bg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Bg*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.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}),n.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 LX=(function(){function r(e,t,i,a){this._stageTaskMap=Z(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),a=i.context,n=!t&&i.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=n?i.step:null,s=a&&a.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),a=e.__preparePipelineContext?e.__preparePipelineContext(t,i):im(e,t,i);e.pipelineContext=i.context=a},r.prototype.restorePipelines=function(e,t){var i=this,a=i._pipelineMap=Z();t.eachSeries(function(n){var o=e.painter.type==="canvas"&&n.getProgressive(),s=n.uid;a.set(s,{id:s,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:o&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;T(this._allHandlers,function(a){var n=e.get(a.uid)||e.set(a.uid,{}),o="";lt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,t,i),a.overallReset&&this._createOverallStageTask(a,n,t,i)},this)},r.prototype.prepareView=function(e,t,i,a){var n=e.renderTask,o=n.context;o.model=t,o.ecModel=i,o.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},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,a){a=a||{};var n=!1,o=this;T(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),p=f.seriesTaskMap,c=f.overallTask;if(c){var v,h=c.agentStubMap;h.each(function(m){s(a,m)&&(m.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var d=o.getPerformArgs(c,a.block);h.each(function(m){m.perform(d)}),c.perform(d)&&(n=!0)}else p&&p.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||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,a){var n=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(p){var c=p.uid,v=s.set(c,o&&o.get(c)||Cs({plan:kX,reset:zX,count:UX}));v.context={model:p,ecModel:i,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(p,v)}},r.prototype._createOverallStageTask=function(e,t,i,a){var n=this,o=t.overallTask=t.overallTask||Cs({reset:PX});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=e.seriesType,f=e.getTargetSeries,p=e.dirtyOnOverallProgress,c=!1,v="";lt(!e.createOnAllSeries,v),u?i.eachRawSeriesByType(u,h):f?f(i,a).each(h):T(i.getSeries(),h);function h(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(c=!0,Cs({reset:RX,onDirty:NX})));g.context={model:d,dirtyOnOverallProgress:p},g.agent=o,g.__block=p,n._pipe(d,g)}c&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return ee(e)&&(e={overallReset:e,seriesType:BX(e)}),e.uid=Mi("stageHandler"),t&&(e.visualType=t),e},r})();function PX(r){r.overallReset(r.ecModel,r.api,r.payload)}function RX(r){return r.dirtyOnOverallProgress&&OX}function OX(){this.agent.dirty(),this.getDownstream().dirty()}function NX(){this.agent&&this.agent.dirty()}function kX(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function zX(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=qe(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?U(e,function(t,i){return $R(i)}):VX}var VX=$R(0);function $R(r){return function(e,t){var i=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var n=e.start;n<e.end;n++)a.dataEach(i,n);else a&&a.progress&&a.progress(e,i)}}function UX(r){return r.data.count()}function BX(r){Fg=null;try{r(Iv,eO)}catch{}return Fg}var Iv={},eO={},Fg;tO(Iv,_g);tO(eO,vm);Iv.eachSeriesByType=Iv.eachRawSeriesByType=function(r){Fg=r};Iv.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Fg=r.subType)};function tO(r,e){for(var t in e.prototype)r[t]=nt}var c1=LX;var we=N.darkColor,rO=we.background,Lv=function(){return{axisLine:{lineStyle:{color:we.axisLine}},splitLine:{lineStyle:{color:we.axisSplitLine}},splitArea:{areaStyle:{color:[we.backgroundTint,we.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:we.axisMinorSplitLine}},axisLabel:{color:we.axisLabel},axisName:{}}},iO={label:{color:we.secondary},itemStyle:{borderColor:we.borderTint},dividerLineStyle:{color:we.border}},aO={darkMode:!0,color:we.theme,backgroundColor:rO,axisPointer:{lineStyle:{color:we.border},crossStyle:{color:we.borderShade},label:{color:we.tertiary}},legend:{textStyle:{color:we.secondary},pageTextStyle:{color:we.tertiary}},textStyle:{color:we.secondary},title:{textStyle:{color:we.primary},subtextStyle:{color:we.quaternary}},toolbox:{iconStyle:{borderColor:we.accent50},feature:{dataView:{backgroundColor:rO,textColor:we.primary,textareaColor:we.background,textareaBorderColor:we.border,buttonColor:we.accent50,buttonTextColor:we.neutral00}}},tooltip:{backgroundColor:we.neutral20,defaultBorderColor:we.border,textStyle:{color:we.tertiary}},dataZoom:{borderColor:we.accent10,textStyle:{color:we.tertiary},brushStyle:{color:we.backgroundTint},handleStyle:{color:we.neutral00,borderColor:we.accent20},moveHandleStyle:{color:we.accent40},emphasis:{handleStyle:{borderColor:we.accent50}},dataBackground:{lineStyle:{color:we.accent30},areaStyle:{color:we.accent20}},selectedDataBackground:{lineStyle:{color:we.accent50},areaStyle:{color:we.accent30}}},visualMap:{textStyle:{color:we.secondary},handleStyle:{borderColor:we.neutral30}},timeline:{lineStyle:{color:we.accent10},label:{color:we.tertiary},controlStyle:{color:we.accent30,borderColor:we.accent30}},calendar:{itemStyle:{color:we.neutral00,borderColor:we.neutral20},dayLabel:{color:we.tertiary},monthLabel:{color:we.secondary},yearLabel:{color:we.secondary}},matrix:{x:iO,y:iO,backgroundColor:{borderColor:we.axisLine},body:{itemStyle:{borderColor:we.borderTint}}},timeAxis:Lv(),logAxis:Lv(),valueAxis:Lv(),categoryAxis:Lv(),line:{symbol:"circle"},graph:{color:we.theme},gauge:{title:{color:we.secondary},axisLine:{lineStyle:{color:[[1,we.neutral05]]}},axisLabel:{color:we.axisLabel},detail:{color:we.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:we.background}},radar:(function(){var r=Lv();return r.axisName={color:we.axisLabel},r.axisLine.lineStyle.color=we.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:we.neutral20,textStyle:{color:we.secondary}},emphasis:{itemStyle:{color:we.neutral30}}}},sunburst:{itemStyle:{borderColor:we.background}},map:{itemStyle:{borderColor:we.border,areaColor:we.neutral10},label:{color:we.tertiary},emphasis:{label:{color:we.primary},itemStyle:{areaColor:we.highlight}},select:{label:{color:we.primary},itemStyle:{areaColor:we.highlight}}},geo:{itemStyle:{borderColor:we.border,areaColor:we.neutral10},emphasis:{label:{color:we.primary},itemStyle:{areaColor:we.highlight}},select:{label:{color:we.primary},itemStyle:{color:we.highlight}}}};aO.categoryAxis.splitLine.show=!1;var nO=aO;var oO=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},i={},a={};if(W(e)){var n=Si(e);t.mainType=n.main||null,t.subType=n.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,function(l,u){for(var f=!1,p=0;p<o.length;p++){var c=o[p],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var h=u.slice(0,v);h!=="data"&&(t.mainType=h,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:a}},r.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,n=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,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,n));function f(p,c,v,h){return p[v]==null||c[h||v]===p[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})();var v1=["symbol","symbolSize","symbolRotate","symbolOffset"],sO=v1.concat(["symbolKeepAspect"]),lO={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={},a={},n=!1,o=0;o<v1.length;o++){var s=v1[o],l=r.get(s);ee(l)?(n=!0,a[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,t.setVisual(k({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),e.isSeriesFiltered(r))return;var u=Te(a);function f(p,c){for(var v=r.getRawValue(c),h=r.getDataParams(c),d=0;d<u.length;d++){var m=u[d];p.setItemVisual(c,m,a[m](v,h))}}return{dataEach:n?f:null}}},uO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function i(a,n){for(var o=a.getItemModel(n),s=0;s<sO.length;s++){var l=sO[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(n,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function Pv(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 Wn(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 h1(r,e,t,i){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=i,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,i);break;default:}}function Gg(r,e){function t(i,a){var n=[];return i.eachComponent({mainType:"series",subType:r,query:a},function(o){n.push(o.seriesIndex)}),n}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){e(i[0],function(a,n,o){a=k({},a),o.dispatchAction(k(a,{type:i[1],seriesIndex:t(n,a)}))})})}function $f(r,e,t,i,a){var n=r+e;t.isSilent(n)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var p=o.getData(),c=fa(p,a.fromActionPayload);t.trigger(n,{type:n,seriesId:o.id,name:V(c)?p.getName(c[0]):p.getName(c),selected:W(l)?l:k({},l)})}})}function fO(r,e,t){r.on("selectchanged",function(i){var a=t.getModel();i.isFromClick?($f("map","selectchanged",e,a,i),$f("pie","selectchanged",e,a,i)):i.fromAction==="select"?($f("map","selected",e,a,i),$f("pie","selected",e,a,i)):i.fromAction==="unselect"&&($f("map","unselected",e,a,i),$f("pie","unselected",e,a,i))})}function rn(r,e,t){for(var i;r&&!(e(r)&&(i=r,t));)r=r.__hostTarget||r.parent;return i}var FX=new Qt,Xi=FX;var pO={};function cO(r,e){pO[r]=e}function vO(r){return pO[r]}var hO={};function dO(r,e){hO[r]=e}function mO(r){return hO[r]}var Hg=ue();function gO(r){Hg(r).prepare={}}function yO(r){Hg(r).fullUpdate={}}function Wg(r){return Hg(r).prepare}function du(r){return Hg(r).fullUpdate}var GX=Math.round(Math.random()*9),HX=typeof Object.defineProperty=="function",WX=(function(){function r(){this._id="__ec_inner_"+GX++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var i=this._guard(e);return HX?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})(),xO=WX;var YX=ge.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,a=e.width/2,n=e.height/2;r.moveTo(t,i-n),r.lineTo(t+a,i+n),r.lineTo(t-a,i+n),r.closePath()}}),XX=ge.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,a=e.width/2,n=e.height/2;r.moveTo(t,i-n),r.lineTo(t+a,i),r.lineTo(t,i+n),r.lineTo(t-a,i),r.closePath()}}),ZX=ge.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,i=e.y,a=e.width/5*3,n=Math.max(a,e.height),o=a/2,s=o*o/(n-o),l=i-n+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,p=Math.sin(u),c=Math.cos(u),v=o*.6,h=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-p*v,l+s+c*v,t,i-h,t,i),r.bezierCurveTo(t,i-h,t-f+p*v,l+s+c*v,t-f,l+s),r.closePath()}}),KX=ge.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,i=e.width,a=e.x,n=e.y,o=i/3*2;r.moveTo(a,n),r.lineTo(a+o,n+t),r.lineTo(a,n+t/4*3),r.lineTo(a-o,n+t),r.lineTo(a,n),r.closePath()}}),qX={line:ct,rect:xe,roundRect:xe,square:xe,circle:Tr,diamond:XX,pin:ZX,arrow:KX,triangle:YX},jX={line:function(r,e,t,i,a){a.x1=r,a.y1=e+i/2,a.x2=r+t,a.y2=e+i/2},rect:function(r,e,t,i,a){a.x=r,a.y=e,a.width=t,a.height=i},roundRect:function(r,e,t,i,a){a.x=r,a.y=e,a.width=t,a.height=i,a.r=Math.min(t,i)/4},square:function(r,e,t,i,a){var n=Math.min(t,i);a.x=r,a.y=e,a.width=n,a.height=n},circle:function(r,e,t,i,a){a.cx=r+t/2,a.cy=e+i/2,a.r=Math.min(t,i)/2},diamond:function(r,e,t,i,a){a.cx=r+t/2,a.cy=e+i/2,a.width=t,a.height=i},pin:function(r,e,t,i,a){a.x=r+t/2,a.y=e+i/2,a.width=t,a.height=i},arrow:function(r,e,t,i,a){a.x=r+t/2,a.y=e+i/2,a.width=t,a.height=i},triangle:function(r,e,t,i,a){a.cx=r+t/2,a.cy=e+i/2,a.width=t,a.height=i}},Rv={};T(qX,function(r,e){Rv[e]=new r});var JX=ge.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var i=Rl(r,e,t),a=this.shape;return a&&a.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 a=Rv[i];a||(i="rect",a=Rv[i]),jX[i](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function QX(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||N.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function tt(r,e,t,i,a,n,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=fv(r.slice(8),new fe(e,t,i,a),o?"center":"cover"):r.indexOf("path://")===0?l=Eo(r.slice(7),{},new fe(e,t,i,a),o?"center":"cover"):l=new JX({shape:{symbolType:r,x:e,y:t,width:i,height:a}}),l.__isEmptyBrush=s,l.setColor=QX,n&&l.setColor(n),l}function an(r){return V(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Zi(r,e){if(r!=null)return V(r)||(r=[r,r]),[$(r[0],e[0])||0,$(J(r[1],r[0]),e[1])||0]}function mu(r){return isFinite(r)}function $X(r,e,t){var i=e.x==null?0:e.x,a=e.x2==null?1:e.x2,n=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,a=a*t.width+t.x,n=n*t.height+t.y,o=o*t.height+t.y),i=mu(i)?i:0,a=mu(a)?a:1,n=mu(n)?n:0,o=mu(o)?o:0;var s=r.createLinearGradient(i,n,a,o);return s}function eZ(r,e,t){var i=t.width,a=t.height,n=Math.min(i,a),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*a+t.y,l=l*n),o=mu(o)?o:.5,s=mu(s)?s:.5,l=l>=0&&mu(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Ov(r,e,t){for(var i=e.type==="radial"?eZ(r,e,t):$X(r,e,t),a=e.colorStops,n=0;n<a.length;n++)i.addColorStop(a[n].offset,a[n].color);return i}function SO(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 Yg(r){return parseInt(r,10)}function Es(r,e,t){var i=["width","height"][e],a=["clientWidth","clientHeight"][e],n=["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[a]||Yg(s[i])||Yg(r.style[i]))-(Yg(s[n])||0)-(Yg(s[o])||0)||0}function tZ(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Ce(r)?[r]:V(r)?r:null}function Nv(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&tZ(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=U(t,function(n){return n/a}),i/=a)}return[t,i]}var rZ=new pr(!0);function Xg(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function bO(r){return typeof r=="string"&&r!=="none"}function Zg(r){var e=r.fill;return e!=null&&e!=="none"}function wO(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 TO(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 Kg(r,e,t){var i=Jc(e.image,e.__image,t);if(Mf(i)){var a=r.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var n=new DOMMatrix;n.translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*af),n.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(n)}return a}}function iZ(r,e,t,i,a){var n,o=Xg(t),s=Zg(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var p=e.path||rZ,c=e.__dirty;if(!i){var v=t.fill,h=t.stroke,d=s&&!!v.colorStops,m=o&&!!h.colorStops,g=s&&!!v.image,y=o&&!!h.image,x=void 0,_=void 0,S=void 0,b=void 0,w=void 0;(d||m)&&(w=e.getBoundingRect()),d&&(x=c?Ov(r,v,w):e.__canvasFillGradient,e.__canvasFillGradient=x),m&&(_=c?Ov(r,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=c||!e.__canvasFillPattern?Kg(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=c||!e.__canvasStrokePattern?Kg(r,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?r.fillStyle=x:g&&(S?r.fillStyle=S:s=!1),m?r.strokeStyle=_:y&&(b?r.strokeStyle=b:o=!1)}var A=e.getGlobalScale();p.setScale(A[0],A[1],e.segmentIgnoreThreshold);var C,E;r.setLineDash&&t.lineDash&&(n=Nv(e),C=n[0],E=n[1]);var D=!0;(f||c&ts)&&(p.setDPR(r.dpr),u?p.setContext(null):(p.setContext(r),D=!1),p.reset(),e.buildPath(p,e.shape,i),p.toStatic(),e.pathUpdated()),D&&p.rebuildPath(r,u?l:1),C&&(r.setLineDash(C),r.lineDashOffset=E),i?(a.batchFill=s,a.batchStroke=o):t.strokeFirst?(o&&TO(r,t),s&&wO(r,t)):(s&&wO(r,t),o&&TO(r,t)),C&&r.setLineDash([])}function aZ(r,e,t){var i=e.__image=Jc(t.image,e.__image,e,e.onload);if(!(!i||!Mf(i))){var a=t.x||0,n=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,a,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,p=o-u,c=s-f;r.drawImage(i,u,f,p,c,a,n,o,s)}else r.drawImage(i,a,n,o,s)}}function nZ(r,e,t){var i,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||fi,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var n=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=Nv(e),n=i[0],o=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),t.strokeFirst?(Xg(t)&&r.strokeText(a,t.x,t.y),Zg(t)&&r.fillText(a,t.x,t.y)):(Zg(t)&&r.fillText(a,t.x,t.y),Xg(t)&&r.strokeText(a,t.x,t.y)),n&&r.setLineDash([])}}var CO=["shadowBlur","shadowOffsetX","shadowOffsetY"],AO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function PO(r,e,t,i,a){var n=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){$r(r,a),n=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Rn.opacity:o}(i||e.blend!==t.blend)&&(n||($r(r,a),n=!0),r.globalCompositeOperation=e.blend||Rn.blend);for(var s=0;s<CO.length;s++){var l=CO[s];(i||e[l]!==t[l])&&(n||($r(r,a),n=!0),r[l]=r.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(n||($r(r,a),n=!0),r.shadowColor=e.shadowColor||Rn.shadowColor),n}function EO(r,e,t,i,a){var n=e.style,o=i?null:t&&t.style||{};if(n===o)return!1;var s=PO(r,n,o,i,a);if((i||n.fill!==o.fill)&&(s||($r(r,a),s=!0),bO(n.fill)&&(r.fillStyle=n.fill)),(i||n.stroke!==o.stroke)&&(s||($r(r,a),s=!0),bO(n.stroke)&&(r.strokeStyle=n.stroke)),(i||n.opacity!==o.opacity)&&(s||($r(r,a),s=!0),r.globalAlpha=n.opacity==null?1:n.opacity),e.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||($r(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<AO.length;f++){var p=AO[f],c=p[0];(i||n[c]!==o[c])&&(s||($r(r,a),s=!0),r[c]=n[c]||p[1])}return s}function oZ(r,e,t,i,a){return PO(r,e.style,t&&t.style,i,a)}function RO(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 sZ(r,e,t){for(var i=!1,a=0;a<r.length;a++){var n=r[a];i=i||n.isZeroArea(),RO(e,n),e.beginPath(),n.buildPath(e,n.shape),e.clip()}t.allClipped=i}function lZ(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 DO=1,MO=2,IO=3,LO=4;function uZ(r){var e=Zg(r),t=Xg(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 $r(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function qg(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Ds(r,e,t),gu(r,t)}function Ds(r,e,t){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~$t,e.__isRendered=!1;return}var a=e.__clipPaths,n=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!n||SO(a,n))&&(n&&($r(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&($r(r,t),r.save(),sZ(a,r,t),s=!0,t.prevElClipPaths=a)),t.allClipped){e.__dirty&=~$t,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof ge&&e.autoBatch&&uZ(o);s||lZ(i,u.transform)?($r(r,t),RO(r,e)):f||$r(r,t),e instanceof ge?(t.lastDrawType!==DO&&(l=!0,t.lastDrawType=DO),EO(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),iZ(r,e,o,f,t)):e instanceof _o?(t.lastDrawType!==IO&&(l=!0,t.lastDrawType=IO),EO(r,e,u,l,t),nZ(r,e,o)):e instanceof pt?(t.lastDrawType!==MO&&(l=!0,t.lastDrawType=MO),oZ(r,e,u,l,t),aZ(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==LO&&(l=!0,t.lastDrawType=LO),fZ(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&$r(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function gu(r,e){$r(r,e),e.prevElClipPaths&&r.restore()}function fZ(r,e,t){var i=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var n={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(),Ds(r,l,n),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}gu(r,n);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Ds(r,l,n),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}gu(r,n),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var d1=new xO,OO=new An(100),NO=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function nn(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),a=i.painter.type==="svg";r.dirty&&d1.delete(r);var n=d1.get(r);if(n)return n;var o=re(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=a?1:1/t,d1.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],p=!0,c=0;c<NO.length;++c){var v=o[NO[c]];if(v!=null&&!V(v)&&!W(v)&&!Ce(v)&&typeof v!="boolean"){p=!1;break}f.push(v)}var h;if(p){h=f.join(",")+(a?"-svg":"");var d=OO.get(h);d&&(a?u.svgElement=d:u.image=d)}var m=zO(o.dashArrayX),g=pZ(o.dashArrayY),y=kO(o.symbol),x=cZ(m),_=VO(g),S=!a&&Nt.createCanvas(),b=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),A;S&&(S.width=w.width*t,S.height=w.height*t,A=S.getContext("2d")),E(),p&&OO.put(h,S||b),u.image=S,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var D=1,L=0,M=x.length;L<M;++L)D=vS(D,x[L]);for(var P=1,L=0,M=y.length;L<M;++L)P=vS(P,y[L].length);D*=P;var O=_*x.length*y.length;if(0)var R;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function E(){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 D=0,L=0;L<g.length;++L)D+=g[L];if(D<=0)return;for(var M=-_,P=0,O=0,R=0;M<w.height;){if(P%2===0){for(var z=O/2%y.length,B=0,F=0,H=0;B<w.width*2;){for(var Y=0,L=0;L<m[R].length;++L)Y+=m[R][L];if(Y<=0)break;if(F%2===0){var q=(1-o.symbolSize)*.5,oe=B+m[R][F]*q,X=M+g[P]*q,G=m[R][F]*o.symbolSize,ne=g[P]*o.symbolSize,ve=H/2%y[z].length;pe(oe,X,G,ne,y[z][ve])}B+=m[R][F],++H,++F,F===m[R].length&&(F=0)}++R,R===m.length&&(R=0)}M+=g[P],++O,++P,P===g.length&&(P=0)}function pe(j,me,ie,he,ze){var Se=a?1:t,Oe=tt(ze,j*Se,me*Se,ie*Se,he*Se,o.color,o.symbolKeepAspect);if(a){var ke=i.painter.renderOneToVNode(Oe);ke&&b.children.push(ke)}else qg(A,Oe)}}}}function kO(r){if(!r||r.length===0)return[["rect"]];if(W(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!W(r[t])){e=!1;break}if(e)return kO([r]);for(var i=[],t=0;t<r.length;++t)W(r[t])?i.push([r[t]]):i.push(r[t]);return i}function zO(r){if(!r||r.length===0)return[[0,0]];if(Ce(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,i=0;i<r.length;++i)if(!Ce(r[i])){t=!1;break}if(t)return zO([r]);for(var a=[],i=0;i<r.length;++i)if(Ce(r[i])){var e=Math.ceil(r[i]);a.push([e,e])}else{var e=U(r[i],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function pZ(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Ce(r)){var e=Math.ceil(r);return[e,e]}var t=U(r,function(i){return Math.ceil(i)});return r.length%2?t.concat(t):t}function cZ(r){return U(r,function(e){return VO(e)})}function VO(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var UO=Pn(vZ);function vZ(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=nn(s,e)}});var a=i.getVisual("decal");if(a){var n=i.getVisual("style");n.decal=nn(a,e)}}})}var hZ=1,dZ=800,mZ=900,gZ=920,yZ=1e3,xZ=2e3,BO=5e3,jO=1e3,_Z=1100,E1=2e3,JO=3e3,SZ=4e3,ry=4500,bZ=4600,wZ=5e3,TZ=6e3,QO=7e3,$O={PROCESSOR:{SERIES_FILTER:dZ,AXIS_STATISTICS:gZ,FILTER:yZ,STATISTIC:BO,STATISTICS:BO},VISUAL:{LAYOUT:jO,PROGRESSIVE_LAYOUT:_Z,GLOBAL:E1,CHART:JO,POST_CHART_LAYOUT:bZ,COMPONENT:SZ,BRUSH:wZ,CHART_ITEM:ry,ARIA:TZ,DECAL:QO}},lr="__flagInMainProcess",jg="__mainProcessVersion",gr="__pendingUpdate",m1="__needsUpdateStatus",FO=/^[a-zA-Z0-9_]+$/,g1="__connectUpdateStatus",GO=0,CZ=1,AZ=2;function eN(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return rN(this,r,e)}}function tN(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rN(this,r,e)}}function rN(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Qt.prototype[e].apply(r,t)}var iN=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Qt),aN=iN.prototype;aN.on=tN("on");aN.off=tN("off");var yu,y1,Jg,No,Qg,x1,_1,ep,tp,HO,WO,S1,YO,$g,XO,nN,ba,ZO,rp,oN=(function(r){I(e,r);function e(t,i,a){var n=r.call(this,new oO)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],a=a||{},n.__v_skip=!0,n._dom=t;var o="canvas",s="auto",l=!1;if(n[jg]=1,0)var u;a.ssr&&rI(function(v){var h=ce(v),d=h.dataIndex;if(d!=null){var m=Z();return m.set("series_index",h.seriesIndex),m.set("data_index",d),h.ssrType&&m.set("ssr_type",h.ssrType),m}});var f=n._zr=uS(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:J(a.useDirtyRect,l),useCoarsePointer:J(a.useCoarsePointer,s),pointerSize:a.pointerSize});n._ssr=a.ssr,n._throttledZrFlush=Dv(K(f.flush,f),17),n._updateTheme(i),n._locale=PP(a.locale||Wm),n._coordSysMgr=new Lo;var p=n._api=XO(n);function c(v,h){return v.__prio-h.__prio}return bl(ty,c),bl(T1,c),n._scheduler=new c1(n,p,T1,ty),n._messageCenter=new iN,n._initEvents(),n.resize=K(n.resize,n),f.animation.on("frame",n._onframe,n),HO(f,n),WO(f,n),dl(n),n}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,i=this._model,a=this._api;if(ZO(this),this[gr]){var n=this[gr].silent;this[lr]=!0,rp(this);try{yu(this),No.update.call(this,null,this[gr].updateParams)}catch(l){throw this[lr]=!1,this[gr]=null,l}this._zr.flush(),this[lr]=!1,this[gr]=null,ep.call(this,n),tp.call(this,n)}else if(t.unfinished){var o=hZ;do{t.unfinished=!1;var s=Nt.getTime();t.performSeriesTasks(i),t.performDataProcessorTasks(i),x1(this,i),t.performVisualTasks(i),$g(this,this._model,a,"remain",{}),o-=Nt.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,a){if(!this[lr]){if(this._disposed){this.id;return}var n,o,s;if(se(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[lr]=!0,rp(this),!this._model||i){var l=new uR(this._api),u=this._theme,f=this._model=new _g;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},C1);var p={seriesTransition:s,optionChanged:!0};if(a)this[gr]={silent:n,updateParams:p},this[lr]=!1,this.getZr().wakeUp();else{try{yu(this),No.update.call(this,null,p)}catch(c){throw this[gr]=null,this[lr]=!1,c}this._ssr||this._zr.flush(),this[gr]=null,this[lr]=!1,ep.call(this,n),tp.call(this,n)}}},e.prototype.setTheme=function(t,i){if(!this[lr]){if(this._disposed){this.id;return}var a=this._model;if(a){var n=i&&i.silent,o=null;this[gr]&&(n==null&&(n=this[gr].silent),o=this[gr].updateParams,this[gr]=null),this[lr]=!0,rp(this);try{this._updateTheme(t),a.setTheme(this._theme),yu(this),No.update.call(this,{type:"setTheme"},o)}catch(s){throw this[lr]=!1,s}this[lr]=!1,ep.call(this,n),tp.call(this,n)}}},e.prototype._updateTheme=function(t){W(t)&&(t=sN[t]),t&&(t=ae(t),t&&Sg(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||Ue.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 T(i,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,a=this._model,n=[],o=this;T(i,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.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 T(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if(KO[a]){var l=s,u=s,f=-s,p=-s,c=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();T(kv,function(x,_){if(x.group===a){var S=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(ae(t)),b=x.getDom().getBoundingClientRect();l=n(b.left,l),u=n(b.top,u),f=o(b.right,f),p=o(b.bottom,p),c.push({dom:S,left:b.left,top:b.top})}}),l*=v,u*=v,f*=v,p*=v;var h=f-l,d=p-u,m=Nt.createCanvas(),g=uS(m,{renderer:i?"svg":"canvas"});if(g.resize({width:h,height:d}),i){var y="";return T(c,function(x){var _=x.left-l,S=x.top-u;y+='<g transform="translate('+_+","+S+')">'+x.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:h,height:d},style:{fill:t.connectedBackgroundColor}})),T(c,function(x){var _=new pt({style:{x:x.left*v-l,y:x.top*v-u,image:x.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i,a){return Qg(this,"convertToPixel",t,i,a)},e.prototype.convertToLayout=function(t,i,a){return Qg(this,"convertToLayout",t,i,a)},e.prototype.convertFromPixel=function(t,i,a){return Qg(this,"convertFromPixel",t,i,a)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var a=this._model,n,o=In(a,t);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var p=this._chartsMap[u.__viewId];p&&p.containPoint&&(n=n||p.containPoint(i,u))}},this)},this),!!n},e.prototype.getVisual=function(t,i){var a=this._model,n=In(a,t,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?Pv(s,l,i):Wn(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;T(EZ,function(a){var n=function(o){var s=t.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&rn(l,function(d){var m=ce(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=k({},m.eventData),!0},!0),u){var p=u.componentType,c=u.componentIndex;(p==="markLine"||p==="markPoint"||p==="markArea")&&(p="series",c=u.seriesIndex);var v=p&&c!=null&&s.getComponent(p,c),h=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:h},t.trigger(a,u)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)});var i=this._messageCenter;T(w1,function(a,n){i.on(n,function(o){t.trigger(n,o)})}),fO(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&&mS(this.getDom(),M1,"");var i=this,a=i._api,n=i._model;T(i._componentsViews,function(o){o.dispose(n,a)}),T(i._chartsViews,function(o){o.dispose(n,a)}),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 kv[i.id]},e.prototype.resize=function(t){if(!this[lr]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=t&&t.silent;this[gr]&&(n==null&&(n=this[gr].silent),a=!0,this[gr]=null),this[lr]=!0,rp(this);try{a&&yu(this),No.update.call(this,{type:"resize",animation:k({duration:0},t&&t.animation)})}catch(o){throw this[lr]=!1,o}this[lr]=!1,ep.call(this,n),tp.call(this,n)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(se(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!A1[t]){var a=A1[t](this._api,i),n=this._zr;this._loadingFX=a,n.add(a)}},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=k({},t);return i.type=b1[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(se(i)||(i={silent:!!i}),!!ey[t.type]&&this._model){if(this[lr]){this._pendingActions.push(t);return}var a=i.silent;_1.call(this,t,a);var n=i.flush;n?this._zr.flush():n!==!1&&Ue.browser.weChat&&this._throttledZrFlush(),ep.call(this,a),tp.call(this,a)}},e.prototype.updateLabelLayout=function(){Xi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){yu=function(p){gO(p._model);var c=p._scheduler;c.restorePipelines(p._zr,p._model),c.prepareStageTasks(),y1(p,!0),y1(p,!1),c.plan()},y1=function(p,c){for(var v=p._model,h=p._scheduler,d=c?p._componentsViews:p._chartsViews,m=c?p._componentsMap:p._chartsMap,g=p._zr,y=p._api,x=0;x<d.length;x++)d[x].__alive=!1;c?v.eachComponent(function(b,w){b!=="series"&&_(w)}):v.eachSeries(_);function _(b){var w=b.__requireNewView;b.__requireNewView=!1;var A="_ec_"+b.id+"_"+b.type,C=!w&&m[A];if(!C){var E=Si(b.type),D=c?We.getClass(E.main,E.sub):Ve.getClass(E.sub);C=new D,C.init(v,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},!c&&h.prepareView(C,b,v,y)}for(var x=0;x<d.length;){var S=d[x];S.__alive?x++:(!c&&S.renderTask.dispose(),g.remove(S.group),S.dispose(v,y),d.splice(x,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Jg=function(p,c,v,h,d){var m=p._model;if(m.setUpdatePayload(v),!h){T([].concat(p._componentsViews).concat(p._chartsViews),_);return}var g=Af(v,h,d),y=v.excludeSeriesId,x;y!=null&&(x=Z(),T(qe(y),function(S){var b=wt(S,null);b!=null&&x.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=x&&x.get(S.id)!=null;if(!b)if($S(v))if(S instanceof Fe)v.type===xs&&!v.notBlur&&!S.get(["emphasis","disabled"])&&LL(S,v,p._api);else{var w=xm(S.mainType,S.componentIndex,v.name,p._api),A=w.focusSelf,C=w.dispatchers;v.type===xs&&A&&!v.notBlur&&hm(S.mainType,S.componentIndex,p._api),C&&T(C,function(E){v.type===xs?Or(E):Nr(E)})}else Sm(v)&&S instanceof Fe&&(OL(S,v,p._api),QS(S),ba(p))},p),m&&m.eachComponent(g,function(S){var b=x&&x.get(S.id)!=null;b||_(p[h==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},p);function _(S){S&&S.__alive&&S[c]&&S[c](S.__model,m,p._api,v)}},No={prepareAndUpdate:function(p){yu(this),No.update.call(this,p,p&&{optionChanged:p.newOption!=null})},update:function(p,c){var v=this._model,h=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(v){yO(v),v.setUpdatePayload(p),g.restoreData(v,p),g.performSeriesTasks(v),m.create(v,h),Xi.trigger("coordsys:aftercreate",v,h),g.performDataProcessorTasks(v,p),x1(this,v),m.update(v,h),i(v),g.performVisualTasks(v,p);var y=v.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var x=v.get("darkMode");x!=null&&x!=="auto"&&d.setDarkMode(x),S1(this,v,h,p,c),Xi.trigger("afterupdate",v,h)}},updateTransform:function(p){var c=this,v=c._model,h=c._api;if(v){v.setUpdatePayload(p);var d=[];v.eachComponent(function(g,y){if(g!==wr){var x=c.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(y,v,h,p);_&&_.update&&d.push(x)}else d.push(x)}});var m=Z();v.eachSeries(function(g){var y=c._chartsMap[g.__viewId],x=g.pipelineContext;if(y.updateTransform&&!x.progressiveRender){var _=y.updateTransform(g,v,h,p);_&&_.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),c._scheduler.performVisualTasks(v,p,{setDirty:!0,dirtyMap:m}),$g(c,v,h,p,{},m),Xi.trigger("afterupdate",v,h)}},updateView:function(p){var c=this._model;c&&(c.setUpdatePayload(p),Ve.markUpdateMethod(p,"updateView"),i(c),this._scheduler.performVisualTasks(c,p,{setDirty:!0}),S1(this,c,this._api,p,{}),Xi.trigger("afterupdate",c,this._api))},updateVisual:function(p){var c=this,v=this._model;v&&(v.setUpdatePayload(p),v.eachSeries(function(h){h.getData().clearAllVisual()}),Ve.markUpdateMethod(p,"updateVisual"),i(v),this._scheduler.performVisualTasks(v,p,{visualType:"visual",setDirty:!0}),v.eachComponent(function(h,d){if(h!=="series"){var m=c.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,v,c._api,p)}}),v.eachSeries(function(h){var d=c._chartsMap[h.__viewId];d.updateVisual(h,v,c._api,p)}),Xi.trigger("afterupdate",v,this._api))},updateLayout:function(p){No.update.call(this,p)}};function t(p,c,v,h,d){if(p._disposed){p.id;return}for(var m=p._model,g=p._coordSysMgr.getCoordinateSystems(),y,x=In(m,v),_=0;_<g.length;_++){var S=g[_];if(S[c]&&(y=S[c](m,x,h,d))!=null)return y}}Qg=t,x1=function(p,c){var v=p._chartsMap,h=p._scheduler;c.eachSeries(function(d){h.updateStreamModes(d,v[d.__viewId])})},_1=function(p,c){var v=this,h=this.getModel(),d=p.type,m=p.escapeConnect,g=ey[d],y=(g.update||"update").split(":"),x=y.pop(),_=y[0]!=null&&Si(y[0]);this[lr]=!0,rp(this);var S=[p],b=!1;p.batch&&(b=!0,S=U(p.batch,function(R){return R=re(k({},R),p),R.batch=null,R}));var w=[],A,C=[],E=g.nonRefinedEventType,D=Sm(p),L=$S(p);if(L&&JS(this._api),T(S,function(R){var z=g.action(R,h,v._api);if(g.refineEvent?C.push(z):A=z,A=A||k({},R),A.type=E,w.push(A),L){var B=Kc(p),F=B.queryOptionMap,H=B.mainTypeSpecified,Y=H?F.keys()[0]:"series";Jg(v,x,R,Y),ba(v)}else D?(Jg(v,x,R,"series"),ba(v)):_&&Jg(v,x,R,_.main,_.sub)}),x!=="none"&&!L&&!D&&!_)try{this[gr]?(yu(this),No.update.call(this,p),this[gr]=null):No[x].call(this,p)}catch(R){throw this[lr]=!1,R}if(b?A={type:E,escapeConnect:m,batch:w}:A=w[0],this[lr]=!1,!c){var M=void 0;if(g.refineEvent){var P=g.refineEvent(C,p,h,this._api).eventContent;lt(se(P)),M=re({type:g.refinedEventType},P),M.fromAction=p.type,M.fromActionPayload=p,M.escapeConnect=!0}var O=this._messageCenter;O.trigger(A.type,A),M&&O.trigger(M.type,M)}},ep=function(p){for(var c=this._pendingActions;c.length;){var v=c.shift();_1.call(this,v,p)}},tp=function(p){!p&&this.trigger("updated")},HO=function(p,c){p.on("rendered",function(v){c.trigger("rendered",v),p.animation.isFinished()&&!c[gr]&&!c._scheduler.unfinished&&!c._pendingActions.length?c.trigger("finished"):p.refresh()})},WO=function(p,c){p.on("mouseover",function(v){var h=v.target,d=rn(h,_s);d&&(PL(d,v,c._api),ba(c))}).on("mouseout",function(v){var h=v.target,d=rn(h,_s);d&&(RL(d,v,c._api),ba(c))}).on("click",function(v){var h=v.target,d=rn(h,function(y){return ce(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=ce(d);c._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(p){p.clearColorPalette(),p.eachSeries(function(c){c.clearColorPalette()})}function a(p){var c=[],v=[],h=!1;if(p.eachComponent(function(y,x){var _=x.get("zlevel")||0,S=x.get("z")||0,b=x.getZLevelKey();h=h||!!b,(y==="series"?v:c).push({zlevel:_,z:S,idx:x.componentIndex,type:y,key:b})}),h){var d=c.concat(v),m,g;bl(d,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),T(d,function(y){var x=p.getComponent(y.type,y.idx),_=y.zlevel,S=y.key;m!=null&&(_=Math.max(m,_)),S?(_===m&&S!==g&&_++,g=S):g&&(_===m&&_++,g=""),m=_,x.setZLevel(_)})}}S1=function(p,c,v,h,d){a(c),YO(p,c,v,h,d),T(p._chartsViews,function(m){m.__alive=!1}),$g(p,c,v,h,d),T(p._chartsViews,function(m){m.__alive||m.remove(c,v)})},YO=function(p,c,v,h,d,m){T(m||p._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,c,v,h),l(y,g),f(y,g)})},$g=function(p,c,v,h,d,m){var g=p._scheduler;d=k(d||{},{updatedSeries:c.getSeries()}),Xi.trigger("series:beforeupdate",c,v,d);var y=!1;c.eachSeries(function(x){var _=p._chartsMap[x.__viewId];_.__alive=!0;var S=_.renderTask;g.updatePayload(S,h),u(x,_),m&&m.get(x.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),_.group.silent=!!x.get("silent"),s(x,_),QS(x)}),g.unfinished=y||g.unfinished,Xi.trigger("series:layoutlabels",c,v,d),Xi.trigger("series:transition",c,v,d),c.eachSeries(function(x){var _=p._chartsMap[x.__viewId];l(x,_),f(x,_)}),o(p,c),Xi.trigger("series:afterupdate",c,v,d)},ba=function(p){p[m1]=!0,p.getZr().wakeUp()},rp=function(p){p[jg]=(p[jg]+1)%1e6},ZO=function(p){p[m1]&&(p.getZr().storage.traverse(function(c){Ao(c)||n(c)}),p[m1]=!1)};function n(p){for(var c=[],v=p.currentStates,h=0;h<v.length;h++){var d=v[h];d==="emphasis"||d==="blur"||d==="select"||c.push(d)}p.selected&&p.states.select&&c.push("select"),p.hoverState===tv&&p.states.emphasis?c.push("emphasis"):p.hoverState===Xl&&p.states.blur&&c.push("blur"),p.useStates(c)}function o(p,c){var v=p._zr;if(v.painter.type==="canvas"){var h=v.storage,d=0;h.traverse(function(g){g.isGroup||d++});var m=d>J(c.get("hoverLayerThreshold"),dg.hoverLayerThreshold)&&!Ue.node&&!Ue.worker;(p._usingTHL||m)&&(c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=p._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(x){var _=x.states.emphasis;_&&_.hoverLayer!==ja&&(_.hoverLayer=m?pb:fb)})}}),p._usingTHL=m)}}function s(p,c){var v=p.get("blendMode")||null;c.eachRendered(function(h){h.isGroup||(h.style.blend=v)})}function l(p,c){if(!p.preventAutoZ){var v=ga(p);c.eachRendered(function(h){return eu(h,v.z,v.zlevel),!0})}}function u(p,c){c.eachRendered(function(v){if(!Ao(v)){var h=v.getTextContent(),d=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(p,c){var v=p.getModel("stateAnimation"),h=p.isAnimationEnabled(),d=v.get("duration"),m=d>0?{duration:d,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Ao(g))return;if(g instanceof ge&&VL(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(h){g.stateTransition=m;var x=g.getTextContent(),_=g.getTextGuideLine();x&&(x.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&n(g)}})}XO=function(p){return new((function(c){I(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(h){for(;h;){var d=h.__ecComponentInfo;if(d!=null)return p._model.getComponent(d.mainType,d.index);h=h.parent}},v.prototype.enterEmphasis=function(h,d){Or(h,d),ba(p)},v.prototype.leaveEmphasis=function(h,d){Nr(h,d),ba(p)},v.prototype.enterBlur=function(h){ym(h),ba(p)},v.prototype.leaveBlur=function(h){nv(h),ba(p)},v.prototype.enterSelect=function(h){qS(h),ba(p)},v.prototype.leaveSelect=function(h){jS(h),ba(p)},v.prototype.getModel=function(){return p.getModel()},v.prototype.getViewOfComponentModel=function(h){return p.getViewOfComponentModel(h)},v.prototype.getViewOfSeriesModel=function(h){return p.getViewOfSeriesModel(h)},v.prototype.getECUpdateCycleVersion=function(){return p[jg]},v.prototype.usingTHL=function(){return p._usingTHL},v})(vm))(p)},nN=function(p){function c(v,h){for(var d=0;d<v.length;d++){var m=v[d];m[g1]=h}}T(b1,function(v,h){p._messageCenter.on(h,function(d){if(KO[p.group]&&p[g1]!==GO){if(d&&d.escapeConnect)return;var m=p.makeActionFromEvent(d),g=[];T(kv,function(y){y!==p&&y.group===p.group&&g.push(y)}),c(g,GO),T(g,function(y){y[g1]!==CZ&&y.dispatchAction(m)}),c(g,AZ)}})})}})(),e})(Qt),D1=oN.prototype;D1.on=eN("on");D1.off=eN("off");D1.one=function(r,e,t){var i=this;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(r,a)}this.on.call(this,r,a,t)};var EZ=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ey={},b1={},w1={},T1=[],C1=[],ty=[],sN={},A1={},kv={},KO={},DZ=+new Date-0,Tme=+new Date-0,M1="_echarts_instance_";function lN(r,e,t){var i=!(t&&t.ssr);if(i){var a=MZ(r);if(a)return a}var n=new oN(r,e,t);return n.id="ec_"+DZ++,kv[n.id]=n,i&&mS(r,M1,n.id),nN(n),Xi.trigger("afterinit",n),n}function MZ(r){return kv[wI(r,M1)]}function uN(r,e){sN[r]=e}function zv(r){de(C1,r)<0&&C1.push(r)}function I1(r,e){L1(T1,r,e,xZ)}function fN(r){iy("afterinit",r)}function pN(r){iy("afterupdate",r)}function iy(r,e){Xi.on(r,e)}function ei(r,e,t){var i,a,n,o,s;ee(e)&&(t=e,e=""),se(r)?(i=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),n=r.refineEvent):(i=r,a=e);function l(f){return f.toLowerCase()}a=l(a||i);var u=n?l(i):a;ey[i]||(lt(FO.test(i)&&FO.test(a)),n&&lt(a!==i),ey[i]={actionType:i,refinedEventType:a,nonRefinedEventType:u,update:o,action:t,refineEvent:n},w1[a]=1,n&&s&&(w1[u]=1),b1[u]=i)}function cN(r,e){Lo.register(r,e)}function ay(r,e){L1(ty,r,e,jO,"layout",!0)}function Ms(r,e){L1(ty,r,e,JO,"visual",!0)}var qO=[];function L1(r,e,t,i,a,n){if((ee(e)||se(e))&&(t=e,e=i),!(de(qO,t)>=0)){qO.push(t);var o=c1.wrapStageHandler(t,a);o.__prio=e,o.__raw=t,r.push(o)}}function P1(r,e){A1[r]=e}function vN(r,e,t){var i=vO("registerMap");i&&i(r,e,t)}var hN=DR;Ms(E1,jR);Ms(ry,JR);Ms(ry,QR);Ms(E1,lO);Ms(ry,uO);Ms(QO,UO);zv(Sg);I1(mZ,mR);P1("default",p1);ei({type:xs,event:xs,update:xs},nt);ei({type:rv,event:rv,update:rv},nt);ei({type:iv,event:mm,update:iv,action:nt,refineEvent:R1,publishNonRefinedEvent:!0});ei({type:dm,event:mm,update:dm,action:nt,refineEvent:R1,publishNonRefinedEvent:!0});ei({type:av,event:mm,update:av,action:nt,refineEvent:R1,publishNonRefinedEvent:!0});function R1(r,e,t,i){return{eventContent:{selected:NL(t),isFromClick:e.isFromClick||!1}}}uN("default",{});uN("dark",nO);var dN=[],IZ={registerPreprocessor:zv,registerProcessor:I1,registerPostInit:fN,registerPostUpdate:pN,registerUpdateLifecycle:iy,registerAction:ei,registerCoordinateSystem:cN,registerLayout:ay,registerVisual:Ms,registerTransform:hN,registerLoading:P1,registerMap:vN,registerImpl:cO,PRIORITY:$O,ComponentModel:Le,ComponentView:We,SeriesModel:Fe,ChartView:Ve,registerComponentModel:function(r){Le.registerClass(r)},registerComponentView:function(r){We.registerClass(r)},registerSeriesModel:function(r){Fe.registerClass(r)},registerChartView:function(r){Ve.registerClass(r)},registerCustomSeries:function(r,e){dO(r,e)},registerSubTypeDefaulter:function(r,e){Le.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){eI(r,e)}};function Me(r){if(V(r)){T(r,function(e){Me(e)});return}de(dN,r)>=0||(dN.push(r),ee(r)&&(r={install:r}),r.install(IZ))}function Vv(r){return r==null?0:r.length||1}function mN(r){return r}var LZ=(function(){function r(e,t,i,a,n,o){this._old=e,this._new=t,this._oldKeyGetter=i||mN,this._newKeyGetter=a||mN,this.context=n,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={},a=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,i,n,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=i[s],u=Vv(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(n,i)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},a={},n=[],o=[];this._initIndexMap(e,i,n,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=i[l],f=a[l],p=Vv(u),c=Vv(f);if(p>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(p===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(p===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(p>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(p>1)for(var v=0;v<p;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var a=e[i],n=t[a],o=Vv(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);t[a]=null}},r.prototype._initIndexMap=function(e,t,i,a){for(var n=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(n||(i[o]=s),!!t){var l=t[s],u=Vv(l);u===0?(t[s]=o,n&&i.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),Er=LZ;var PZ=(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 gN(r,e){var t={},i=t.encode={},a=Z(),n=[],o=[],s={};T(r.dimensions,function(c){var v=r.getDimensionInfo(c),h=v.coordDim;if(h){var d=v.coordDimIndex;O1(i,h)[d]=c,v.isExtraCoord||(a.set(h,1),RZ(v.type)&&(n[0]=c),O1(s,h)[d]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}pm.each(function(m,g){var y=O1(i,g),x=v.otherDims[g];x!=null&&x!==!1&&(y[x]=v.name)})});var l=[],u={};a.each(function(c,v){var h=i[v];u[v]=h[0],l=l.concat(h)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=U(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(n=f.slice());var p=i.tooltip;return p&&p.length?o=p.slice():o.length||(o=n.slice()),i.defaultedLabel=n,i.defaultedTooltip=o,t.userOutput=new PZ(s,e),t}function O1(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function xu(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function RZ(r){return!(r==="ordinal"||r==="time")}var OZ=(function(){function r(e){this.otherDims={},e!=null&&k(this,e)}return r})(),ip=OZ;var NZ=ue(),kZ={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},N1=(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=k1(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return J(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=wg(this.source),i=!z1(e),a="",n=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,p=this.dimensions[s];if(p&&p.storeDimIndex===o)l=t?p.name:null,u=p.type,f=p.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}n.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!p||!p.isCalculationCoord)&&(a+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=kZ[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,h=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:n,hash:h}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var a=void 0,n=this.dimensions[i];if(n&&n.storeDimIndex===t)n.isCalculationCoord||(a=n.name),i++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function oy(r){return r instanceof N1}function Uv(r){for(var e=Z(),t=0;t<(r||[]).length;t++){var i=r[t],a=se(i)?i.name:i;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function k1(r){var e=NZ(r);return e.dimNameMap||(e.dimNameMap=Uv(r.dimensionsDefine))}function z1(r){return r>30}var Bv=se,Is=U,zZ=typeof Int32Array>"u"?Array:Int32Array,VZ="e\0\0",yN=-1,UZ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],BZ=["_approximateExtent"],xN,sy,Fv,Gv,V1,Hv,U1,FZ=(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,a=!1;oy(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,i=e),i=i||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var p=i[f],c=W(p)?new ip({name:p}):p instanceof ip?p:new ip(p),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var h=c.otherDims=c.otherDims||{};o.push(v),n[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),a&&(c.storeDimIndex=f),h.itemName===0&&(this._nameDimIdx=c.storeDimIndex),h.itemId===0&&(this._idDimIdx=c.storeDimIndex)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=Z();T(o,function(m){d.set(n[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 a=this._schema.getSourceDimension(t);if(a)return a.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(Ce(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 a=i.encode[e];return a?a[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 a=this,n;if(e instanceof Av&&(n=e),!n){var o=this.dimensions,s=jf(e)||kt(e)?new Cg(e,o.length):e;n=new Av;var l=Is(o,function(u){return{type:a._dimInfos[u].type,property:u}});n.initData(s,l,i)}this._store=n,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=gN(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),a=i.start,n=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<n;s++){var l=s-a;this._nameList[s]=t[l],o&&U1(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var a=this._dimInfos[t[i]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Hi&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===cr;if(l&&!a.pure)for(var u=[],f=e;f<t;f++){var p=a.getItem(f,u);if(!this.hasItemOption&&gI(p)&&(this.hasItemOption=!0),p){var c=p.name;n[f]==null&&c!=null&&(n[f]=wt(c,null));var v=p.id;o[f]==null&&v!=null&&(o[f]=wt(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)U1(this,f);xN(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){Bv(e)?k(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=Fv(this,this._nameDimIdx,t)),i==null&&(i=""),i},r.prototype._getCategory=function(e,t){var i=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[i]:i},r.prototype.getId=function(e){return sy(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var i=this._store,a=this._dimInfos[e];if(a)return i.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var i=this._store,a=this._dimInfos[e];if(a)return i.getByRawIndex(a.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,a=this._store;return V(e)?a.getValues(Is(e,function(n){return i._getStoreDimIndex(n)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,a=t.length;i<a;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],a=i&&i[t];return a==null||isNaN(a)?yN:a},r.prototype.each=function(e,t,i){"use strict";ee(e)&&(i=t,t=e,e=[]);var a=i||this,n=Is(Gv(e),this._getStoreDimIndex,this);this._store.each(n,a?K(t,a):t)},r.prototype.filterSelf=function(e,t,i){"use strict";ee(e)&&(i=t,t=e,e=[]);var a=i||this,n=Is(Gv(e),this._getStoreDimIndex,this);return this._store=this._store.filter(n,a?K(t,a):t),this},r.prototype.selectRange=function(e){"use strict";var t=this,i={},a=Te(e),n=[];return T(a,function(o){var s=t._getStoreDimIndex(o);i[s]=e[o],n.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(e,t,i){"use strict";ee(e)&&(i=t,t=e,e=[]),i=i||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},i),a},r.prototype.map=function(e,t,i,a){"use strict";var n=i||a||this,o=Is(Gv(e),this._getStoreDimIndex,this),s=Hv(this);return s._store=this._store.map(o,n?K(t,n):t),s},r.prototype.modify=function(e,t,i,a){var n=this,o=i||a||this,s=Is(Gv(e),this._getStoreDimIndex,this);this._store.modify(s,o?K(t,o):t)},r.prototype.downSample=function(e,t,i,a){var n=Hv(this);return n._store=this._store.downSample(this._getStoreDimIndex(e),t,i,a),n},r.prototype.minmaxDownSample=function(e,t){var i=Hv(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),i},r.prototype.lttbDownSample=function(e,t){var i=Hv(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 Re(i,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Er(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return sy(e,i)},function(i){return sy(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||{},Bv(e)?k(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],a=i&&i[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,a=i[e];a||(a=i[e]={});var n=a[t];return n==null&&(n=this.getVisual(t),V(n)?n=n.slice():Bv(n)&&(n=k({},n)),a[t]=n),n},r.prototype.setItemVisual=function(e,t,i){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Bv(t)?k(a,t):a[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Bv(e)?k(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?k(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;ev(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){T(this._graphicEls,function(i,a){i&&e&&e.call(t,i,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Is(this.dimensions,this._getDimInfo,this),this.hostModel)),V1(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];ee(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=i.apply(this,arguments);return t.apply(this,[a].concat(pd(arguments)))})},r.internalField=(function(){xN=function(e){var t=e._invertedIndicesMap;T(t,function(i,a){var n=e._dimInfos[a],o=n.ordinalMeta,s=e._store;if(o){i=t[a]=new zZ(o.categories.length);for(var l=0;l<i.length;l++)i[l]=yN;for(var l=0;l<s.count();l++)i[s.get(n.storeDimIndex,l)]=l}})},Fv=function(e,t,i){return wt(e._getCategory(t,i),null)},sy=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=Fv(e,e._idDimIdx,t)),i==null&&(i=VZ+t),i},Gv=function(e){return V(e)||(e=e!=null?[e]:[]),e},Hv=function(e){var t=new r(e._schema?e._schema:Is(e.dimensions,e._getDimInfo,e),e.hostModel);return V1(t,e),t},V1=function(e,t){T(UZ.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,T(BZ,function(i){e[i]=ae(t[i])}),e._calculationInfo=k({},t._calculationInfo)},U1=function(e,t){var i=e._nameList,a=e._idList,n=e._nameDimIdx,o=e._idDimIdx,s=i[t],l=a[t];if(s==null&&n!=null&&(i[t]=s=Fv(e,n,t)),l==null&&o!=null&&(a[t]=l=Fv(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),a[t]=l}}})(),r})(),Tt=FZ;var un={};ef(un,{createDimensions:()=>_N,createList:()=>E7,createScale:()=>M7,createSymbol:()=>tt,createTextStyle:()=>L7,dataStack:()=>D7,enableHoverEmphasis:()=>ha,getECData:()=>ce,getLayoutRect:()=>Ze,mixinAxisModelCommonMethods:()=>I7});function _N(r,e){return wa(r,e).dimensions}function wa(r,e){jf(r)||(r=Jf(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],a=Z(),n=[],o=GZ(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&z1(o),l=i===r.dimensionsDefine,u=l?k1(r):Uv(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var p=Z(f),c=new i1(o),v=0;v<c.length;v++)c[v]=-1;function h(C){var E=c[C];if(E<0){var D=i[C],L=se(D)?D:{name:D},M=new ip,P=L.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),L.type!=null&&(M.type=L.type),L.displayName!=null&&(M.displayName=L.displayName);var O=n.length;return c[C]=O,M.storeDimIndex=C,n.push(M),M}return n[E]}if(!s)for(var v=0;v<o;v++)h(v);p.each(function(C,E){var D=qe(C).slice();if(D.length===1&&!W(D[0])&&D[0]<0){p.set(E,!1);return}var L=p.set(E,[]);T(D,function(M,P){var O=W(M)?u.get(M):M;O!=null&&O<o&&(L[P]=O,m(h(O),E,P))})});var d=0;T(t,function(C){var E,D,L,M;if(W(C))E=C,M={};else{M=C,E=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=k({},M),M.ordinalMeta=P,D=M.dimsDef,L=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var O=p.get(E);if(O!==!1){if(O=qe(O),!O.length)for(var R=0;R<(D&&D.length||1);R++){for(;d<o&&h(d).coordDim!=null;)d++;d<o&&O.push(d++)}T(O,function(z,B){var F=h(z);if(l&&M.type!=null&&(F.type=M.type),m(re(F,M),E,B),F.name==null&&D){var H=D[B];!se(H)&&(H={name:H}),F.name=F.displayName=H.name,F.defaultTooltip=H.defaultTooltip}L&&re(F.otherDims,L)})}});function m(C,E,D){pm.get(E)!=null?C.otherDims[E]=D:(C.coordDim=E,C.coordDimIndex=D,a.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,x=y!=null;y=g?y||1:0;var _=g||"value";function S(C){C.name==null&&(C.name=C.coordDim)}if(s)T(n,function(C){S(C)}),n.sort(function(C,E){return C.storeDimIndex-E.storeDimIndex});else for(var b=0;b<o;b++){var w=h(b),A=w.coordDim;A==null&&(w.coordDim=HZ(_,a,x),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(yg(r,b)===vr.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return cs(n,function(C){return C.name},function(C,E){E>0&&(C.name=C.name+(E-1))}),new N1({source:r,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function GZ(r,e,t,i){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return T(e,function(n){var o;se(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function HZ(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 WZ=(function(){function r(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return r})();function SN(r){var e=r.get("coordinateSystem"),t=new WZ(e),i=YZ[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var YZ={cartesian2d:function(r,e,t,i){var a=r.getReferringComponents("xAxis",$e).models[0],n=r.getReferringComponents("yAxis",$e).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",n),ap(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),ap(n)&&(i.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var a=r.getReferringComponents("singleAxis",$e).models[0];e.coordSysDims=["single"],t.set("single",a),ap(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var a=r.getReferringComponents("polar",$e).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),ap(n)&&(i.set("radius",n),e.firstCategoryDimIndex=0),ap(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 a=r.ecModel,n=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();T(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),ap(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,i){var a=r.getReferringComponents("matrix",$e).models[0];e.coordSysDims=["x","y"];var n=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",n),t.set("y",o),i.set("x",n),i.set("y",o)}};function ap(r){return r.get("type")==="category"}function ly(r,e,t){t=t||{};var i=t.byIndex,a=t.stackedCoordDimension,n,o,s;XZ(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,p,c,v=!0;function h(_){return _.type!=="ordinal"&&_.type!=="time"}if(T(n,function(_,S){W(_)&&(n[S]=_={name:_}),h(_)||(v=!1)}),T(n,function(_,S){l&&!_.isExtraCoord&&(!i&&!u&&_.ordinalMeta&&(u=_),!f&&h(_)&&(!v||_.coordDim!=="x"&&_.coordDim!=="angle")&&(!a||a===_.coordDim)&&(f=_))}),f&&!i&&!u&&(i=!0),f){p="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;T(n,function(_){_.coordDim===d&&g++});var y={name:p,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},x={name:c,coordDim:c,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(c,m),x.storeDimIndex=s.ensureCalculationDimension(p,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(x)):(n.push(y),n.push(x))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:p}}function XZ(r){return!oy(r.schema)}function ti(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function np(r,e){return ti(r,e)?r.getCalculationInfo("stackResultDimension"):e}function ZZ(r,e){var t=r.get("coordinateSystem"),i=Lo.get(t),a;return e&&e.coordSysDims&&(a=U(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=xu(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function KZ(r,e,t){var i,a;return t&&T(r,function(n,o){var s=n.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=o),n.ordinalMeta=l.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(r[i].otherDims.itemName=0),i}function qZ(r,e,t){t=t||{};var i=e.getSourceManager(),a,n=!1;r?(n=!0,a=Jf(r)):(a=i.getSource(),n=a.sourceFormat===cr);var o=SN(e),s=ZZ(e,o),l=t.useEncodeDefaulter,u=ee(l)?l:l?be(mg,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},p=wa(a,f),c=KZ(p.dimensions,t.createInvertedIndices,o),v=n?null:i.getSharedDataStore(p),h=ly(e,{schema:p,store:v}),d=new Tt(p,e);d.setCalculationInfo(h);var m=c!=null&&jZ(a)?function(g,y,x,_){return _===c?x:this.defaultDimValueGetter(g,y,x,_)}:null;return d.hasItemOption=!1,d.initData(n?a:v,null,m),d}function jZ(r){if(r.sourceFormat===cr){var e=JZ(r.data||[]);return!V(Ya(e))}}function JZ(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var ur=qZ;var bN=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();vs(bN);var ri=bN;var QZ=0,$Z=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++QZ,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,i=t.data,a=i&&U(i,e7);return new r({categories:a,needCollect:!a,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(!W(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 a=this._getOrCreateMap();return t=a.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r})();function e7(r){return se(r)&&r.value!=null?r.value:r+""}var Ls=$Z;var Dr=0,op=1,t7={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},TN=Te(t7),Ta=2,CN=3;function sp(r,e,t){var i;r=r||{};var a=yt();if(a){var n=a.createBreakScaleMapper(e,t);n.hasBreaks()&&(T(TN,function(o){n[o]&&(r[o]=K(n[o],n))}),i=n)}return i==null&&uy(r,t),{brk:i,mapper:r}}function lp(r,e){T(TN,function(t){r[t]=e[t]})}function up(r,e){r.freeze=nt}function ko(r){return r.getExtentUnsafe(Dr,Ta)}function _u(r,e){return r.getExtentUnsafe(op,e)||r.getExtentUnsafe(Dr,e)}function AN(r){var e=_u(r,CN);return e[1]-e[0]}function fp(r){var e=r.getExtentUnsafe(Dr,CN);return e[1]-e[0]}function uy(r,e){var t=r||{},i=[];return t._extents=i,i[Dr]=e?e.slice():Ot(),k(t,r7),t}var r7={needTransform:function(){return!1},normalize:function(r){var e=this._extents[op]||this._extents[Dr];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[op]||this._extents[Dr];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=_u(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[Dr].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){wN(this._extents,Dr,r,e)},setExtent2:function(r,e,t){var i=this._extents;i[r]||(i[r]=i[Dr].slice()),wN(i,r,e,t)},freeze:function(){}};function wN(r,e,t,i){Za(t,i)&&(r[e][0]=t,r[e][1]=i)}function fy(r){return pp(r)||Xn(r)}function pp(r){return r.type==="interval"}function Yn(r){return r.type==="time"}function Xn(r){return r.type==="log"}function Mt(r){return r.type==="ordinal"}function EN(r){var e=bf(r),t=fs(10,e),i=yi(r/t);return i?i===2?i=3:i===3?i=5:i*=2:i=1,Be(i*t,-e)}function on(r){return Yr(r)+2}function Wv(r,e){return us(r)/us(e)}function py(r,e,t){var i=t&&t.lookup;if(i){for(var a=0;a<i.from.length;a++)if(r===i.from[a])return i.to[a]}return fs(e,r)}function cy(r,e,t){var i=r.slice();if(i[0]===i[1]){var a=t&&t.ctnShp;if(i[0]!==0){var n=ht(i[0]);e[1]||(i[1]+=n/2),i[0]-=n/2}else a&&(i[0]=-1),i[1]=1}return(!Wa(i[0])||!Wa(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function DN(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function Su(r,e){return r=r||e,yi(Ae(r,1))}function vy(r,e,t){var i=ko(r),a=i[0],n=r.count(),o=Math.max((e||0)+1,1);a!==0&&o>1&&n/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==i[0]&&l(i[0],!0,!0);for(var s=a;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,p){t({value:u,offInterval:f},p)}}var MN=(function(r){I(e,r);function e(t){var i=r.call(this)||this;i.type="ordinal",i.parse=e.parse,lp(i,e.decoratedMethods);var a=t.ordinalMeta;a||(a=new Ls({})),V(a)&&(a=new Ls({categories:U(a,function(o){return se(o)?o.value:o})})),i._ordinalMeta=a;var n=sp(null,null,t.extent||[0,a.categories.length-1]);return i._mapper=n.mapper,up(i,n.mapper),i}return e.parse=function(t){return t==null?t=NaN:W(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=yi(t),t},e.prototype.getTicks=function(){var t=[];return vy(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,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Ye(s,i.length);o<l;++o){var u=a[o]=i[o];n[u]=o}for(var f=0;o<s;++o){for(;n[f]!=null;)f++;a[o]=f,n[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),a=this._ordinalMeta.categories[i];return a==null?"":a+""}},e.prototype.count=function(){var t=ko(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(yi(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,a){return this._mapper.setExtent2(t,i,a)}},e})(ri);ri.registerClass(MN);var bu=MN;function cp(r,e,t,i){for(var a=r.getTicks({expandToNicedExtent:!0}),n=[],o=r.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,p=[],c=l.value-u.value,v=c/e,h=on(v);f<e-1;){var d=Be(u.value+(f+1)*v,h);d>o[0]&&d<o[1]&&p.push(d),f++}var m=yt();m&&m.pruneTicksByBreak("auto",p,t,function(g){return g},i,o),n.push(p)}}return n}var IN=(function(r){I(e,r);function e(t){var i=r.call(this)||this;i.type="interval",i.parse=e.parse,t=t||{};var a=Ym(i,t),n=sp(i,a,null);return i.brk=n.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 ae(this._cfg)},e.prototype.setConfig=function(t){var i=ko(this);this._cfg=t=ae(t),t.niceExtent==null&&(t.niceExtent=i.slice()),t.intervalPrecision==null&&(t.intervalPrecision=on(t.interval))},e.prototype.getTicks=function(t){t=t||{};var i=this._cfg,a=i.interval,n=ko(this),o=i.niceExtent,s=i.intervalPrecision,l=yt(),u=this.brk,f=l&&u,p=[];if(!a)return p;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(p,u.breaks,n),p;var c=3e3;n[0]<o[0]&&p.push({value:t.expandToNicedExtent?Be(o[0]-a,s):n[0]});for(var v=function(x,_){return yi((_-x)/a)},h=i.intervalCount,d=o[0],m=0;;m++){if(h==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>h)break;d=Ye(d,o[1]),m===h&&(d=o[1])}if(p.push({value:d}),d=Be(d+a,s),u){var g=u.calcNiceTickMultiple(d,v);g>=0&&(d=Be(d+g*a,s))}if(p.length>0&&d===p[p.length-1].value)break;if(p.length>c)return[]}var y=p.length?p[p.length-1].value:o[1];return n[1]>y&&p.push({value:t.expandToNicedExtent?Be(y+a,s):n[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,p,u.breaks,function(x){return x.value},i.interval,n),f&&t.breakTicks!=="none"&&l.addBreaksToTicks(p,u.breaks,n),p},e.prototype.getMinorTicks=function(t){return cp(this,t,iu(this),this._cfg.interval)},e.prototype.getLabel=function(t,i){if(t==null)return"";var a=i&&i.precision;a==null?a=Yr(t.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var n=Be(t.value,a,!0);return gv(n)},e.type="interval",e})(ri);ri.registerClass(IN);var Zn=IN;var i7=function(r,e,t,i){for(;t<i;){var a=t+i>>>1;r[a][1]<e?t=a+1:i=a}return t},PN=(function(r){I(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 a=Ym(i,t),n=sp(i,a,null);return i.brk=n.brk,i}return e.prototype.getLabel=function(t){return nu(t.value,Ab[VP(Hf(this._minLevelUnit))]||Ab.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,i,a){return UP(t,i,a,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var i=this._interval,a=ko(this),n=yt(),o=this.brk,s=n&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return yt().addBreaksToTicks(l,o.breaks,a),l;l=f7(this._minLevelUnit,this._approxInterval,u,a,fp(this),o);var f=Ii.length-1,p=0;return T(l,function(c){c.time&&(f=Math.min(f,de(Ii,c.time.upperTimeUnit)),p=Math.max(p,c.time.level))}),s&&yt().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(c){return c.value},this._approxInterval,a),s&&t.breakTicks!=="none"&&yt().addBreaksToTicks(l,o.breaks,a,function(c){for(var v=Math.max(de(Ii,ou(c.vmin,u)),de(Ii,ou(c.vmax,u))),h=0,d=0;d<Ii.length;d++)if(!RN(Ii[d],c.vmin,c.vmax,u)){h=d;break}var m=Math.min(h,f),g=Math.max(m,v);return{level:p,lowerTimeUnit:Ii[g],upperTimeUnit:Ii[m]}}),l},e.prototype.getMinorTicks=function(t){return cp(this,t,iu(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 Ce(t)?Math.round(t):+Xr(t)},e.type="time",e})(ri),hy=[["second",Km],["minute",qm],["hour",Gf],["quarter-day",Gf*6],["half-day",Gf*12],["day",Yi*1.2],["half-week",Yi*3.5],["week",Yi*7],["month",Yi*31],["quarter",Yi*95],["half-year",Cb/2],["year",Cb]];function RN(r,e,t,i){return jm(new Date(e),r,i).getTime()===jm(new Date(t),r,i).getTime()}function a7(r,e){return r/=Yi,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function n7(r){var e=30*Yi;return r/=e,r>6?6:r>3?3:r>2?2:1}function o7(r){return r/=Gf,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function LN(r,e){return r/=e?qm:Km,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function s7(r){return Ae(yo(r,!0),1)}function l7(r,e,t){var i=Math.max(0,de(Ii,e)-1);return jm(new Date(r),Ii[i],t).getTime()}function u7(r,e){var t=new Date(0);t[r](1);var i=t.getTime();t[r](1+e);var a=t.getTime()-i;return function(n,o){return Math.max(0,Math.round((o-n)/a))}}function f7(r,e,t,i,a,n){var o=3e3,s=NP,l=0;function u(R,z,B,F,H,Y,q){for(var oe=u7(H,R),X=z,G=new Date(X);X<B&&X<=i[1]&&(q.push({value:X}),!(l++>o));)if(G[H](G[F]()+R),X=G.getTime(),n){var ne=n.calcNiceTickMultiple(X,oe);ne>0&&(G[H](G[F]()+ne*R),X=G.getTime())}q.push({value:X,notAdd:X>i[1]})}function f(R,z,B){var F=[],H=!z.length;if(!RN(Hf(R),i[0],i[1],t)){H&&(z=[{value:l7(i[0],R,t)},{value:i[1]}]);for(var Y=0;Y<z.length-1;Y++){var q=z[Y].value,oe=z[Y+1].value;if(q!==oe){var X=void 0,G=void 0,ne=void 0,ve=!1;switch(R){case"year":X=Math.max(1,Math.round(e/Yi/365)),G=Eb(t),ne=BP(t);break;case"half-year":case"quarter":case"month":X=n7(e),G=Jm(t),ne=Db(t);break;case"week":case"half-week":case"day":X=a7(e,31),G=Qm(t),ne=Mb(t),ve=!0;break;case"half-day":case"quarter-day":case"hour":X=o7(e),G=$m(t),ne=Ib(t);break;case"minute":X=LN(e,!0),G=eg(t),ne=Lb(t);break;case"second":X=LN(e,!1),G=tg(t),ne=Pb(t);break;case"millisecond":X=s7(e),G=rg(t),ne=Rb(t);break}oe>=i[0]&&q<=i[1]&&u(X,q,oe,G,ne,ve,F),R==="year"&&B.length>1&&Y===0&&B.unshift({value:B[0].value-X})}}for(var Y=0;Y<F.length;Y++)B.push(F[Y])}}for(var p=[],c=[],v=0,h=0,d=0;d<s.length;++d){var m=Hf(s[d]);if(zP(s[d])){f(s[d],p[p.length-1]||[],c);var g=s[d+1]?Hf(s[d+1]):null;if(m!==g){if(c.length){h=v,c.sort(function(R,z){return R.value-z.value});for(var y=[],x=0;x<c.length;++x){var _=c[x].value;(x===0||c[x-1].value!==_)&&(y.push(c[x]),_>=i[0]&&_<=i[1]&&v++)}var S=a/e;if(v>S*1.5&&h>S/1.5||(p.push(y),v>S||r===s[d]))break}c=[]}}}for(var b=Ne(U(p,function(R){return Ne(R,function(z){return z.value>=i[0]&&z.value<=i[1]&&!z.notAdd})}),function(R){return R.length>0}),w=b.length-1,A=[],d=0;d<b.length;++d)for(var C=b[d],E=0;E<C.length;++E){var D=ou(C[E].value,t);A.push({value:C[E].value,time:{level:w-d,upperTimeUnit:D,lowerTimeUnit:D}})}cs(A,EI,null),A.sort(function(R,z){return R.value-z.value});var L=A[0],M=A[A.length-1],P=ou(i[0],t),O=ou(i[1],t);return(!L||L.value>i[0])&&A.unshift({value:i[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!M||M.value<i[1])&&A.push({value:i[1],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),A}var ON=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=Yi,t[1]+=Yi),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]-Yi}r.setExtent(t[0],t[1]);var a=Su(e.splitNumber,10),n=fp(r)/a,o=e.minInterval,s=e.maxInterval;o!=null&&n<o&&(n=o),s!=null&&n>s&&(n=s);var l=hy.length,u=Math.min(i7(hy,n,0,l),l-1),f=hy[u][1],p=hy[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:n,interval:f,minLevelUnit:p})};ri.registerClass(PN);var NN=PN;var dy=0,my=1,p7=2,UN=(function(r){I(e,r);function e(t){var i=r.call(this)||this;i.type="log",i.parse=Zn.parse,i.base=t.logBase||10;var a=[],n=[],o=i._lookup={from:a,to:n};a[dy]=a[my]=n[dy]=n[my]=NaN,lp(i,e.mapperMethods);var s=yt(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},p7,u),i.powStub=new Zn({breakParsed:u.original}),i.intervalStub=new Zn({breakParsed:u.transformed}),up(i,i.intervalStub),i}return e.prototype.getTicks=function(t){var i=this.base,a=this.powStub,n=yt(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return U(o.getTicks(t||{}),function(f){var p=f.value,c=py(p,i,u),v;if(n){var h=n.getTicksBreakOutwardTransform(this,f,iu(a),this._lookup);h&&(v=h.vBreak,c=h.tickVal)}return{value:c,break:v}},this)},e.prototype.getMinorTicks=function(t){return cp(this,t,iu(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(Wv(t,this.base))},scale:function(t){return py(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,i){return t=Wv(t,this.base),i&&i.depth===Ta?t:this.intervalStub.transformIn(t,i)},transformOut:function(t,i){var a=i?i.depth:null;return kN.depth=a,zN.lookup=this._lookup,py(a===Ta?t:this.intervalStub.transformOut(t,kN),this.base,zN)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,i){this.setExtent2(Dr,t,i)},setExtent2:function(t,i,a){if(!(!Za(i,a)||i<=0||a<=0)){var n=VN,o=VN;if(t===Dr){var s=this._lookup;n=s.to,o=s.from}this.powStub.setExtent2(t,n[dy]=i,n[my]=a);var l=this.base;this.intervalStub.setExtent2(t,o[dy]=Wv(i,l),o[my]=Wv(a,l))}},getFilter:function(){return{g:0}},sanitize:function(t,i){return Za(i[0],i[1])&&or(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})(ri);ri.registerClass(UN);var kN={},zN={},VN=[],BN=UN;var gy={value:1,category:1,time:1,log:1};var FN=ue();function Kn(r){var e=r.get("type");return(e==null||!le(gy,e)&&!ri.getClass(e))&&(e="value"),e}function Ca(r,e,t){var i=yt(),a;switch(i&&(a=B1(r,e,t)),e){case"category":return new bu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Ot()});case"time":return new NN({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:a});case"log":return new BN({logBase:r.get("logBase"),breakOption:a});case"value":return new Zn({breakOption:a});default:return new(ri.getClass(e)||Zn)({})}}function GN(r,e,t){var i=t?_u(r,null):r.getExtentUnsafe(Dr,null),a=i[0],n=i[1];return Za(a,n)?a===e||n===e?v7:a<e&&n>e?c7:yy:yy}var c7=1,v7=2,yy=3;function HN(r){FN(r).noOnMyZero=!0}function WN(r){return FN(r).noOnMyZero}function wu(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=kP(e);return function(a,n){return r.scale.getFormattedLabel(a,n,t)}}else{if(W(e))return function(a){var n=r.scale.getLabel(a),o=e.replace("{value}",n??"");return o};if(ee(e)){if(r.type==="category")return function(a,n){return e(vp(r,a),a.value-r.scale.getExtent()[0],null)};var i=yt();return function(a,n){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,a.break)),e(vp(r,a),n,o)}}else return function(a){return r.scale.getLabel(a)}}}function vp(r,e){var t=r.scale;return Mt(t)?t.getLabel(e):e.value}function xy(r){var e=r.get("interval");return e??"auto"}function YN(r){return r.type==="category"&&xy(r.getLabelModel())===0}function XN(r,e){var t={};return T(r.mapDimensionsAll(e),function(i){t[np(r,i)]=!0}),Te(t)}function Ps(r){return r==="middle"||r==="center"}function Tu(r){return r.getShallow("show")}function B1(r,e,t){var i=r.get("breaks",!0);if(i!=null){if(!yt())return;if(!t||!h7(e)){if(0)var a;return}return i}}function h7(r){return r!=="category"}function _y(r,e,t,i,a,n){var o=Xn(r),s=o?r.intervalStub:r;if(s.setExtent(i[0],i[1]),o){var l=r.powStub,u={depth:Ta},f=r.transformOut(i[0],u),p=r.transformOut(i[1],u),c=DN(t,i);e[0]&&!c[0]&&(f=a[0]),e[1]&&!c[1]&&(p=a[1]),l.setExtent(f,p)}s.setConfig(n)}function sn(r,e){return Mt(r)?r.getRawOrdinalNumber(e.value):e.value}function qn(r,e){return Mt(r)&&!!e.get("boundaryGap")}var Aa=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})();var d7=pa(),Xv="|&",hp=ue(),Sy=-2,ZN=-1,m7=ue();function H1(r,e){var t=r.model,i=hp(du(t.ecModel)).keyed,a=i&&i.get(e);return a&&a.get(t.uid)}function KN(r,e){return JN(H1(r,e))}function qN(r,e){var t=[];return jN(r.model.ecModel,function(i){for(var a=0;a<e.length;a++)e[a]&&i.serByIdx[e[a].seriesIndex]&&t.push(JN(i))}),t}function jN(r,e){var t=hp(du(r)).keyed;t&&t.each(function(i,a){i.each(function(n,o){e(n,a,o)})})}function JN(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function QN(r,e){var t=r.model.ecModel,i=hp(du(t)).axSer;i&&Zv(t,i.get(r.model.uid),e)}function jn(r,e,t){var i=H1(r,e);i&&Zv(r.model.ecModel,i.sers,t)}function Zv(r,e,t){if(e)for(var i=0;i<e.length;i++){var a=e[i];r.isSeriesFiltered(a)||t(a)}}function $N(r,e){var t=H1(r,e);if(!t||!t.sers.length)return 0;var i=0;return Zv(r.model.ecModel,t.sers,function(){i++}),i}function dp(r,e,t){var i=hp(du(r)).keyed,a=i&&i.get(e);a&&a.each(function(n){t(n.axis)})}function W1(r,e){var t=r.model,i=hp(du(t.ecModel)).keys;i&&T(i.get(t.uid),function(a){if(0)var n;e(a)})}function g7(r){var e=m7(Wg(r)),t=e.keyed||(e.keyed=Z());jN(r,function(i,a,n){var o=t.get(a)||t.set(a,Z()),s=o.get(n)||o.set(n,{});i.metrics.liPosMinGap&&t2.liPosMinGap(r,i,s)})}function e2(r,e){t2[r]=e}var t2={};function Ea(r,e,t){if(r){var i=e.ecModel,a=hp(du(i)),n=r.model.uid;if(0)var o,s;var l=a.axSer||(a.axSer=Z()),u=l.get(n)||l.set(n,[]);if(0)var f;u.push(e);var p=e.subType,c=e.getBaseAxis()===r,v=G1.get(F1(p,c,t))||G1.get(F1(p,c,null));if(v){var h=a.keyed||(a.keyed=Z()),d=a.keys||(a.keys=Z()),m=v.key,g=h.get(m)||h.set(m,Z()),y=g.get(n);y||(y=g.set(n,{axis:r,sers:[],serByIdx:[]}),y.metrics=v.getMetrics(r),(d.get(n)||d.set(n,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function F1(r,e,t){return r+Xv+J(e,!0)+Xv+(t||"")}function mp(r,e){var t=F1(e.seriesType,e.baseAxis,e.coordSysType);G1.set(t,e),d7(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:g7})})}var G1=Z();var y7=ue(),ln=1,a2=2,x7=3,n2=(function(){function r(e,t,i,a,n){var o=Mt(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=i.slice();(pp(e)||Xn(e)||Yn(e))&&(gS(f,Kv(e,t.get("dataMin",!0))),yS(f,Kv(e,t.get("dataMax",!0)))),AI(f)||(f[0]=f[1]=NaN);var p=[],c=[!1,!1],v=t.get("min",!0);v==="dataMin"?(p[0]=f[0],c[0]=!0):(p[0]=Kv(e,ee(v)?v({min:f[0],max:f[1]}):v),c[0]=p[0]!=null);var h=t.get("max",!0);h==="dataMax"?(p[1]=f[1],c[1]=!0):(p[1]=Kv(e,ee(h)?h({min:f[0],max:f[1]}):h),c[1]=p[1]!=null);var d=_7(e,t),m=o?null:f[1]-f[0]||Math.abs(f[0]);p[0]==null&&(p[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),p[1]==null&&(p[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!Wa(p[0])&&(p[0]=NaN),!Wa(p[1])&&(p[1]=NaN);var g=l||zt(p[0])||zt(p[1])||o&&!s,y=pp(e),x=y&&t.needIncludeZero&&t.needIncludeZero();x&&(p[0]>0&&p[1]>0&&!c[0]&&(p[0]=0),p[0]<0&&p[1]<0&&!c[1]&&(p[1]=0));var _=!1;p[0]>p[1]&&(p.reverse(),_=!0);var S=Kv(e,t.get("startValue",!0)),b=S!=null;!or(S)&&a&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),or(S)&&(b||!y||x)&&(S<p[0]&&!c[0]?(p[0]=S,c[0]=!0):S>p[1]&&!c[1]&&(p[1]=S,c[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:p,zoomMM:[],fixMM:c,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:x,tggAxInv:_,ctnShp:n};r2(w,p)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,i=e.noZoomEffMM,a=e.zoomFixMM,n=e.fixMM,o={fixMM:n,zoomFixMM:a,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],n[0]=a[0]=!0),t[1]!=null&&(s[1]=t[1],n[1]=a[1]=!0),r2(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 r2(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),Ef(e))}function Kv(r,e){return e==null?null:zt(e)?NaN:r.parse(e)}function _7(r,e){var t;if(Mt(r))t=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),t=V(i)?i:[i,i]}return[i2(t[0]),i2(t[1])]}function i2(r){return Rr(typeof r=="boolean"?0:r,1)||0}function o2(r){var e=y7(r.scale);return e.extent||(e.extent=Ot()),e}function s2(r,e){o2(r).dimIdxInCoord=e.get(r.dim)}function Ki(r,e){var t=r.scale,i=r.model,a=r.dim;t.rawExtentInfo||S7(t,r,a,i,e)}function S7(r,e,t,i,a){var n=o2(e),o=n.extent,s=!1;QN(e,function(f){if(f.boxCoordinateSystem){var p=ug(f).coord,c=n.dimIdxInCoord;if(c>=0){if(V(p)){var v=p[c];v!=null&&!V(v)&&jc(o,r.parse(v))}}}else if(f.coordinateSystem){var h=f.getData();if(h){var d=r.getFilter?r.getFilter():null;T(XN(h,t),function(m){CI(o,h.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=w7(r,e,i),u=new n2(r,i,o,s,l);l2(r,u,a),n.extent=null}function b7(r,e){var t=r.scale;l2(t,new n2(t,r.model,e,!1,!1),x7)}function l2(r,e,t){r.rawExtentInfo=e,e.from=t}function Rs(r,e){Y1.set(r,e)}var Y1=Z();function by(r,e,t,i,a){r.rawExtentInfo||b7({scale:r,model:e},a||Ot());var n=r.rawExtentInfo.makeFinal(),o=n.effMM;return r.setExtent(o[0],o[1]),r.setBlank(n.isBlank),i&&n.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),n}function w7(r,e,t){var i=qn(r,t),a=t.get("containShape",!0);if(a==null&&!i&&(a=!0),!a)return!1;var n=!1;return W1(e,function(o){n=!!Y1.get(o)||n}),n}function u2(r,e,t,i){if(t.ctnShp){var a;if(W1(r,function(s){var l=Y1.get(s);if(l){var u=l(r,i);u&&(a=a||[0,0],gS(a,u[0]),yS(a,u[1]),HN(r))}}),!!a){var n=e.getExtent();if(Mt(e))r.onBand||e.setExtent2(op,Ye(n[0],n[0]+a[0]),Ae(n[1],n[1]+a[1]));else{var o=n.slice();t.zoomFixMM[0]||(o[0]=Ye(o[0],e.transformOut(e.transformIn(o[0],null)+a[0],null))),t.zoomFixMM[1]||(o[1]=Ae(o[1],e.transformOut(e.transformIn(o[1],null)+a[1],null))),(o[0]<n[0]||o[1]>n[1])&&e.setExtent2(op,o[0],o[1])}}}}function f2(r,e){var t=Xn(r),i=t?r.intervalStub:r,a=e.fixMinMax||[],n=t?r.getExtent():null,o=i.getExtent(),s=cy(o,a,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=t?C7(i,e):T7(i,e),u=l.intervalPrecision,f=l.interval,p=e.userInterval;p!=null&&(l.interval=p,l.intervalPrecision=on(p)),a[0]||(s[0]=Be(_r(s[0]/f)*f,u)),a[1]||(s[1]=Be(ua(s[1]/f)*f,u)),p!=null&&(l.niceExtent=s.slice()),_y(r,a,o,s,n,l)}function T7(r,e){var t=Su(e.splitNumber,5),i=fp(r),a=e.minInterval,n=e.maxInterval,o=yo(i/t,!0);a!=null&&o<a&&(o=a),n!=null&&o>n&&(o=n);var s=on(o),l=r.getExtent(),u=[Be(ua(l[0]/o)*o,s),Be(_r(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function C7(r,e){var t=Su(e.splitNumber,10),i=r.getExtent(),a=fp(r),n=Ae(Sf(a),1),o=t/a*n;o<=.5&&(n*=10);var s=on(n),l=[Be(ua(i[0]/n)*n,s),Be(_r(i[1]/n)*n,s)];return{intervalPrecision:s,interval:n,niceExtent:l}}function Jn(r){var e=r.scale,t=r.model,i=t.axis,a=t.ecModel;X1(e,t,i,a,null)}function X1(r,e,t,i,a){var n=by(r,e,i,t,a),o=pp(r)||Yn(r);Z1(r,{splitNumber:e.get("splitNumber"),fixMinMax:n.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:n}),t&&i&&u2(t,r,n,i)}function Z1(r,e){A7[r.type](r,e)}var A7={interval:f2,log:f2,time:ON,ordinal:nt};function E7(r){return ur(null,r)}var D7={isDimensionStacked:ti,enableDataStack:ly,getStackedDimension:np};function M7(r,e){var t=e;e instanceof Re||(t=new Re(e));var i=Kn(t),a=Ca(t,i,!1);return r[1]<r[0]&&(r=r.slice().reverse()),X1(a,t,null,null,r),a}function I7(r){st(r,Aa)}function L7(r,e){return e=e||{},je(r,null,null,e.state!=="normal")}var P7=1e-8;function p2(r,e){return Math.abs(r-e)<P7}function zo(r,e,t){var i=0,a=r[0];if(!a)return!1;for(var n=1;n<r.length;n++){var o=r[n];i+=ca(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!p2(a[0],s[0])||!p2(a[1],s[1]))&&(i+=ca(a[0],a[1],s[0],s[1],e,t)),i!==0}var R7=[];function K1(r,e){for(var t=0;t<r.length;t++)ft(r[t],r[t],e)}function v2(r,e,t,i){for(var a=0;a<r.length;a++){var n=r[a];i&&(n=i.project(n)),n&&isFinite(n[0])&&isFinite(n[1])&&(Ui(e,e,n),Bi(t,t,n))}}function O7(r){for(var e=0,t=0,i=0,a=r.length,n=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=n*u-l*o;e+=f,t+=(n+l)*f,i+=(o+u)*f,n=l,o=u}return e?[t/e/3,i/e/3,e]:[r[0][0]||0,r[0][1]||0]}var h2=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})();var q1=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})();var j1=(function(){function r(e){this.type="linestring",this.points=e}return r})();var wy=(function(r){I(e,r);function e(t,i,a){var n=r.call(this,t)||this;return n.type="geoJSON",n.geometries=i,n._center=a&&[a[0],a[1]],n}return e.prototype.calcCenter=function(){for(var t=this.geometries,i,a=0,n=0;n<t.length;n++){var o=t[n],s=o.exterior,l=s&&s.length;l>a&&(i=o,a=l)}if(i)return O7(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var a=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?v2(s.exterior,a,n,t):T(s.points,function(l){v2(l,a,n,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])||(a[0]=a[1]=n[0]=n[1]=0),i=new fe(a[0],a[1],n[0]-a[0],n[1]-a[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),a=this.geometries;if(!i.contain(t[0],t[1]))return!1;e:for(var n=0,o=a.length;n<o;n++){var s=a[n];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(zo(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(zo(u[f],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,i,a,n){var o=this.getBoundingRect(),s=o.width/o.height;a?n||(n=a/s):a=s*n;for(var l=new fe(t,i,a,n),u=o.calculateTransform(l),f=this.geometries,p=0;p<f.length;p++){var c=f[p];c.type==="polygon"?(K1(c.exterior,u),T(c.interiors,function(v){K1(v,u)})):T(c.points,function(v){K1(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e})(h2);var d2=(function(r){I(e,r);function e(t,i){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=i,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,i=t.getBoundingRect(),a=[i.x+i.width/2,i.y+i.height/2],n=Ua(R7),o=t;o&&!o.isGeoSVGGraphicRoot;)ar(n,o.getLocalTransform(),n),o=o.parent;return Zt(n,n),ft(a,a,n),a},e})(h2);function N7(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var i=e.features;return T(i,function(a){var n=a.geometry,o=n.encodeOffsets,s=n.coordinates;if(o)switch(n.type){case"LineString":n.coordinates=m2(s,o,t);break;case"Polygon":J1(s,o,t);break;case"MultiLineString":J1(s,o,t);break;case"MultiPolygon":T(s,function(l,u){return J1(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function J1(r,e,t){for(var i=0;i<r.length;i++)r[i]=m2(r[i],e[i],t)}function m2(r,e,t){for(var i=[],a=e[0],n=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=n,a=s,n=l,i.push([s/t,l/t])}return i}function Q1(r,e){return r=N7(r),U(Ne(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,a=t.geometry,n=[];switch(a.type){case"Polygon":var o=a.coordinates;n.push(new q1(o[0],o.slice(1)));break;case"MultiPolygon":T(a.coordinates,function(l){l[0]&&n.push(new q1(l[0],l.slice(1)))});break;case"LineString":n.push(new j1([a.coordinates]));break;case"MultiLineString":n.push(new j1(a.coordinates))}var s=new wy(i[e||"name"],n,i.cp);return s.properties=i,s})}var Ty={};ef(Ty,{MAX_SAFE_INTEGER:()=>ps,asc:()=>gt,getPercentWithPrecision:()=>uI,getPixelPrecision:()=>lI,getPrecision:()=>Yr,getPrecisionSafe:()=>fS,isNumeric:()=>Ol,isRadianAroundZero:()=>Mn,linearMap:()=>Ge,nice:()=>yo,numericToNumber:()=>xi,parseDate:()=>Xr,parsePercent:()=>$,quantile:()=>wf,quantity:()=>Sf,quantityExponent:()=>bf,reformIntervals:()=>Yc,remRadian:()=>Wc,round:()=>sI});var Cy={};ef(Cy,{Arc:()=>jl,BezierCurve:()=>Co,BoundingRect:()=>fe,Circle:()=>Tr,CompoundPath:()=>Fn,Ellipse:()=>Kl,Group:()=>te,Image:()=>pt,IncrementalDisplayable:()=>Rm,Line:()=>ct,LinearGradient:()=>Ei,Polygon:()=>_t,Polyline:()=>mt,RadialGradient:()=>kf,Rect:()=>xe,Ring:()=>To,Sector:()=>Dt,Text:()=>Ee,clipPointsByRect:()=>cv,clipRectByRect:()=>hb,createIcon:()=>Qa,extendPath:()=>vb,extendShape:()=>cb,getShapeClass:()=>Ss,getTransform:()=>Ja,initProps:()=>Xe,makeImage:()=>fv,makePath:()=>Eo,mergePath:()=>mr,registerShape:()=>Wi,resizePath:()=>Nm,updateProps:()=>Pe});var Ay={};ef(Ay,{addCommas:()=>gv,capitalFirst:()=>HP,encodeHTML:()=>Xt,formatTime:()=>GP,formatTpl:()=>Yf,getTextRect:()=>Ob,getTooltipMarker:()=>ng,normalizeCssArray:()=>ya,toCamelCase:()=>Wf,truncateText:()=>wS});var gp={};ef(gp,{bind:()=>K,clone:()=>ae,curry:()=>be,defaults:()=>re,each:()=>T,extend:()=>k,filter:()=>Ne,indexOf:()=>de,inherits:()=>fd,isArray:()=>V,isFunction:()=>ee,isObject:()=>se,isString:()=>W,map:()=>U,merge:()=>_e,reduce:()=>fr});var k7=ue(),qv=ue(),Ri={estimate:1,determine:2};function yp(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function g2(r,e){var t=r.getLabelModel().get("customValues");if(t){var i=r.scale;return{labels:U(x2(t,i),function(a,n){return{formattedLabel:wu(r)(a,n),rawLabel:i.getLabel(a),tick:a}})}}return r.type==="category"?z7(r,e):U7(r)}function y2(r,e,t){var i=r.scale,a=r.getTickModel().get("customValues");return a?{ticks:x2(a,i)}:r.type==="category"?V7(r,e):{ticks:i.getTicks(t)}}function x2(r,e){var t=e.getExtent(),i=[];return T(r,function(a){a=e.parse(a),a>=t[0]&&a<=t[1]&&i.push(a)}),cs(i,DI,null),gt(i),U(i,function(a){return{value:a}})}function z7(r,e){var t=r.getLabelModel(),i=_2(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:i}function _2(r,e,t){var i=F7(r),a=xy(e),n=t.kind===Ri.estimate;if(!n){var o=b2(i,a);if(o)return o}var s,l;ee(a)?s=Ey(r,a,!1):(l=a==="auto"?G7(r,t):a,s=Ey(r,l,!1));var u={labels:s,labelCategoryInterval:l};return n?t.out.noPxChangeTryDetermine.push(function(){return $1(i,a,u),!0}):$1(i,a,u),u}function V7(r,e){var t=B7(r),i=xy(e),a=b2(t,i);if(a)return a;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),ee(i))n=Ey(r,i,!0);else if(i==="auto"){var s=_2(r,r.getLabelModel(),yp(Ri.determine));o=s.labelCategoryInterval,n=U(s.labels,function(l){return l.tick})}else o=i,n=Ey(r,o,!0);return $1(t,i,{ticks:n,tickCategoryInterval:o})}function U7(r){var e=r.scale.getTicks(),t=wu(r);return{labels:U(e,function(i,a){return{formattedLabel:t(i,a),rawLabel:r.scale.getLabel(i),tick:i}})}}var B7=S2("axisTick"),F7=S2("axisLabel");function S2(r){return function(t){return qv(t)[r]||(qv(t)[r]={list:[]})}}function b2(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function $1(r,e,t){return r.list.push({key:e,value:t}),t}function G7(r,e){if(e.kind===Ri.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return qv(r).autoInterval=t,!0}),t}var i=qv(r).autoInterval;return i??(qv(r).autoInterval=r.calculateCategoryInterval(e))}function w2(r,e){var t=e.kind,i=W7(r),a=wu(r),n=(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 p=s[0],c=r.dataToCoord(p+1)-r.dataToCoord(p),v=Math.abs(c*Math.cos(n)),h=Math.abs(c*Math.sin(n)),d=0,m=0;p<=s[1];p+=u){var g=0,y=0,x=ss(a({value:p}),i.font,"center","top");g=x.width*1.3,y=x.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var _=d/v,S=m/h;isNaN(_)&&(_=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(_,S)));if(t===Ri.estimate)return e.out.noPxChangeTryDetermine.push(K(H7,null,r,b,l)),b;var w=T2(r,b,l);return w??b}function H7(r,e,t){return T2(r,e,t)==null}function T2(r,e,t){var i=k7(r.model),a=r.getExtent(),n=i.lastAutoInterval,o=i.lastTickCount;if(n!=null&&o!=null&&Math.abs(n-e)<=1&&Math.abs(o-t)<=1&&n>e&&i.axisExtent0===a[0]&&i.axisExtent1===a[1])return n;i.lastTickCount=t,i.lastAutoInterval=e,i.axisExtent0=a[0],i.axisExtent1=a[1]}function W7(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 Ey(r,e,t){var i=wu(r),a=r.scale,n=[],o=ee(e);return vy(a,o?0:e,function(s,l){var u=a.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}n.push(t?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),n}var Y7=.8;function bt(r,e){e=e||{};var t={w:NaN,w2:NaN},i=r.scale,a=e.fromStat,n=e.min,o=AN(i);or(o)||(o=NaN);var s=r.getExtent(),l=ht(s[1]-s[0]);return Mt(i)?X7(t,r,o,l):a?Z7(t,r,o,l,a):n==null,n!=null&&(t.w=or(t.w)?Ae(n,t.w):n),t}function X7(r,e,t,i){var a=e.onBand,n=t+(a?1:0);n===0&&(n=1),r.w=i/n,!a&&t&&i&&(r.w2=r.w*t/i)}function Z7(r,e,t,i,a){var n=!1,o=-1/0;T(a.key?[KN(e,a.key)]:qN(e,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),n=!1):l===Sy&&(n=!0))}),or(t)&&t>0&&or(o)?(r.w=i/t*o,r.w2=o):n&&(r.w=i*Y7,r.w2=r.w*t/i)}var C2=[0,1],K7=(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]),a=Math.max(t[0],t[1]);return e>=i&&e<=a},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)),Ge(e,C2,A2(this),t)},r.prototype.coordToData=function(e,t){var i=Ge(e,A2(this),C2,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=y2(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=U(i.ticks,function(s){return{coord:this.dataToCoord(sn(this.scale,s)),tick:s}},this),n=t.get("alignWithLabel"),o=q7(this,a,n);return U(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(Mt(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),a=U(i,function(n){return U(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||yp(Ri.determine),g2(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 bt(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||yp(Ri.determine),w2(this,e)},r})();function A2(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 q7(r,e,t){var i=e.length;if(!r.onBand||t||!i)return!1;var a=bt(r).w;if(!a)return!1;T(e,function(s){s.coord-=a/2});var n=r.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+a,tick:{value:n[1]+1}}),!0}var yr=K7;function E2(r){var e=Fe.extend(r);return Fe.registerClass(e),e}function D2(r){var e=Ve.extend(r);return Ve.registerClass(e),e}var jv=Math.PI*2,Cu=pr.CMD,j7=["top","right","bottom","left"];function J7(r,e,t,i,a){var n=t.width,o=t.height;switch(r){case"top":i.set(t.x+n/2,t.y-e),a.set(0,-1);break;case"bottom":i.set(t.x+n/2,t.y+o+e),a.set(0,1);break;case"left":i.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":i.set(t.x+n+e,t.y+o/2),a.set(1,0);break}}function Q7(r,e,t,i,a,n,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,p=s*t+e;if(Math.abs(i-a)%jv<1e-4)return l[0]=f,l[1]=p,u-t;if(n){var c=i;i=br(a),a=br(c)}else i=br(i),a=br(a);i>a&&(a+=jv);var v=Math.atan2(s,o);if(v<0&&(v+=jv),v>=i&&v<=a||v+jv>=i&&v+jv<=a)return l[0]=f,l[1]=p,u-t;var h=t*Math.cos(i)+r,d=t*Math.sin(i)+e,m=t*Math.cos(a)+r,g=t*Math.sin(a)+e,y=(h-o)*(h-o)+(d-s)*(d-s),x=(m-o)*(m-o)+(g-s)*(g-s);return y<x?(l[0]=h,l[1]=d,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(x))}function Dy(r,e,t,i,a,n,o,s){var l=a-r,u=n-e,f=t-r,p=i-e,c=Math.sqrt(f*f+p*p);f/=c,p/=c;var v=l*f+u*p,h=v/c;s&&(h=Math.min(Math.max(h,0),1)),h*=c;var d=o[0]=r+h*f,m=o[1]=e+h*p;return Math.sqrt((d-a)*(d-a)+(m-n)*(m-n))}function M2(r,e,t,i,a,n,o){t<0&&(r=r+t,t=-t),i<0&&(e=e+i,i=-i);var s=r+t,l=e+i,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(n,e),l);return Math.sqrt((u-a)*(u-a)+(f-n)*(f-n))}var fn=[];function $7(r,e,t){var i=M2(e.x,e.y,e.width,e.height,r.x,r.y,fn);return t.set(fn[0],fn[1]),i}function e9(r,e,t){for(var i=0,a=0,n=0,o=0,s,l,u=1/0,f=e.data,p=r.x,c=r.y,v=0;v<f.length;){var h=f[v++];v===1&&(i=f[v],a=f[v+1],n=i,o=a);var d=u;switch(h){case Cu.M:n=f[v++],o=f[v++],i=n,a=o;break;case Cu.L:d=Dy(i,a,f[v],f[v+1],p,c,fn,!0),i=f[v++],a=f[v++];break;case Cu.C:d=Ad(i,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],p,c,fn),i=f[v++],a=f[v++];break;case Cu.Q:d=Dd(i,a,f[v++],f[v++],f[v],f[v+1],p,c,fn),i=f[v++],a=f[v++];break;case Cu.A:var m=f[v++],g=f[v++],y=f[v++],x=f[v++],_=f[v++],S=f[v++];v+=1;var b=!!(1-f[v++]);s=Math.cos(_)*y+m,l=Math.sin(_)*x+g,v<=1&&(n=s,o=l);var w=(p-m)*x/y+m;d=Q7(m,g,x,_,_+S,b,w,c,fn),i=Math.cos(_+S)*y+m,a=Math.sin(_+S)*x+g;break;case Cu.R:n=i=f[v++],o=a=f[v++];var A=f[v++],C=f[v++];d=M2(n,o,A,C,p,c,fn);break;case Cu.Z:d=Dy(i,a,n,o,p,c,fn,!0),i=n,a=o;break}d<u&&(u=d,t.set(fn[0],fn[1]))}return u}var pn=new ye,Ct=new ye,qt=new ye,$n=new ye,Qn=new ye;function tw(r,e){if(r){var t=r.getTextGuideLine(),i=r.getTextContent();if(i&&t){var a=r.textGuideLineConfig||{},n=[[0,0],[0,0],[0,0]],o=a.candidates||j7,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),p=f&&Zt([],f),c=e.get("length2")||0;u&&qt.copy(u);for(var v=0;v<o.length;v++){var h=o[v];J7(h,0,s,pn,$n),ye.scaleAndAdd(Ct,pn,$n,c),Ct.transform(p);var d=r.getBoundingRect(),m=u?u.distance(Ct):r instanceof ge?e9(Ct,r.path,qt):$7(Ct,d,qt);m<l&&(l=m,Ct.transform(f),qt.transform(f),qt.toArray(n[0]),Ct.toArray(n[1]),pn.toArray(n[2]))}rw(n,e.get("minTurnAngle")),t.setShape({points:n})}}}var My=[],ii=new ye;function rw(r,e){if(e<=180&&e>0){e=e/180*Math.PI,pn.fromArray(r[0]),Ct.fromArray(r[1]),qt.fromArray(r[2]),ye.sub($n,pn,Ct),ye.sub(Qn,qt,Ct);var t=$n.len(),i=Qn.len();if(!(t<.001||i<.001)){$n.scale(1/t),Qn.scale(1/i);var a=$n.dot(Qn),n=Math.cos(e);if(n<a){var o=Dy(Ct.x,Ct.y,qt.x,qt.y,pn.x,pn.y,My,!1);ii.fromArray(My),ii.scaleAndAdd(Qn,o/Math.tan(Math.PI-e));var s=qt.x!==Ct.x?(ii.x-Ct.x)/(qt.x-Ct.x):(ii.y-Ct.y)/(qt.y-Ct.y);if(isNaN(s))return;s<0?ye.copy(ii,Ct):s>1&&ye.copy(ii,qt),ii.toArray(r[1])}}}}function I2(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,pn.fromArray(r[0]),Ct.fromArray(r[1]),qt.fromArray(r[2]),ye.sub($n,Ct,pn),ye.sub(Qn,qt,Ct);var i=$n.len(),a=Qn.len();if(!(i<.001||a<.001)){$n.scale(1/i),Qn.scale(1/a);var n=$n.dot(e),o=Math.cos(t);if(n<o){var s=Dy(Ct.x,Ct.y,qt.x,qt.y,pn.x,pn.y,My,!1);ii.fromArray(My);var l=Math.PI/2,u=Math.acos(Qn.dot(e)),f=l+u-t;if(f>=l)ye.copy(ii,qt);else{ii.scaleAndAdd(Qn,s/Math.tan(Math.PI/2-f));var p=qt.x!==Ct.x?(ii.x-Ct.x)/(qt.x-Ct.x):(ii.y-Ct.y)/(qt.y-Ct.y);if(isNaN(p))return;p<0?ye.copy(ii,Ct):p>1&&ye.copy(ii,qt)}ii.toArray(r[1])}}}}function ew(r,e,t,i){var a=t==="normal",n=a?r:r.ensureState(t);n.ignore=e;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,n.shape=n.shape||{},n.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();a?r.useStyle(s):n.style=s}function t9(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 a=ia(i[0],i[1]),n=ia(i[1],i[2]);if(!a||!n){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*t,s=of([],i[1],i[0],o/a),l=of([],i[1],i[2],o/n),u=of([],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 xp(r,e,t){var i=r.getTextGuideLine(),a=r.getTextContent();if(!a){i&&r.removeTextGuideLine();return}for(var n=e.normal,o=n.get("show"),s=a.ignore,l=0;l<ys.length;l++){var u=ys[l],f=e[u],p=u==="normal";if(f){var c=f.get("show"),v=p?s:J(a.states[u]&&a.states[u].ignore,s);if(v||!J(c,o)){var h=p?i:i&&i.states[u];h&&(h.ignore=!0),i&&ew(i,!0,u,f);continue}i||(i=new mt,r.setTextGuideLine(i),!p&&(s||!o)&&ew(i,!0,"normal",e.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),ew(i,!1,u,f)}}if(i){re(i.style,t),i.style.fill=null;var d=n.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=d||!1,i.buildPath=t9}}function _p(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},i=0;i<sr.length;i++){var a=sr[i];t[a]=r.getModel([a,e])}return t}var L2=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],r9=1,Iy=2,R2=r9|Iy;function Jv(r,e,t){t=t||R2,e?r.dirty|=t:r.dirty&=~t}function O2(r,e){return e=e||R2,r.dirty==null||!!(r.dirty&e)}function cn(r){if(r)return O2(r)&&aw(r,r.label,r),r}function aw(r,e,t){var i=e.getComputedTransform();r.transform=zm(r.transform,i);var a=r.localRect=Uf(r.localRect,e.getBoundingRect()),n=e.style,o=n.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=n.__marginType;f==null&&u&&(o=u,f=tu.textMargin);for(var p=0;p<4;p++)iw[p]=f===tu.minMargin&&l&&l[p]!=null?l[p]:s&&s[p]!=null?s[p]:o?o[p]:0;f===tu.textMargin&&ma(a,iw,!1,!1);var c=r.rect=Uf(r.rect,a);return i&&c.applyTransform(i),f===tu.minMargin&&ma(c,iw,!1,!1),r.axisAligned=km(i),(r.label=r.label||{}).ignore=e.ignore,Jv(r,!1),Jv(r,!0,Iy),r}var iw=[0,0,0,0];function N2(r,e,t){return r.transform=zm(r.transform,t),r.localRect=Uf(r.localRect,e),r.rect=Uf(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=km(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Qv(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 a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function $v(r,e){for(var t=0;t<L2.length;t++){var i=L2[t];r[i]==null&&(r[i]=e[i])}return cn(r)}function P2(r){var e=r.obb;return(!e||O2(r,Iy))&&(r.obb=e=e||new Pm,e.fromBoundingRect(r.localRect,r.transform),Jv(r,!1,Iy)),e}function eh(r,e,t,i,a){var n=r.length,o=De[e],s=St[e];if(n<2)return!1;r.sort(function(C,E){return C.rect[o]-E.rect[o]});for(var l=0,u,f=!1,p=0,c=0;c<n;c++){var v=r[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0);var d=Math.max(-u,0);p+=d,l=h[o]+h[s]}p>0&&a&&b(-p/n,0,n);var m=r[0],g=r[n-1],y,x;_(),y<0&&w(-y,.8),x<0&&w(x,.8),_(),S(y,x,1),S(x,y,-1),_(),y<0&&A(-y),x<0&&A(x);function _(){y=m.rect[o]-t,x=i-g.rect[o]-g.rect[s]}function S(C,E,D){if(C<0){var L=Math.min(E,-C);if(L>0){b(L*D,0,n);var M=L+C;M<0&&w(-M*D,1)}else w(-C*D,1)}}function b(C,E,D){C!==0&&(f=!0);for(var L=E;L<D;L++){var M=r[L],P=M.rect;P[o]+=C,M.label[o]+=C}}function w(C,E){for(var D=[],L=0,M=1;M<n;M++){var P=r[M-1].rect,O=Math.max(r[M].rect[o]-P[o]-P[s],0);D.push(O),L+=O}if(L){var R=Math.min(Math.abs(C)/L,E);if(C>0)for(var M=0;M<n-1;M++){var z=D[M]*R;b(z,0,M+1)}else for(var M=n-1;M>0;M--){var z=D[M-1]*R;b(-z,M,n)}}}function A(C){var E=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(n-1)),L=0;L<n-1;L++)if(E>0?b(D,0,L+1):b(-D,n-L-1,n),C-=D,C<=0)return}return f}function k2(r){for(var e=0;e<r.length;e++){var t=r[e],i=t.defaultAttr,a=t.labelLine;t.label.attr("ignore",i.ignore),a&&a.attr("ignore",i.labelGuideIgnore)}}function Ly(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 a=cn(r[i]);if(!a.label.ignore){for(var n=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(Sp(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(n),o&&t(o)):e.push(a)}}}function Sp(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:P2(r).intersect(P2(e),t,i)}function i9(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function a9(r,e){var t=r.label,i=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:i9(i&&i.shape.points)}}var z2=["align","verticalAlign","width","height","fontSize"],ai=new gi,nw=ue(),n9=ue();function Py(r,e,t){for(var i=0;i<t.length;i++){var a=t[i];e[a]!=null&&(r[a]=e[a])}}var Ry=["x","y","rotation"],o9=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,i,a,n){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();fe.applyTransform(f,f,u),u?ai.setLocalTransform(u):(ai.x=ai.y=ai.rotation=ai.originX=ai.originY=0,ai.scaleX=ai.scaleY=1),ai.rotation=br(ai.rotation);var p=a.__hostTarget,c;if(p){c=p.getBoundingRect().plain();var v=p.getComputedTransform();fe.applyTransform(c,c,v)}var h=c&&p.getTextGuideLine();this._labelList.push({label:a,labelLine:h,seriesModel:i,dataIndex:e,dataType:t,layoutOptionOrCb:n,layoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:h&&h.ignore,x:ai.x,y:ai.y,scaleX:ai.scaleX,scaleY:ai.scaleY,rotation:ai.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var i=e.__model,a=i.get("labelLayout");(ee(a)||Te(a).length)&&e.group.traverse(function(n){if(n.ignore)return!0;var o=n.getTextContent(),s=ce(n);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,i,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),i=e.getHeight();function a(x,_){return function(){tw(x,_)}}for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;ee(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(a9(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var p=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*p:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=$(f.x,t),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=$(f.y,i),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var h=nw(s);h.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*p:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<z2.length;d++){var m=z2[d];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),i=e.getHeight(),a=[];T(this._labelList,function(l){l.defaultAttr.ignore||a.push($v({},l))});var n=Ne(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ne(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});eh(n,0,0,t),eh(o,1,0,i);var s=Ne(a,function(l){return l.layoutOption.hideOverlap});k2(s),Ly(s)},r.prototype.processLabelsOverall=function(){var e=this;T(this._chartViewList,function(t){var i=t.__model,a=t.ignoreLabelLineUpdate,n=i.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=nw(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,i),n&&e._animateLabels(o,i)})})},r.prototype._updateLabelLine=function(e,t){var i=e.getTextContent(),a=ce(e),n=a.dataIndex;if(i&&n!=null){var o=t.getData(a.dataType),s=o.getItemModel(n),l={},u=o.getItemVisual(n,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var p=s.getModel("labelLine");xp(e,_p(s),l),tw(e,p)}},r.prototype._animateLabels=function(e,t){var i=e.getTextContent(),a=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!Ao(e))){var n=nw(i),o=n.oldLayout,s=ce(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},f=t.getData(s.dataType);if(o){i.attr(o);var c=e.prevStates;c&&(de(c,"select")>=0&&i.attr(n.oldLayoutSelect),de(c,"emphasis")>=0&&i.attr(n.oldLayoutEmphasis)),Pe(i,u,t,l)}else if(i.attr(u),!Io(i).valueAnimation){var p=J(i.style.opacity,1);i.style.opacity=0,Xe(i,{style:{opacity:p}},t,l)}if(n.oldLayout=u,i.states.select){var v=n.oldLayoutSelect={};Py(v,u,Ry),Py(v,i.states.select,Ry)}if(i.states.emphasis){var h=n.oldLayoutEmphasis={};Py(h,u,Ry),Py(h,i.states.emphasis,Ry)}Fm(i,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var n=n9(a),o=n.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),Pe(a,{shape:d},t)):(a.setShape(d),a.style.strokePercent=0,Xe(a,{style:{strokePercent:1}},t)),n.oldLayout=d}},r})(),V2=o9;var ow=ue();function th(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var a=ow(t).labelManager;a||(a=ow(t).labelManager=new V2),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var a=ow(t).labelManager;T(i.updatedSeries,function(n){a.addLabelsOfSeries(t.getViewOfSeriesModel(n))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var sw=Math.sin,lw=Math.cos,U2=Math.PI,Au=Math.PI*2,s9=180/U2,l9=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){this._add("C",e,t,i,a,n,o)},r.prototype.quadraticCurveTo=function(e,t,i,a){this._add("Q",e,t,i,a)},r.prototype.arc=function(e,t,i,a,n,o){this.ellipse(e,t,i,i,0,a,n,o)},r.prototype.ellipse=function(e,t,i,a,n,o,s,l){var u=s-o,f=!l,p=Math.abs(u),c=En(p-Au)||(f?u>=Au:-u>=Au),v=u>0?u%Au:u%Au+Au,h=!1;c?h=!0:En(p)?h=!1:h=v>=U2==!!f;var d=e+i*lw(o),m=t+a*sw(o);this._start&&this._add("M",d,m);var g=Math.round(n*s9);if(c){var y=1/this._p,x=(f?1:-1)*(Au-y);this._add("A",i,a,g,1,+f,e+i*lw(o+x),t+a*sw(o+x)),y>.01&&this._add("A",i,a,g,0,+f,d,m)}else{var _=e+i*lw(s),S=t+a*sw(s);this._add("A",i,a,g,+h,+f,_,S)}},r.prototype.rect=function(e,t,i,a){this._add("M",e,t),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,i,a,n,o,s,l,u){for(var f=[],p=this._p,c=1;c<arguments.length;c++){var v=arguments[c];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*p)/p)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),Oy=l9;var rh="none",u9=Math.round;function f9(r){var e=r.fill;return e!=null&&e!==rh}function p9(r){var e=r.stroke;return e!=null&&e!==rh}var uw=["lineCap","miterLimit","lineJoin"],c9=U(uw,function(r){return"stroke-"+r.toLowerCase()});function fw(r,e,t,i){var a=e.opacity==null?1:e.opacity;if(t instanceof pt){r("opacity",a);return}if(f9(e)){var n=os(e.fill);r("fill",n.color);var o=e.fillOpacity!=null?e.fillOpacity*n.opacity*a:n.opacity*a;(i||o<1)&&r("fill-opacity",o)}else r("fill",rh);if(p9(e)){var s=os(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,p=e.strokeFirst;if((i||u!==1)&&r("stroke-width",u),(i||p)&&r("paint-order",p?"stroke":"fill"),(i||f<1)&&r("stroke-opacity",f),e.lineDash){var c=Nv(t),v=c[0],h=c[1];v&&(h=u9(h||0),r("stroke-dasharray",v.join(",")),(h||i)&&r("stroke-dashoffset",h))}else i&&r("stroke-dasharray",rh);for(var d=0;d<uw.length;d++){var m=uw[d];if(i||e[m]!==If[m]){var g=e[m]||If[m];g&&r(c9[d],g)}}}else i&&r("stroke",rh)}var B2="http://www.w3.org/2000/svg",pw="http://www.w3.org/1999/xlink",F2="http://www.w3.org/2000/xmlns/",G2="http://www.w3.org/XML/1998/namespace",cw="ecmeta_";function Ny(r){return document.createElementNS(B2,r)}function jt(r,e,t,i,a){return{tag:r,attrs:t||{},children:i,text:a,key:e}}function v9(r,e){var t=[];if(e)for(var i in e){var a=e[i],n=i;a!==!1&&(a!==!0&&a!=null&&(n+='="'+a+'"'),t.push(n))}return"<"+r+" "+t.join(" ")+">"}function h9(r){return"</"+r+">"}function ih(r,e){e=e||{};var t=e.newline?`
16
+ `:"";function i(a){var n=a.children,o=a.tag,s=a.attrs,l=a.text;return v9(o,s)+(o!=="style"?Xt(l):l||"")+(n?""+t+U(n,function(u){return i(u)}).join(t)+t:"")+h9(o)}return i(r)}function H2(r,e,t){t=t||{};var i=t.newline?`
17
+ `:"",a=" {"+i,n=i+"}",o=U(Te(r),function(l){return l+a+U(Te(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+n}).join(i),s=U(Te(e),function(l){return"@keyframes "+l+a+U(Te(e[l]),function(u){return u+a+U(Te(e[l][u]),function(f){var p=e[l][u][f];return f==="d"&&(p='path("'+p+'")'),f+":"+p+";"}).join(i)+n}).join(i)+n}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function ah(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vw(r,e,t,i){return jt("svg","root",{width:r,height:e,xmlns:B2,"xmlns:xlink":pw,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var d9=0;function ky(){return d9++}var W2={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Eu="transform-origin";function m9(r,e,t){var i=k({},r.shape);k(i,e),r.buildPath(t,i);var a=new Oy;return a.reset(Ud(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function g9(r,e){var t=e.originX,i=e.originY;(t||i)&&(r[Eu]=t+"px "+i+"px")}var y9={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function X2(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function x9(r,e,t){var i=r.shape.paths,a={},n,o;if(T(i,function(l){var u=ah(t.zrId);u.animation=!0,nh(l,{},u,!0);var f=u.cssAnims,p=u.cssNodes,c=Te(f),v=c.length;if(v){o=c[v-1];var h=f[o];for(var d in h){var m=h[d];a[d]=a[d]||{d:""},a[d].d+=m.d||""}for(var g in p){var y=p[g].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){e.d=!1;var s=X2(a,t);return n.replace(o,s)}}function Y2(r){return W(r)?W2[r]?"cubic-bezier("+W2[r]+")":cf(r)?r:"":""}function nh(r,e,t,i){var a=r.animators,n=a.length,o=[];if(r instanceof Fn){var s=x9(r,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var f=a[u],p=[f.getMaxTime()/1e3+"s"],c=Y2(f.getClip().easing),v=f.getDelay();c?p.push(c):p.push("linear"),v&&p.push(v/1e3+"s"),f.getLoop()&&p.push("infinite");var h=p.join(" ");l[h]=l[h]||[h,[]],l[h][1].push(f)}function d(y){var x=y[1],_=x.length,S={},b={},w={},A="animation-timing-function";function C(pe,j,me){for(var ie=pe.getTracks(),he=pe.getMaxTime(),ze=0;ze<ie.length;ze++){var Se=ie[ze];if(Se.needsAnimate()){var Oe=Se.keyframes,ke=Se.propName;if(me&&(ke=me(ke)),ke)for(var Je=0;Je<Oe.length;Je++){var dt=Oe[Je],At=Math.round(dt.time/he*100)+"%",Et=Y2(dt.easing),Qe=dt.rawValue;(W(Qe)||Ce(Qe))&&(j[At]=j[At]||{},j[At][ke]=dt.rawValue,Et&&(j[At][A]=Et))}}}}for(var E=0;E<_;E++){var D=x[E],L=D.targetName;L?L==="shape"&&C(D,b):!i&&C(D,S)}for(var M in S){var P={};mi(P,r),k(P,S[M]);var O=Bd(P),R=S[M][A];w[M]=O?{transform:O}:{},g9(w[M],P),R&&(w[M][A]=R)}var z,B=!0;for(var M in b){w[M]=w[M]||{};var F=!z,R=b[M][A];F&&(z=new pr);var H=z.len();z.reset(),w[M].d=m9(r,b[M],z);var Y=z.len();if(!F&&H!==Y){B=!1;break}R&&(w[M][A]=R)}if(!B)for(var M in w)delete w[M].d;if(!i)for(var E=0;E<_;E++){var D=x[E],L=D.targetName;L==="style"&&C(D,w,function(ie){return y9[ie]})}for(var q=Te(w),oe=!0,X,E=1;E<q.length;E++){var G=q[E-1],ne=q[E];if(w[G][Eu]!==w[ne][Eu]){oe=!1;break}X=w[G][Eu]}if(oe&&X){for(var M in w)w[M][Eu]&&delete w[M][Eu];e[Eu]=X}if(Ne(q,function(pe){return Te(w[pe]).length>0}).length){var ve=X2(w,t);return ve+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+ky();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function K2(r,e,t){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};Z2(i,e,t,!0)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=a.fill;if(!n){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(n=Oc(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var i={cursor:"pointer"};n&&(i.fill=n),a.stroke&&(i.stroke=a.stroke),u&&(i["stroke-width"]=u),Z2(i,e,t,!0)}}function Z2(r,e,t,i){var a=JSON.stringify(r),n=t.cssStyleCache[a];n||(n=t.zrId+"-cls-"+ky(),t.cssStyleCache[a]=n,t.cssNodes["."+n+(i?":hover":"")]=r),e.class=e.class?e.class+" "+n:n}var oh=Math.round;function Q2(r){return r&&W(r.src)}function $2(r){return r&&ee(r.toDataURL)}function hw(r,e,t,i){fw(function(a,n){var o=a==="fill"||a==="stroke";o&&Vd(n)?yw(e,r,a,i):o&&Nc(n)?xw(t,r,a,i):r[a]=n,o&&i.ssr&&n==="none"&&(r["pointer-events"]="visible")},e,t,!1),A9(t,r,i)}function dw(r,e){var t=tI(e);t&&(t.each(function(i,a){i!=null&&(r[(cw+a).toLowerCase()]=i+"")}),e.isSilent()&&(r[cw+"silent"]="true"))}function q2(r){return En(r[0]-1)&&En(r[1])&&En(r[2])&&En(r[3]-1)}function _9(r){return En(r[4])&&En(r[5])}function mw(r,e,t){if(e&&!(_9(e)&&q2(e))){var i=t?10:1e4;r.transform=q2(e)?"translate("+oh(e[4]*i)/i+" "+oh(e[5]*i)/i+")":AM(e)}}function j2(r,e,t){for(var i=r.points,a=[],n=0;n<i.length;n++)a.push(oh(i[n][0]*t)/t),a.push(oh(i[n][1]*t)/t);e.points=a.join(" ")}function J2(r){return!r.smooth}function S9(r){var e=U(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,i,a){for(var n=0;n<e.length;n++){var o=e[n],s=t[o[0]];s!=null&&(i[o[1]]=oh(s*a)/a)}}}var b9={circle:[S9(["cx","cy","r"])],polyline:[j2,J2],polygon:[j2,J2]};function w9(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function ek(r,e){var t=r.style,i=r.shape,a=b9[r.type],n={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&Ud(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](i))&&!(o&&w9(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](i,n,f)}else{var p=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;p&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var v=c.getVersion(),h=r,d=h.__svgPathBuilder;(h.__svgPathVersion!==v||!d||l!==h.__svgPathStrokePercent)&&(d||(d=h.__svgPathBuilder=new Oy),d.reset(u),c.rebuildPath(d,l),d.generateStr(),h.__svgPathVersion=v,h.__svgPathStrokePercent=l),n.d=d.getStr()}return mw(n,r.transform),hw(n,t,r,e),dw(n,r),e.animation&&nh(r,n,e),e.emphasis&&K2(r,n,e),jt(s,r.id+"",n)}function T9(r,e){var t=r.style,i=t.image;if(i&&!W(i)&&(Q2(i)?i=i.src:$2(i)&&(i=i.toDataURL())),!!i){var a=t.x||0,n=t.y||0,o=t.width,s=t.height,l={href:i,width:o,height:s};return a&&(l.x=a),n&&(l.y=n),mw(l,r.transform),hw(l,t,r,e),dw(l,r),e.animation&&nh(r,l,e),jt("image",r.id+"",l)}}function C9(r,e){var t=r.style,i=t.text;if(i!=null&&(i+=""),!(!i||isNaN(t.x)||isNaN(t.y))){var a=t.font||fi,n=t.x||0,o=DM(t.y||0,Pl(a),t.textBaseline),s=EM[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(FS(t)){var u="",f=t.fontStyle,p=BS(t.fontSize);if(!parseFloat(p))return;var c=t.fontFamily||h_,v=t.fontWeight;u+="font-size:"+p+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return i.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),mw(l,r.transform),hw(l,t,r,e),dw(l,r),e.animation&&nh(r,l,e),jt("text",r.id+"",l,void 0,i)}}function gw(r,e){if(r instanceof ge)return ek(r,e);if(r instanceof pt)return T9(r,e);if(r instanceof _o)return C9(r,e)}function A9(r,e,t){var i=r.style;if(MM(i)){var a=IM(r),n=t.shadowCache,o=n[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,p=i.shadowOffsetY||0,c=i.shadowBlur,v=os(i.shadowColor),h=v.opacity,d=v.color,m=c/2/l,g=c/2/u,y=m+" "+g;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=jt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[jt("feDropShadow","",{dx:f/l,dy:p/u,stdDeviation:y,"flood-color":d,"flood-opacity":h})]),n[a]=o}e.filter=kc(o)}}function yw(r,e,t,i){var a=r[t],n,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(kd(a))n="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(zd(a))n="radialGradient",o.cx=J(a.x,.5),o.cy=J(a.y,.5),o.r=J(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var p=Nd(s[u].offset)*100+"%",c=s[u].color,v=os(c),h=v.color,d=v.opacity,m={offset:p};m["stop-color"]=h,d<1&&(m["stop-opacity"]=d),l.push(jt("stop",u+"",m))}var g=jt(n,"",o,l),y=ih(g),x=i.gradientCache,_=x[y];_||(_=i.zrId+"-g"+i.gradientIdx++,x[y]=_,o.id=_,i.defs[_]=jt(n,_,o,l)),e[t]=kc(_)}function xw(r,e,t,i){var a=r.style[t],n=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",p;if(F_(a)){var c=a.imageWidth,v=a.imageHeight,h=void 0,d=a.image;if(W(d)?h=d:Q2(d)?h=d.src:$2(d)&&(h=d.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";lt(c,m),lt(v,m)}else if(c==null||v==null){var g=function(E,D){if(E){var L=E.elm,M=c||D.width,P=v||D.height;E.tag==="pattern"&&(u?(P=1,M/=n.width):f&&(M=1,P/=n.height)),E.attrs.width=M,E.attrs.height=P,L&&(L.setAttribute("width",M),L.setAttribute("height",P))}},y=Jc(h,null,r,function(E){l||g(b,E),g(p,E)});y&&y.width&&y.height&&(c=c||y.width,v=v||y.height)}p=jt("image","img",{href:h,width:c,height:v}),o.width=c,o.height=v}else a.svgElement&&(p=ae(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(p){var x,_;l?x=_=1:u?(_=1,x=o.width/n.width):f?(x=1,_=o.height/n.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),_!=null&&!isNaN(_)&&(o.height=_);var S=Bd(a);S&&(o.patternTransform=S);var b=jt("pattern","",o,[p]),w=ih(b),A=i.patternCache,C=A[w];C||(C=i.zrId+"-p"+i.patternIdx++,A[w]=C,o.id=C,b=i.defs[C]=jt("pattern",C,o,[p])),e[t]=kc(C)}}function tk(r,e,t){var i=t.clipPathCache,a=t.defs,n=i[r.id];if(!n){n=t.zrId+"-c"+t.clipPathIdx++;var o={id:n};i[r.id]=n,a[n]=jt("clipPath",n,o,[ek(r,t)])}e["clip-path"]=kc(n)}function _w(r){return document.createTextNode(r)}function Os(r,e,t){r.insertBefore(e,t)}function Sw(r,e){r.removeChild(e)}function bw(r,e){r.appendChild(e)}function ww(r){return r.parentNode}function Tw(r){return r.nextSibling}function zy(r,e){r.textContent=e}var rk=58,D9=120,M9=jt("","");function Cw(r){return r===void 0}function eo(r){return r!==void 0}function I9(r,e,t){for(var i={},a=e;a<=t;++a){var n=r[a].key;n!==void 0&&(i[n]=a)}return i}function sh(r,e){var t=r.key===e.key,i=r.tag===e.tag;return i&&t}function lh(r){var e,t=r.children,i=r.tag;if(eo(i)){var a=r.elm=Ny(i);if(Uy(M9,r),V(t))for(e=0;e<t.length;++e){var n=t[e];n!=null&&bw(a,lh(n))}else eo(r.text)&&!se(r.text)&&bw(a,_w(r.text))}else r.elm=_w(r.text);return r.elm}function ik(r,e,t,i,a){for(;i<=a;++i){var n=t[i];n!=null&&Os(r,lh(n),e)}}function Vy(r,e,t,i){for(;t<=i;++t){var a=e[t];if(a!=null)if(eo(a.tag)){var n=ww(a.elm);Sw(n,a.elm)}else Sw(r,a.elm)}}function Uy(r,e){var t,i=e.elm,a=r&&r.attrs||{},n=e.attrs||{};if(a!==n){for(t in n){var o=n[t],s=a[t];s!==o&&(o===!0?i.setAttribute(t,""):o===!1?i.removeAttribute(t):t==="style"?i.style.cssText=o:t.charCodeAt(0)!==D9?i.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?i.setAttributeNS(F2,t,o):t.charCodeAt(3)===rk?i.setAttributeNS(G2,t,o):t.charCodeAt(5)===rk?i.setAttributeNS(pw,t,o):i.setAttribute(t,o))}for(t in a)t in n||i.removeAttribute(t)}}function L9(r,e,t){for(var i=0,a=0,n=e.length-1,o=e[0],s=e[n],l=t.length-1,u=t[0],f=t[l],p,c,v,h;i<=n&&a<=l;)o==null?o=e[++i]:s==null?s=e[--n]:u==null?u=t[++a]:f==null?f=t[--l]:sh(o,u)?(bp(o,u),o=e[++i],u=t[++a]):sh(s,f)?(bp(s,f),s=e[--n],f=t[--l]):sh(o,f)?(bp(o,f),Os(r,o.elm,Tw(s.elm)),o=e[++i],f=t[--l]):sh(s,u)?(bp(s,u),Os(r,s.elm,o.elm),s=e[--n],u=t[++a]):(Cw(p)&&(p=I9(e,i,n)),c=p[u.key],Cw(c)?Os(r,lh(u),o.elm):(v=e[c],v.tag!==u.tag?Os(r,lh(u),o.elm):(bp(v,u),e[c]=void 0,Os(r,v.elm,o.elm))),u=t[++a]);(i<=n||a<=l)&&(i>n?(h=t[l+1]==null?null:t[l+1].elm,ik(r,h,t,a,l)):Vy(r,e,i,n))}function bp(r,e){var t=e.elm=r.elm,i=r.children,a=e.children;r!==e&&(Uy(r,e),Cw(e.text)?eo(i)&&eo(a)?i!==a&&L9(t,i,a):eo(a)?(eo(r.text)&&zy(t,""),ik(t,null,a,0,a.length-1)):eo(i)?Vy(t,i,0,i.length-1):eo(r.text)&&zy(t,""):r.text!==e.text&&(eo(i)&&Vy(t,i,0,i.length-1),zy(t,e.text)))}function Aw(r,e){if(sh(r,e))bp(r,e);else{var t=r.elm,i=ww(t);lh(e),i!==null&&(Os(i,e.elm,Tw(t)),Vy(i,[r],0,0))}return e}var P9=0,R9=(function(){function r(e,t,i){if(this.type="svg",this.configLayer=O9("configLayer"),this.storage=t,this._opts=i=k({},i),this.root=e,this._id="zr"+P9++,this._oldVNode=vw(i.width,i.height),e&&!i.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Ny("svg");Uy(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Aw(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return gw(e,ah(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=ah(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis,n.ssr=this._opts.ssr;var o=[],s=this._bgVNode=N9(i,a,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=jt("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=U(Te(n.defs),function(c){return n.defs[c]});if(u.length&&o.push(jt("defs","defs",{},u)),e.animation){var f=H2(n.cssNodes,n.cssAnims,{newline:!0});if(f){var p=jt("style","stl",{},[],f);o.push(p)}}return vw(i,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},ih(this.renderToVNode({animation:J(e.cssAnimation,!0),emphasis:J(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:J(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,i){for(var a=e.length,n=[],o=0,s,l,u=0,f=0;f<a;f++){var p=e[f];if(!p.invisible){var c=p.__clipPaths,v=c&&c.length||0,h=l&&l.length||0,d=void 0;for(d=Math.max(v-1,h-1);d>=0&&!(c&&l&&c[d]===l[d]);d--);for(var m=h-1;m>d;m--)o--,s=n[o-1];for(var g=d+1;g<v;g++){var y={};tk(c[g],y,t);var x=jt("g","clip-g-"+u++,y,[]);(s?s.children:i).push(x),n[o++]=x,s=x}l=c;var _=gw(p,t);_&&(s?s.children:i).push(_)}}},r.prototype.resize=function(e,t){var i=this._opts,a=this.root,n=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),a&&n&&(n.style.display="none",e=Es(a,0,i),t=Es(a,1,i),n.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,n){var o=n.style;o.width=e+"px",o.height=t+"px"}if(Nc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=LM(t),t&&i+"base64,"+t):i+"charset=UTF-8,"+encodeURIComponent(t)},r})();function O9(r){return function(){}}function N9(r,e,t,i){var a;if(t&&t!=="none")if(a=jt("rect","bg",{width:r,height:e,x:"0",y:"0"}),Vd(t))yw({fill:t},a.attrs,"fill",i);else if(Nc(t))xw({style:{fill:t},dirty:nt,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",i);else{var n=os(t),o=n.color,s=n.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}var ak=R9;function Ew(r){r.registerPainter("svg",ak)}function nk(r,e,t){var i=Nt.createCanvas(),a=e.getWidth(),n=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=n+"px",i.setAttribute("data-zr-dom-id",r)),i.width=a*t,i.height=n*t,i}function By(r){return!r.__cursors.get(nb)}function ok(r){var e=r.__cursors.get(nb);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var k9=(function(r){I(e,r);function e(t,i,a){var n=r.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.zlevel=0,n.zlevel2=zf,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__prevIdx={startIdx:0,endIdx:0};var o;a=a||Dl,typeof t=="string"?o=nk(t,i,a):se(t)&&(o=t,t=o.id),n.id=t,n.dom=o;var s=o.style;return s&&(cd(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),n.painter=i,n.dpr=a,n}return e.prototype.afterBrush=function(){this.__prevIdx=ok(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=nk("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,a,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new fe(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var S=new fe(0,0,0,0);S.copy(_),o.push(S)}else{for(var b=!1,w=1/0,A=0,C=0;C<o.length;++C){var E=o[C];if(E.intersect(_)){var D=new fe(0,0,0,0);D.copy(E),D.union(_),o[C]=D,b=!0;break}else if(l){u.copy(_),u.union(E);var L=_.width*_.height,M=E.width*E.height,P=u.width*u.height,O=P-L-M;O<w&&(w=O,A=C)}}if(l&&(o[A].union(_),b=!0),!b){var S=new fe(0,0,0,0);S.copy(_),o.push(S)}l||(l=o.length>=s)}}for(var p=ok(this),c=p.startIdx;c<p.endIdx;++c){var v=t[c];if(v){var h=v.shouldBePainted(a,n,!0,!0),d=v.__isRendered&&(v.__dirty&$t||!h)?v.getPrevPaintRect():null;d&&f(d);var m=h&&(v.__dirty&$t||!v.__isRendered)?v.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,c=g.startIdx;c<g.endIdx;++c){var v=i[c],h=v&&v.shouldBePainted(a,n,!0,!0);if(v&&(!h||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var y;do{y=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var x=c+1;x<o.length;)o[c].intersect(o[x])?(y=!0,o[c].union(o[x]),o.splice(x,1)):x++;c++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var a=this.dpr,n=this.dom,o=n.style,s=this.domBack;o&&(o.width=t+"px",o.height=i+"px"),n.width=t*a,n.height=i*a,s&&(s.width=t*a,s.height=i*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,i,a){var n=this.dom,o=this.ctx,s=n.width,l=n.height;i=i||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,p=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/p,l/p));var v=this.domBack;function h(d,m,g,y){if(o.clearRect(d,m,g,y),i&&i!=="transparent"){var x=void 0;if(Qo(i)){var _=i.global||i.__width===g&&i.__height===y;x=_&&i.__canvasGradient||Ov(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=x,i.__width=g,i.__height=y}else BD(i)&&(i.scaleX=i.scaleX||p,i.scaleY=i.scaleY||p,x=Kg(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=x||i,o.fillRect(d,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,d,m,g,y),o.restore())}!a||u?h(0,0,s,l):a.length&&T(a,function(d){h(d.x*p,d.y*p,d.width*p,d.height*p)})},e})(Qt),Dw=k9;var sk=1e5,Du=314159,Mw=void 0,z9=1,Iw=2;function V9(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function U9(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 lk(r,e,t,i){var a=new Dw(r,e,e.dpr);return a.zlevel=t,a.zlevel2=i,a.__builtin__=!0,uk(a),a}function uk(r){r.__cursorStack=[],r.__cursors=Z()}function B9(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function F9(r,e){var t=r.__cursors,i=+e;return t.get(i)||(r.__cursorStack.push(i),t.set(i,B9({key:i})))}function Fy(r,e){for(var t=r.__cursorStack,i=0;i<t.length;i++)e(r.__cursors.get(t[i]))}function Lw(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function Fr(r,e,t){for(var i=r.layerStack,a=0;a<i.length;a++){var n=i[a].zl,o=i[a].zl2,s=r.layers[n][o];(!t||(!(t&uh)||s.__builtin__)&&(!(t&Pw)||!s.__builtin__)&&(!(t&fk)||s!==r.hoverlayer))&&e(s,n,o,a)}}var uh=1,Pw=2,fk=4,Gy=uh|fk,G9=(function(){function r(e,t,i,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var n=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=k({},i||{}),this.dpr=i.devicePixelRatio||Dl,this._singleCanvas=n,this.root=e;var o=e.style;if(o&&(cd(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],n){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 p=lk(l,this,Du,zf);p.initContext(),this._insertLayer(p,Du,zf,!0),this._domRoot=e}else{this._width=Es(e,0,i),this._height=Es(e,1,i);var s=this._domRoot=U9(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&&!se(e)?t={paintAll:!!e}:t=e||{};var i=J(t.refresh,!0),a=J(t.refreshHover,!1);if(a&&(this._hoverLayerDirty=Iw),!i)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var n=this.storage.getDisplayList(!0);this._updateLayerStatus(n,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(n,o,this._redrawId);var s=this._backgroundColor;return Fr(this._i,function(l,u,f,p){l.refresh&&l.refresh(p===0?s:null)},Pw),this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=Mw,i!==Mw&&(!t&&i===Iw&&(t=this._i.hoverlayer=this._ensureLayer(sk)),!!t)){t.clear();for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},n,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){n||(n=t.ctx,n.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Ds(n,l,a),u&&(l.style=f)}}n&&(gu(n,a),n.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(sk)},r.prototype.paintOne=function(e,t){qg(e,t)},r.prototype._paintList=function(e,t,i){if(this._redrawId===i){var a=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),a)Fr(this._i,function(o){o.afterBrush&&o.afterBrush()},Gy),this._paintHoverList(e);else{var n=this;Ic(function(){n._paintList(e,t,i)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(Du).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),Fr(this._i,function(a){a.virtual&&e.drawImage(a.dom,0,0,t,i)},uh)},r.prototype._doPaintList=function(e,t){var i=this,a=!0;return Fr(this._i,function(n){var o=!1;if(Fy(n,function(p){(p.drawIdx<p.endIdx||p.notClearIdx>=0)&&(o=!0)}),!(!o&&!n.__dirty)){var s=i._opts.useDirtyRect&&!By(n)?n.createRepaintRects(e,t,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(n.__dirty){u=!1,n.__dirty=!1;var f=n.zlevel===l.zl&&n.zlevel2===l.zl2?i._backgroundColor:null;n.clear(!1,f,s)}Fy(n,function(p){var c=i._paintPerCursor(n,p,e,s,u);a=a&&c})}},Gy),Ue.wxa&&Fr(this._i,function(n){n&&n.ctx&&n.ctx.draw&&n.ctx.draw()}),a},r.prototype._paintPerCursor=function(e,t,i,a,n){var o=e.ctx;if(a)if(!a.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l<a.length;++l){var u=a[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,n),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,i,null,n),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,i,a,n){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:n}},s=e.ctx,l=By(e),u=l&&Nt.getTime(),f=t.drawIdx,p=t.notClearIdx,c=p>=0?Math.min(p,f):f;c<t.endIdx;c++){var v=i[c];if(!(c<f&&!v.notClear)){if(v.__inHover&&(this._hoverLayerDirty=Iw),a!=null){var h=v.getPaintRect();h&&h.intersect(a)&&(Ds(s,v,o),v.setPrevPaintRect(h))}else Ds(s,v,o);if(l){var d=Nt.getTime()-u;if(d>15){c++;break}}}}gu(s,o),t.drawIdx=Math.max(c,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,i){t=t||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(e=Du,t=0);var n=Lw(this._i,e)[t];return n||(n=lk("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&_e(n,this._layerConfig[e],!0),(i||a&&e!==Du)&&(n.virtual=!0),this._insertLayer(n,e,t,!1),n.initContext()),n},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,i,a){var n=this._i,o=n.layers,s=n.layerStack,l=this._domRoot,u=null;if(!(o[t]&&o[t][i])&&V9(e)){for(var f=s.length,p=0;p<f&&(s[p].zl<t||s[p].zl===t&&s[p].zl2<i);)p++;if(p>0&&(u=Lw(n,s[p-1].zl)[s[p-1].zl2]),s.splice(p,0,{zl:t,zl2:i}),Lw(n,t)[i]=e,!a&&!e.virtual)if(u){var c=u.dom;c.nextSibling?l.insertBefore(e.dom,c.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 Fr(this._i,function(i,a){e.call(t,i,a)})},r.prototype.eachBuiltinLayer=function(e,t){return Fr(this._i,function(i,a){e.call(t,i,a)},uh)},r.prototype.eachOtherLayer=function(e,t){return Fr(this._i,function(i,a){e.call(t,i,a)},Pw)},r.prototype.getLayers=function(){var e={};return Fr(this._i,function(t,i,a){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var i=this;if(i._singleCanvas)for(var a=1;a<e.length;a++){var n=e[a];if(n.zlevel!==e[a-1].zlevel||n.incremental){i._needsManuallyCompositing=!0;break}}Fr(i._i,function(m){m.__dirty=!1,Fy(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},Gy);for(var o,s=null,l=null,u=!1,f=0,p=e.length;f<p;f++){var n=e[f],c=n.zlevel,v=n.incremental,h=void 0;if(o!==c&&(o=c,u=!1),v?(u=!0,h=fP):h=u?uP:zf,(!s||c!==s.zlevel||h!==s.zlevel2)&&(s=i._ensureLayer(c,h),l=null,!s.__builtin__)){hl("ZLevel "+c+" has been used by unknown layer "+s.id);continue}if((!l||v!==l.key)&&(l=F9(s,v),!l.used))if(l.used=!0,!t&&l.first===n.id){var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}else s.__dirty=!0,l.first=n.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,n.__dirty&$t&&!n.__inHover&&((!v||!n.notClear&&f<l.drawIdx)&&(s.__dirty=!0),v&&n.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Fr(i._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,x=g.length-1;x>=0;x--){var _=y.get(g[x]);if(!_.used)m.__dirty=!0,y.removeKey(g[x]),g.splice(x,1);else{var S=_.endIdxNew;(By(m)?S<_.drawIdx:S!==_.endIdx||!S||e[S-1].id!==_.last)&&(m.__dirty=!0),_.endIdx=_.endIdxNew,_.last=S?e[S-1].id:NaN}}m.__dirty&&(Fy(m,function(b){b.drawIdx=b.startIdx}),i._hoverLayerDirty===Mw&&(i._hoverLayerDirty=z9))},Gy)},r.prototype.clear=function(){return Fr(this._i,function(e){e.clear(),uk(e)},uh),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Fr(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?_e(i[e],t,!0):i[e]=t,Fr(this._i,function(a,n){_e(a,i[n],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,i=this._i.layers,a=t.length-1;a>=0;a--){var n=t[a];if(n.zl===e){var o=i[e][n.zl2];if(o.__builtin__)continue;if(t.splice(a,1),i[e][n.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 a=this._opts,n=this.root;e!=null&&(a.width=e),t!=null&&(a.height=t),e=Es(n,0,a),t=Es(n,1,a),i.style.display="",(this._width!==e||t!==this._height)&&(i.style.width=e+"px",i.style.height=t+"px",Fr(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(Du).resize(e,t)}return this},r.prototype.clearLayer=function(e){T(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[Du][0].dom;var t=new Dw("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 a=t.dom.width,n=t.dom.height;Fr(this._i,function(p){p.__builtin__?i.drawImage(p.dom,0,0,a,n):p.renderToCanvas&&(i.save(),p.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];Ds(i,f,o)}gu(i,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})(),pk=G9;function fh(r){r.registerPainter("canvas",pk)}var H9=(function(r){I(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 ur(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new te,a=tt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(a),a.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=t.itemHeight*.8,u=tt(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=N.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})(Fe),ck=H9;function vn(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var a=Ro(r,e,t[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o<t.length;o++)n.push(Ro(r,e,t[o]));return n.join(" ")}}function Hy(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!V(e))return e+"";for(var i=[],a=0;a<t.length;a++){var n=r.getDimensionIndex(t[a]);n>=0&&i.push(e[n])}return i.join(" ")}var W9=(function(r){I(e,r);function e(t,i,a,n){var o=r.call(this)||this;return o.updateData(t,i,a,n),o}return e.prototype._createSymbol=function(t,i,a,n,o,s){this.removeAll();var l=tt(t,-1,-1,2,2,null,s);l.attr({z2:J(o,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),l.drift=Y9,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(){Or(this.childAt(0))},e.prototype.downplay=function(){Nr(this.childAt(0))},e.prototype.setZ=function(t,i){var a=this.childAt(0);a.zlevel=t,a.z=i},e.prototype.setDraggable=function(t,i){var a=this.childAt(0);a.draggable=t,a.cursor=!i&&t?"move":a.cursor},e.prototype.updateData=function(t,i,a,n){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,p=n&&n.disableAnimation;if(f){var c=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,u,c)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};p?v.attr(h):Pe(v,h,s,i),Ht(v)}if(this._updateCommon(t,i,l,a,n),f){var v=this.childAt(0);if(!p){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Xe(v,h,s,i)}}p&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,a,n,o){var s=this.childAt(0),l=t.hostModel,u,f,p,c,v,h,d,m,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,p=n.selectItemStyle,c=n.focus,v=n.blurScope,d=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,h=n.emphasisDisabled),!n||t.hasItemOption){var y=n&&n.itemModel?n.itemModel:t.getItemModel(i),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),p=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=x.get("focus"),v=x.get("blurScope"),h=x.get("disabled"),d=at(y),m=x.getShallow("scale"),g=y.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var S=Zi(t.getItemVisual(i,"symbolOffset"),a);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=t.getItemVisual(i,"style"),w=b.fill;if(s instanceof pt){var A=s.style;s.useStyle(k({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(k({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(i,"liftZ"),E=this._z2;C!=null?E==null&&(this._z2=s.z2,s.z2+=C):E!=null&&(s.z2=E,this._z2=null);var D=o&&o.useNameLabel;ot(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:L,inheritColor:w,defaultOpacity:b.opacity});function L(O){return D?t.getName(O):vn(t,O)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=p,s.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),He(this,c,v,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,a){var n=this.childAt(0),o=ce(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&da(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();da(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return an(t.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(t,i){return t.getItemVisual(i,"z2")},e})(te);function Y9(r,e){this.parent.drift(r,e)}var Vo=W9;function Wy(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 vk(r){return r!=null&&!se(r)&&(r={isIgnore:r}),r||{}}function hk(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:at(e),cursorStyle:e.get("cursor")}}function dk(r,e,t,i,a,n,o){var s=new r(e,t,i,a);return s.setPosition(n),e.setItemGraphicEl(t,s),o.add(s),s}var X9=(function(){function r(e){this.group=new te,this._SymbolCtor=e||Vo}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=vk(t);var i=this.group,a=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=hk(e),u={disableAnimation:s},f=t.getSymbolPoint||function(p){return e.getItemLayout(p)};n||i.removeAll(),e.diff(n).add(function(p){var c=f(p);Wy(e,c,p,t)&&dk(o,e,p,l,u,c,i)}).update(function(p,c){var v=n.getItemGraphicEl(c),h=f(p);if(!Wy(e,h,p,t)){i.remove(v);return}var d=e.getItemVisual(p,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==d)i.remove(v),v=new o(e,p,l,u),v.setPosition(h);else{v.updateData(e,p,l,u);var g={x:h[0],y:h[1]};s?v.attr(g):Pe(v,g,a)}i.add(v),e.setItemGraphicEl(p,v)}).remove(function(p){var c=n.getItemGraphicEl(p);c&&c.fadeOut(function(){i.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var i=this,a=t.getStore(),n=0,o=a.count();n<o;n++){var s=t.getItemGraphicEl(n),l=i._getSymbolPoint(n);Wy(t,l,n,e)?(s=s||dk(i._SymbolCtor,t,n,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),t.setItemGraphicEl(n,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=hk(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i,a){this._progressiveEls=[],a=vk(a);function n(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=ja)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(Wy(t,s,o,a)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(n),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){Jr(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},i.hostModel)}):t.removeAll()},r})(),to=X9;function Yy(r,e,t){var i=r.getBaseAxis(),a=r.getOtherAxis(i),n=Z9(a,t),o=i.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,p=U(r.dimensions,function(h){return e.mapDimension(h)}),c=!1,v=e.getCalculationInfo("stackResultDimension");return ti(e,p[0])&&(c=!0,p[0]=v),ti(e,p[1])&&(c=!0,p[1]=v),{dataDimsForPoint:p,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Z9(r,e){var t=0,i=r.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:Ce(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function Xy(r,e,t,i){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=t.get(r.baseDim,i),o[1-n]=a,e.dataToPoint(o)}function Oi(r,e){return!isFinite(r)||!isFinite(e)}var K9=typeof Float32Array!==gs?Float32Array:void 0,mk=typeof Float64Array!==gs?Float64Array:void 0;function ni(r){return Zy({ctor:K9},r).arr}function Zy(r,e){var t=r.arr,i=r.ctor;if(e>ps&&(e=ps),!t||r.typed&&t.length<e){var a=void 0;if(i)try{a=new i(e),r.typed=!0,t&&a.set(t)}catch{}if(!a&&(a=[],r.typed=!1,t))for(var n=0,o=t.length;n<o;n++)a[n]=t[n];r.arr=a}return r}function q9(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,a){t.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function Rw(r,e,t,i,a,n,o,s){for(var l=q9(r,e),u=[],f=[],p=[],c=[],v=[],h=[],d=[],m=Yy(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],S=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=_.idx*2,w=_.idx1*2;var A=g[b],C=g[b+1],E=y[w],D=y[w+1];(isNaN(A)||isNaN(C))&&(A=E,C=D),u.push(A,C),f.push(E,D),p.push(t[b],t[b+1]),c.push(i[w],i[w+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var L=_.idx,M=m.dataDimsForPoint,P=a.dataToPoint([e.get(M[0],L),e.get(M[1],L)]);w=L*2,u.push(P[0],P[1]),f.push(y[w],y[w+1]);var O=Xy(m,a,e,L);p.push(O[0],O[1]),c.push(i[w],i[w+1]),d.push(e.getRawIndex(L));break;case"-":S=!1}S&&(v.push(_),h.push(h.length))}h.sort(function(G,ne){return d[G]-d[ne]});for(var R=u.length,z=ni(R),B=ni(R),F=ni(R),H=ni(R),Y=[],x=0;x<h.length;x++){var q=h[x],oe=x*2,X=q*2;z[oe]=u[X],z[oe+1]=u[X+1],B[oe]=f[X],B[oe+1]=f[X+1],F[oe]=p[X],F[oe+1]=p[X+1],H[oe]=c[X],H[oe+1]=c[X+1],Y[x]=v[q]}return{current:z,next:B,stackedOnCurrent:F,stackedOnNext:H,status:Y}}var Ns=Math.min,ks=Math.max;function Ow(r,e,t,i,a,n,o,s,l){for(var u,f,p,c,v,h,d=t,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=a||d<0)break;if(Oi(g,y)){if(l){d+=n;continue}break}if(d===t)r[n>0?"moveTo":"lineTo"](g,y),p=g,c=y;else{var x=g-u,_=y-f;if(x*x+_*_<.5){d+=n;continue}if(o>0){for(var S=d+n,b=e[S*2],w=e[S*2+1];b===g&&w===y&&m<i;)m++,S+=n,d+=n,b=e[S*2],w=e[S*2+1],g=e[d*2],y=e[d*2+1],x=g-u,_=y-f;var A=m+1;if(l)for(;Oi(b,w)&&A<i;)A++,S+=n,b=e[S*2],w=e[S*2+1];var C=.5,E=0,D=0,L=void 0,M=void 0;if(A>=i||Oi(b,w))v=g,h=y;else{E=b-u,D=w-f;var P=g-u,O=b-g,R=y-f,z=w-y,B=void 0,F=void 0;if(s==="x"){B=Math.abs(P),F=Math.abs(O);var H=E>0?1:-1;v=g-H*B*o,h=y,L=g+H*F*o,M=y}else if(s==="y"){B=Math.abs(R),F=Math.abs(z);var Y=D>0?1:-1;v=g,h=y-Y*B*o,L=g,M=y+Y*F*o}else B=Math.sqrt(P*P+R*R),F=Math.sqrt(O*O+z*z),C=F/(F+B),v=g-E*o*(1-C),h=y-D*o*(1-C),L=g+E*o*C,M=y+D*o*C,L=Ns(L,ks(b,g)),M=Ns(M,ks(w,y)),L=ks(L,Ns(b,g)),M=ks(M,Ns(w,y)),E=L-g,D=M-y,v=g-E*B/F,h=y-D*B/F,v=Ns(v,ks(u,g)),h=Ns(h,ks(f,y)),v=ks(v,Ns(u,g)),h=ks(h,Ns(f,y)),E=g-v,D=y-h,L=g+E*F/B,M=y+D*F/B}r.bezierCurveTo(p,c,v,h,g,y),p=L,c=M}else r.lineTo(g,y)}u=g,f=y,d+=n}return m}var gk=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),yk=(function(r){I(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:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new gk},e.prototype.buildPath=function(t,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&Oi(a[o*2-2],a[o*2-1]);o--);for(;n<o&&Oi(a[n*2],a[n*2+1]);n++);}for(;n<o;)n+=Ow(t,a,n,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 a=this.path,n=a.data,o=pr.CMD,s,l,u=i==="x",f=[],p=0;p<n.length;){var c=n[p++],v=void 0,h=void 0,d=void 0,m=void 0,g=void 0,y=void 0,x=void 0;switch(c){case o.M:s=n[p++],l=n[p++];break;case o.L:if(v=n[p++],h=n[p++],x=u?(t-s)/(v-s):(t-l)/(h-l),x<=1&&x>=0){var _=u?(h-l)*x+l:(v-s)*x+s;return u?[t,_]:[_,t]}s=v,l=h;break;case o.C:v=n[p++],h=n[p++],d=n[p++],m=n[p++],g=n[p++],y=n[p++];var S=u?Tl(s,v,d,g,t,f):Tl(l,h,m,y,t,f);if(S>0)for(var b=0;b<S;b++){var w=f[b];if(w<=1&&w>=0){var _=u?Vt(l,h,m,y,w):Vt(s,v,d,g,w);return u?[t,_]:[_,t]}}s=g,l=y;break}}},e})(ge);var j9=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(gk),Ky=(function(r){I(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 j9},e.prototype.buildPath=function(t,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Oi(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Oi(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=Ow(t,a,o,s,s,1,i.smooth,l,i.connectNulls);Ow(t,n,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,t.closePath()}},e})(ge);function Nw(r,e,t,i,a){var n=r.getArea(),o=n.x,s=n.y,l=n.width,u=n.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 p=new xe({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),v=c.isHorizontal(),h=c.inverse;v?(h&&(p.shape.x+=l),p.shape.width=0):(h||(p.shape.y+=u),p.shape.height=0);var d=ee(a)?function(m){a(m,p)}:null;Xe(p,{shape:{width:l,height:u,x:o,y:s}},t,null,i,d)}return p}function kw(r,e,t){var i=r.getArea(),a=Be(i.r0,1),n=Be(i.r,1),o=new Dt({shape:{cx:Be(r.cx,1),cy:Be(r.cy,1),r0:a,r:n,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=a,Xe(o,{shape:{endAngle:i.endAngle,r:n}},t)}return o}function qi(r,e,t,i,a){if(r){if(r.type==="polar")return kw(r,e,t);if(r.type==="cartesian2d")return Nw(r,e,t,i,a)}else return null;return null}var zs=0,Vs=1,Us=2;function Bs(r,e,t){r?e.setClipPath(t):e.removeClipPath()}function qy(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Da(r,e){return r.type===e}function zw(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}function jy(r,e,t,i){return r&&(r.legacy||r.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||le(r,"text")))}function Jy(r,e,t){var i=r,a,n,o;if(e==="text")o=i;else{o={},le(i,"text")&&(o.text=i.text),le(i,"rich")&&(o.rich=i.rich),le(i,"textFill")&&(o.fill=i.textFill),le(i,"textStroke")&&(o.stroke=i.textStroke),le(i,"fontFamily")&&(o.fontFamily=i.fontFamily),le(i,"fontSize")&&(o.fontSize=i.fontSize),le(i,"fontStyle")&&(o.fontStyle=i.fontStyle),le(i,"fontWeight")&&(o.fontWeight=i.fontWeight),n={type:"text",style:o,silent:!0},a={};var s=le(i,"textPosition");t?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),le(i,"textPosition")&&(a.position=i.textPosition),le(i,"textOffset")&&(a.offset=i.textOffset),le(i,"textRotation")&&(a.rotation=i.textRotation),le(i,"textDistance")&&(a.distance=i.textDistance)}return xk(o,r),T(o.rich,function(l){xk(l,l)}),{textConfig:a,textContent:n}}function xk(r,e){e&&(e.font=e.textFont||e.font,le(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),le(e,"textAlign")&&(r.align=e.textAlign),le(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),le(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),le(e,"textWidth")&&(r.width=e.textWidth),le(e,"textHeight")&&(r.height=e.textHeight),le(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),le(e,"textPadding")&&(r.padding=e.textPadding),le(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),le(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),le(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),le(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),le(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),le(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),le(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Vw(r,e,t){var i=r;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var a=i.textPosition.indexOf("inside")>=0,n=r.fill||N.color.neutral99;_k(i,e);var o=i.textFill==null;return a?o&&(i.textFill=t.insideFill||N.color.neutral00,!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=n),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(o&&(i.textFill=r.fill||t.outsideFill||N.color.neutral00),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,T(e.rich,function(s){_k(s,s)}),i}function _k(r,e){e&&(le(e,"fill")&&(r.textFill=e.fill),le(e,"stroke")&&(r.textStroke=e.fill),le(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),le(e,"font")&&(r.font=e.font),le(e,"fontStyle")&&(r.fontStyle=e.fontStyle),le(e,"fontWeight")&&(r.fontWeight=e.fontWeight),le(e,"fontSize")&&(r.fontSize=e.fontSize),le(e,"fontFamily")&&(r.fontFamily=e.fontFamily),le(e,"align")&&(r.textAlign=e.align),le(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),le(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),le(e,"width")&&(r.textWidth=e.width),le(e,"height")&&(r.textHeight=e.height),le(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),le(e,"padding")&&(r.textPadding=e.padding),le(e,"borderColor")&&(r.textBorderColor=e.borderColor),le(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),le(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),le(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),le(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),le(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),le(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),le(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),le(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),le(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),le(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function Sk(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function bk(r){for(var e=Ot(),t=Ot(),i=0;i<r.length;){var a=r[i++],n=r[i++];Oi(a,n)||(jc(e,a),jc(t,n))}return[e,t]}function wk(r,e){var t=bk(r),i=t[0],a=t[1],n=bk(e),o=n[0],s=n[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(a[1]-s[1]))}function Tk(r){return Ce(r)?r:r?.5:0}function J9(r,e,t){if(t.valueDim==null)return[];for(var i=e.count(),a=ni(i*2),n=0;n<i;n++){var o=Xy(t,r,e,n);a[n*2]=o[0],a[n*2+1]=o[1]}return a}function Fs(r,e,t,i,a){var n=t.getBaseAxis(),o=n.dim==="x"||n.dim==="radius"?0:1,s=[],l=0,u=[],f=[],p=[],c=[];if(a){for(l=0;l<r.length;l+=2){var v=e||r;Oi(v[l],v[l+1])||c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(p[0]=r[l+2],p[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),i){case"end":u[o]=p[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var h=(f[o]+p[o])/2,d=[];u[o]=d[o]=h,u[1-o]=f[1-o],d[1-o]=p[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=p[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function Q9(r,e){var t=[],i=r.length,a,n;function o(f,p,c){var v=f.coord,h=(c-v)/(p.coord-v),d=TM(h,[f.color,p.color]);return{coord:c,color:d}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){n?t.push(o(n,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),n=l}return t}function $9(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){n=i[o];break}}if(n){var l=e.getAxis(a),u=U(n.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,p=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),p.reverse());var c=Q9(u,a==="x"?t.getWidth():t.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?p[1]?p[1]:u[f-1].color:p[0]?p[0]:u[0].color;var h=10,d=c[0].coord-h,m=c[v-1].coord+h,g=m-d;if(g<.001)return"transparent";T(c,function(x){x.offset=(x.coord-d)/g}),c.push({offset:v?c[v-1].offset:.5,color:p[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:p[0]||"transparent"});var y=new Ei(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=m,y}}}function eK(r,e,t){var i=r.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=t.getAxesByScale("ordinal")[0];if(n&&!(a&&tK(n,e))){var o=e.mapDimension(n.dim),s={};return T(n.getViewLabels(),function(l){l.tick.offInterval||(s[sn(n.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function tK(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var a=e.count(),n=Math.max(1,Math.round(a/5)),o=0;o<a;o+=n)if(Vo.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function rK(r){for(var e=r.length/2;e>0&&Oi(r[e*2-2],r[e*2-1]);e--);return e-1}function Ck(r,e){return[r[e*2],r[e*2+1]]}function iK(r,e,t){for(var i=r.length/2,a=t==="x"?0:1,n,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+a],!Oi(o,r[u*2+1-a])){if(u===0){n=o;continue}if(n<=e&&o>=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function Ak(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<sr.length;e++)if(r.get([sr[e],"endLabel","show"]))return!0;return!1}function Uw(r,e,t,i){if(Da(e,"cartesian2d")){var a=i.getModel("endLabel"),n=a.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=Ak(i)?function(v,h){r._endLabelOnDuring(v,h,o,s,n,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Nw(e,t,i,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var p=f.shape,c=Math.max(p.width,p.height);u?(p.y-=c,p.height+=c*2):(p.x-=c,p.width+=c*2)}return l&&l(1,f),f}else return kw(e,t,i)}function aK(r,e){var t=e.getBaseAxis(),i=t.isHorizontal(),a=t.inverse,n=i?a?"right":"left":"center",o=i?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||n,verticalAlign:r.get("verticalAlign")||o}}}var nK=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new te,i=new to;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t,this._changePolyState=K(this._changePolyState,this)},e.prototype.render=function(t,i,a){var n=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],p=n.type==="polar",c=this._coordSys,v=this._symbolDraw,h=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&t.get("animation"),y=!u.isEmpty(),x=u.get("origin"),_=Yy(n,s,x),S=y&&J9(n,s,_),b=t.get("showSymbol"),w=t.get("connectNulls"),A=b&&!p&&eK(t,s,n),C=this._data;C&&C.eachItemGraphicEl(function(j,me){j.__temp&&(o.remove(j),C.setItemGraphicEl(me,null))}),b||v.remove(),o.add(m);var E=p?!1:t.get("step"),D;n&&n.getArea&&t.get("clip",!0)&&(D=n.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=$9(s,n,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(h&&c.type===n.type&&E===this._step))b&&v.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(j){return[f[j*2],f[j*2+1]]}}),g&&this._initSymbolLabelAnimation(s,n,D),E&&(S&&(S=Fs(S,f,n,E,w)),f=Fs(f,null,n,E,w)),h=this._newPolyline(f),y?d=this._newPolygon(f,S):d&&(m.remove(d),d=this._polygon=null),p||this._initOrUpdateEndLabel(t,n,$a(L)),m.setClipPath(Uw(this,n,!0,t));else{y&&!d?d=this._newPolygon(f,S):d&&!y&&(m.remove(d),d=this._polygon=null),p||this._initOrUpdateEndLabel(t,n,$a(L));var M=m.getClipPath();if(M){var P=Uw(this,n,!1,t);Xe(M,{shape:P.shape},t)}else m.setClipPath(Uw(this,n,!0,t));b&&v.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(j){return[f[j*2],f[j*2+1]]}}),(!Sk(this._stackedOnPoints,S)||!Sk(this._points,f))&&(g?this._doUpdateAnimation(s,S,n,a,E,x,w):(E&&(S&&(S=Fs(S,f,n,E,w)),f=Fs(f,null,n,E,w)),h.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})))}var O=t.getModel("emphasis"),R=O.get("focus"),z=O.get("blurScope"),B=O.get("disabled");if(h.useStyle(re(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),ut(h,t,"lineStyle"),h.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=h.getState("emphasis").style;F.lineWidth=+h.style.lineWidth+1}ce(h).seriesIndex=t.seriesIndex,He(h,R,z,B);var H=Tk(t.get("smooth")),Y=t.get("smoothMonotone");if(h.setShape({smooth:H,smoothMonotone:Y,connectNulls:w}),d){var q=s.getCalculationInfo("stackedOnSeries"),oe=0;d.useStyle(re(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),q&&(oe=Tk(q.get("smooth"))),d.setShape({smooth:H,stackedOnSmooth:oe,smoothMonotone:Y,connectNulls:w}),ut(d,t,"areaStyle"),ce(d).seriesIndex=t.seriesIndex,He(d,R,z,B)}var X=this._changePolyState;s.eachItemGraphicEl(function(j){j&&(j.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=s,this._coordSys=n,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=x;var G=t.get("triggerEvent"),ne=t.get("triggerLineEvent"),ve=ne===!0||G===!0||G==="line",pe=ne===!0||G===!0||G==="area";this.packEventData(t,h,ve),d&&this.packEventData(t,d,pe)},e.prototype.packEventData=function(t,i,a){ce(i).eventData=a?{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,a,n){var o=t.getData(),s=fa(o,n);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],p=l[s*2+1];if(Oi(f,p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,p))return;var c=t.get("zlevel")||0,v=t.get("z")||0;u=new Vo(o,s),u.x=f,u.y=p,u.setZ(c,v);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=v,h.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ve.prototype.highlight.call(this,t,i,a,n)},e.prototype.downplay=function(t,i,a,n){var o=t.getData(),s=fa(o,n);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 Ve.prototype.downplay.call(this,t,i,a,n)},e.prototype._changePolyState=function(t){var i=this._polygon;Zl(this._polyline,t),i&&Zl(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new yk({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new Ky({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,i,a){var n,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):i.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");ee(f)&&(f=f(null));var p=u.get("animationDelay")||0,c=ee(p)?p(null):p;t.eachItemGraphicEl(function(v,h){var d=v;if(d){var m=[v.x,v.y],g=void 0,y=void 0,x=void 0;if(a)if(o){var _=a,S=i.pointToCoord(m);n?(g=_.startAngle,y=_.endAngle,x=-S[1]/180*Math.PI):(g=_.r0,y=_.r,x=S[0])}else{var b=a;n?(g=b.x,y=b.x+b.width,x=v.x):(g=b.y+b.height,y=b.y,x=v.y)}var w=y===g?0:(x-g)/(y-g);l&&(w=1-w);var A=ee(p)?p(h):f*w+c,C=d.getSymbolPath(),E=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,a){var n=t.getModel("endLabel");if(Ak(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 Ee({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=rK(l);f>=0&&(ot(s,at(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(p,c,v){return v!=null?Hy(o,v):vn(o,p)},enableTextSetter:!0},aK(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var p=a.getLayout("points"),c=a.hostModel,v=c.get("connectNulls"),h=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,x=i.shape,_=y?g?x.x:x.y+x.height:g?x.x+x.width:x.y,S=(g?d:0)*(y?-1:1),b=(g?0:-d)*(y?-1:1),w=g?"x":"y",A=iK(p,_,w),C=A.range,E=C[1]-C[0],D=void 0;if(E>=1){if(E>1&&!v){var L=Ck(p,C[0]);u.attr({x:L[0]+S,y:L[1]+b}),o&&(D=c.getRawValue(C[0]))}else{var L=f.getPointOn(_,w);L&&u.attr({x:L[0]+S,y:L[1]+b});var M=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=tm(a,h,M,P,A.t))}n.lastFrameIndex=C[0]}else{var O=t===1||n.lastFrameIndex>0?C[0]:0,L=Ck(p,O);o&&(D=c.getRawValue(O)),u.attr({x:L[0]+S,y:L[1]+b})}if(o){var R=Io(u);typeof R.setLabelText=="function"&&R.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,p=t.hostModel,c=Rw(this._data,t,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin,s),v=c.current,h=c.stackedOnCurrent,d=c.next,m=c.stackedOnNext;if(o&&(h=Fs(c.stackedOnCurrent,c.current,a,o,l),v=Fs(c.current,null,a,o,l),m=Fs(c.stackedOnNext,c.next,a,o,l),d=Fs(c.next,null,a,o,l)),wk(v,d)>3e3||f&&wk(h,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=c.current,u.shape.points=v;var g={shape:{points:d}};c.current!==v&&(g.shape.__points=c.next),u.stopAnimation(),Pe(u,g,p),f&&(f.setShape({points:v,stackedOnPoints:h}),f.stopAnimation(),Pe(f,{shape:{stackedOnPoints:m}},p),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=c.status,_=0;_<x.length;_++){var S=x[_].cmd;if(S==="="){var b=t.getItemGraphicEl(x[_].idx1);b&&y.push({el:b,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,A=0;A<y.length;A++){var C=y[A].el,E=y[A].ptIdx*2;C.x=w[E],C.y=w[E+1],C.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(n,o){n.__temp&&(i.remove(n),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Ve),Ek=nK;function hn(r,e){return{seriesType:r,plan:Qr(),reset:function(t){var i=t.getData(),a=t.coordinateSystem,n=t.pipelineContext,o=e||n.large;if(a){var s=U(a.dimensions,function(v){return i.mapDimension(v)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");ti(i,s[0])&&(s[0]=u),ti(i,s[1])&&(s[1]=u);var f=i.getStore(),p=i.getDimensionIndex(s[0]),c=i.getDimensionIndex(s[1]);return l&&{progress:function(v,h){for(var d=v.end-v.start,m=o&&ni(d*l),g=[],y=[],x=v.start,_=0;x<v.end;x++){var S=void 0;if(l===1){var b=f.get(p,x);S=a.dataToPoint(b,null,y)}else g[0]=f.get(p,x),g[1]=f.get(c,x),S=a.dataToPoint(g,null,y);o?(m[_++]=S[0],m[_++]=S[1]):h.setItemLayout(x,S.slice())}o&&(h.setLayout("points",m),h.setLayout("pointsRange",{start:v.start,end:v.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]}},sK=function(r){return Math.round(r.length/2)};function ph(r){return{seriesType:r,reset:function(e,t,i){var a=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),p=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(p||1),v=Math.round(s/c);if(isFinite(v)&&v>1){n==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):n==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var h=void 0;W(n)?h=oK[n]:ee(n)&&(h=n),h&&e.setData(a.downSample(a.mapDimension(u.dim),1/v,h,sK))}}}}}function Bw(r){r.registerChartView(Ek),r.registerSeriesModel(ck),r.registerLayout(hn("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,ph("line"))}var lK=(function(r){I(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.index=0,s.type=n||"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})(yr),Qy=lK;var Fw=null;function Dk(r){Fw||(Fw=r)}function Uo(){return Fw}var wp="expandAxisBreak",Gw="collapseAxisBreak",Hw="toggleAxisBreak",Ww="axisbreakchanged",uK={type:wp,event:Ww,update:"update",refineEvent:Yw},fK={type:Gw,event:Ww,update:"update",refineEvent:Yw},pK={type:Hw,event:Ww,update:"update",refineEvent:Yw};function Yw(r,e,t,i){var a=[];return T(r,function(n){a=a.concat(n.eventBreaks)}),{eventContent:{breaks:a}}}function Mk(r){r.registerAction(uK,e),r.registerAction(fK,e),r.registerAction(pK,e);function e(t,i){var a=[],n=In(i,t);function o(s,l){T(n[s],function(u){var f=u.updateAxisBreaks(t);T(f.breaks,function(p){var c;a.push(re((c={},c[l]=u.componentIndex,c),p))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var Gs=Math.PI,cK=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],vK=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Hs=ue(),Pk=ue(),Zw=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,i=e.componentIndex,a=this.recordMap,n=a[t]||(a[t]=[]);return n[i]||(n[i]={ready:{}})},r})();function hK(r,e,t,i){var a=t.axis,n=e.ensureRecord(t),o=[],s,l=jw(r.axisName)&&Ps(r.nameLocation);T(i,function(h){var d=cn(h);if(!(!d||d.label.ignore)){o.push(d);var m=n.transGroup;l&&(m.transform?Zt(ch,m.transform):Ua(ch),d.transform&&ar(ch,ch,d.transform),fe.copy($y,d.localRect),$y.applyTransform(ch),s?s.union($y):fe.copy(s=new fe(0,0,0,0),$y))}});var u=Math.abs(n.dirVec.x)>.1?"x":"y",f=n.transGroup[u];if(o.sort(function(h,d){return Math.abs(h.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var p=a.getExtent(),c=Math.min(p[0],p[1]),v=Math.max(p[0],p[1])-c;s.union(new fe(c,0,v,1))}n.stOccupiedRect=s,n.labelInfoList=o}var ch=it(),$y=new fe(0,0,0,0),Kw=function(r,e,t,i,a,n){if(Ps(r.nameLocation)){var o=n.stOccupiedRect;o&&Rk(N2({},o,n.transGroup.transform),i,a)}else qw(n.labelInfoList,n.dirVec,i,a)};function Rk(r,e,t){var i=new ye;Sp(r,e,i,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&Qv(e,i)}function qw(r,e,t,i){for(var a=ye.dot(i,e)>=0,n=0,o=r.length;n<o;n++){var s=r[a?n:o-1-n];s.label.ignore||Rk(s,t,i)}}var Mu=(function(){function r(e,t,i,a){this.group=new te,this._axisModel=e,this._api=t,this._local={},this._shared=a||new Zw(Kw),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():{},a=J(e.axisName,t.get("name")),n=t.get("nameMoveOverlap");(n==null||n==="auto")&&(n=J(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:J(e.nameDirection,1),tickDirection:J(e.tickDirection,1),labelDirection:J(e.labelDirection,1),labelOffset:J(e.labelOffset,0),silent:J(e.silent,!0),axisName:a,nameLocation:Rt(t.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:jw(a)&&n,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new te({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 ye(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}),T(dK,function(a){e[a]&&mK[a](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,t||{})}),this},r.innerTextLayout=function(e,t,i){var a=Wc(t-e),n,o;return Mn(a)?(o=i>0?"top":"bottom",n="center"):Mn(a-Gs)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a<Gs?n=i>0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,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})(),dK=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],mK={axisLine:function(r,e,t,i,a,n,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=n.transform,p=[u[0],0],c=[u[1],0],v=p[0]>c[0];f&&(ft(p,p,f),ft(c,c,f));var h=k({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(i.get(["axisLine","breakLine"])&&au(i.axis.scale))Uo().buildAxisBreakLine(i,a,n,d);else{var m=new ct(k({shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]}},d));Do(m.shape,m.style.lineWidth),m.anid="line",a.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);W(g)&&(g=[g,g]),(W(y)||Ce(y))&&(y=[y,y]);var x=Zi(i.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];T([{rotate:r.rotation+Math.PI/2,offset:x[0],r:0},{rotate:r.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((p[0]-c[0])*(p[0]-c[0])+(p[1]-c[1])*(p[1]-c[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var A=tt(g[w],-_/2,-S/2,_,S,h.stroke,!0),C=b.r+b.offset,E=v?c:p;A.attr({rotation:b.rotate,x:E[0]+C*Math.cos(r.rotation),y:E[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),a.add(A)}})}}},axisTickLabelEstimate:function(r,e,t,i,a,n,o,s){if(0)var l;var u=Lk(e,a,s);u&&Ik(r,e,t,i,a,n,o,Ri.estimate)},axisTickLabelDetermine:function(r,e,t,i,a,n,o,s){if(0)var l;var u=Lk(e,a,s);u&&Ik(r,e,t,i,a,n,o,Ri.determine);var f=_K(r,a,n,i);xK(r,e.labelLayoutList,f),SK(r,a,n,i,r.tickDirection)},axisName:function(r,e,t,i,a,n,o,s){var l=t.ensureRecord(i);if(0)var u;e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=r.axisName;if(jw(f)){var p=r.nameLocation,c=r.nameDirection,v=i.getModel("nameTextStyle"),h=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new ye(0,0),y=new ye(0,0);p==="start"?(g.x=d[0]-m*h,y.x=-m):p==="end"?(g.x=d[1]+m*h,y.x=m):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+c*h,y.y=c);var x=it();y.transform(Pr(x,x,r.rotation));var _=i.get("nameRotate");_!=null&&(_=_*Gs/180);var S,b;Ps(p)?S=Mu.innerTextLayout(r.rotation,_??r.rotation,c):(S=gK(r.rotation,p,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=v.getFont(),A=i.get("nameTruncate",!0)||{},C=A.ellipsis,E=Pt(r.raw.nameTruncateMaxWidth,A.maxWidth,b),D=s.nameMarginLevel||0,L=new Ee({x:g.x,y:g.y,rotation:S.rotation,silent:Mu.isLabelSilent(i),style:je(v,{text:f,font:w,overflow:"truncate",width:E,ellipsis:C,fill:v.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(zr({el:L,componentModel:i,itemName:f}),L.__fullText=f,L.anid="name",i.get("triggerEvent")){var M=Mu.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,ce(L).eventData=M}n.add(L),L.updateTransform(),e.nameEl=L;var P=l.nameLayout=cn({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:Ps(p)?cK[D]:vK[D]});if(l.nameLocation=p,a.add(L),L.decomposeTransform(),r.shouldNameMoveOverlap&&P){var O=t.ensureRecord(i);t.resolveAxisNameOverlap(r,t,i,P,y,O)}}}};function Ik(r,e,t,i,a,n,o,s){Nk(e)||bK(r,e,a,s,i,o);var l=e.labelLayoutList;wK(r,i,l,n),AK(i,r.rotation,l);var u=r.optionHideOverlap;yK(i,l,u),u&&Ly(Ne(l,function(f){return f&&!f.label.ignore})),hK(r,t,i,l)}function gK(r,e,t,i){var a=Wc(t-r),n,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return Mn(a-Gs/2)?(o=l?"bottom":"top",n="center"):Mn(a-Gs*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",a<Gs*1.5&&a>Gs/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function yK(r,e,t){var i=r.axis,a=r.get(["axisLabel","customValues"]);if(YN(i))return;function n(u,f,p){var c=cn(e[f]),v=cn(e[p]),h=i.scale;if(!(!c||!v)){if(u==null){if(!t&&a)return;var d=Hs(c.label).labelInfo.tick;if(Yn(h)&&d.notNice||Mt(h)&&d.offInterval){Tp(c.label);return}}if(u===!1||c.suggestIgnore){Tp(c.label);return}if(v.suggestIgnore){Tp(v.label);return}var m=.1;if(!t){var g=[0,0,0,0];c=$v({marginForce:g},c),v=$v({marginForce:g},v)}Sp(c,v,null,{touchThreshold:m})&&Tp(u?v.label:c.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;n(o,0,1),n(s,l-1,l-2)}function xK(r,e,t){r.showMinorTicks||T(e,function(i){if(i&&i.label.ignore)for(var a=0;a<t.length;a++){var n=t[a],o=Pk(n),s=Hs(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Tp(n);return}}})}function Tp(r){r&&(r.ignore=!0)}function Ok(r,e,t,i,a){for(var n=[],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&&(ft(o,o,e),ft(s,s,e));var f=new ct({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Do(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,n.push(f);var p=Pk(f);p.onBand=!!r[l].onBand,p.tickValue=r[l].tickValue}return n}function _K(r,e,t,i){var a=i.axis,n=i.getModel("axisTick"),o=n.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=n.getModel("lineStyle"),l=r.tickDirection*n.get("length"),u=a.getTicksCoords(),f=Ok(u,t.transform,l,re(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<f.length;p++)e.add(f[p]);return f}function SK(r,e,t,i,a){var n=i.axis,o=i.getModel("minorTick");if(!(!r.showMinorTicks||n.scale.isBlank())){var s=n.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=re(l.getLineStyle(),re(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),p=0;p<s.length;p++)for(var c=Ok(s[p],t.transform,u,f,"minorticks_"+p),v=0;v<c.length;v++)e.add(c[v])}}function Lk(r,e,t){if(Nk(r)){var i=r.axisLabelsCreationContext,a=i.out.noPxChangeTryDetermine;if(t.noPxChange){for(var n=!0,o=0;o<a.length;o++)n=n&&a[o]();if(n)return!1}a.length&&(e.remove(r.labelGroup),Xw(r,null,null,null))}return!0}function bK(r,e,t,i,a,n){var o=a.axis,s=Pt(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new te;t.add(l);var u=yp(i);if(!s||o.scale.isBlank()){Xw(e,[],l,u);return}var f=a.getModel("axisLabel"),p=o.getViewLabels(u),c=(Pt(r.raw.labelRotate,f.get("rotate"))||0)*Gs/180,v=Mu.innerTextLayout(r.rotation,c,r.labelDirection),h=a.getCategories&&a.getCategories(!0),d=[],m=a.get("triggerEvent"),g=1/0,y=-1/0;T(p,function(_,S){var b,w=_.tick,A=_.formattedLabel,C=_.rawLabel,E=f,D=sn(o.scale,w);if(h&&h[D]){var L=h[D];se(L)&&L.textStyle&&(E=new Re(L.textStyle,f,a.ecModel))}var M=E.getTextColor()||a.get(["axisLine","lineStyle","color"]),P=E.getShallow("align",!0)||v.textAlign,O=J(E.getShallow("alignMinLabel",!0),P),R=J(E.getShallow("alignMaxLabel",!0),P),z=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||v.textVerticalAlign,B=J(E.getShallow("verticalAlignMinLabel",!0),z),F=J(E.getShallow("verticalAlignMaxLabel",!0),z),H=10+(((b=w.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,H),y=Math.max(y,H);var Y=new Ee({x:0,y:0,rotation:0,silent:Mu.isLabelSilent(a),z2:H,style:je(E,{text:A,align:S===0?O:S===p.length-1?R:P,verticalAlign:S===0?B:S===p.length-1?F:z,fill:ee(M)?M(o.type==="category"?C:o.type==="value"?D+"":D,S):M})});Y.anid="label_"+D;var q=Hs(Y);if(q.labelInfo=_,q.layoutRotation=v.rotation,zr({el:Y,componentModel:a,itemName:A,formatterParamsExtra:{isTruncated:function(){return Y.isTruncated},value:C,tickIndex:S}}),m){var oe=Mu.makeAxisEventDataBase(a);oe.targetType="axisLabel",oe.value=C,oe.tickIndex=S;var X=_.tick.break;if(X){var G=X.parsedBreak;oe.break={start:G.vmin,end:G.vmax}}o.type==="category"&&(oe.dataIndex=D),ce(Y).eventData=oe,X&&CK(a,n,Y,X)}d.push(Y),l.add(Y)});var x=U(d,function(_){return{label:_,priority:Hs(_).labelInfo.tick.break?_.z2+(y-g+1):_.z2,defaultAttr:{ignore:_.ignore}}});Xw(e,x,l,u)}function Nk(r){return!!r.labelLayoutList}function Xw(r,e,t,i){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=i}function wK(r,e,t,i){var a=e.get(["axisLabel","margin"]);T(t,function(n,o){var s=cn(n);if(s){var l=s.label,u=Hs(l);s.suggestIgnore=l.ignore,l.ignore=!1,mi(Bo,TK);var f=e.axis;Bo.x=f.dataToCoord(sn(f.scale,u.labelInfo.tick)),Bo.y=r.labelOffset+r.labelDirection*a,Bo.rotation=u.layoutRotation,i.add(Bo),Bo.updateTransform(),i.remove(Bo),Bo.decomposeTransform(),mi(l,Bo),l.markRedraw(),Jv(s,!0),cn(s)}})}var Bo=new xe,TK=new xe;function jw(r){return!!r}function CK(r,e,t,i){t.on("click",function(a){var n={type:wp,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};n[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(n)})}function AK(r,e,t){var i=yt();if(i){var a=i.retrieveAxisBreakPairs(t,function(o){return o&&Hs(o.label).labelInfo.tick.break},!0),n=r.get(["breakLabelLayout","moveOverlap"],!0);(n===!0||n==="auto")&&T(a,function(o){Uo().adjustBreakLabelPair(r.axis.inverse,e,[cn(t[o[0]]),cn(t[o[1]])])})}}var Mr=Mu;function vh(r,e,t){t=t||{};var i=e.axis,a={},n=i.getAxesOnZeroOf()[0],o=i.position,s=n?"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},p=e.get("offset")||0,c=l==="x"?[u[2]-p,u[3]+p]:[u[0]-p,u[1]+p];if(n){var v=n.toGlobalCoord(n.dataToCoord(0));c[f.onZero]=Math.max(Math.min(v,c[1]),c[0])}a.position=[l==="y"?c[f[s]]:u[0],l==="x"?c[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=h[o],a.labelOffset=n?c[f[o]]-c[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Pt(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-d:d,a.z2=1,a}function kk(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function zk(r){var e={xAxisModel:null,yAxisModel:null};return T(e,function(t,i){var a=i.replace(/Model$/,""),n=r.getReferringComponents(a,$e).models[0];e[i]=n}),e}function Vk(r,e,t,i,a,n){for(var o=vh(r,t),s=!1,l=!1,u=0;u<e.length;u++)fy(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=n,new Mr(t,i,o,a)}function Uk(r,e,t){var i=vh(e,t);if(0)var a;r.updateCfg(i)}function Bk(r){return r.dim+"_"+r.index}function Fk(){e2("liPosMinGap",DK)}function DK(r,e,t){var i=Z(),a=t.serUids,n=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,p=Dg(f);function c(x){Zv(r,e.sers,function(_){var S=_.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&x(b,_,S.getStore())})}var v=0;if(c(function(x,_,S){i.set(_.uid,1),(!a||!a.hasKey(_.uid))&&(o=!0),v+=S.count()}),(!a||a.keys().length!==i.keys().length)&&(o=!0),!o&&n!=null){e.liPosMinGap=n;return}Zy(Iu,v);var h=0;c(function(x,_,S){for(var b=0,w=S.count();b<w;++b){var A=S.get(x,b);isFinite(A)&&(!f||Mg(p,A))&&(u&&(A=l.transformIn(A,null)),Iu.arr[h++]=A)}});var d=Iu.typed?Iu.arr.subarray(0,h):(Iu.arr.length=h,Iu.arr);Iu.typed?d.sort():gt(d);for(var m=1/0,g=1;g<h;++g){var y=d[g]-d[g-1];y>0&&y<m&&(m=y)}t.liPosMinGap=e.liPosMinGap=or(m)?m:h>0?Sy:ZN,t.serUids=i}var Iu=Zy({ctor:mk},50);function Ws(r){return function(e,t){var i=bt(e,{fromStat:{key:r}});if(or(i.w2))return[-i.w2/2,i.w2/2]}}function Fo(r){return r+Xv}function Go(r,e){return r+Xv+e}function Cp(r){return Fk(),{liPosMinGap:!Mt(r.scale)}}var oi="bar",Ys="pictorialBar";function e0(r,e,t,i){mp(r,{key:e,seriesType:t,coordSysType:i,getMetrics:Cp})}function t0(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var Jw={left:0,right:0,top:0,bottom:0},hh=["25%","25%"],Gr="cartesian2d",MK=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,i){var a=Li(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&Ar(t.outerBounds,a)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Ar(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:Jw,outerBoundsContain:"all",outerBoundsClampWidth:hh[0],outerBoundsClampHeight:hh[1],backgroundColor:N.color.transparent,borderWidth:1,borderColor:N.color.neutral30},e})(Le),Gk=MK;var IK=pa(),Qw="__ec_stack_";function Hk(r){return r.get("stack")||Qw+r.seriesIndex}function Wk(r){if(Mt(r.axis.scale)){for(var e=bt(r.axis),t=[],i=0;i<r.count;i++)t.push(re({stackId:Qw+i},r));for(var a=Yk({bandWidthResult:e,seriesInfo:t}),n=[],i=0;i<r.count;i++){var o=a[Qw+i];o.offsetCenter=o.offset+o.width/2,n.push(o)}return n}}function LK(r,e){var t=PK(r,e);return t.columnMap=Yk(t),t}function PK(r,e){var t=Go(e,Gr),i=[],a=bt(r,{fromStat:{key:t},min:1});return jn(r,t,function(n){i.push({barWidth:$(n.get("barWidth"),a.w),barMaxWidth:$(n.get("barMaxWidth"),a.w),barMinWidth:$(n.get("barMinWidth")||(Xk(n)?.5:1),a.w),barGap:n.get("barGap"),barCategoryGap:n.get("barCategoryGap"),defaultBarGap:n.get("defaultBarGap"),stackId:Hk(n)})}),{bandWidthResult:a,seriesInfo:i}}function Yk(r){var e=r.bandWidthResult.w,t=e,i=0,a,n,o=[],s={};T(r.seriesInfo,function(d,m){m||(n=d.defaultBarGap||0);var g=d.stackId;le(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var x=d.barWidth;x&&!y.width&&(y.width=x,x=Ye(t,x),t-=x);var _=d.barMaxWidth;_&&(y.maxWidth=_);var S=d.barMinWidth;S&&(y.minWidth=S);var b=d.barGap;b!=null&&(n=b);var w=d.barCategoryGap;w!=null&&(a=w)}),a==null&&(a=Ae(35-o.length*4,15)+"%");var l=$(a,e),u=$(n,1),f=(t-l)/(i+(i-1)*u);f=Ae(f,0),T(o,function(d){var m=s[d],g=m.maxWidth,y=m.minWidth;if(m.width){var x=m.width;g&&(x=Ye(x,g)),y&&(x=Ae(x,y)),m.width=x,t-=x+u*x,i--}else{var x=f;g&&g<x&&(x=Ye(g,t)),y&&y>x&&(x=y),x!==f&&(m.width=x,t-=x+u*x,i--)}}),f=(t-l)/(i+(i-1)*u),f=Ae(f,0);var p=0,c;T(o,function(d){var m=s[d];m.width||(m.width=f),c=m,p+=m.width*(1+u)}),c&&(p-=c.width*u);var v={},h=-p/2;return T(o,function(d){var m=s[d];v[d]=v[d]||{bandWidth:e,offset:h,width:m.width},h+=m.width*(1+u)}),v}function r0(r){return{seriesType:r,overallReset:function(e){var t=Go(r,Gr);dp(e,t,function(i){var a=LK(i,r);jn(i,t,function(n){var o=a.columnMap[Hk(n)];n.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function i0(r){return{seriesType:r,plan:Qr(),reset:function(e){if(kk(e)){var t=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(n.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(n.dim),f=t.getCalculationInfo("stackResultDimension"),p=ti(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=n.isHorizontal(),v=n.toGlobalCoord(n.dataToCoord(t0(n))),h=Xk(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=x.count,b=h&&ni(S*3),w=h&&l&&ni(S*3),A=h&&ni(S),C=i.master.getRect(),E=c?C.width:C.height,D,L=_.getStore(),M=0;(D=x.next())!=null;){var P=L.get(p?m:o,D),O=L.get(s,D),R=v,z=void 0;p&&(z=+P-L.get(o,D));var B=void 0,F=void 0,H=void 0,Y=void 0;if(c){var q=i.dataToPoint([P,O]);p&&(R=i.dataToPoint([z,O])[0]),B=R,F=q[1]+y,H=q[0]-R,Y=g,ht(H)<d&&(H=(H<0?-1:1)*d)}else{var q=i.dataToPoint([O,P]);p&&(R=i.dataToPoint([O,z])[1]),B=q[0]+y,F=R,H=g,Y=q[1]-R,ht(Y)<d&&(Y=(Y<=0?-1:1)*d)}h?(b[M]=B,b[M+1]=F,b[M+2]=c?H:Y,w&&(w[M]=c?C.x:B,w[M+1]=c?F:C.y,w[M+2]=E),A[D]=D):_.setItemLayout(D,{x:B,y:F,width:H,height:Y}),M+=3}h&&_.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:w,valueAxisHorizontal:c})}}}}}}function Xk(r){return r.pipelineContext&&r.pipelineContext.large}function RK(r){return Ws(Go(r,Gr))}function a0(r){IK(r,function(){function e(t){var i=Go(t,Gr);e0(r,i,t,Gr),Rs(i,RK(t))}e("bar"),e("pictorialBar")})}var Zk=(function(r){I(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 ur(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(t),s=n.dataToPoint(o);if(a)T(n.getAxes(),function(c,v){if(c.type==="category"&&i!=null){var h=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),m=o[v],g=i[v]==="x1"||i[v]==="y1";if(g&&!d&&(m+=1),h.length<2)return;if(h.length===2){s[v]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,x=void 0,_=1,S=0;S<h.length;S++){var b=h[S].coord,w=S===h.length-1?h[S-1].tickValue+_:h[S].tickValue;if(w===m){x=b;break}else if(w<m)y=b;else if(y!=null&&w>m){x=(b+y)/2;break}S===1&&(_=w-h[0].tickValue)}x==null&&(y?y&&(x=h[h.length-1].coord):x=h[0].coord),s[v]=c.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),p=n.getBaseAxis().isHorizontal()?0:1;s[p]+=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})(Fe);Fe.registerClass(Zk);var Ap=Zk;var OK=(function(r){I(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 ur(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 a=im(this,t,i);return a.progressiveRender&&(a.large=!0),a},e.prototype.brushSelector=function(t,i,a){return a.rect(i.getItemLayout(t))},e.type="series."+oi,e.dependencies=["grid","polar"],e.defaultOption=Vr(Ap.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:N.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Ap),Kk=OK;var NK=(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})(),kK=(function(r){I(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new NK},e.prototype.buildPath=function(t,i){var a=i.cx,n=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,p=i.endAngle,c=i.clockwise,v=Math.PI*2,h=c?p-f<v:f-p<v;h||(f=p-(c?v:-v));var d=Math.cos(f),m=Math.sin(f),g=Math.cos(p),y=Math.sin(p);h?(t.moveTo(d*o+a,m*o+n),t.arc(d*u+a,m*u+n,l,-Math.PI+f,f,!c)):t.moveTo(d*s+a,m*s+n),t.arc(a,n,s,f,p,!c),t.arc(g*u+a,y*u+n,l,p-Math.PI*2,p-Math.PI,!c),o!==0&&t.arc(a,n,o,p,f,c)},e})(ge),Ep=kK;function qk(r,e){e=e||{};var t=e.isRoundCap;return function(i,a,n){var o=a.position;if(!o||o instanceof Array)return Rl(i,a,n);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,p=u.cy,c=u.r,v=u.r0,h=(c+v)/2,d=u.startAngle,m=u.endAngle,g=(d+m)/2,y=t?Math.abs(c-v)/2:0,x=Math.cos,_=Math.sin,S=f+c*x(d),b=p+c*_(d),w="left",A="top";switch(s){case"startArc":S=f+(v-l)*x(g),b=p+(v-l)*_(g),w="center",A="top";break;case"insideStartArc":S=f+(v+l)*x(g),b=p+(v+l)*_(g),w="center",A="bottom";break;case"startAngle":S=f+h*x(d)+n0(d,l+y,!1),b=p+h*_(d)+o0(d,l+y,!1),w="right",A="middle";break;case"insideStartAngle":S=f+h*x(d)+n0(d,-l+y,!1),b=p+h*_(d)+o0(d,-l+y,!1),w="left",A="middle";break;case"middle":S=f+h*x(g),b=p+h*_(g),w="center",A="middle";break;case"endArc":S=f+(c+l)*x(g),b=p+(c+l)*_(g),w="center",A="bottom";break;case"insideEndArc":S=f+(c-l)*x(g),b=p+(c-l)*_(g),w="center",A="top";break;case"endAngle":S=f+h*x(m)+n0(m,l+y,!0),b=p+h*_(m)+o0(m,l+y,!0),w="left",A="middle";break;case"insideEndAngle":S=f+h*x(m)+n0(m,-l+y,!0),b=p+h*_(m)+o0(m,-l+y,!0),w="right",A="middle";break;default:return Rl(i,a,n)}return i=i||{},i.x=S,i.y=b,i.align=w,i.verticalAlign=A,i}}function jk(r,e,t,i){if(Ce(i)){r.setTextConfig({rotation:i});return}else if(V(e)){r.setTextConfig({rotation:0});return}var a=r.shape,n=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(n+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=n;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 n0(r,e,t){return e*Math.sin(r)*(t?-1:1)}function o0(r,e,t){return e*Math.cos(r)*(t?1:-1)}function si(r,e,t){var i=r.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;V(i)||(i=[i,i,i,i]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(i,function(n){return Rr(n,a)})}}var $w=Math.max,eT=Math.min,zK=(function(r){I(e,r);function e(){var t=r.call(this)||this;return t.type=oi,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,a,n){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,a):this._renderNormal(t,i,a,n))},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){Jr(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,a,n){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),p;u.type==="cartesian2d"?p=f.isHorizontal():u.type==="polar"&&(p=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,v=VK(t,u);v&&this._enableRealtimeSort(v,s,a);var h=t.get("clip",!0)||v,d=u.getArea();o.removeClipPath();var m=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),x=y.get("borderRadius")||0,_=[],S=this._backgroundEls,b=n&&n.isInitSort,w=n&&n.type==="changeAxisOrder";function A(D){var L=s0[u.type](s,D);if(!L)return null;var M=YK(u,p,L);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",x):M.setShape("cornerRadius",x),_[D]=M,M}s.diff(l).add(function(D){var L=s.getItemModel(D),M=s0[u.type](s,D,L);if(M&&(g&&A(D),!(!s.hasValue(D)||!tz[u.type](M)))){var P=!1;h&&(P=Jk[u.type](d,M));var O=Qk[u.type](t,s,D,M,p,c,f.model,!1,m);v&&(O.forceLabelAnimation=!0),rz(O,s,D,L,M,t,p,u.type==="polar"),b?O.attr({shape:M}):v?$k(v,c,O,M,D,p,!1,!1):Xe(O,{shape:M},t,D),s.setItemGraphicEl(D,O),o.add(O),O.ignore=P}}).update(function(D,L){var M=s.getItemModel(D),P=s0[u.type](s,D,M);if(P){if(g){var O=void 0;S.length===0?O=A(L):(O=S[L],O.useStyle(y.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",x):O.setShape("cornerRadius",x),_[D]=O);var R=s0[u.type](s,D),z=sz(p,R,u);Pe(O,{shape:z},c,D)}var B=l.getItemGraphicEl(L);if(!s.hasValue(D)||!tz[u.type](P)){o.remove(B);return}var F=!1;h&&(F=Jk[u.type](d,P),F&&o.remove(B));var H=B&&(B.type==="sector"&&m||B.type==="sausage"&&!m);if(H&&(B&&Di(B,t,L),B=null),B?Ht(B):B=Qk[u.type](t,s,D,P,p,c,f.model,!0,m),v&&(B.forceLabelAnimation=!0),w){var Y=B.getTextContent();if(Y){var q=Io(Y);q.prevValue!=null&&(q.prevValue=q.value)}}else rz(B,s,D,M,P,t,p,u.type==="polar");b?B.attr({shape:P}):v?$k(v,c,B,P,D,p,!0,w):Pe(B,{shape:P},t,D,null),s.setItemGraphicEl(D,B),B.ignore=F,o.add(B)}}).remove(function(D){var L=l.getItemGraphicEl(D);L&&Di(L,t,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new te);C.removeAll();for(var E=0;E<_.length;++E)C.add(_[E]);o.add(C),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(t,i,a){this._clear(),az(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),az(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&qi(t.coordinateSystem,!1,t),a=this.group;i?a.setClipPath(i):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,a){var n=this;if(i.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,a),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(){n._updateSortWithinSameData(i,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,a){var n=[];return t.each(t.mapDimension(i.dim),function(o,s){var l=a(s);l=l??NaN,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(n,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,a){for(var n=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,n.getRawOrdinalNumber(l)),p=f<0?Number.MIN_VALUE:i(t.indexOfRawIndex(f));if(p>s)return!0;s=p}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var a=i.scale,n=a.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,a,n){if(this._isOrderChangedWithinSameData(t,i,a)){var o=this._dataSort(t,a,i);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,a){var n=i.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.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,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){Di(n,t,ce(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=oi,e})(Ve),Jk={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 a=r.x+r.width,n=r.y+r.height,o=$w(e.x,r.x),s=eT(e.x+e.width,a),l=$w(e.y,r.y),u=eT(e.y+e.height,n),f=s<o,p=u<l;return e.x=f&&o>a?s:o,e.y=p&&l>n?u:l,e.width=f?0:s-o,e.height=p?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||p},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 a=eT(e.r,r.r),n=$w(e.r0,r.r0);e.r=a,e.r0=n;var o=a-n<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},Qk={cartesian2d:function(r,e,t,i,a,n,o,s,l){var u=new xe({shape:k({},i),z2:1});if(u.__dataIndex=t,u.name="item",n){var f=u.shape,p=a?"height":"width";f[p]=0}return u},polar:function(r,e,t,i,a,n,o,s,l){var u=!a&&l?Ep:Dt,f=new u({shape:i,z2:1});f.name="item";var p=oz(a);if(f.calculateTextPosition=qk(p,{isRoundCap:u===Ep}),n){var c=f.shape,v=a?"r":"endAngle",h={};c[v]=a?i.r0:i.startAngle,h[v]=i[v],(s?Pe:Xe)(f,{shape:h},n)}return f}};function VK(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 $k(r,e,t,i,a,n,o,s){var l,u;n?(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?Pe:Xe)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?Pe:Xe)(t,{shape:u},f,a)}function ez(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var UK=["x","y","width","height"],BK=["cx","cy","r","startAngle","endAngle"],tz={cartesian2d:function(r){return!ez(r,UK)},polar:function(r){return!ez(r,BK)}},s0={cartesian2d:function(r,e,t){var i=r.getItemLayout(e);if(!i)return null;var a=t?GK(t,i):0,n=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+n*a/2,y:i.y+o*a/2,width:i.width-n*a,height:i.height-o*a}},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 FK(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function oz(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 rz(r,e,t,i,a,n,o,s){var l=e.getItemVisual(t,"style");if(s){if(!n.get("roundCap")){var f=r.shape,p=si(i.getModel("itemStyle"),f,!0);k(f,p),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?XK(a,n.coordinateSystem):ZK(a,n.coordinateSystem),h=at(i);ot(r,h,{labelFetcher:n,labelDataIndex:t,defaultText:vn(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var d=r.getTextContent();if(s&&d){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,jk(r,m==="outside"?v:m,oz(o),i.get(["label","rotate"]))}Bm(d,h,n.getRawValue(t),function(y){return Hy(e,y)});var g=i.getModel(["emphasis"]);He(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),ut(r,i),FK(a)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function GK(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,a,n)}var HK=(function(){function r(){}return r})(),iz=(function(r){I(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new HK},e.prototype.buildPath=function(t,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[n]=u,l[o]=a[f+2],s[n]=a[f+n],s[o]=a[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(ge);function az(r,e,t,i){var a=r.getData(),n=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=i?Sr(r):0;if(u){var p=new iz({shape:{points:u},incremental:f,silent:!0,z2:0});p.baseDimIdx=n,p.largeDataIndices=o,p.barWidth=s,p.useStyle(l.getItemStyle()),e.add(p),t&&t.push(p)}var c=new iz({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=n,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),c.style.stroke=null,ce(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",nz),c.on("mousemove",nz)),t&&t.push(c)}var nz=Dv(function(r){var e=this,t=WK(e,r.offsetX,r.offsetY);ce(e).dataIndex=t>=0?t:null},30,!1);function WK(r,e,t){for(var i=r.baseDimIdx,a=1-i,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,p=n.length/3;f<p;f++){var c=f*3;if(l[i]=u,l[a]=n[c+2],s[i]=n[c+i],s[a]=n[c+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function sz(r,e,t){if(Da(t,"cartesian2d")){var i=e,a=t.getArea();return{x:r?i.x:a.x,y:r?a.y:i.y,width:r?i.width:a.width,height:r?a.height:i.height}}else{var a=t.getArea(),n=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:n.r0,r:r?a.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function YK(r,e,t){var i=r.type==="polar"?Dt:xe;return new i({shape:sz(e,t,r),silent:!0,z2:0})}function XK(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function ZK(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}var lz=zK;function tT(r){r.registerChartView(lz),r.registerSeriesModel(Kk),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,r0(oi)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,i0(oi)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ph(oi)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})}),a0(r)}function dn(r){return{seriesType:r,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var a=e.getData();a.filterSelf(function(n){for(var o=a.getName(n),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function ji(r,e,t){e=V(e)&&{coordDimensions:e}||k({encodeDefine:r.getEncode()},e);var i=r.getSource(),a=wa(i,e).dimensions,n=new Tt(a,r);return n.initData(i,t),n}var KK=(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})(),Ma=KK;var mn="pie",qK=ue(),uz=(function(r){I(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 Ma(K(this.getData,this),K(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ji(this,{coordDimensions:["value"],encodeDefaulter:be(qf,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),a=qK(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=pS(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=n[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Gi(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series."+mn,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})(Fe);WP({fullType:uz.type,getCoord2:function(r){return r.getShallow("center")}});var fz=uz;var jK=Math.PI/180;function pz(r,e,t,i,a,n,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 x=d.list[y],_=Math.abs(x.label.y-t),S=i+x.len,b=S*S,w=Math.sqrt(Math.abs((1-_*_/g)*b)),A=e+(w+x.len2)*a,C=A-x.label.x,E=x.targetTextWidth-C*a;vz(x,E,!0),x.label.x=A}}function p(d){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<d.length;y++)if(d[y].labelAlignTo==="none"){var x=d[y],_=x.label.y>t?g:m,S=Math.abs(x.label.y-t);if(S>=_.maxY){var b=x.label.x-e-x.len2*a,w=i+x.len,A=Math.abs(b)<w?Math.sqrt(S*S/(1-b*b/w/w)):w;_.rB=A,_.maxY=S}_.list.push(x)}f(m),f(g)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var h=r[v].label.x-u;r[v].linePoints[1][0]+=h,r[v].label.x=u}eh(r,1,l,l+o)&&p(r)}function JK(r,e,t,i,a,n,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;rT(r[c])||(v.x<e?(f=Math.min(f,v.x),l.push(r[c])):(p=Math.max(p,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var h=r[c];if(!rT(h)&&h.linePoints){if(h.labelStyleWidth!=null)continue;var v=h.label,d=h.linePoints,m=void 0;h.labelAlignTo==="edge"?v.x<e?m=d[2][0]-h.labelDistance-o-h.edgeDistance:m=o+a-h.edgeDistance-d[2][0]-h.labelDistance:h.labelAlignTo==="labelLine"?v.x<e?m=f-o-h.bleedMargin:m=o+a-p-h.bleedMargin:v.x<e?m=v.x-o-h.bleedMargin:m=o+a-v.x-h.bleedMargin,h.targetTextWidth=m,vz(h,m,!1)}}pz(u,e,t,i,1,a,n,o,s,p),pz(l,e,t,i,-1,a,n,o,s,f);for(var c=0;c<r.length;c++){var h=r[c];if(!rT(h)&&h.linePoints){var v=h.label,d=h.linePoints,g=h.labelAlignTo==="edge",y=v.style.padding,x=y?y[1]+y[3]:0,_=v.style.backgroundColor?0:x,S=h.rect.width+_,b=d[1][0]-d[2][0];g?v.x<e?d[2][0]=o+h.edgeDistance+S+h.labelDistance:d[2][0]=o+a-h.edgeDistance-S-h.labelDistance:(v.x<e?d[2][0]=v.x+h.labelDistance:d[2][0]=v.x-h.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=v.y}}}function vz(r,e,t){if(r.labelStyleWidth==null){var i=r.label,a=i.style,n=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=n.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",o)}else{var c=e-l,v=e<f?c:t?c>r.unconstrainedWidth?null:c:null;i.setStyle("width",v)}hz(n,i)}}}function hz(r,e){cz.rect=r,aw(cz,e,QK)}var QK={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},cz={};function rT(r){return r.position==="center"}function iT(r){var e=r.getData(),t=[],i,a,n=!1,o=(r.get("minShowLabelAngle")||0)*jK,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,p=s.y,c=s.height;function v(b){b.ignore=!0}function h(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}e.each(function(b){var w=e.getItemGraphicEl(b),A=w.shape,C=w.getTextContent(),E=w.getTextGuideLine(),D=e.getItemModel(b),L=D.getModel("label"),M=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),O=L.get("alignTo"),R=$(L.get("edgeDistance"),u),z=L.get("bleedMargin");z==null&&(z=Math.min(u,c)>200?10:2);var B=D.getModel("labelLine"),F=B.get("length");F=$(F,u);var H=B.get("length2");if(H=$(H,u),Math.abs(A.endAngle-A.startAngle)<o){T(C.states,v),C.ignore=!0,E&&(T(E.states,v),E.ignore=!0);return}if(h(C)){var Y=(A.startAngle+A.endAngle)/2,q=Math.cos(Y),oe=Math.sin(Y),X,G,ne,ve;i=A.cx,a=A.cy;var pe=M==="inside"||M==="inner";if(M==="center")X=A.cx,G=A.cy,ve="center";else{var j=(pe?(A.r+A.r0)/2*q:A.r*q)+i,me=(pe?(A.r+A.r0)/2*oe:A.r*oe)+a;if(X=j+q*3,G=me+oe*3,!pe){var ie=j+q*(F+l-A.r),he=me+oe*(F+l-A.r),ze=ie+(q<0?-1:1)*H,Se=he;O==="edge"?X=q<0?f+R:f+u-R:X=ze+(q<0?-P:P),G=Se,ne=[[j,me],[ie,he],[ze,Se]]}ve=pe?"center":O==="edge"?q>0?"right":"left":q>0?"left":"right"}var Oe=Math.PI,ke=0,Je=L.get("rotate");if(Ce(Je))ke=Je*(Oe/180);else if(M==="center")ke=0;else if(Je==="radial"||Je===!0){var dt=q<0?-Y+Oe:-Y;ke=dt}else if(Je==="tangential"||Je==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var At=Math.atan2(q,oe);At<0&&(At=Oe*2+At);var Et=oe>0;Et&&Je!=="tangential-noflip"&&(At=Oe+At),ke=At-Oe}if(n=!!ke,C.x=X,C.y=G,C.rotation=ke,C.setStyle({verticalAlign:"middle"}),pe){C.setStyle({align:ve});var It=C.states.select;It&&(It.x+=C.x,It.y+=C.y)}else{var Qe=new fe(0,0,0,0);hz(Qe,C),t.push({label:C,labelLine:E,position:M,len:F,len2:H,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new ye(q,oe),linePoints:ne,textAlign:ve,labelDistance:P,labelAlignTo:O,edgeDistance:R,bleedMargin:z,rect:Qe,unconstrainedWidth:Qe.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:pe})}}),!n&&r.get("avoidLabelOverlap")&&JK(t,i,a,l,u,c,f,p);for(var d=0;d<t.length;d++){var m=t[d],g=m.label,y=m.labelLine,x=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),x&&(T(g.states,v),g.ignore=!0);var _=g.states.select;_&&(_.x+=g.x,_.y+=g.y)}if(y){var S=m.linePoints;x||!S?(T(y.states,v),y.ignore=!0):(rw(S,m.minTurnAngle),I2(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new ye(S[0][0],S[0][1])})}}}var dz=Math.PI*2,l0=Math.PI/180,mz=et(mn,$K);function $K(r,e){r.eachSeriesByType(mn,function(t){var i=t.getData(),a=i.mapDimension("value"),n=vg(t,e),o=n.cx,s=n.cy,l=n.r,u=n.r0,f=n.viewRect,p=-t.get("startAngle")*l0,c=t.get("endAngle"),v=t.get("padAngle")*l0;c=c==="auto"?p-dz:-c*l0;var h=t.get("minAngle")*l0,d=h+v,m=0;i.each(a,function(R){!isNaN(R)&&m++});var g=i.getSum(a),y=Math.PI/(g||m)*2,x=t.get("clockwise"),_=t.get("roseType"),S=t.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var w=x?1:-1,A=[p,c],C=w*v/2;Hl(A,!x),p=A[0],c=A[1];var E=aT(t);E.startAngle=p,E.endAngle=c,E.clockwise=x,E.cx=o,E.cy=s,E.r=l,E.r0=u;var D=Math.abs(c-p),L=D,M=0,P=p;if(i.setLayout({viewRect:f,r:l}),i.each(a,function(R,z){var B;if(isNaN(R)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:o,cy:s,r0:u,r:_?NaN:l});return}_!=="area"?B=g===0&&S?y:R*y:B=D/m,B<d?(B=d,L-=d):M+=R;var F=P+w*B,H=0,Y=0;v>B?(H=P+w*B/2,Y=H):(H=P+C,Y=F-C),i.setItemLayout(z,{angle:B,startAngle:H,endAngle:Y,clockwise:x,cx:o,cy:s,r0:u,r:_?Ge(R,b,[u,l]):l}),P=F}),L<dz&&m)if(L<=.001){var O=D/m;i.each(a,function(R,z){if(!isNaN(R)){var B=i.getItemLayout(z);B.angle=O;var F=0,H=0;O<v?(F=p+w*(z+1/2)*O,H=F):(F=p+w*z*O+C,H=p+w*(z+1)*O-C),B.startAngle=F,B.endAngle=H}})}else y=L/M,P=p,i.each(a,function(R,z){if(!isNaN(R)){var B=i.getItemLayout(z),F=B.angle===d?d:R*y,H=0,Y=0;F<v?(H=P+w*F/2,Y=H):(H=P+C,Y=P+w*F-C),B.startAngle=H,B.endAngle=Y,P+=w*F}})})}var aT=ue();var eq=(function(r){I(e,r);function e(t,i,a){var n=r.call(this)||this;n.z2=2;var o=new Ee;return n.setTextContent(o),n.updateData(t,i,a,!0),n}return e.prototype.updateData=function(t,i,a,n){var o=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),f=t.getItemLayout(i),p=k(si(l.getModel("itemStyle"),f,!0),f);if(isNaN(p.startAngle)){o.setShape(p);return}if(n){o.setShape(p);var c=s.getShallow("animationType");s.ecModel.ssr?(Xe(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=p.cx,o.originY=p.cy):c==="scale"?(o.shape.r=f.r0,Xe(o,{shape:{r:f.r}},s,i)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Xe(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Pe(o,{shape:{endAngle:f.endAngle}},s,i))}else Ht(o),Pe(o,{shape:p},s,i);o.useStyle(t.getItemVisual(i,"style")),ut(o,l);var v=(f.startAngle+f.endAngle)/2,h=s.get("selectedOffset"),d=Math.cos(v)*h,m=Math.sin(v)*h,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,i),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},si(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:d,y:m,shape:si(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:si(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&k(y.ensureState("select"),{x:d,y:m}),k(x.ensureState("select"),{x:d,y:m}),He(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,a){var n=this,o=i.getItemModel(a),s=o.getModel("labelLine"),l=i.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;ot(n,at(o),{labelFetcher:i.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||i.getName(a)});var p=n.getTextContent();n.setTextConfig({position:null,rotation:null}),p.attr({z2:10});var c=o.get(["label","position"]);if(c!=="outside"&&c!=="outer")n.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new mt,this.setTextGuideLine(v)),xp(this,_p(o),{stroke:u,opacity:Rt(s.get(["lineStyle","opacity"]),f,1)})}},e})(Dt),tq=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=mn,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,a,n){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),p=1;isNaN(f&&f.startAngle)&&p<o.count();++p)f=o.getItemLayout(p);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var c=aT(t),v=new Dt({shape:ae(c)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(h){var d=new eq(o,h,u);o.setItemGraphicEl(h,d),l.add(d)}).update(function(h,d){var m=s.getItemGraphicEl(d);m.updateData(o,h,u),m.off("click"),l.add(m),o.setItemGraphicEl(h,m)}).remove(function(h){var d=s.getItemGraphicEl(h);Di(d,t,h)}).execute(),iT(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type=mn,e})(Ve),gz=tq;function nT(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(Ce(o)&&!isNaN(o)&&o<0)})}}}function oT(r){r.registerChartView(gz),r.registerSeriesModel(fz),Gg(mn,r.registerAction),r.registerLayout(mz),r.registerProcessor(dn(mn)),r.registerProcessor(nT(mn))}var rq=(function(r){I(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 ur(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,a){return a.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:N.color.primary}},universalTransition:{divideShape:"clone"}},e})(Fe),yz=rq;var xz=4,iq=(function(){function r(){}return r})(),aq=(function(r){I(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 iq},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 a=i.points,n=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]<xz,f=this.softClipShape,p;if(u){this._ctx=l;return}for(this._ctx=null,p=this._off;p<a.length;){var c=a[p++],v=a[p++];isNaN(c)||isNaN(v)||f&&!f.contain(c,v)||(s.x=c-n[0]/2,s.y=v-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=p,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,a=t.size,n=this._ctx,o=this.softClipShape,s;if(n){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var a=this.shape,n=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var f=u*2,p=n[f]-s/2,c=n[f+1]-l/2;if(t>=p&&i>=c&&t<=p+s&&i<=c+l)return u}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.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,a=i.points,n=i.size,o=n[0],s=n[1],l=1/0,u=1/0,f=-1/0,p=-1/0,c=0;c<a.length;){var v=a[c++],h=a[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(h,u),p=Math.max(h,p)}t=this._rect=new fe(l-o/2,u-s/2,f-l+o,p-u+s)}return t},e})(ge),nq=(function(){function r(){this.group=new te}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(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;i=new Float32Array(i.buffer,o,n)}a.setShape("points",i),a.reset(),a.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,i,a){var n=this._newAdded[0],o=t.getLayout("points"),s=n&&n.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),n.endIndex=e.end,n.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,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new aq({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,i){var a=t.hostModel;i=i||{};var n=t.getVisual("symbolSize");e.setShape("size",n instanceof Array?n:[n,n]),e.softClipShape=i.clipShape||null,e.symbolProxy=tt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<xz;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ce(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var p=e.hoverDataIdx;p>=0&&(u.dataIndex=p+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),_z=nq;var oq=(function(r){I(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,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,sT(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._symbolDraw.incrementalUpdate(t,i.getData(),Sr(i),sT(i)),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,a){var n=t.getData();if(this.group.dirty(),this._finished){var o=hn("").reset(t,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(sT(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,i){var a=this._symbolDraw,n=i.pipelineContext,o=n.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new _z:new to,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(Ve);function sT(r){return{clipShape:qy(r)}}var Sz=oq;var u0=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$e).models[0]},e.type="cartesian2dAxis",e})(Le);st(u0,Aa);var bz={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:N.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:N.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:N.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[N.color.backgroundTint,N.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:N.color.neutral00,borderColor:N.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},sq=_e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},bz),lT=_e({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:N.color.axisMinorSplitLine,width:1}}},bz),lq=_e({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},lT),uq=re({logBase:10},lT),f0={category:sq,value:lT,time:lq,log:uq};function gn(r,e,t,i){T(gy,function(a,n){var o=_e(_e({},f0[n],!0),i,!0),s=(function(l){I(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,p){var c=ws(this),v=c?Li(f):{},h=p.getTheme();_e(f,h.get(n+"Axis")),_e(f,this.getDefaultOption()),f.type=wz(f),c&&Ar(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Ls.createByAxisModel(this))},u.prototype.getCategories=function(f){var p=this.option;if(p.type==="category")return f?p.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var p=Uo();return p?p.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+n,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",wz)}function wz(r){return r.type||(r.data?"category":"value")}var fq=(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 U(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ne(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})(),Tz=fq;var dh=["x","y"];function Cz(r){return(r.type==="interval"||r.type==="time")&&!au(r)}var pq=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Gr,t.dimensions=dh,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!Cz(t)||!Cz(i))){var a=_u(t,null),n=_u(i,null),o=this.dataToPoint([a[0],n[0]]),s=this.dataToPoint([a[1],n[1]]),l=a[1]-a[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,p=(s[1]-o[1])/u,c=o[0]-a[0]*f,v=o[1]-n[0]*p,h=this._transform=[f,0,0,p,c,v];this._invTransform=Zt([],h)}}},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"),a=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&a.contain(a.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 a=this.dataToPoint(t),n=this.dataToPoint(i),o=this.getArea(),s=new fe(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,a){a=a||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return ft(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(n,i)),a[1]=l.toGlobalCoord(l.dataToCoord(o,i)),a},e.prototype.clampData=function(t,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(t[0]),u=n.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,a){if(a=a||[],this._invTransform)return ft(a,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(t[0]),i),a[1]=o.coordToData(o.toLocalCoord(t[1]),i),a},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(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(i[0],i[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(i[0],i[1])-n+t,l=Math.max(a[0],a[1])-o+t;return new fe(n,o,s,l)},e})(Tz),Az=pq;function p0(r,e){var t=r.scale,i=r.model,a=by(t,i,i.ecModel,r,null),n=Xn(t),o=Xn(e)?e.intervalStub:e,s=n?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),p=u.length-1,c,v,h;if(p===1)c=v=0,h=1;else if(p===2){var d=ht(u[0].value-u[1].value),m=ht(u[1].value-u[2].value);c=v=0,d===m?h=2:(h=1,d<m?c=d/m:v=m/d)}else{var g=o.getConfig().interval;c=(1-(u[0].value-f[0].value)/g)%1,v=(1-(f[p].value-u[p].value)/g)%1,h=p-(c?1:0)-(v?1:0)}var y=a.zoomFixMM,x=y[0]||y[1],_=[a.fixMM[0]||x,a.fixMM[1]||x],S=t.getExtent(),b=s.getExtent(),w=cy(b,_),A,C,E,D,L,M;function P(q){for(var oe=50,X=0;X<oe&&!q();X++)E=n?E*Ae(l,2):EN(E),D=on(E)}function O(){A=Be(M-E*c,D)}function R(){C=Be(L+E*v,D)}function z(){M=c?Be(A+E*c,D):A}function B(){L=v?Be(C-E*v,D):C}if(_[0]&&_[1]){A=w[0],C=w[1],E=(C-A)/(h+c+v);var F=r.getExtent(),H=ht(F[1]-F[0]);D=_f([C,A],H,.5/h),z(),B(),or(D)&&(E=Be(E,D))}else{var Y=w[1]-w[0];E=n?Ae(Sf(Y),1):yo(Y/h,cS),D=on(E),_[0]?(A=w[0],P(function(){if(z(),L=Be(M+E*h,D),R(),C>=w[1])return!0})):_[1]?(C=w[1],P(function(){if(B(),M=Be(L-E*h,D),O(),A<=w[0])return!0})):P(function(){M=Be(ua(w[0]/E)*E,D),L=Be(_r(w[1]/E)*E,D);var q=yi((L-M)/E);if(q<=h){var oe=h-q,X=void 0,G=a.incl0||n;if(G&&w[0]===0)X=[0,oe];else if(G&&w[1]===0)X=[oe,0];else{var ne=_r(oe/2);X=oe%2===0?[ne,ne]:A+C<w[0]+w[1]?[ne,ne+1]:[ne+1,ne]}if(M=Be(M-E*X[0],D),L=Be(L+E*X[1],D),O(),R(),A<=w[0]&&C>=w[1])return!0}})}_y(t,_,b,[A,C],S,{interval:E,intervalCount:h,intervalPrecision:D,niceExtent:[M,L]})}var Ez=[[3,1],[0,2]],cq=(function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dh,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;T(this._axesList,function(o){Ki(o,ln);var s=o.scale;Mt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=Te(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Jn(f)}T(l,function(p){hq(p,p.__alignTo)?Jn(p):p0(p,p.__alignTo.scale)})}a(i.x),a(i.y);var n={};T(i.x,function(o){Dz(i,"y",o,n)}),T(i.y,function(o){Dz(i,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var a=rt(e,t),n=this._rect=Ze(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(uT(o,n),!i){var u=mq(n,s,o,l,t),f=void 0;if(l)fT?(fT(this._axesList,n),uT(o,n)):f=Pz(n.clone(),"axisLabel",null,n,o,u,a);else{var p=gq(e,n,a),c=p.outerBoundsRect,v=p.parsedOuterBoundsContain,h=p.outerBoundsClamp;c&&(f=Pz(c,v,h,n,o,u,a))}Oz(n,o,Ri.determine,null,f,a),T(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]}se(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a<n.length;a++)if(n[a].getAxis("x").index===e||n[a].getAxis("y").index===t)return n[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",$e).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",$e).models[0],n=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,de(o,s)<0&&(s=null);else if(i&&a)s=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(n){var u=n.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 a=this,n=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,T(s.x,function(f,p){T(s.y,function(c,v){var h="x"+p+"y"+v,d=new Az(h);d.master=a,d.model=e,a._coordsMap[h]=d,a._coordsList.push(d),d.addAxis(f),d.addAxis(c)})}),Iz(s.x),Iz(s.y);function u(f){return function(p,c){if(vq(p,e)){var v=p.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var h=Kn(p),d=new Qy(f,Ca(p,h,!0),[0,0],h,v);d.onBand=qn(d.scale,p),d.inverse=p.get("inverse"),p.axis=d,d.model=p,d.grid=n,d.index=c,n._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],i=[];return T(this.getCartesians(),function(a){var n=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(n);de(t,n)<0&&t.push(n),de(i,o)<0&&i.push(o)}),{baseAxes:t,otherAxes:i}},r.create=function(e,t){var i=[];return e.eachComponent("grid",function(a,n){var o=new r(a,e,t);o.name="grid_"+n,o.resize(a,t,!0),a.coordinateSystem=o,i.push(o),T(o._axesList,function(s){s2(s,r.dimIdxMap)})}),e.eachSeries(function(a){var n,o;Hn({targetModel:a,coordSysType:Gr,coordSysProvider:s});function s(){var l=zk(a),u=l.xAxisModel,f=l.yAxisModel;n=u.axis,o=f.axis;var p=u.getCoordSysModel(),c=p.coordinateSystem;return c.getCartesian(u.componentIndex,f.componentIndex)}n&&o&&(Ea(n,a,Gr),Ea(o,a,Gr))},this),i},r.dimensions=dh,r.dimIdxMap=Uv(dh),r})();function vq(r,e){return r.getCoordSysModel()===e}function Dz(r,e,t,i){t.getAxesOnZeroOf=function(){return n?[n]:[]};var a=r[e],n,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Mz(s,a[l])&&(n=a[l]);else for(var u in a)if(le(a,u)&&Mz(s,a[u])&&!i[f(a[u])]){n=a[u];break}n&&(i[f(n)]=!0);function f(p){return p.dim+"_"+p.index}}function Mz(r,e){if(!e)return!1;var t=e.scale,i=GN(t,0,!1),a=e&&e.type!=="category"&&e.type!=="time"&&i!==yy;return a&&r==="auto"&&WN(e)&&(a=!1),a}function Iz(r){for(var e=Te(r),t,i=[],a=e.length-1;a>=0;a--){var n=r[+e[a]];fy(n.scale)&&B1(n.model,n.type,!0)==null&&(n.model.get("alignTicks")&&n.model.get("interval")==null?i.push(n):t=n)}t||(t=i.pop()),t&&T(i,function(o){o.__alignTo=t})}function hq(r,e){return au(r.scale)||au(e.scale)||e.scale.getTicks().length<2}function dq(r,e){var t=r.getExtent(),i=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return i-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return i-a+e}}function uT(r,e){T(r.x,function(t){return Lz(t,e.x,e.width)}),T(r.y,function(t){return Lz(t,e.y,e.height)})}function Lz(r,e,t){var i=[0,t],a=r.inverse?1:0;r.setExtent(i[a],i[1-a]),dq(r,e)}var fT;function Rz(r){fT=r}function Pz(r,e,t,i,a,n,o){Oz(i,a,Ri.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Vi(s,function(c){return c>0})==null;return ma(i,s,!0,!0,t),uT(a,i),l;function u(c){T(a[De[c]],function(v){if(Tu(v.model)){var h=n.ensureRecord(v.model),d=h.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=v.scale.normalize(sn(v.scale,Hs(g.label).labelInfo.tick));y=c===1?1-y:y,f(g.rect,c,y),f(g.rect,1-c,NaN)}var x=h.nameLayout;if(x){var y=Ps(h.nameLocation)?.5:NaN;f(x.rect,c,y),f(x.rect,1-c,NaN)}}})}function f(c,v,h){var d=r[De[v]]-c[De[v]],m=c[St[v]]+c[De[v]]-(r[St[v]]+r[De[v]]);d=p(d,1-h),m=p(m,h);var g=Ez[v][0],y=Ez[v][1];s[g]=Ae(s[g],d),s[y]=Ae(s[y],m)}function p(c,v){return c>0&&!zt(v)&&v>1e-4&&(c/=v),c}}function mq(r,e,t,i,a){var n=new Zw(yq);return T(t,function(o){return T(o,function(s){if(Tu(s.model)){var l=!i;s.axisBuilder=Vk(r,e,s.model,a,n,l)}})}),n}function Oz(r,e,t,i,a,n){var o=t===Ri.determine;T(e,function(u){return T(u,function(f){Tu(f.model)&&(Uk(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[De[1-u]]=r[St[u]]<=n.refContainer[St[u]]*.5?0:1-u===1?2:1}T(e,function(u,f){return T(u,function(p){Tu(p.model)&&((i==="all"||o)&&p.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&p.axisBuilder.build({axisLine:!0}))})})}function gq(r,e,t){var i,a=r.get("outerBoundsMode",!0);a==="same"?i=e.clone():(a==null||a==="auto")&&(i=Ze(r.get("outerBounds",!0)||Jw,t.refContainer));var n=r.get("outerBoundsContain",!0),o;n==null||n==="auto"||de(["all","axisLabel"],n)<0?o="all":o=n;var s=[xf(J(r.get("outerBoundsClampWidth",!0),hh[0]),e.width),xf(J(r.get("outerBoundsClampHeight",!0),hh[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var yq=function(r,e,t,i,a,n){var o=t.axis.dim==="x"?"y":"x";Kw(r,e,t,i,a,n),Ps(r.nameLocation)||T(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&qw(s.labelInfoList,s.dirVec,i,a)})},Nz=cq;function kz(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return xq(t,r,e),t.seriesInvolved&&Sq(t,r),t}function xq(r,e,t){var i=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),n=a.get("link",!0)||[],o=[];T(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Dp(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,p=f.getModel("tooltip",i);if(T(s.getAxes(),be(d,!1,null)),s.getTooltipAxes&&i&&p.get("show")){var c=p.get("trigger")==="axis",v=p.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(p.get(["axisPointer","axis"]));(c||v)&&T(h.baseAxes,be(d,v?"cross":!0,c)),v&&T(h.otherAxes,be(d,"cross",!1))}function d(m,g,y){var x=y.model.getModel("axisPointer",a),_=x.get("show");if(!(!_||_==="auto"&&!m&&!cT(x))){g==null&&(g=x.get("triggerTooltip")),x=m?_q(y,p,a,e,m,g):x;var S=x.get("snap"),b=x.get("triggerEmphasis"),w=Dp(y.model),A=g||S||y.type==="category",C=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:g,triggerEmphasis:b,involveSeries:A,snap:S,useHandle:cT(x),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||A;var E=bq(n,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[w]=C,D.mapper=n[E].mapper,C.linkGroup=D}}}})}function _q(r,e,t,i,a,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(c){l[c]=ae(o.get(c))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!n){var p=l.lineStyle=o.get("crossStyle");p&&re(u,p.textStyle)}}return r.model.getModel("axisPointer",new Re(l,t,i))}function Sq(r,e){e.eachSeries(function(t){var i=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);!i||!i.model||a==="none"||a===!1||a==="item"||n===!1||t.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[Dp(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 bq(r,e){for(var t=e.model,i=e.dim,a=0;a<r.length;a++){var n=r[a]||{};if(pT(n[i+"AxisId"],t.id)||pT(n[i+"AxisIndex"],t.componentIndex)||pT(n[i+"AxisName"],t.name))return a}}function pT(r,e){return r==="all"||V(r)&&de(r,e)>=0||r===e}function zz(r){var e=c0(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,a=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=cT(t);n==null&&(a.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function c0(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Dp(r)]}function Vz(r){var e=c0(r);return e&&e.axisPointerModel}function cT(r){return!!r.get(["handle","show"])}function Dp(r){return r.type+"||"+r.id}var Uz={},wq=(function(r){I(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,a,n){this.axisPointerClass&&zz(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,i,a,n){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,i){var a=this._axisPointer;a&&a.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,a){var n=e.getAxisPointerClass(this.axisPointerClass);if(n){var o=Vz(t);o?(this._axisPointer||(this._axisPointer=new n)).render(t,o,i,a):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){Uz[t]=i},e.getAxisPointerClass=function(t){return t&&Uz[t]},e.type="axis",e})(We),Ni=wq;var hT=ue();function v0(r,e,t,i){var a=t.axis;if(!a.scale.isBlank()){var n=t.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,p=hT(r).splitAreaColors,c=Z(),v=0;if(p)for(var h=0;h<u.length;h++){var d=p.get(u[h].tickValue);if(d!=null){v=(d+(f-1)*h)%f;break}}var m=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=V(s)?s:[s];for(var h=1;h<u.length;h++){var y=a.toGlobalCoord(u[h].coord),x=void 0,_=void 0,S=void 0,b=void 0;a.isHorizontal()?(x=m,_=l.y,S=y-x,b=l.height,m=x+S):(x=l.x,_=m,S=l.width,b=y-_,m=_+b);var w=u[h-1].tickValue;w!=null&&c.set(w,v),e.add(new xe({anid:w!=null?"area_"+w:null,shape:{x,y:_,width:S,height:b},style:re({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}hT(r).splitAreaColors=c}}}function h0(r){hT(r).splitAreaColors=null}var Tq=["splitArea","splitLine","minorSplitLine","breakArea"],Bz=(function(r){I(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,a,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new te,this.group.add(this._axisGroup),!!Tu(t)){this._axisGroup.add(t.axis.axisBuilder.group),T(Tq,function(l){t.get([l,"show"])&&Cq[l](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=n&&n.type==="changeAxisOrder"&&n.isInitSort;s||Mo(o,this._axisGroup,t),r.prototype.render.call(this,t,i,a,n)}},e.prototype.remove=function(){h0(this)},e.type="cartesianAxis",e})(Ni),Cq={splitLine:function(r,e,t,i,a){var n=t.axis;if(!n.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=V(l)?l:[l];for(var p=i.coordinateSystem.getRect(),c=n.isHorizontal(),v=0,h=n.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle(),y=0;y<h.length;y++){var x=n.toGlobalCoord(h[y].coord);if(!(y===0&&!u||y===h.length-1&&!f)){var _=h[y].tickValue;c?(d[0]=x,d[1]=p.y,m[0]=x,m[1]=p.y+p.height):(d[0]=p.x,d[1]=x,m[0]=p.x+p.width,m[1]=x);var S=v++%l.length,b=new ct({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:re({stroke:l[S]},g),silent:!0});Do(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(r,e,t,i,a){var n=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=n.isHorizontal(),f=n.getMinorTicksCoords();if(f.length)for(var p=[],c=[],v=s.getLineStyle(),h=0;h<f.length;h++)for(var d=0;d<f[h].length;d++){var m=n.toGlobalCoord(f[h][d].coord);u?(p[0]=m,p[1]=l.y,c[0]=m,c[1]=l.y+l.height):(p[0]=l.x,p[1]=m,c[0]=l.x+l.width,c[1]=m);var g=new ct({anid:"minor_line_"+f[h][d].tickValue,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]},style:v,silent:!0});Do(g.shape,v.lineWidth),e.add(g)}},splitArea:function(r,e,t,i,a){v0(r,e,t,i)},breakArea:function(r,e,t,i,a){var n=Uo(),o=t.axis.scale;n&&o.type!=="ordinal"&&n.rectCoordBuildBreakAxis(e,r,t,i.coordinateSystem.getRect(),a)}},dT=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(Bz);var Fz=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=dT.type,t}return e.type="yAxis",e})(Bz);var Aq=(function(r){I(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:re({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(We),Gz={offset:0};function d0(r){r.registerComponentView(Aq),r.registerComponentModel(Gk),r.registerCoordinateSystem("cartesian2d",Nz),gn(r,"x",u0,Gz),gn(r,"y",u0,Gz),r.registerComponentView(dT),r.registerComponentView(Fz),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Xs="single",Hz="singleAxis",m0="singleAxis",Wz=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type=m0,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e})(Le);st(Wz,Aa.prototype);var g0=Wz;function Xz(r,e){var t=r.coordinateSystem,i=t&&t.type,a=t&&t.getBaseAxis&&t.getBaseAxis(),n=a&&a.scale&&a.scale.type,o=i===Gr&&n==="ordinal"||i===Xs,s=e.model.get("jitter")>0;return o&&s}var Eq=ue();function mT(r,e,t,i){if(r instanceof Qy){var a=r.scale.type;if(a!=="ordinal")return t}var n=r.model,o=n.get("jitter");if(!(o>0))return t;var s=n.get("jitterOverlap"),l=n.get("jitterMargin")||0,u=Mt(r.scale)?bt(r).w:null;return s?Zz(t,o,u,i):Dq(r,e,t,i,o,l)}function Zz(r,e,t,i){if(t===null)return r+(Math.random()-.5)*e;var a=t-i*2,n=Math.min(Math.max(0,e),a);return r+(Math.random()-.5)*n}function Dq(r,e,t,i,a,n){var o=Eq(r);o.items||(o.items=[]);var s=o.items,l=Yz(s,e,t,i,a,n,1),u=Yz(s,e,t,i,a,n,-1),f=Math.abs(l-t)<Math.abs(u-t)?l:u,p=Mt(r.scale)?bt(r).w:null,c=Math.abs(f-t);return c>a/2||p&&c>p/2-i?Zz(t,a,p,i):(s.push({fixedCoord:e,floatCoord:f,r:i}),f)}function Yz(r,e,t,i,a,n,o){for(var s=t,l=0;l<r.length;l++){var u=r[l],f=e-u.fixedCoord,p=s-u.floatCoord,c=f*f+p*p,v=i+u.r+n;if(c<v*v){var h=u.floatCoord+Math.sqrt(v*v-f*f)*o;if(Math.abs(h-t)>a/2)return Number.MAX_VALUE;if(o===1&&h>s||o===-1&&h<s){s=h,l=-1;continue}}}return s}function gT(){return{seriesType:"scatter",plan:Qr(),reset:function(r){var e=r.coordinateSystem;if(!(!e||e.type!==Gr&&e.type!==Xs)){var t=e.getBaseAxis&&e.getBaseAxis(),i=t&&Xz(r,t);if(i){var a=t.dim,n=t.orient,o=n==="horizontal"&&t.type!=="category"||n==="vertical"&&t.type==="category",s=a==="y"||a==="single"&&o,l=a==="x"||a==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var p=f.getLayout("points"),c=!!p,v=u.start;v<u.end;v++){var h=c?(v-u.start)*2:-1,d=c?[p[h],p[h+1]]:f.getItemLayout(v);if(d){var m=f.getItemVisual(v,"symbolSize"),g=m instanceof Array?(m[1]+m[0])/2:m;if(s){var y=mT(t,d[0],d[1],g/2);c?p[h+1]=y:d[1]=y}else if(l){var y=mT(t,d[1],d[0],g/2);c?p[h]=y:d[0]=y}}}}}}}}}}function yT(r){Me(d0),r.registerSeriesModel(yz),r.registerChartView(Sz),r.registerLayout(hn("scatter"))}function xT(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,gT())}function _T(r){var e=r.polar;if(e){V(e)||(e=[e]);var t=[];T(e,function(i,a){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),r.radar=r.radar||[],V(r.radar)||(r.radar=[r.radar]),r.radar.push(i)):t.push(i)}),r.polar=t}T(r.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var Lu="radar",Mq=(function(r){I(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.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ma(K(this.getData,this),K(this.getRawData,this))},e.prototype.getInitialData=function(t,i){return ji(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=Pg(this,t);return vt("section",{header:u,sortBlocks:!0,blocks:U(s,function(p){var c=n.get(n.mapDimension(p.dim),t);return vt("nameValue",{markerType:"subItem",markerColor:f,name:p.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var i=this.getData(),a=this.coordinateSystem,n=i.getValues(U(a.dimensions,function(u){return i.mapDimension(u)}),t),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(n[o]),o)}}},e.type="series."+Lu,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(Fe),Kz=Mq;var Iq=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Lu,t}return e.prototype.render=function(t,i,a){var n=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,v){var h=c.getItemVisual(v,"symbol")||"circle";if(h!=="none"){var d=an(c.getItemVisual(v,"symbolSize")),m=tt(h,-1,-1,2,2),g=c.getItemVisual(v,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:g*Math.PI/180||0}),m}}function f(c,v,h,d,m,g){h.removeAll();for(var y=0;y<v.length-1;y++){var x=u(d,m);x&&(x.__dimIdx=y,c[y]?(x.setPosition(c[y]),Ie[g?"initProps":"updateProps"](x,{x:v[y][0],y:v[y][1]},t,m)):x.setPosition(v[y]),h.add(x))}}function p(c){return U(c,function(v){return[n.cx,n.cy]})}s.diff(l).add(function(c){var v=s.getItemLayout(c);if(v){var h=new _t,d=new mt,m={shape:{points:v}};h.shape.points=p(v),d.shape.points=p(v),Xe(h,m,t,c),Xe(d,m,t,c);var g=new te,y=new te;g.add(d),g.add(h),g.add(y),f(d.shape.points,v,y,s,c,!0),s.setItemGraphicEl(c,g)}}).update(function(c,v){var h=l.getItemGraphicEl(v),d=h.childAt(0),m=h.childAt(1),g=h.childAt(2),y={shape:{points:s.getItemLayout(c)}};y.shape.points&&(f(d.shape.points,y.shape.points,g,s,c,!1),Ht(m),Ht(d),Pe(d,y,t),Pe(m,y,t),s.setItemGraphicEl(c,h))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var h=s.getItemModel(v),d=c.childAt(0),m=c.childAt(1),g=c.childAt(2),y=s.getItemVisual(v,"style"),x=y.fill;o.add(c),d.useStyle(re(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),ut(d,h,"lineStyle"),ut(m,h,"areaStyle");var _=h.getModel("areaStyle"),S=_.isEmpty()&&_.parentModel.isEmpty();m.ignore=S,T(["emphasis","select","blur"],function(w){var A=h.getModel([w,"areaStyle"]),C=A.isEmpty()&&A.parentModel.isEmpty();m.ensureState(w).ignore=C&&S;var E=h.getModel([w,"lineStyle"]).getLineStyle();d.ensureState(w).style=E;var D=A.getAreaStyle();m.ensureState(w).style=D;var L=h.getModel([w,"itemStyle"]).getItemStyle();g.eachChild(function(M){M.ensureState(w).style=ae(L)})}),m.useStyle(re(h.getModel("areaStyle").getAreaStyle(),{fill:x,opacity:.7,decal:y.decal}));var b=h.getModel("emphasis");g.eachChild(function(w){if(w instanceof pt){var A=w.style;w.useStyle(k({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},y))}else w.useStyle(y),w.setColor(x),w.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(w.__dimIdx),v);(C==null||isNaN(C))&&(C=""),ot(w,at(h),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:w.__dimIdx,defaultText:C,inheritColor:x,defaultOpacity:y.opacity})}),He(c,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Lu,e})(Ve),qz=Iq;var mh=f0.value,Mp="radar",ST=Mp,jz=Mp,bT=5;function y0(r,e){return re({show:e},r)}var Lq=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),a=this.get("clockwise"),n=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),p=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),v=this.get("triggerEvent"),h=U(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var m=u;d.color!=null&&(m=re({color:d.color},u));var g=_e(ae(d),{boundaryGap:t,splitNumber:i,clockwise:a,scale:n,axisLine:o,axisTick:s,axisLabel:l,name:d.text,showName:f,nameLocation:"end",nameGap:c,nameTextStyle:m,triggerEvent:v},!1);if(W(p)){var y=g.name;g.name=p.replace("{value}",y??"")}else ee(p)&&(g.name=p(g.name,g));var x=new Re(g,null,this.ecModel);return st(x,Aa.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x.uid=Mi("ec_radar"),x},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=ST,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:N.color.axisLabel},boundaryGap:[0,0],splitNumber:bT,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_e({lineStyle:{color:N.color.neutral20}},mh.axisLine),axisLabel:y0(mh.axisLabel,!1),axisTick:y0(mh.axisTick,!1),splitLine:y0(mh.splitLine,!0),splitArea:y0(mh.splitArea,!0),indicator:[]},e})(Le),Jz=Lq;var Pq=(function(r){I(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,a){var n=this.group;n.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,i){var a=t.coordinateSystem,n=a.getIndicatorAxes(),o=U(n,function(s){var l=s.model.get("showName")?s.name:"",u=new Mr(s.model,i,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});T(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),p=s.get("show"),c=l.get("color"),v=u.get("color"),h=V(c)?c:[c],d=V(v)?v:[v],m=[],g=[];function y(O,R,z){var B=z%R.length;return O[B]=O[B]||[],B}if(n==="circle")for(var x=a[0].getTicksCoords(),_=i.cx,S=i.cy,b=0;b<x.length;b++){if(f){var w=y(m,h,b);m[w].push(new Tr({shape:{cx:_,cy:S,r:x[b].coord}}))}if(p&&b<x.length-1){var w=y(g,d,b);g[w].push(new To({shape:{cx:_,cy:S,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var A,C=U(a,function(O,R){var z=O.getTicksCoords();return A=A==null?z.length-1:Math.min(z.length-1,A),U(z,function(B){return i.coordToPoint(B.coord,R)})}),E=[],b=0;b<=A;b++){for(var D=[],L=0;L<a.length;L++)D.push(C[L][b]);if(D[0]&&D.push(D[0].slice()),f){var w=y(m,h,b);m[w].push(new mt({shape:{points:D}}))}if(p&&E){var w=y(g,d,b-1);g[w].push(new _t({shape:{points:D.concat(E)}}))}E=D.slice().reverse()}var M=l.getLineStyle(),P=u.getAreaStyle();T(g,function(O,R){this.group.add(mr(O,{style:re({stroke:"none",fill:d[R%d.length]},P),silent:!0}))},this),T(m,function(O,R){this.group.add(mr(O,{style:re({fill:"none",stroke:h[R%h.length]},M),silent:!0}))},this)},e.type="radar",e})(We),Qz=Pq;var Rq=(function(r){I(e,r);function e(t,i,a){var n=r.call(this,t,i,a)||this;return n.type="value",n.angle=0,n.name="",n}return e})(yr),$z=Rq;var Oq=(function(){function r(e,t,i){this.type=Mp,this.dimensions=[],this._model=e,this._indicatorAxes=U(e.getIndicatorModels(),function(a,n){var o="indicator_"+n,s=new $z(o,new Zn);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,i)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],a=i.angle,n=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[n,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=Math.sqrt(t*t+i*i);t/=a,i/=a;for(var n=Math.atan2(-i,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],p=Math.abs(n-f.angle);p<o&&(s=f,l=u,o=p)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var i=rt(e,t).refContainer,a=e.get("center"),n=e.get("clockwise")||!1,o=Math.min(i.width,i.height)/2;this.cx=$(a[0],i.width)+i.x,this.cy=$(a[1],i.height)+i.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(W(s)||Ce(s))&&(s=[0,s]),this.r0=$(s[0],o),this.r=$(s[1],o);var l=n?-1:1;T(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var p=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;p=Math.atan2(Math.sin(p),Math.cos(p)),u.angle=p},this)},r.prototype.update=function(e,t){var i=this._indicatorAxes,a=this._model,n=Su(a.get("splitNumber"),bT),o=new Zn;o.setExtent(0,n),o.setConfig({interval:1}),T(i,function(s){Ki(s,ln),p0(s,o)})},r.prototype.convertToPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var i=[];return e.eachComponent(ST,function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachSeriesByType(jz,function(a){if(a.get("coordinateSystem")===Mp){var n=a.coordinateSystem=i[a.get("radarIndex")||0];n&&T(n.getIndicatorAxes(),function(o){Ea(o,a,Mp)})}}),i},r.dimensions=[],r})(),eV=Oq;function tV(r){r.registerCoordinateSystem("radar",eV),r.registerComponentModel(Jz),r.registerComponentView(Qz),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var aV=et(Lu,Nq);function Nq(r){r.eachSeriesByType(Lu,function(e){var t=e.getData(),i=[],a=e.coordinateSystem;if(a){var n=a.getIndicatorAxes();T(n,function(o,s){t.each(t.mapDimension(n[s].dim),function(l,u){i[u]=i[u]||[];var f=a.dataToPoint(l,s);i[u][s]=rV(f)?f:iV(a)})}),t.each(function(o){var s=Vi(i[o],function(l){return rV(l)})||iV(a);i[o].push(s.slice()),t.setItemLayout(o,i[o])})}})}function rV(r){return!isNaN(r[0])&&!isNaN(r[1])}function iV(r){return[r.cx,r.cy]}function wT(r){Me(tV),r.registerChartView(qz),r.registerSeriesModel(Kz),r.registerLayout(aV),r.registerProcessor(dn("radar")),r.registerPreprocessor(_T)}var TT=ue();function nV(r,e,t){TT(r)[e]=t}function oV(r,e,t){var i=TT(r),a=i[e];a===t&&(i[e]=null)}function CT(r,e){return!!TT(r)[e]}ei({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},nt);var kq={axisPointer:1,tooltip:1,brush:1};function x0(r,e,t){var i=e.getComponentByElement(r.topTarget);if(!i||i===t||kq.hasOwnProperty(i.mainType))return!1;var a=i.coordinateSystem;if(!a||a.model===t)return!1;var n=ga(i),o=ga(t);return!((n.zlevel-o.zlevel||n.z-o.z)<=0)}var zq=(function(r){I(e,r);function e(t){var i=r.call(this)||this;i._zr=t;var a=K(i._mousedownHandler,i),n=K(i._mousemoveHandler,i),o=K(i._mouseupHandler,i),s=K(i._mousewheelHandler,i),l=K(i._pinchHandler,i);return i.enable=function(u,f){var p=f.zInfo,c=ga(p.component),v=c.z,h=c.zlevel,d={component:p.component,z:v,zlevel:h,z2:J(p.z2,-1/0)},m=k({},f.triggerInfo);this._opt=re(k({},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")&&(yh(t,"mousedown",a,d),yh(t,"mousemove",n,d),yh(t,"mouseup",o,d)),(u===!0||u==="scale"||u==="zoom")&&(yh(t,"mousewheel",s,d),yh(t,"pinch",l,d)))},i.disable=function(){this._enabled&&(this._enabled=!1,xh(t,"mousedown",a),xh(t,"mousemove",n),xh(t,"mouseup",o),xh(t,"mousewheel",s),xh(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,a){var n=this._opt,o=n.zInfoParsed;if(x0(t,n.api,o.component))return!1;var s=n.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,i,a)),u&&s.isInClip&&!s.isInClip(t,i,a)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,i,a,n){var o=t.target;if(!o&&this._checkPointer(t,i,a))return this._opt.cursorGrab;if(n)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(T_(t)||gh(t))){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var a=t.offsetX,n=t.offsetY;this._checkPointer(t,a,n)&&(this._x=a,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var i=this._zr;if(!(t.gestureEvent==="pinch"||CT(i,"globalPan")||gh(t))){var a=t.offsetX,n=t.offsetY;if(!this._dragging||!_0("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,a,n,!1);o&&i.setCursorStyle(o);return}i.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=a-s,f=n-l;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&vi(t.event),t.__ecRoamConsumed=!0,lV(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!gh(t)){var i=this._zr;if(!T_(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&i.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!gh(t)){var i=_0("zoomOnMouseWheel",t,this._opt),a=_0("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),s=t.offsetX,l=t.offsetY;if(!(n===0||!i&&!a)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var p=Math.abs(n),c=(n>0?1:-1)*(p>3?.4:p>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(CT(this._zr,"globalPan")||gh(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,a,n,o){t._checkPointer(n,o.originX,o.originY)&&(vi(n.event),n.__ecRoamConsumed=!0,lV(t,i,a,n,o))},e})(Qt);function gh(r){return r.__ecRoamConsumed}var Vq=ue();function S0(r){var e=Vq(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function yh(r,e,t,i){for(var a=S0(r),n=a.roam,o=n[e]=n[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}),Uq(r,e)}function xh(r,e,t){for(var i=S0(r),a=i.roam[e]||[],n=0;n<a.length;n++)if(a[n].listener===t){a.splice(n,1),a.length||Bq(r,e);return}}function Uq(r,e){var t=S0(r);t.uniform[e]||r.on(e,t.uniform[e]=function(i){var a=t.roam[e];if(a)for(var n=0;n<a.length;n++)a[n].listener(i)})}function Bq(r,e){var t=S0(r),i=t.uniform;i[e]&&(r.off(e,i[e]),i[e]=null)}function lV(r,e,t,i,a){a.isAvailableBehavior=K(_0,null,t,i),r.trigger(e,a)}function _0(r,e,t){var i=t[r];return!r||i&&(!W(i)||e.event[i+"Key"])}var ki=zq;function b0(r){if(W(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var AT,w0={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},uV=Te(w0),T0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},fV=Te(T0),Fq=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var i=b0(e);this._defsUsePending=[];var a=new te;this._root=a;var n=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ji(i,a,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;Wq(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var c=C0(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(p=DT(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=a;a=new te,a.add(v),v.scaleX=v.scaleY=p.scale,v.x=p.x,v.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new xe({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:n}},r.prototype._parseNode=function(e,t,i,a,n,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var f=AT[s];if(f&&le(AT,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var c={name:p,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(u=c)}else a&&i.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var v=pV[s];if(v&&le(pV,s)){var h=v.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=h)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,i,u,n,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},r.prototype._parseText=function(e,t){var i=new _o({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ia(t,i),Ji(e,i,this._defsUsePending,!1,!1),Gq(i,t);var a=i.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,i.scaleX*=n/9,i.scaleY*=n/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},r.internalField=(function(){AT={g:function(e,t){var i=new te;return Ia(t,i),Ji(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new xe;return Ia(t,i),Ji(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new Tr;return Ia(t,i),Ji(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new ct;return Ia(t,i),Ji(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new Kl;return Ia(t,i),Ji(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),a;i&&(a=hV(i));var n=new _t({shape:{points:a||[]},silent:!0});return Ia(t,n),Ji(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var i=e.getAttribute("points"),a;i&&(a=hV(i));var n=new mt({shape:{points:a||[]},silent:!0});return Ia(t,n),Ji(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var i=new pt;return Ia(t,i),Ji(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(o);var s=new te;return Ia(t,s),Ji(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),a=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),a!=null&&(this._textY=parseFloat(a));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new te;return Ia(t,s),Ji(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var i=e.getAttribute("d")||"",a=Cm(i);return Ia(t,a),Ji(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}})(),r})(),pV={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),n=new Ei(e,t,i,a);return cV(r,n),vV(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),a=new kf(e,t,i);return cV(r,a),vV(r,a),a}};function cV(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function vV(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),a=void 0;i&&i.indexOf("%")>0?a=parseInt(i,10)/100:i?a=parseFloat(i):a=0;var n={};gV(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000",s=n.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=nr(o),u=l&&l[3];u&&(l[3]*=vo(s),o=di(l,"rgba"))}e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ia(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),re(e.__inheritedStyle,r.__inheritedStyle))}function hV(r){for(var e=C0(r),t=[],i=0;i<e.length;i+=2){var a=parseFloat(e[i]),n=parseFloat(e[i+1]);t.push([a,n])}return t}function Ji(r,e,t,i,a){var n=e,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};r.nodeType===1&&(Zq(r,e),gV(r,o,s),i||Kq(r,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=dV(n,"fill",o.fill,t)),o.stroke!=null&&(n.style.stroke=dV(n,"stroke",o.stroke,t)),T(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(n.style[l]=parseFloat(o[l]))}),T(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(n.style[l]=o[l])}),a&&(n.__selfStyle=s),o.lineDash&&(n.style.lineDash=U(C0(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function Gq(r,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,a=i;!i||i==="auto"||i==="baseline"?a="alphabetic":i==="before-edge"||i==="text-before-edge"?a="top":i==="after-edge"||i==="text-after-edge"?a="bottom":(i==="central"||i==="mathematical")&&(a="middle"),r.style.textBaseline=a}var n=e.__inheritedStyle;if(n){var o=n.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Hq=/^url\(\s*#(.*?)\)/;function dV(r,e,t,i){var a=t&&t.match(Hq);if(a){var n=Jt(a[1]);i.push([r,e,n]);return}return t==="none"&&(t=null),t}function Wq(r,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=r[i[2]]}}var Yq=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function C0(r){return r.match(Yq)||[]}var Xq=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ET=Math.PI/180;function Zq(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],a=null;t.replace(Xq,function(p,c,v){return i.push(c,v),""});for(var n=i.length-1;n>0;n-=2){var o=i[n],s=i[n-1],l=C0(o);switch(a=a||it(),s){case"translate":xr(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":uf(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Pr(a,a,-parseFloat(l[0])*ET,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ET);ar(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*ET);ar(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var mV=/([^\s:;]+)\s*:\s*([^:;]+)/g;function gV(r,e,t){var i=r.getAttribute("style");if(i){mV.lastIndex=0;for(var a;(a=mV.exec(i))!=null;){var n=a[1],o=le(w0,n)?w0[n]:null;o&&(e[o]=a[2]);var s=le(T0,n)?T0[n]:null;s&&(t[s]=a[2])}}}function Kq(r,e,t){for(var i=0;i<uV.length;i++){var a=uV[i],n=r.getAttribute(a);n!=null&&(e[w0[a]]=n)}for(var i=0;i<fV.length;i++){var a=fV[i],n=r.getAttribute(a);n!=null&&(t[T0[a]]=n)}}function DT(r,e){var t=e.width/r.width,i=e.height/r.height,a=Math.min(t,i);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function yV(r,e){var t=new Fq;return t.parse(r,e)}var qq=Z(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),xV=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=Z(),this._freedGraphics=[],this._mapName=e,this._parsedXML=b0(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Jq(e.named),i=t.regions,a=t.regionsMap;this._regions=i,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,i;try{t=e&&yV(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,lt(i!=null)}catch(m){throw new Error(`Invalid svg format
18
+ `+m.message)}var a=new te;a.add(i),a.isGeoSVGGraphicRoot=!0;var n=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,p=void 0,c=void 0;if(n!=null?(u=0,p=n):s&&(u=s.x,p=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var v=i.getBoundingRect();u==null&&(u=v.x,p=v.width),f==null&&(f=v.y,c=v.height)}l=this._boundingRect=new fe(u,f,p,c)}if(s){var h=DT(s,l);i.scaleX=i.scaleY=h.scale,i.x=h.x,i.y=h.y}a.setClipPath(new xe({shape:l.plain()}));var d=[];return T(t.named,function(m){qq.get(m.svgNodeTagLower)!=null&&(d.push(m),jq(m.el))}),{root:a,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},r})();function jq(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function Jq(r){var e=[],t=Z();return T(r,function(i){if(i.namedFrom==null){var a=new d2(i.name,i.el);e.push(a),t.set(i.name,a)}}),{regions:e,regionsMap:t}}var MT=[126,25],_V="\u5357\u6D77\u8BF8\u5C9B",Ru=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(Zs=0;Zs<Ru.length;Zs++)for(Pu=0;Pu<Ru[Zs].length;Pu++)Ru[Zs][Pu][0]/=10.5,Ru[Zs][Pu][1]/=-10.5/.75,Ru[Zs][Pu][0]+=MT[0],Ru[Zs][Pu][1]+=MT[1];var Pu,Zs;function IT(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===_V)return;e.push(new wy(_V,U(Ru,function(i){return{type:"polygon",exterior:i}}),MT))}}var Qq={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function LT(r,e){if(r==="china"){var t=Qq[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var $q=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function PT(r,e){r==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:$q[0]})}var ej="name",SV=(function(){function r(e,t,i){this.type="geoJSON",this._parsedMap=Z(),this._mapName=e,this._specialAreas=i,this._geoJSON=rj(t)}return r.prototype.load=function(e,t){t=t||ej;var i=this._parsedMap.get(t);if(!i){var a=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:a,boundingRect:tj(a)})}var n=Z(),o=[];return T(i.regions,function(s){var l=s.name;e&&le(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:i.boundingRect||new fe(0,0,0,0),regionsMap:n}},r.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,a;try{a=i?Q1(i,e):[]}catch(n){throw new Error(`Invalid geoJson format
19
+ `+n.message)}return IT(t,a),T(a,function(n){var o=n.name;LT(t,n),PT(t,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function tj(r){for(var e,t=0;t<r.length;t++){var i=r[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function rj(r){return W(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var _h=Z(),li={registerMap:function(r,e,t){if(e.svg){var i=new xV(r,e.svg);_h.set(r,i)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var i=new SV(r,a,t);_h.set(r,i)}},getGeoResource:function(r){return _h.get(r)},getMapForUser:function(r){var e=_h.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var i=_h.get(r);if(i)return i.load(e,t)}};var Ho=0,qs=1,Qi=2;var ij="view",aj=(function(r){I(e,r);function e(t,i,a){var n=r.call(this)||this;n.type=ij,n.dimensions=["x","y"];var o=n;o.invertY=t,o.lgCt=i,o.lgGeo=a;var s=o.trans=[];return s[Ho]=Ll(),s[qs]=Ll(),s[Qi]=Ll(),o.mtRaw=it(),o.mtRawInv=it(),o.mtOverall=it(),o.mtOverallInv=it(),o.zoom=1,n}return e.prototype.getBoundingRect=function(){return kT(null,this)},e.prototype.getViewRect=function(){return bh(null,this)},e.prototype.getRoamTransform=function(){return Dn(this.trans[qs])},e.prototype.dataToPoint=function(t,i,a){var n=i?this.mtRaw:this.mtOverall;return a=a||[],n?ft(a,t,n):rr(a,t)},e.prototype.pointToData=function(t,i,a){a=a||[];var n=this.mtOverallInv;return n?ft(a,t,n):rr(a,t)},e.prototype.convertToPixel=function(t,i,a){var n=AV(i);return n===this?n.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,i,a){var n=AV(i);return n===this?n.pointToData(a):null},e.prototype.containPoint=function(t){var i=this;return Sl(A0,i.dataRect),xd(A0,A0,i.mtOverall),eM(A0,t[0],t[1])},e.dimensions=["x","y"],e})(gi),A0=Ec();function Nu(r,e){return Tn(r||[],e.mtOverall)}function MV(r){return r.zoom}function kT(r,e){return Sl(r||Ec(),e.dataRect)}function bh(r,e){return Sl(r||Ec(),e.viewRect)}function Ou(r,e,t){return mi(r||Ll(),e.trans[t])}function zT(r){return!!(r.dataRect&&r.viewRect)}function nj(r,e,t,i){i===qs?IV(r,e.trans[Ho],t):mi(r,t)}function bV(r,e,t){Dn(t,E0),ar(E0,E0,e.mtRawInv),hv(r,E0)}var E0=it();function wh(r,e){var t=r;t.centerOption=e.getShallow("center");var i=t.zoomLimit=e.getShallow("scaleLimit"),a=e.getShallow("zoom");t.zoom=R0(a||1,i)||1,zT(t)&&VT(t)}function js(r,e,t,i,a){var n=r;n.dataRect=new fe(e,t,i,a),zT(n)&&VT(n)}function ku(r,e,t,i,a){var n=r;n.viewRect=new fe(e,t,i,a),zT(n)&&VT(n)}function VT(r){oj(r),lj(r),uj(r)}function oj(r){var e=r.dataRect,t=r.viewRect,i=r.trans[Ho],a=r.invertY;a&&(e=Sl(sj,e),e.y=-e.y-e.height),I_(wV,e,t),hv(i,wV),a&&(i.scaleY=-i.scaleY);var n=Dn(i,r.mtRaw);Zt(r.mtRawInv,n)}var wV=it(),sj=Ec();function lj(r){var e=LV(r),t=cj(RT,r,r.centerOption)?ft(RT,RT,r.mtRaw):e,i=r.zoom,a=r.trans[qs];a.x=e[0]-i*t[0],a.y=e[1]-i*t[1],a.scaleX=a.scaleY=i}var RT=[];function uj(r){var e=r.trans,t=e[qs],i=e[Ho],a=e[Qi];IV(a,i,t);var n=Dn(a,r.mtOverall),o=Zt(r.mtOverallInv,n);TV(r,a,n,o),TV(r.lgGeo,a,n,o)}function TV(r,e,t,i){r&&(mi(r,e),Tn(r.transform||(r.transform=[]),t),Tn(r.invTransform||(r.invTransform=[]),i))}function IV(r,e,t){Dn(e,CV),Dn(t,D0),ar(D0,D0,CV),hv(r,D0)}var CV=it(),D0=it();function AV(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function LV(r){var e=r.viewRect;return OT[0]=e.x+e.width/2,OT[1]=e.y+e.height/2,OT}var OT=[];function M0(r){return r&&r.type==="view"}function La(r,e,t,i){var a=t;a.syncBackEl=r,a.syncBackType=e,i?Pe(r,Ou(null,t,e),i):(Ou(r,t,e),r.dirty())}function fj(r,e,t,i){var a=r,n=a.syncBackEl;n?(n.stopAnimation(),nj(Ks,a,n,a.syncBackType)):mi(Ks,a.trans[Qi]),bV(NT,a,Ks),i?pj(Ks,NT,a,i):mi(Ks,NT),bV(Ks,a,Ks),hj(a,e,t,Ks)}var Ks=Ll(),NT=Ll();function I0(r,e,t){var i=Ip(e);i&&(fj(i,e,t,r),wh(i,e))}function Ip(r){return r.__ownRoamView?r.__ownRoamView():null}function L0(r,e,t,i){t.setUpdatePayload(vv(r));var a=cm(i,e);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(r,e,i)}function pj(r,e,t,i){i.dx!=null&&i.dy!=null&&(r.x+=i.dx,r.y+=i.dy);var a=i.zoom;if(a!=null){var n=PV(e),o=R0(n*a,t.zoomLimit),s=o/n;r.x-=(i.originX-r.x)*(s-1),r.y-=(i.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function PV(r){return r.scaleX}function cj(r,e,t){var i=e.dataRect;if(!t)return!1;var a=e.lgCt;return a?ta(r,$(t[0],a.w),$(t[1],a.h)):i&&ta(r,$(t[0],i.width,i.x),$(t[1],i.height,i.y)),!0}function vj(r,e){var t=r.centerOption,i=r.dataRect;return!t||r.lgCt?e.slice():[EV(0,e,t,i),EV(1,e,t,i)]}function EV(r,e,t,i){return t&&i&&i[St[r]]&&nI(t[r])?(e[r]-i[De[r]])/i[St[r]]*100+"%":e[r]}function P0(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function hj(r,e,t,i){var a=LV(r),n=PV(i),o=ht(n)>1e-6;Sh[0]=o?(a[0]-i.x)/n:a[0],Sh[1]=o?(a[1]-i.y)/n:a[1],ft(Sh,Sh,r.mtRawInv);var s=vj(r,Sh);DV(e,s,n),T(t,function(l){l!==e&&DV(l,s.slice(),n)})}var Sh=[];function DV(r,e,t){var i=r.option;i.center=e,i.zoom=t}function R0(r,e){if(e){var t=e.min||0,i=e.max||1/0;r=Math.max(Math.min(i,r),t)}return r}function O0(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,i=r;return((i.zoom-1)*t+1)/(i.trans[Qi].scaleX||1)}var Js=aj;function Qs(r,e,t,i,a,n,o,s){var l=Ip(r);if(!l){t.disable();return}t.enable(J(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:i,isInClip:function(f,p,c){return!a||a.contain(p,c)}}});function u(f){var p=r.mainType,c=vv(re({type:RV(p,r.subType,HS)},f));s&&(c.componentType=p),c[p+"Id"]=r.id,e.dispatchAction(c)}t.off("pan").off("zoom").on("pan",function(f){n&&n("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){n&&n("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function N0(r){return function(e,t,i){return UT.copy(r.getBoundingRect()),UT.applyTransform(r.getComputedTransform()),UT.contain(t,i)}}var UT=new fe(0,0,0,0);function Lp(r,e,t){var i=RV(e,t,HS);r.registerAction({type:i,event:i,update:"none"},function(a,n,o){n.eachComponent(Af(a,e,t),function(s){I0(a,s),L0(a,s,n,o)})})}function RV(r,e,t){return(r!==wr?r:e==="map"?"geo":e)+t}function k0(r){return r.zoom!=null}function Pp(r,e,t,i,a,n,o){var s=new Js(null,P0(r.ecModel,e));return js(s,t,i,a,n),o?ku(s,o.x,o.y,o.width,o.height):ku(s,t,i,a,n),wh(s,r),s}var BT=["rect","circle","line","ellipse","polygon","polyline","path"],dj=Z(BT),mj=Z(BT.concat(["g"])),gj=Z(BT.concat(["g"])),FV=ue();function z0(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function OV(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var yj=(function(){function r(e){var t=this.group=new te,i=this._transformGroup=new te;t.add(i),this.uid=Mi("ec_map_draw"),this._controller=new ki(e.getZr()),i.add(this._regionsGroup=new te),i.add(this._svgGroup=new te)}return r.prototype.draw=function(e,t,i,a,n){var o=this,s=e.getData&&e.getData();Rp(e)&&t.eachComponent({mainType:"series",subType:"map"},function(d){!s&&d.getHostGeoModel()===e&&(s=d.getData())});var l=e.coordinateSystem,u=l.view,f=this._regionsGroup,p=this._transformGroup,c=!f.childAt(0)||n,v;l.shouldClip()?(v=bh(null,u),this.group.setClipPath(new xe({shape:v.clone()}))):this.group.removeClipPath(),La(p,qs,u,c?null:e);var h=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,i,l,e,s,h):l.resourceType==="geoSVG"&&this._buildSVG(u,i,l,e,s,h),Qs(e,i,this._controller,function(d,m,g){return e.coordinateSystem.containPoint([m,g])},v,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,f,i,a)},r.prototype.__updateOnOwnRoam=function(e){La(this._transformGroup,qs,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,i,a,n,o){var s=this._regionsGroupByName=Z(),l=Z(),u=this._regionsGroup,f=i.projection,p=f&&f.stream,c=Dn(Ou(null,e,Ho));function v(m,g){return g&&(m=g(m)),m&&ft([],m,c)}function h(m){for(var g=[],y=!p&&f&&f.project,x=0;x<m.length;++x){var _=v(m[x],y);_&&g.push(_)}return g}function d(m){return{shape:{points:h(m)}}}u.removeAll(),T(i.regions,function(m){var g=m.name,y=s.get(g),x=l.get(g)||{},_=x.dataIdx,S=x.regionModel;if(!y){y=s.set(g,new te),u.add(y),_=n?n.indexOfName(g):null,S=Rp(a)?a.getRegionModel(g):n?n.getItemModel(_):null;var b=S.get("silent",!0);b!=null&&(y.silent=b),l.set(g,{dataIdx:_,regionModel:S})}var w=[],A=[];T(m.geometries,function(D){if(D.type==="polygon"){var L=[D.exterior].concat(D.interiors||[]);p&&(L=BV(L,p)),T(L,function(P){w.push(new _t(d(P)))})}else{var M=D.points;p&&(M=BV(M,p,!0)),T(M,function(P){A.push(new mt(d(P)))})}});var C=v(m.getCenter(),f&&f.project);function E(D,L){if(D.length){var M=new Fn({culling:!0,segmentIgnoreThreshold:1,shape:{paths:D}});y.add(M),NV(t,n,o,M,_,S),kV(a,n,M,g,S,_,C),L&&(OV(M),T(M.states,OV))}}E(w),E(A,!0)}),s.each(function(m,g){var y=l.get(g),x=y.dataIdx,_=y.regionModel;zV(a,n,m,g,_,x),VV(a,n,m,g,_),UV(a,m,g,_)},this)},r.prototype._buildSVG=function(e,t,i,a,n,o){var s=i.map;Ou(this._svgGroup,e,Ho),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=Z(),u=!1;T(this._svgGraphicRecord.named,function(f){var p=f.name,c=f.svgNodeTagLower,v=f.el,h=n?n.indexOfName(p):null,d=a.getRegionModel(p);dj.get(c)!=null&&v instanceof Gt&&NV(t,n,o,v,h,d),v instanceof Gt&&(v.culling=!0);var m=d.get("silent",!0);if(m!=null&&(v.silent=m),v.z2EmphasisLift=0,!f.namedFrom&&(gj.get(c)!=null&&kV(a,n,v,p,d,h,null),zV(a,n,v,p,d,h),VV(a,n,v,p,d),mj.get(c)!=null)){var g=UV(a,v,p,d);g==="self"&&(u=!0);var y=l.get(p)||l.set(p,[]);y.push(v)}},this),this._enableBlurEntireSVG(u,a)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&Rp(t)){var i=t.getModel(["blur","itemStyle"]).getItemStyle(),a=i.opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){Ka(n);var o=n.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),n.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var n=a.get(e);return n?[n]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=li.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=li.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=FV(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,i,a){var n=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){n._mouseDownFlag=!0}),t.on("click",function(o){n._mouseDownFlag&&(n._mouseDownFlag=!1)}))},r})();function NV(r,e,t,i,a,n){var o=n.getModel("itemStyle"),s=n.getModel(["emphasis","itemStyle"]),l=n.getModel(["blur","itemStyle"]),u=n.getModel(["select","itemStyle"]),f=z0(o),p=z0(s),c=z0(u),v=z0(l);if(e){var h=e.getItemVisual(a,"style"),d=e.getItemVisual(a,"decal");t&&h.fill&&(f.fill=h.fill),d&&(f.decal=nn(d,r))}i.setStyle(f),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=p,i.ensureState("select").style=c,i.ensureState("blur").style=v,Ka(i)}function kV(r,e,t,i,a,n,o){var s=e&&isNaN(e.get(e.mapDimension("value"),n)),l=e&&e.getItemLayout(n);if(Rp(r)||s||l&&l.showLabel){var u=Rp(r)?i:n,f=void 0;(!e||n>=0)&&(f=r);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ot(t,at(a),{labelFetcher:f,labelDataIndex:u,defaultText:i},p);var c=t.getTextContent();if(c&&(FV(c).ignore=c.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function zV(r,e,t,i,a,n){e?e.setItemGraphicEl(n,t):ce(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:i,region:a&&a.option||{}}}function VV(r,e,t,i,a){e||zr({el:t,componentModel:r,itemName:i,itemTooltipOption:a.get("tooltip")})}function UV(r,e,t,i){e.highDownSilentOnTouch=!!r.get("selectedMode");var a=i.getModel("emphasis"),n=a.get("focus");return He(e,n,a.get("blurScope"),a.get("disabled")),Rp(r)&&kL(e,r,t),n}function BV(r,e,t){var i=[],a;function n(){a=[]}function o(){a.length&&(i.push(a),a=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),T(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),i}function Rp(r){return r.mainType==="geo"}var V0=yj;var yn="map",xj=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.getTooltipPosition=function(i){if(i!=null){var a=this.getData().getName(i),n=this.coordinateSystem,o=n.getRegion(a);return o&&n.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var i=ji(this,{coordDimensions:["value"],encodeDefaulter:be(qf,this)}),a=Z(),n=[],o=0,s=i.count();o<s;o++){var l=i.getName(o);a.set(l,o)}var u=li.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return T(u.regions,function(f){var p=f.name,c=a.get(p),v=f.properties&&f.properties.echartsStyle,h;c==null?(h={name:p},n.push(h)):h=i.getRawDataItem(c),v&&_e(h,v)}),i.appendData(n),i},e.prototype.getHostGeoModel=function(){if(Ub(this).kind!==Vb)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t),l=[];return T(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),p=n.mapDimension("value");isNaN(u.originalData.get(p,f))||l.push(u.name)}),vt("section",{header:l.join(", "),noHeader:!l.length,blocks:[vt("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",a=tt(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",i.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=N.color.neutral00,a.style.lineWidth=2),a},e.prototype.__ownRoamView=function(){return Op(this)?this.coordinateSystem.view:null},e.type="series."+yn,e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border,areaColor:N.color.background},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{areaColor:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},nameProperty:"name"},e})(Fe);function U0(r){return r.indexOf("i")===0}function Op(r){return $s(r.seriesGroup)===r&&!r.getHostGeoModel()}function $s(r){return r.f[0]}function Np(r,e){var t={};return r.eachRawSeriesByType(yn,function(i){var a=i.getHostGeoModel(),n=a?"o"+a.id:"i"+i.getMapType(),o=t[n]=t[n]||{f:[],r:[]};!r.isSeriesFiltered(i)&&!e&&o.f.push(i),o.r.push(i)}),t}var GV=xj;var _j=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=yn,t}return e.prototype.render=function(t,i,a,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){var s=this._mapDraw;s&&n&&n.type==="geoRoam"&&s.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===t.id?s&&o.add(s.group):Op(t)?(s=s||(this._mapDraw=new V0(a)),o.add(s.group),s.draw(t,i,a,this,n)):this._clearMapDraw(),t.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(t)}}},e.prototype.__updateOnOwnRoam=function(t,i,a){var n=this._mapDraw;Op(i)&&n&&n.__updateOnOwnRoam(i)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t){var i=t.originalData,a=this.group;i.each(i.mapDimension("value"),function(n,o){if(!isNaN(n)){var s=i.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,f=new Tr({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:So+1)});if(!u){var p=$s(t.seriesGroup).getData(),c=i.getName(o),v=p.indexOfName(c),h=i.getItemModel(o),d=h.getModel("label"),m=p.getItemGraphicEl(v);ot(f,at(h),{labelFetcher:{getFormattedLabel:function(g,y){return t.getFormattedLabel(v,y)}},defaultText:c}),f.disableLabelAnimation=!0,d.get("position")||f.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(g){Zl(f,g)}}a.add(f)}}})},e.type=yn,e})(Ve),HV=_j;var Sj={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},FT=["lng","lat"],bj=(function(r){I(e,r);function e(t,i,a){var n=r.call(this)||this;n.dimensions=FT,n.type="geo",n._nameCoordMap=Z(),n.name=t;var o=a.projection,s=li.load(i,a.nameMap,a.nameProperty),l=li.getGeoResource(i),u=n.resourceType=l?l.type:null,f=n.regions=s.regions,p=Sj[l.type];n._clip=a.clip;var c=o?!1:p.invertLongitute;n.view=new Js(c,P0(a.ecModel,a.api),n),n.map=i,n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var v;if(o)for(var h=0;h<f.length;h++){var d=f[h].getBoundingRect(o);v=v||d.clone(),v.union(d)}else v=s.boundingRect;return js(n.view,v.x,v.y,v.width,v.height),n.aspectScale=o?1:J(a.aspectScale,p.aspectScale),n}return e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var i=this.regions,a=0;a<i.length;a++){var n=i[a];if(n.type==="geoJSON"&&n.contain(t))return i[a]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,a){if(W(t)&&(t=this.getGeoCoord(t)),t){var n=this.projection;return n&&(t=n.project(t)),t&&this.view.dataToPoint(t,i,a)}},e.prototype.pointToData=function(t,i,a){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.view.pointToData(t,a)},e.prototype.convertToPixel=function(t,i,a){var n=WV(i);return n===this?n.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,i,a){var n=WV(i);return n===this?n.pointToData(a):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var i=bh(null,this.view);return i.x-=t,i.y-=t,i.width+=2*t,i.height+=2*t,i},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e})(gi);function WV(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",$e).models[0]||{}).coordinateSystem:null}var GT=bj;function YV(r,e){var t=this.view,i=r.get("boundingCoords");if(i!=null){var a=i[0],n=i[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var o=this.projection;if(o){var s=a[0],l=a[1],u=n[0],f=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var p=function(b,w,A,C){for(var E=A-b,D=C-w,L=0;L<=100;L++){var M=L/100,P=o.project([b+E*M,w+D*M]);Ui(a,a,P),Bi(n,n,P)}};p(s,l,u,l),p(u,l,u,f),p(u,f,s,f),p(s,f,u,l)}js(t,a[0],a[1],n[0]-a[0],n[1]-a[1])}}var c=t.getBoundingRect(),v=r.get("layoutCenter"),h=r.get("layoutSize"),d=rt(r,e).refContainer,m=c.width/c.height*this.aspectScale,g=!1,y,x;v&&h&&(y=[$(v[0],d.width)+d.x,$(v[1],d.height)+d.y],x=$(h,Math.min(d.width,d.height)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(x)&&(g=!0));var _;if(g)_={},m>1?(_.width=x,_.height=x/m):(_.height=x,_.width=x*m),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var S=r.getBoxLayoutParams();S.aspect=m,_=Ze(S,d),_=hg(r,_,m)}ku(t,_.x,_.y,_.width,_.height),wh(t,r)}function wj(r,e){T(e.get("geoCoord"),function(t,i){r.addGeoCoord(i,t)})}var Tj=(function(){function r(){this.dimensions=FT}return r.prototype.create=function(e,t){var i=[];function a(n){return{nameProperty:n.get("nameProperty"),aspectScale:n.get("aspectScale"),projection:n.get("projection"),clip:n.getShallow("clip",!0)}}return e.eachComponent("geo",function(n,o){var s=n.get("map"),l=new GT(s+o,s,k({nameMap:n.get("nameMap"),api:t,ecModel:e},a(n)));i.push(l),n.coordinateSystem=l,l.model=n,l.resize=YV,l.resize(n,t)}),e.eachSeries(function(n){Hn({targetModel:n,coordSysType:"geo",coordSysProvider:function(){var o=n.subType===yn?n.getHostGeoModel():n.getReferringComponents("geo",$e).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),T(Np(e,!0),function(n,o){if(U0(o)){var s=n.r[0],l=[];T(n.r,function(c){l.push(c.get("nameMap")),c.seriesGroup=null});var u=o.slice(1),f=new GT(u,u,k({nameMap:rf(l),api:t,ecModel:e},a(s))),p;T(n.r,function(c){p=J(p,c.get("scaleLimit"))}),i.push(f),f.resize=YV,f.resize(s,t),T(n.r,function(c){c.coordinateSystem=f,wj(f,c)})}}),i},r.prototype.getFilledRegions=function(e,t,i,a){for(var n=(e||[]).slice(),o=Z(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=li.load(t,i,a);return T(l.regions,function(u){var f=u.name,p=o.get(f),c=u.properties&&u.properties.echartsStyle;p||(p={name:f},n.push(p)),c&&_e(p,c)}),n},r})(),Cj=new Tj,B0=Cj;var Aj=(function(r){I(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,a){this.mergeDefaultAndTheme(t,a);var n=li.getGeoResource(t.map);if(n&&n.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||N.color.backgroundTint)}Gi(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=B0.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var a={};this._optionModelMap=fr(i.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new Re(o,t,t.ecModel)),o.selected&&(a[s]=!0)),n},Z()),i.selectedMap||(i.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Re(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var a=this.getRegionModel(t),n=i==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(ee(n))return o.status=i,n(o);if(W(n))return n.replace("{a}",t??"")},e.prototype.select=function(t){var i=this.option,a=i.selectedMode;if(a){a!=="multiple"&&(i.selectedMap=null);var n=i.selectedMap||(i.selectedMap={});n[t]=!0}},e.prototype.unSelect=function(t){var i=this.option.selectedMap;i&&(i[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},regions:[]},e})(Le),XV=Aj;var Ej=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,a,n){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new V0(a));var o=this._mapDraw;o.draw(t,i,a,this,n),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,i,a)},e.prototype.__updateOnOwnRoam=function(t,i,a){var n=this._mapDraw;n&&n.__updateOnOwnRoam(i)},e.prototype._handleRegionClick=function(t){var i;rn(t.target,function(a){return(i=ce(a).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,a){var n=this;this._mapDraw.group.traverse(function(o){var s=ce(o).eventData;if(s)return n._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(We),ZV=Ej;function Dj(r,e,t){li.registerMap(r,e,t)}function Th(r){r.registerCoordinateSystem("geo",B0),r.registerComponentModel(XV),r.registerComponentView(ZV),r.registerImpl("registerMap",Dj),r.registerImpl("getMap",function(t){return li.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",r.registerAction(i,function(a,n){var o={},s=[];return n.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;T(u.regions,function(p){o[p.name]=l.isSelected(p.name)||!1});var f=[];T(o,function(p,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,a){var n=t.componentType||(t.geoId!=null||t.geoName!=null||t.geoIndex!=null?"geo":wr),o=n===wr;if(!(n!=="geo"&&!o)){var s=o?"map":null;i.eachComponent(Af(t,n,s),function(l){o&&!Op(l)||(I0(t,l,o?l.seriesGroup.r:null),L0(t,l,i,a))})}})}var KV=et(yn,Mj);function Mj(r){T(Np(r),function(e,t){if(!(!$s(e)||!U0(t))){var i={};T(e.f,function(n){var o=n.coordinateSystem,s=n.originalData;n.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),p=o.getRegion(f);if(!(!p||isNaN(l))){var c=i[f]||0,v=o.dataToPoint(p.getCenter());i[f]=c+1,s.setItemLayout(u,{point:v,offset:c})}})});var a=$s(e).getData();a.each(function(n){var o=a.getName(n),s=a.getItemLayout(n)||{};s.showLabel=!i[o],a.setItemLayout(n,s)})}})}function Ij(r,e){var t={};return T(r,function(i){i.each(i.mapDimension("value"),function(a,n){var o="ec-"+i.getName(n);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(i,a){for(var n="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[n].length,f=0;f<u;f++)s=Math.min(s,t[n][f]),l=Math.max(l,t[n][f]),o+=t[n][f];var p;return e==="min"?p=s:e==="max"?p=l:e==="average"?p=o/u:p=o,u===0?NaN:p})}var qV=et(yn,Lj);function Lj(r){T(Np(r),function(e){var t=$s(e);if(t){var i=Ij(U(e.f,function(a){return a.getData()}),t.get("mapValueCalculation"));T(e.f,function(a){a.seriesGroup=e,a.originalData=a.getData(),a.setData(i.cloneShallow())})}})}function HT(r){Me(Th),r.registerChartView(HV),r.registerSeriesModel(GV),r.registerLayout(KV),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,qV),Gg("map",r.registerAction)}function jV(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],i,a;i=t.pop();)if(a=i.children,i.isExpand&&a.length)for(var n=a.length,o=n-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function JV(r,e){var t=r.isExpand?r.children:[],i=r.parentNode.children,a=r.hierNode.i?i[r.hierNode.i-1]:null;if(t.length){Pj(r);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=Rj(r,a,r.parentNode.hierNode.defaultAncestor||i[0],e)}function QV(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function XT(r){return arguments.length?r:kj}function zu(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function Pj(r){for(var e=r.children,t=e.length,i=0,a=0;--t>=0;){var n=e[t];n.hierNode.prelim+=i,n.hierNode.modifier+=i,a+=n.hierNode.change,i+=n.hierNode.shift+a}}function Rj(r,e,t,i){if(e){for(var a=r,n=r,o=n.parentNode.children[0],s=e,l=a.hierNode.modifier,u=n.hierNode.modifier,f=o.hierNode.modifier,p=s.hierNode.modifier;s=WT(s),n=YT(n),s&&n;){a=WT(a),o=YT(o),a.hierNode.ancestor=r;var c=s.hierNode.prelim+p-n.hierNode.prelim-u+i(s,n);c>0&&(Nj(Oj(s,r,t),r,c),u+=c,l+=c),p+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!WT(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=p-l),n&&!YT(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-f,t=r)}return t}function WT(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function YT(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function Oj(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function Nj(r,e,t){var i=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=i}function kj(r,e){return r.parentNode===e.parentNode?1:2}var Pa=ue();function zj(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,$V(e,t,r),T(t,function(i){T(e.TRANSFERABLE_METHODS,function(a){i.wrapMethod(a,be(Vj,r))})}),e.wrapMethod("cloneShallow",be(Bj,r)),T(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,be(Uj,r))}),lt(t[e.dataType]===e)}function Vj(r,e){if(Hj(this)){var t=k({},Pa(this).datas);t[this.dataType]=e,$V(e,t,r)}else ZT(e,this.dataType,Pa(this).mainData,r);return e}function Uj(r,e){return r.struct&&r.struct.update(),e}function Bj(r,e){return T(Pa(e).datas,function(t,i){t!==e&&ZT(t.cloneShallow(),i,e,r)}),e}function Fj(r){var e=Pa(this).mainData;return r==null||e==null?e:Pa(e).datas[r]}function Gj(){var r=Pa(this).mainData;return r==null?[{data:r}]:U(Te(Pa(r).datas),function(e){return{type:e,data:Pa(r).datas[e]}})}function Hj(r){return Pa(r).mainData===r}function $V(r,e,t){Pa(r).datas={},T(e,function(i,a){ZT(i,a,r,t)})}function ZT(r,e,t,i){Pa(t).datas[e]=r,Pa(r).mainData=t,r.dataType=e,i.struct&&(r[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=r),r.getLinkedData=Fj,r.getLinkedDataAll=Gj}var F0=zj;var Wj=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,i){ee(e)&&(i=t,t=e,e=null),e=e||{},W(e)&&(e={order:e});var a=e.order||"preorder",n=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(i,this));for(var s=0;!o&&s<n.length;s++)n[s].eachNode(e,t,i);a==="postorder"&&t.call(i,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var a=this.children[i];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,a=i.length;t<a;t++){var n=i[t].getNodeById(e);if(n)return n}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,i=this.children,a=i.length;t<a;t++){var n=i[t].contains(e);if(n)return n}},r.prototype.getAncestors=function(e){for(var t=[],i=e?this:this.parentNode;i;)t.push(i),i=i.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})();var Yj=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,i){this.root.eachNode(e,t,i)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,i=0,a=t.length;i<a;i++)t[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)t[e.getRawIndex(i)].dataIndex=i},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,i){var a=new r(t),n=[],o=1;s(e);function s(f,p){var c=f.value;o=Math.max(o,V(c)?c.length:1),n.push(f);var v=new Wj(wt(f.name,""),a);p?Xj(v,p):a.root=v,a._nodes.push(v);var h=f.children;if(h)for(var d=0;d<h.length;d++)s(h[d],v)}a.root.updateDepthAndHeight(0);var l=wa(n,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Tt(l,t);return u.initData(n),i&&i(u),F0({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r})();function Xj(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}var kp=Yj;function Wo(r,e,t){if(r&&de(e,r.type)>=0){var i=t.getData().tree.root,a=r.targetNode;if(W(a)&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var n=r.targetNodeId;if(n!=null&&(a=i.getNodeById(n)))return{node:a}}}function KT(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function zp(r,e){var t=KT(r);return de(t,e)>=0}function el(r,e){for(var t=[];r;){var i=r.dataIndex;t.push({name:r.name,dataIndex:i,value:e.getRawValue(i)}),r=r.parentNode}return t.reverse(),t}var ro="tree",Zj=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},a=t.leaves||{},n=new Re(a,this,this.ecModel),o=kp.createTree(i,this,s);function s(p){p.wrapMethod("getItemModel",function(c,v){var h=o.getNodeByDataIndex(v);return h&&h.children.length&&h.isExpand||(c.parentModel=n),c})}var l=0;o.eachNode("preorder",function(p){p.depth>l&&(l=p.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(p){var c=p.hostTree.data.getRawDataItem(p.dataIndex);p.isExpand=c&&c.collapsed!=null?!c.collapsed:p.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.formatTooltip=function(t,i,a){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return vt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=el(a,this),i.collapsed=!a.isExpand,i},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+ro,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:N.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(Fe),eU=Zj;var Kj=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),qj=(function(r){I(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Kj},e.prototype.buildPath=function(t,i){var a=i.childPoints,n=a.length,o=i.parentPoint,s=a[0],l=a[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,f=u==="TB"||u==="BT"?0:1,p=1-f,c=$(i.forkPosition,1),v=[];v[f]=o[f],v[p]=o[p]+(l[p]-o[p])*c,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[f]=s[f],t.lineTo(v[0],v[1]),v[f]=l[f],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var h=1;h<n-1;h++){var d=a[h];t.moveTo(d[0],d[1]),v[f]=d[f],t.lineTo(v[0],v[1])}},e})(ge),jj=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ro,t._mainGroup=new te,t}return e.prototype.init=function(t,i){this._controller=new ki(i.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,i,a){var n=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),Qs(t,a,this._controller,N0(this.group),null);var u=this._data;n.diff(u).add(function(f){tU(n,f)&&rU(n,f,null,s,t)}).update(function(f,p){var c=u.getItemGraphicEl(p);if(!tU(n,f)){c&&aU(u,p,c,s,t);return}rU(n,f,c,s,t)}).remove(function(f){var p=u.getItemGraphicEl(f);p&&aU(u,f,p,s,t)}).execute(),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&n.eachItemGraphicEl(function(f,p){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:p})})}),this._data=n,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,i,a){La(this.group,Qi,i.coordinateSystem,null),k0(t)&&this._updateNodeAndLinkScale(i)},e.prototype._updateViewCoordSys=function(t,i){var a=t.getData(),n=[];a.each(function(p){var c=a.getItemLayout(p);c&&!isNaN(c.x)&&!isNaN(c.y)&&n.push([+c.x,+c.y])});var o=[],s=[];Vl(n,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=Pp(t,i,o[0],o[1],s[0]-o[0],s[1]-o[1]);La(this.group,Qi,f,this._firstRender?null:t),this._min=o,this._max=s},e.prototype._updateNodeAndLinkScale=function(t){var i=t.getData(),a=O0(t.coordinateSystem,t);i.eachItemGraphicEl(function(n,o){n.setSymbolScale(a)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=ro,e})(Ve);function tU(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function rU(r,e,t,i,a){var n=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:N.color.neutral00,f=r.tree.root,p=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(p.dataIndex),v=p.getLayout(),h=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:v,d=o.getLayout();n?(t=new Vo(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=h.x,t.y=h.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,i.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Pe(t,{x:d.x,y:d.y},a);var m=t.getSymbolPath();if(a.get("layout")==="radial"){var g=f.children[0],y=g.getLayout(),x=g.children.length,_=void 0,S=void 0;if(d.x===y.x&&o.isExpand===!0&&g.children.length){var b={x:(g.children[0].getLayout().x+g.children[x-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[x-1].getLayout().y)/2};_=Math.atan2(b.y-y.y,b.x-y.x),_<0&&(_=Math.PI*2+_),S=b.x<y.x,S&&(_=_-Math.PI)}else _=Math.atan2(d.y-y.y,d.x-y.x),_<0&&(_=Math.PI*2+_),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(S=d.x<y.x,S&&(_=_-Math.PI)):(S=d.x>y.x,S||(_=_-Math.PI));var w=S?"left":"right",A=s.getModel("label"),C=A.get("rotate"),E=C*(Math.PI/180),D=m.getTextContent();D&&(m.setTextConfig({position:A.get("position")||w,rotation:C==null?-_:E,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),M=L==="relative"?fo(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;M&&(ce(t).focus=M),Jj(a,o,f,t,h,v,d,i),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var O=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);O&&O.hoverState===Xl||Zl(t.__edge,P)}})}function Jj(r,e,t,i,a,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),p=r.getOrient(),c=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),d=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=i.__edge=new Co({shape:jT(f,p,c,a,a)})),Pe(d,{shape:jT(f,p,c,n,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,g=[],y=0;y<m.length;y++){var x=m[y].getLayout();g.push([x.x,x.y])}d||(d=i.__edge=new qj({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:p,forkPosition:v}})),Pe(d,{shape:{parentPoint:[o.x,o.y],childPoints:g}},r)}d&&!(u==="polyline"&&!e.isExpand)&&(d.useStyle(re({strokeNoScale:!0,fill:null},h)),ut(d,l,"lineStyle"),Ka(d),s.add(d))}function iU(r,e,t,i,a){var n=e.tree.root,o=nU(n,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),p=f.__edge,c=u.__edge||(s.isExpand===!1||s.children.length===1?p:void 0),v=i.get("edgeShape"),h=i.get("layout"),d=i.get("orient"),m=i.get(["lineStyle","curveness"]);c&&(v==="curve"?da(c,{shape:jT(h,d,m,l,l),style:{opacity:0}},i,{cb:function(){t.remove(c)},removeOpt:a}):v==="polyline"&&i.get("layout")==="orthogonal"&&da(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){t.remove(c)},removeOpt:a}))}}function nU(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,i;i=t.getLayout(),i==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:i}}function aU(r,e,t,i,a){var n=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=nU(o,n).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};da(t,{x:s.x+1,y:s.y+1},a,{cb:function(){i.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),T(n.children,function(u){iU(u,r,i,a,l)}),iU(n,r,i,a,l)}function jT(r,e,t,i,a){var n,o,s,l,u,f,p,c;if(r==="radial"){u=i.rawX,p=i.rawY,f=a.rawX,c=a.rawY;var v=zu(u,p),h=zu(u,p+(c-p)*t),d=zu(f,c+(p-c)*t),m=zu(f,c);return{x1:v.x||0,y1:v.y||0,x2:m.x||0,y2:m.y||0,cpx1:h.x||0,cpy1:h.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=i.x,p=i.y,f=a.x,c=a.y,(e==="LR"||e==="RL")&&(n=u+(f-u)*t,o=p,s=f+(u-f)*t,l=c),(e==="TB"||e==="BT")&&(n=u,o=p+(c-p)*t,s=f,l=c+(p-c)*t);return{x1:u,y1:p,x2:f,y2:c,cpx1:n,cpy1:o,cpx2:s,cpy2:l}}var oU=jj;function sU(r,e,t){for(var i=[r],a=[],n;n=i.pop();)if(a.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}for(;n=a.pop();)e(n,t)}function Vp(r,e){for(var t=[r],i;i=t.pop();)if(e(i),i.isExpand){var a=i.children;if(a.length)for(var n=a.length-1;n>=0;n--)t.push(a[n])}}function JT(r,e){r.eachSeriesByType("tree",function(t){Qj(t,e)})}function Qj(r,e){var t=rt(r,e).refContainer,i=Ze(r.getBoxLayoutParams(),t);r.layoutInfo=i;var a=r.get("layout"),n=0,o=0,s=null;a==="radial"?(n=2*Math.PI,o=Math.min(i.height,i.width)/2,s=XT(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=i.width,o=i.height,s=XT());var l=r.getData().tree.root,u=l.children[0];if(u){jV(l),sU(u,JV,s),l.hierNode.modifier=-u.hierNode.prelim,Vp(u,QV);var f=u,p=u,c=u;Vp(u,function(_){var S=_.getLayout().x;S<f.getLayout().x&&(f=_),S>p.getLayout().x&&(p=_),_.depth>c.depth&&(c=_)});var v=f===p?1:s(f,p)/2,h=v-f.getLayout().x,d=0,m=0,g=0,y=0;if(a==="radial")d=n/(p.getLayout().x+v+h),m=o/(c.depth-1||1),Vp(u,function(_){g=(_.getLayout().x+h)*d,y=(_.depth-1)*m;var S=zu(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var x=r.getOrient();x==="RL"||x==="LR"?(m=o/(p.getLayout().x+v+h),d=n/(c.depth-1||1),Vp(u,function(_){y=(_.getLayout().x+h)*m,g=x==="LR"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(x==="TB"||x==="BT")&&(d=n/(p.getLayout().x+v+h),m=o/(c.depth-1||1),Vp(u,function(_){g=(_.getLayout().x+h)*d,y=x==="TB"?(_.depth-1)*m:o-(_.depth-1)*m,_.setLayout({x:g,y},!0)}))}}}function lU(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:wr,subType:ro,query:e},function(i){var a=e.dataIndex,n=i.getData().tree,o=n.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),Lp(r,wr,ro)}var uU=et(ro,$j);function $j(r){r.eachSeriesByType(ro,function(e){var t=e.getData(),i=t.tree;i.eachNode(function(a){var n=a.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");k(s,o)})})}function QT(r){r.registerChartView(oU),r.registerSeriesModel(eU),r.registerLayout(JT),r.registerVisual(uU),lU(r)}var fU=["treemapZoomToNode","treemapRender","treemapMove"];function pU(r){for(var e=0;e<fU.length;e++)r.registerAction({type:fU[e],update:"updateView"},nt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,i){i.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(n,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Wo(t,s,n);if(l){var u=n.getViewRoot();u&&(t.direction=zp(u,l.node)?"rollUp":"drillDown"),n.resetViewRoot(l.node)}}})}function Ch(r){var e=r.getData(),t=e.tree,i={};t.eachNode(function(a){for(var n=a;n&&n.depth>1;)n=n.parentNode;var o=_v(r.ecModel,n.name||n.dataIndex+"",i);a.setVisual("decal",o)})}var eJ=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};cU(a);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Re({itemStyle:o},this,i);n=t.levels=tJ(n,i);var l=U(n||[],function(p){return new Re(p,s,i)},this),u=kp.createTree(a,this,f);function f(p){p.wrapMethod("getItemModel",function(c,v){var h=u.getNodeByDataIndex(v),d=h?l[h.depth]:null;return c.parentModel=d||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return vt("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=el(a,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},k(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=Z(),this._idIndexMapCount=0);var a=i.get(t);return a==null&&i.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){Ch(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:N.size.l,top:N.size.xxxl,right:N.size.l,bottom:N.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:N.size.m,emptyItemWidth:25,itemStyle:{color:N.color.backgroundShade,textStyle:{color:N.color.secondary}},emphasis:{itemStyle:{color:N.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:N.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:N.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(Fe);function cU(r){var e=0;T(r.children,function(i){cU(i);var a=i.value;V(a)&&(a=a[0]),e+=a});var t=r.value;V(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),V(r.value)?r.value[0]=t:r.value=t}function tJ(r,e){var t=qe(e.get("color")),i=qe(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,n;T(r,function(s){var l=new Re(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!n&&i&&(o.decal=i.slice()),r}}var vU=eJ;var rJ=8,hU=8,$T=5,iJ=(function(){function r(e){this.group=new te,e.add(this.group)}return r.prototype.render=function(e,t,i,a){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!i)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),p=rt(e,t).refContainer,c={left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},v={emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]},h=Ze(c,p);this._prepare(i,v,u),this._renderContent(e,v,h,s,l,u,f,a),bs(o,c,p)}},r.prototype._prepare=function(e,t,i){for(var a=e;a;a=a.parentNode){var n=wt(a.getModel().get("name"),""),o=i.getTextRect(n),s=Math.max(o.width+rJ*2,t.emptyItemWidth);t.totalWidth+=s+hU,t.renderList.push({node:a,text:n,width:s})}},r.prototype._renderContent=function(e,t,i,a,n,o,s,l){for(var u=0,f=t.emptyItemWidth,p=e.get(["breadcrumb","height"]),c=t.totalWidth,v=t.renderList,h=n.getModel("itemStyle").getItemStyle(),d=v.length-1;d>=0;d--){var m=v[d],g=m.node,y=m.width,x=m.text;c>i.width&&(c-=y-f,y=f,x=null);var _=new _t({shape:{points:aJ(u,0,y,p,d===v.length-1,d===0)},style:re(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ee({style:je(o,{text:x})}),textConfig:{position:"inside"},z2:So*1e4,onclick:be(l,g)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=je(s,{text:x}),_.ensureState("emphasis").style=h,He(_,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(_),nJ(_,e,g),u+=y+hU}},r.prototype.remove=function(){this.group.removeAll()},r})();function aJ(r,e,t,i,a,n){var o=[[a?r:r-$T,e],[r+t,e],[r+t,e+i],[a?r:r-$T,e+i]];return!n&&o.splice(2,0,[r+t+$T,e+i/2]),!a&&o.push([r,e+i/2]),o}function nJ(r,e,t){ce(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&el(t,e)}}var dU=iJ;var oJ=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,i,a,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:a,easing:n}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,n=this._storage.length;a<n;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:i,aborted:i})}return this},r})();function mU(){return new oJ}var Ah=Math.max,G0=Math.min,eC=T,yU=["itemStyle","borderWidth"],lJ=["itemStyle","gapWidth"],uJ=["upperLabel","show"],fJ=["upperLabel","height"],xU={seriesType:"treemap",reset:function(r,e,t,i){var a=r.option,n=rt(r,t).refContainer,o=Ze(r.getBoxLayoutParams(),n),s=i&&i.type,l=["treemapZoomToNode","treemapRootToNode"],u=Wo(i,l,r),f=s==="treemapRender"||s==="treemapMove"?i.rootRect:null,p=r.getViewRoot(),c=KT(p);if(s!=="treemapMove"){var v=!1,h=s==="treemapZoomToNode"?(v=!0,mJ(r,u,p,o)):f?(v=!0,k({},f)):k({},o);if(v){var d=tC(o,h);d=rC(d,r),h.width=o.width*d,h.height=o.height*d}var m=a.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var g={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};p.hostTree.clearLayouts();var y={x:0,y:0,width:h.width,height:h.height,area:h.width*h.height};p.setLayout(y),_U(p,g,!1,0),y=p.getLayout(),eC(c,function(_,S){var b=(c[S+1]||p).getValue();_.setLayout(k({dataExtent:[b,b],borderWidth:0,upperHeight:0},y))})}var x=r.getData().tree.root;x.setLayout(gJ(o,f,u),!0),r.setLayoutInfo(o),SU(x,new fe(-o.x,-o.y,t.getWidth(),t.getHeight()),c,p,0)}};function _U(r,e,t,i){var a,n;if(!r.isRemoved()){var o=r.getLayout();a=o.width,n=o.height;var s=r.getModel(),l=s.get(yU),u=s.get(lJ)/2,f=bU(s),p=Math.max(l,f),c=l-u,v=p-u;r.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:f},!0),a=Ah(a-2*c,0),n=Ah(n-c-v,0);var h=a*n,d=pJ(r,s,h,e,t,i);if(d.length){var m={x:c,y:v,width:a,height:n},g=G0(a,n),y=1/0,x=[];x.area=0;for(var _=0,S=d.length;_<S;){var b=d[_];x.push(b),x.area+=b.getLayout().area;var w=dJ(x,g,e.squareRatio);w<=y?(_++,y=w):(x.area-=x.pop().getLayout().area,gU(x,g,m,u,!1),g=G0(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&gU(x,g,m,u,!0),!t){var A=s.get("childrenVisibleMin");A!=null&&h<A&&(t=!0)}for(var _=0,S=d.length;_<S;_++)_U(d[_],e,t,i+1)}}}function pJ(r,e,t,i,a,n){var o=r.children||[],s=i.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=i.leafDepth!=null&&i.leafDepth<=n;if(a&&!l)return r.viewChildren=[];o=Ne(o,function(v){return!v.isRemoved()}),vJ(o,s);var u=hJ(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=cJ(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,p=o.length;f<p;f++){var c=o[f].getValue()/u.sum*t;o[f].setLayout({area:c})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function cJ(r,e,t,i,a){if(!i)return t;for(var n=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[i==="asc"?o-l-1:l].getValue();u/t*e<n&&(s=l,t-=u)}return i==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function vJ(r,e){return e&&r.sort(function(t,i){var a=e==="asc"?t.getValue()-i.getValue():i.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:a}),r}function hJ(r,e,t){for(var i=0,a=0,n=e.length;a<n;a++)i+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=Ot(),eC(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function dJ(r,e,t){for(var i=0,a=1/0,n=0,o=void 0,s=r.length;n<s;n++)o=r[n].getLayout().area,o&&(o<a&&(a=o),o>i&&(i=o));var l=r.area*r.area,u=e*e*t;return l?Ah(u*i/l,l/(u*a)):1/0}function gU(r,e,t,i,a){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var p=0,c=r.length;p<c;p++){var v=r[p],h={},d=f?v.getLayout().area/f:0,m=h[l[o]]=Ah(f-2*i,0),g=t[s[n]]+t[l[n]]-u,y=p===c-1||g<d?g:d,x=h[l[n]]=Ah(y-2*i,0);h[s[o]]=t[s[o]]+G0(i,m/2),h[s[n]]=u+G0(i,x/2),u+=y,v.setLayout(h,!0)}t[s[o]]+=f,t[l[o]]-=f}function mJ(r,e,t,i){var a=(e||{}).node,n=i.width,o=i.height,s=k({},i);if(!a||a===t)return s;for(var l,u=n*o,f=u*r.option.zoomToNodeRatio;l=a.parentNode;){for(var p=0,c=l.children,v=0,h=c.length;v<h;v++)p+=c[v].getValue();var d=a.getValue();if(d===0)return s;f*=p/d;var m=l.getModel(),g=m.get(yU),y=Math.max(g,bU(m));f+=4*g*g+(3*g+y)*Math.pow(f,.5),f>ps&&(f=ps),a=l}f<u&&(f=u);var x=Math.pow(f/u,.5);return{width:n*x,height:o*x}}function gJ(r,e,t){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!t)return i;var a=t.node,n=a.getLayout();if(!n)return i;for(var o=[n.width/2,n.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function SU(r,e,t,i,a){var n=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==i)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(n),isAboveViewRoot:s},!0);var l=new fe(e.x-n.x,e.y-n.y,e.width,e.height);eC(r.viewChildren||[],function(u){SU(u,l,t,i,a+1)})}}function bU(r){return r.get(uJ)?r.get(fJ):0}function tC(r,e){return e.width/r.width||e.height/r.height||1}function rC(r,e){return R0(r,e.get("scaleLimit",!0))}var iC=te,wU=xe,TU=3,CU="label",AU="upperLabel",yJ=So*10,xJ=So*2,_J=So*3,Vu=bi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),EU=function(r){var e=Vu(r);return e.stroke=e.fill=e.lineWidth=null,e},H0=ue(),SJ=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Eh(),t}return e.prototype.render=function(t,i,a,n){var o=i.findComponents({mainType:"series",subType:"treemap",query:n});if(!(de(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=i;var s=["treemapZoomToNode","treemapRootToNode"],l=Wo(n,s,t),u=n&&n.type,f=t.layoutInfo,p=!this._oldTree,c=this._storage,v=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,h=this._giveContainerGroup(f),d=t.get("animation"),m=this._doRender(h,t,v);d&&!p&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(h,m,t,v):m.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var i=this._containerGroup;return i||(i=this._containerGroup=new iC,this._initEvents(i),this.group.add(i)),i.x=t.x,i.y=t.y,i},e.prototype._doRender=function(t,i,a){var n=i.getData().tree,o=this._oldTree,s=Eh(),l=Eh(),u=this._storage,f=[];function p(m,g,y,x){return bJ(i,l,u,a,s,f,m,g,y,x)}v(n.root?[n.root]:[],o&&o.root?[o.root]:[],t,n===o||!o,0);var c=h(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:d};function v(m,g,y,x,_){x?(g=m,T(m,function(w,A){!w.isRemoved()&&b(A,A)})):new Er(g,m,S,S).add(b).update(b).remove(be(b,null)).execute();function S(w){return w.getId()}function b(w,A){var C=w!=null?m[w]:null,E=A!=null?g[A]:null,D=p(C,E,y,_);D&&v(C&&C.viewChildren||[],E&&E.viewChildren||[],D,x,_+1)}}function h(m){var g=Eh();return m&&T(m,function(y,x){var _=g[x];T(y,function(S){S&&(_.push(S),H0(S).willDelete=!0)})}),g}function d(){T(c,function(m){T(m,function(g){g.parent&&g.parent.remove(g)})}),T(f,function(m){m.invisible=!0,m.dirty()})}},e.prototype._doAnimation=function(t,i,a,n){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ee(o)?0:o)||0,u=(ee(s)?null:s)||"cubicOut",f=mU();T(i.willDeleteEls,function(p,c){T(p,function(v,h){if(!v.invisible){var d=v.parent,m,g=H0(d);if(n&&n.direction==="drillDown")m=d===n.rootNodeGroup?{shape:{x:0,y:0,width:g.nodeWidth,height:g.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,x=0;g.willDelete||(y=g.nodeWidth/2,x=g.nodeHeight/2),m=c==="nodeGroup"?{x:y,y:x,style:{opacity:0}}:{shape:{x:y,y:x,width:0,height:0},style:{opacity:0}}}m&&f.add(v,m,l,0,u)}})}),T(this._storage,function(p,c){T(p,function(v,h){var d=i.lastsForAnimation[c][h],m={};d&&(v instanceof te?d.oldX!=null&&(m.x=v.x,m.y=v.y,v.x=d.oldX,v.y=d.oldY):(d.oldShape&&(m.shape=k({},v.shape),v.setShape(d.oldShape)),d.fadein?(v.setStyle("opacity",0),m.style={opacity:1}):v.style.opacity!==1&&(m.style={opacity:1})),f.add(v,m,l,0,u))})},this),this._state="animating",f.finished(K(function(){this._state="ready",i.renderFinally()},this)).start()},e.prototype._resetController=function(t){var i=this,a=this.seriesModel,n=this._controller;n||(n=this._controller=new ki(t.getZr()),n.on("pan",K(this._onPan,this)),n.on("zoom",K(this._onZoom,this))),n.enable(a.get("roam"),{api:t,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(o,s,l){var u=i._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>TU||Math.abs(t.dy)>TU)){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var i=t.originX,a=t.originY,n=t.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new fe(l.x,l.y,l.width,l.height),f=o.layoutInfo,p=tC(f,l),c=p*n;c=rC(c,o);var v=c/p;i-=f.x,a-=f.y;var h=it();xr(h,h,[-i,-a]),uf(h,h,[v,v]),xr(h,h,[i,a]),u.applyTransform(h),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(a){if(i._state==="ready"){var n=i.seriesModel.get("nodeClick",!0);if(n){var o=i.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)i._rootToNode(o);else if(n==="zoomToNode")i._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&su(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,a){var n=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new dU(this.group))).render(t,i,a.node,function(o){n._state!=="animating"&&(zp(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Eh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var a,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e})(Ve);function Eh(){return{nodeGroup:[],background:[],content:[]}}function bJ(r,e,t,i,a,n,o,s,l,u){if(!o)return;var f=o.getLayout(),p=r.getData(),c=o.getModel();if(p.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,h=f.height,d=f.borderWidth,m=f.invisible,g=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,_=f.upperHeight,S=x&&x.length,b=c.getModel("itemStyle"),w=c.getModel(["emphasis","itemStyle"]),A=c.getModel(["blur","itemStyle"]),C=c.getModel(["select","itemStyle"]),E=b.get("borderRadius")||0,D=G("nodeGroup",iC);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),H0(D).nodeWidth=v,H0(D).nodeHeight=h,f.isAboveViewRoot)return D;var L=G("background",wU,u,xJ);L&&H(D,L,S&&f.upperLabelHeight);var M=c.getModel("emphasis"),P=M.get("focus"),O=M.get("blurScope"),R=M.get("disabled"),z=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(S)_s(D)&&wo(D,!1),L&&(wo(L,!R),p.setItemGraphicEl(o.dataIndex,L),_m(L,z,O));else{var B=G("content",wU,u,_J);B&&Y(D,B),L.disableMorphing=!0,L&&_s(L)&&wo(L,!1),wo(D,!R),p.setItemGraphicEl(o.dataIndex,D);var F=c.getShallow("cursor");F&&B.attr("cursor",F),_m(D,z,O)}return D;function H(pe,j,me){var ie=ce(j);if(ie.dataIndex=o.dataIndex,ie.seriesIndex=r.seriesIndex,j.setShape({x:0,y:0,width:v,height:h,r:E}),m)q(j);else{j.invisible=!1;var he=o.getVisual("style"),ze=he.stroke,Se=EU(b);Se.fill=ze;var Oe=Vu(w);Oe.fill=w.get("borderColor");var ke=Vu(A);ke.fill=A.get("borderColor");var Je=Vu(C);if(Je.fill=C.get("borderColor"),me){var dt=v-2*d;oe(j,ze,he.opacity,{x:d,y:0,width:dt,height:_})}else j.removeTextContent();j.setStyle(Se),j.ensureState("emphasis").style=Oe,j.ensureState("blur").style=ke,j.ensureState("select").style=Je,Ka(j)}pe.add(j)}function Y(pe,j){var me=ce(j);me.dataIndex=o.dataIndex,me.seriesIndex=r.seriesIndex;var ie=Math.max(v-2*d,0),he=Math.max(h-2*d,0);if(j.culling=!0,j.setShape({x:d,y:d,width:ie,height:he,r:E}),m)q(j);else{j.invisible=!1;var ze=o.getVisual("style"),Se=ze.fill,Oe=EU(b);Oe.fill=Se,Oe.decal=ze.decal;var ke=Vu(w),Je=Vu(A),dt=Vu(C);oe(j,Se,ze.opacity,null),j.setStyle(Oe),j.ensureState("emphasis").style=ke,j.ensureState("blur").style=Je,j.ensureState("select").style=dt,Ka(j)}pe.add(j)}function q(pe){!pe.invisible&&n.push(pe)}function oe(pe,j,me,ie){var he=c.getModel(ie?AU:CU),ze=wt(c.get("name"),null),Se=he.getShallow("show");ot(pe,at(c,ie?AU:CU),{defaultText:Se?ze:null,inheritColor:j,defaultOpacity:me,labelFetcher:r,labelDataIndex:o.dataIndex});var Oe=pe.getTextContent();if(Oe){var ke=Oe.style,Je=$o(ke.padding||0);ie&&(pe.setTextConfig({layoutRect:ie}),Oe.disableLabelLayout=!0),Oe.beforeUpdate=function(){var At=Math.max((ie?ie.width:pe.shape.width)-Je[1]-Je[3],0),Et=Math.max((ie?ie.height:pe.shape.height)-Je[0]-Je[2],0);(ke.width!==At||ke.height!==Et)&&Oe.setStyle({width:At,height:Et})},ke.truncateMinChar=2,ke.lineOverflow="truncate",X(ke,ie,f);var dt=Oe.getState("emphasis");X(dt?dt.style:null,ie,f)}}function X(pe,j,me){var ie=pe?pe.text:null;if(!j&&me.isLeafRoot&&ie!=null){var he=r.get("drillDownIcon",!0);pe.text=he?he+" "+ie:ie}}function G(pe,j,me,ie){var he=y!=null&&t[pe][y],ze=a[pe];return he?(t[pe][y]=null,ne(ze,he)):m||(he=new j,he instanceof Gt&&(he.z2=wJ(me,ie)),ve(ze,he)),e[pe][g]=he}function ne(pe,j){var me=pe[g]={};j instanceof iC?(me.oldX=j.x,me.oldY=j.y):me.oldShape=k({},j.shape)}function ve(pe,j){var me=pe[g]={},ie=o.parentNode,he=j instanceof te;if(ie&&(!i||i.direction==="drillDown")){var ze=0,Se=0,Oe=a.background[ie.getRawIndex()];!i&&Oe&&Oe.oldShape&&(ze=Oe.oldShape.width,Se=Oe.oldShape.height),he?(me.oldX=0,me.oldY=Se):me.oldShape={x:ze,y:Se,width:0,height:0}}me.fadein=!he}}function wJ(r,e){return r*yJ+e}var DU=SJ;var Ih=T,TJ=se,X0=-1,sC=(function(){function r(e){var t=e.mappingMethod,i=e.type,a=this.option=ae(e);this.type=i,this.mappingMethod=t,this._normalizeData=EJ[t];var n=r.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(aC(a),CJ(a)):t==="category"?a.categories?AJ(a):aC(a,!0):(lt(t!=="linear"||a.dataExtent),aC(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return K(this._normalizeData,this)},r.listVisualTypes=function(){return Te(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){se(e)?T(e,t,i):t.call(i,e)},r.mapVisual=function(e,t,i){var a,n=V(e)?[]:se(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(i,o,s);a?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},i;return e&&Ih(r.visualHandlers,function(a,n){e.hasOwnProperty(n)&&(t[n]=e[n],i=!0)}),i?t:null},r.prepareVisualTypes=function(e){if(V(e))e=e.slice();else if(TJ(e)){var t=[];Ih(e,function(i,a){t.push(a)}),e=t}else return[];return e.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){for(var a,n=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||W(l)&&l===e+"")return o;i&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,p=u.close;if(f){if(f[0]===-1/0){if(Y0(p[1],e,f[1]))return o}else if(f[1]===1/0){if(Y0(p[0],f[0],e))return o}else if(Y0(p[0],f[0],e)&&Y0(p[1],e,f[1]))return o;i&&c(f[0],o),i&&c(f[1],o)}}if(i)return e===1/0?t.length-1:e===-1/0?0:a;function c(v,h){var d=Math.abs(v-e);d<n&&(n=d,a=h)}},r.visualHandlers={color:{applyVisual:Dh("color"),getColorMapper:function(){var e=this.option;return K(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),Mh.call(this,t)}:function(t,i,a){var n=!!a;return!i&&(t=this._normalizeData(t)),a=Ld(t,e.parsedVisual,a),n?a:di(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return di(Ld(e,this.option.parsedVisual),"rgba")},category:Mh,piecewise:function(e,t){var i=oC.call(this,t);return i==null&&(i=di(Ld(e,this.option.parsedVisual),"rgba")),i},fixed:Uu}},colorHue:W0(function(e,t){return sa(e,t)}),colorSaturation:W0(function(e,t){return sa(e,null,t)}),colorLightness:W0(function(e,t){return sa(e,null,null,t)}),colorAlpha:W0(function(e,t){return Cl(e,t)}),decal:{applyVisual:Dh("decal"),_normalizedToVisual:{linear:null,category:Mh,piecewise:null,fixed:null}},opacity:{applyVisual:Dh("opacity"),_normalizedToVisual:nC([0,1])},liftZ:{applyVisual:Dh("liftZ"),_normalizedToVisual:{linear:Uu,category:Uu,piecewise:Uu,fixed:Uu}},symbol:{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("symbol",a)},_normalizedToVisual:{linear:MU,category:Mh,piecewise:function(e,t){var i=oC.call(this,t);return i==null&&(i=MU.call(this,e)),i},fixed:Uu}},symbolSize:{applyVisual:Dh("symbolSize"),_normalizedToVisual:nC([0,1])}},r})();function CJ(r){var e=r.pieceList;r.hasSpecialVisual=!1,T(e,function(t,i){t.originIndex=i,t.visual!=null&&(r.hasSpecialVisual=!0)})}function AJ(r){var e=r.categories,t=r.categoryMap={},i=r.visual;if(Ih(e,function(o,s){t[o]=s}),!V(i)){var a=[];se(i)?Ih(i,function(o,s){var l=t[s];a[l??X0]=o}):a[X0]=i,i=IU(r,a)}for(var n=e.length-1;n>=0;n--)i[n]==null&&(delete t[e[n]],e.pop())}function aC(r,e){var t=r.visual,i=[];se(t)?Ih(t,function(n){i.push(n)}):t!=null&&i.push(t);var a={color:1,symbol:1};!e&&i.length===1&&!a.hasOwnProperty(r.type)&&(i[1]=i[0]),IU(r,i)}function W0(r){return{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("color",r(t("color"),a))},_normalizedToVisual:nC([0,1])}}function MU(r){var e=this.option.visual;return e[Math.round(Ge(r,[0,1],[0,e.length-1],!0))]||{}}function Dh(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function Mh(r){var e=this.option.visual;return e[this.option.loop&&r!==X0?r%e.length:r]}function Uu(){return this.option.visual[0]}function nC(r){return{linear:function(e){return Ge(e,r,this.option.visual,!0)},category:Mh,piecewise:function(e,t){var i=oC.call(this,t);return i==null&&(i=Ge(e,r,this.option.visual,!0)),i},fixed:Uu}}function oC(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=sC.findPieceIndex(r,t),a=t[i];if(a&&a.visual)return a.visual[this.type]}}function IU(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=U(e,function(t){var i=nr(t);return i||[0,0,0,1]})),e}var EJ={linear:function(r){return Ge(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=sC.findPieceIndex(r,e,!0);if(t!=null)return Ge(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??X0},fixed:nt};function Y0(r,e,t){return r?e<=t:e<t}var Bt=sC;var DJ="itemStyle",PU=ue(),RU={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||OU(t,{},r.getViewRoot().getAncestors(),r)}};function OU(r,e,t,i){var a=r.getModel(),n=r.getLayout(),o=r.hostTree.data;if(!(!n||n.invisible||!n.isInView)){var s=a.getModel(DJ),l=MJ(s,e,i),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),p=s.get("borderColorSaturation"),c;p!=null&&(c=LU(l),f=IJ(p,c)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)c=LU(l),u.fill=c;else{var h=LJ(r,a,n,s,l,v);T(v,function(d,m){if(d.depth>=t.length||d===t[d.depth]){var g=PJ(a,l,d,m,h,i);OU(d,g,t,i)}})}}}function MJ(r,e,t){var i=k({},e),a=t.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(n){a[n]=e[n];var o=r.get(n);a[n]=null,o!=null&&(i[n]=o)}),i}function LU(r){var e=lC(r,"color");if(e){var t=lC(r,"colorAlpha"),i=lC(r,"colorSaturation");return i&&(e=sa(e,null,null,i)),t&&(e=Cl(e,t)),e}}function IJ(r,e){return e!=null?sa(e,null,null,r):null}function lC(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function LJ(r,e,t,i,a,n){if(!(!n||!n.length)){var o=uC(e,"color")||a.color!=null&&a.color!=="none"&&(uC(e,"colorAlpha")||uC(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),p={type:o.name,dataExtent:u,visual:o.range};p.type==="color"&&(f==="index"||f==="id")?(p.mappingMethod="category",p.loop=!0):p.mappingMethod="linear";var c=new Bt(p);return PU(c).drColorMappingBy=f,c}}}function uC(r,e){var t=r.get(e);return V(t)&&t.length?{name:e,range:t}:null}function PJ(r,e,t,i,a,n){var o=k({},e);if(a){var s=a.type,l=s==="color"&&PU(a).drColorMappingBy,u=l==="index"?i:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function fC(r){r.registerSeriesModel(vU),r.registerChartView(DU),r.registerVisual(RU),r.registerLayout(xU),pU(r)}function Up(r){return"_EC_"+r}var RJ=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(!i[Up(e)]){var a=new Bu(e,t);return a.hostGraph=this,this.nodes.push(a),i[Up(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Up(e)]},r.prototype.addEdge=function(e,t,i){var a=this._nodesMap,n=this._edgesMap;if(Ce(e)&&(e=this.nodes[e]),Ce(t)&&(t=this.nodes[t]),e instanceof Bu||(e=a[Up(e)]),t instanceof Bu||(t=a[Up(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new NU(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Bu&&(e=e.id),t instanceof Bu&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var i=this.nodes,a=i.length,n=0;n<a;n++)i[n].dataIndex>=0&&e.call(t,i[n],n)},r.prototype.eachEdge=function(e,t){for(var i=this.edges,a=i.length,n=0;n<a;n++)i[n].dataIndex>=0&&i[n].node1.dataIndex>=0&&i[n].node2.dataIndex>=0&&e.call(t,i[n],n)},r.prototype.breadthFirstTraverse=function(e,t,i,a){if(t instanceof Bu||(t=this._nodesMap[Up(t)]),!!t){for(var n=i==="out"?"outEdges":i==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[n],o=0;o<u.length;o++){var f=u[o],p=f.node1===l?f.node2:f.node1;if(!p.__visited){if(e.call(a,p,l))return;s.push(p),p.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,i=this.nodes,a=this.edges,n=0,o=i.length;n<o;n++)i[n].dataIndex=-1;for(var n=0,o=e.count();n<o;n++)i[e.getRawIndex(n)].dataIndex=n;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var n=0,o=a.length;n<o;n++)a[n].dataIndex=-1;for(var n=0,o=t.count();n<o;n++)a[t.getRawIndex(n)].dataIndex=n},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,i=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<i.length;a++){var n=i[a];e.addEdge(n.node1.id,n.node2.id,n.dataIndex)}return e},r})(),Bu=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var i=this.edges[t];i.dataIndex<0||(e.edge.push(i.dataIndex),e.node.push(i.node1.dataIndex,i.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=Z(),t=Z(),i=0,a=this.edges.length;i<a;i++){var n=this.edges[i];if(!(n.dataIndex<0)){e.set(n.dataIndex,!0);for(var o=[n.node1],s=[n.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,p=0,c=f.length,v=void 0,h=void 0;p<c;p++)v=f[p],h=v.dataIndex,h>=0&&!e.hasKey(h)&&(e.set(h,!0),o.push(v.node1))}for(l=0;l<s.length;){var d=s[l];l++,t.set(d.dataIndex,!0);for(var m=d.outEdges,p=0,g=m.length,y=void 0,x=void 0;p<g;p++)y=m[p],x=y.dataIndex,x>=0&&!e.hasKey(x)&&(e.set(x,!0),s.push(y.node2))}}}return{edge:e.keys(),node:t.keys()}},r})(),NU=(function(){function r(e,t,i){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=i??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.edgeData.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=Z(),t=Z();e.set(this.dataIndex,!0);for(var i=[this.node1],a=[this.node2],n=0;n<i.length;){var o=i[n];n++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,p=void 0;l<u;l++)f=o.inEdges[l],p=f.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),i.push(f.node1))}for(n=0;n<a.length;){var c=a[n];n++,t.set(c.dataIndex,!0);for(var v=c.outEdges,l=0,u=v.length,h=void 0,d=void 0;l<u;l++)h=c.outEdges[l],d=h.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),a.push(h.node2))}return{edge:e.keys(),node:t.keys()}},r})();function kU(r,e){return{getValue:function(t){var i=this[r][e];return i.getStore().get(i.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,i){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}st(Bu,kU("hostGraph","data"));st(NU,kU("hostGraph","edgeData"));var zU=RJ;function Fu(r,e,t,i,a){for(var n=new zU(i),o=0;o<r.length;o++)n.addNode(Pt(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],p=f.source,c=f.target;n.addEdge(p,c,u)&&(l.push(f),s.push(Pt(wt(f.id,null),p+" > "+c)),u++)}var v=t.get("coordinateSystem"),h;if(v==="cartesian2d"||v==="polar"||v==="matrix")h=ur(r,t);else{var d=Lo.get(v),m=d?d.dimensions||[]:[];de(m,"value")<0&&m.concat(["value"]);var g=wa(r,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;h=new Tt(g,t),h.initData(r)}var y=new Tt(["value"],t);return y.initData(l,s),a&&a(h,y),F0({mainData:h,struct:n,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var pC="-->",Z0=function(r){return r.get("autoCurveness")||null},VU=function(r,e){var t=Z0(r),i=20,a=[];if(Ce(t))i=t;else if(V(t)){r.__curvenessList=t;return}e>i&&(i=e);var n=i%2?i+2:i+3;a=[];for(var o=0;o<n;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},Lh=function(r,e,t){var i=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,i,a].join(pC)},UU=function(r){var e=r.split(pC);return[e[0],e[2],e[1]].join(pC)},OJ=function(r,e){var t=Lh(r.node1,r.node2,e);return e.__edgeMap[t]},NJ=function(r,e){var t=cC(Lh(r.node1,r.node2,e),e),i=cC(Lh(r.node2,r.node1,e),e);return t+i},cC=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function BU(r){Z0(r)&&(r.__curvenessList=[],r.__edgeMap={},VU(r))}function FU(r,e,t,i){if(Z0(t)){var a=Lh(r,e,t),n=t.__edgeMap,o=n[UU(a)];n[a]&&!o?n[a].isForward=!0:o&&n[a]&&(o.isForward=!0,n[a].isForward=!1),n[a]=n[a]||[],n[a].push(i)}}function Bp(r,e,t,i){var a=Z0(e),n=V(a);if(!a)return null;var o=OJ(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=NJ(r,e);VU(e,u),r.lineStyle=r.lineStyle||{};var f=Lh(r.node1,r.node2,e),p=e.__curvenessList,c=n||u%2?0:1;if(o.isForward)return p[c+s];var v=UU(f),h=cC(v,e),d=p[s+h+c];return i?n?a&&a[0]===0?(h+c)%2?d:-d:((h%2?0:1)+c)%2?d:-d:(h+c)%2?d:-d:p[s+h+c]}var Wt="graph",kJ=(function(r){I(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.init=function(t){r.prototype.init.apply(this,arguments);var i=this;function a(){return i._categoriesData}this.legendVisualProvider=new Ma(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Gi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var a=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&a){BU(this);var s=Fu(n,a,this,!0,l);return T(s.edges,function(u){FU(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(h){var d=o._categoriesModels,m=h.getShallow("category"),g=d[m];return g&&(g.parentModel=h.parentModel,h.parentModel=g),h});var p=Re.prototype.getModel;function c(h,d){var m=p.call(this,h,d);return m.resolveParentPath=v,m}f.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=c,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,a){if(a==="edge"){var n=this.getData(),o=this.getDataParams(t,a),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),vt("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var p=Ng({series:this,dataIndex:t,multipleSeries:i});return p},e.prototype._updateCategoriesData=function(){var t=U(this.option.categories||[],function(a){return a.value!=null?a:k({value:0},a)}),i=new Tt(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(a){return i.getItemModel(a)})},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var t=this.coordinateSystem;return M0(t)&&t},e.type="series."+Wt,e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:N.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},e})(Fe),GU=kJ;function K0(r){return r instanceof Array||(r=[r,r]),r}var HU=et(Wt,zJ);function zJ(r){r.eachSeriesByType(Wt,function(e){var t=e.getGraph(),i=e.getEdgeData(),a=K0(e.get("edgeSymbol")),n=K0(e.get("edgeSymbolSize"));i.setVisual("fromSymbol",a&&a[0]),i.setVisual("toSymbol",a&&a[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),i.setVisual("style",e.getModel("lineStyle").getLineStyle()),i.each(function(o){var s=i.getItemModel(o),l=t.getEdgeByIndex(o),u=K0(s.getShallow("symbol",!0)),f=K0(s.getShallow("symbolSize",!0)),p=s.getModel("lineStyle").getLineStyle(),c=i.ensureUniqueItemVisual(o,"style");switch(k(c,p),c.stroke){case"source":{var v=l.node1.getVisual("style");c.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");c.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}function q0(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(i){var a=i.getModel();i.setLayout([+a.get("x"),+a.get("y")])}),Ph(t,r)}}function Ph(r,e){r.eachEdge(function(t,i){var a=Rt(t.getModel().get(["lineStyle","curveness"]),-Bp(t,e,i,!0),0),n=pi(t.node1.getLayout()),o=pi(t.node2.getLayout()),s=[n,o];+a&&s.push([(n[0]+o[0])/2-(n[1]-o[1])*a,(n[1]+o[1])/2-(o[0]-n[0])*a]),t.setLayout(s)})}var WU=et(Wt,VJ);function VJ(r,e){r.eachSeriesByType(Wt,function(t){var i=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var n=t.getData(),o=[];T(a.dimensions,function(c){o=o.concat(n.mapDimensionsAll(c))});for(var s=0;s<n.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var p=n.get(o[f],s);isNaN(p)||(u=!0),l.push(p)}u?n.setItemLayout(s,a.dataToPoint(l)):n.setItemLayout(s,[NaN,NaN])}Ph(n.graph,t)}else(!i||i==="none")&&q0(t)})}function Gu(r){var e=r.coordinateSystem;return M0(e)?O0(e,r):1}function Hu(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var YU=Math.PI,vC=[];function Fp(r,e,t,i){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var n=a.getBoundingRect(),o=r.getData(),s=o.graph,l=n.width/2+n.x,u=n.height/2+n.y,f=Math.min(n.width,n.height)/2,p=o.count();if(o.setLayout({cx:l,cy:u}),!!p){if(t){var c=a.pointToData(i),v=c[0],h=c[1],d=[v-l,h-u];ra(d,d),nf(d,d,f),t.setLayout([l+d[0],u+d[1]],!0);var m=r.get(["circular","rotateLabel"]);hC(t,m,l,u)}UJ[e](r,s,o,f,l,u,p),s.eachEdge(function(g,y){var x=Rt(g.getModel().get(["lineStyle","curveness"]),Bp(g,r,y),0),_=pi(g.node1.getLayout()),S=pi(g.node2.getLayout()),b,w=(_[0]+S[0])/2,A=(_[1]+S[1])/2;+x&&(x*=3,b=[l*x+w*(1-x),u*x+A*(1-x)]),g.setLayout([_,S,b])})}}}var UJ={value:function(r,e,t,i,a,n,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var p=f.getValue("value"),c=u*(l?p:1)/2;s+=c,f.setLayout([i*Math.cos(s)+a,i*Math.sin(s)+n]),s+=c})},symbolSize:function(r,e,t,i,a,n,o){var s=0;vC.length=o;var l=Gu(r);e.eachNode(function(p){var c=Hu(p);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var v=Math.asin(c/2/i);isNaN(v)&&(v=YU/2),vC[p.dataIndex]=v,s+=v*2});var u=(2*YU-s)/o/2,f=0;e.eachNode(function(p){var c=u+vC[p.dataIndex];f+=c,(!p.getLayout()||!p.getLayout().fixed)&&p.setLayout([i*Math.cos(f)+a,i*Math.sin(f)+n]),f+=c})}};function hC(r,e,t,i){var a=r.getGraphicEl();if(a){var n=r.getModel(),o=n.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-i,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var p=f?"left":"right";s.setTextConfig({rotation:-u,position:p,origin:"center"});var c=s.ensureState("emphasis");k(c.textConfig||(c.textConfig={}),{position:p})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var XU=et(Wt,BJ);function BJ(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Fp(e,"symbolSize")})}var Gp=wc;function ZU(r,e,t){for(var i=r,a=e,n=t.rect,o=n.width,s=n.height,l=[n.x+o/2,n.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<i.length;f++){var p=i[f];p.p||(p.p=wn(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),p.pp=pi(p.p),p.edges=null}var c=t.friction==null?.6:t.friction,v=c,h,d;return{warmUp:function(){v=c*.8},setFixed:function(m){i[m].fixed=!0},setUnfixed:function(m){i[m].fixed=!1},beforeStep:function(m){h=m},afterStep:function(m){d=m},step:function(m){h&&h(i,a);for(var g=[],y=i.length,x=0;x<a.length;x++){var _=a[x];if(!_.ignoreForceLayout){var S=_.n1,b=_.n2;Va(g,b.p,S.p);var w=vd(g)-_.d,A=b.w/(S.w+b.w);isNaN(A)&&(A=0),ra(g,g),!S.fixed&&Gp(S.p,S.p,g,A*w*v),!b.fixed&&Gp(b.p,b.p,g,-(1-A)*w*v)}}for(var x=0;x<y;x++){var C=i[x];C.fixed||(Va(g,l,C.p),Gp(C.p,C.p,g,u*v))}for(var x=0;x<y;x++)for(var S=i[x],E=x+1;E<y;E++){var b=i[E];Va(g,b.p,S.p);var w=vd(g);w===0&&(ta(g,Math.random()-.5,Math.random()-.5),w=1);var D=(S.rep+b.rep)/w/w;!S.fixed&&Gp(S.pp,S.pp,g,D),!b.fixed&&Gp(b.pp,b.pp,g,-D)}for(var L=[],x=0;x<y;x++){var C=i[x];C.fixed||(Va(L,C.p,C.pp),Gp(C.p,C.p,L,v),rr(C.pp,C.p))}v=v*.992;var M=v<.01;d&&d(i,a,M),m&&m(M)}}}var KU=et(Wt,FJ);function FJ(r){r.eachSeriesByType(Wt,function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var i=e.preservedPoints||{},a=e.getGraph(),n=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?n.each(function(x){var _=n.getId(x);n.setItemLayout(x,i[_]||[NaN,NaN])}):!l||l==="none"?q0(e):l==="circular"&&Fp(e,"value");var u=n.getDataExtent("value"),f=o.getDataExtent("value"),p=s.get("repulsion"),c=s.get("edgeLength"),v=V(p)?p:[p,p],h=V(c)?c:[c,c];h=[h[1],h[0]];var d=n.mapArray("value",function(x,_){var S=n.getItemLayout(_),b=Ge(x,u,v);return isNaN(b)&&(b=(v[0]+v[1])/2),{w:b,rep:b,fixed:n.getItemModel(_).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),m=o.mapArray("value",function(x,_){var S=a.getEdgeByIndex(_),b=Ge(x,f,h);isNaN(b)&&(b=(h[0]+h[1])/2);var w=S.getModel(),A=Rt(S.getModel().get(["lineStyle","curveness"]),-Bp(S,e,_,!0),0);return{n1:d[S.node1.dataIndex],n2:d[S.node2.dataIndex],d:b,curveness:A,ignoreForceLayout:w.get("ignoreForceLayout")}}),g=t.getBoundingRect(),y=ZU(d,m,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(x,_){for(var S=0,b=x.length;S<b;S++)x[S].fixed&&rr(x[S].p,a.getNodeByIndex(S).getLayout())}),y.afterStep(function(x,_,S){for(var b=0,w=x.length;b<w;b++)x[b].fixed||a.getNodeByIndex(b).setLayout(x[b].p),i[n.getId(b)]=x[b].p;for(var b=0,w=_.length;b<w;b++){var A=_[b],C=a.getEdgeByIndex(b),E=A.n1.p,D=A.n2.p,L=C.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],rr(L[0],E),rr(L[1],D),+A.curveness&&(L[2]=[(E[0]+D[0])/2-(E[1]-D[1])*A.curveness,(E[1]+D[1])/2-(D[0]-E[0])*A.curveness]),C.setLayout(L)}}),e.forceLayout=y,e.preservedPoints=i,y.step()}else e.forceLayout=null})}function GJ(r,e,t){var i=rt(r,e),a=k(r.getBoxLayoutParams(),{aspect:t}),n=Ze(a,i.refContainer);return hg(r,n,t)}function dC(r,e){var t=[];return r.eachSeriesByType("graph",function(i){Hn({targetModel:i,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var n=i.getData(),o=n.mapArray(function(h){var d=n.getItemModel(h);return[+d.get("x"),+d.get("y")]}),s=[],l=[];Vl(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=GJ(i,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var p=l[0]-s[0],c=l[1]-s[1],v=Pp(i,e,s[0],s[1],p,c,f);return t.push(v),v}}),t}var qU=ct.prototype,mC=Co.prototype,jU=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),LRe=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(jU);function gC(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var HJ=(function(r){I(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:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new jU},e.prototype.buildPath=function(t,i){gC(i)?qU.buildPath.call(this,t,i):mC.buildPath.call(this,t,i)},e.prototype.pointAt=function(t){return gC(this.shape)?qU.pointAt.call(this,t):mC.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var i=this.shape,a=gC(i)?[i.x2-i.x1,i.y2-i.y1]:mC.tangentAt.call(this,t);return ra(a,a)},e})(ge),j0=HJ;var yC=["fromSymbol","toSymbol"];function JU(r){return"_"+r+"Type"}function QU(r,e,t){var i=e.getItemVisual(t,r);if(!i||i==="none")return i;var a=e.getItemVisual(t,r+"Size"),n=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=an(a),u=Zi(o||0,l);return i+l+u+(n||"")+(s||"")}function $U(r,e,t){var i=e.getItemVisual(t,r);if(!(!i||i==="none")){var a=e.getItemVisual(t,r+"Size"),n=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=an(a),u=Zi(o||0,l),f=tt(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,f.name=r,f}}function WJ(r){var e=new j0({name:"line",subPixelOptimize:!0});return xC(e.shape,r),e}function xC(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 YJ=(function(r){I(e,r);function e(t,i,a){var n=r.call(this)||this;return n._createLine(t,i,a),n}return e.prototype._createLine=function(t,i,a){var n=t.hostModel,o=t.getItemLayout(i),s=t.getItemVisual(i,"z2"),l=WJ(o);l.shape.percent=0,Xe(l,{z2:J(s,0),shape:{percent:1}},n,i),this.add(l),T(yC,function(u){var f=$U(u,t,i);this.add(f),this[JU(u)]=QU(u,t,i)},this),this._updateCommonStl(t,i,a)},e.prototype.updateData=function(t,i,a){var n=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(i),l={shape:{}};xC(l.shape,s),Pe(o,l,n,i),T(yC,function(u){var f=QU(u,t,i),p=JU(u);if(this[p]!==f){this.remove(this.childOfName(u));var c=$U(u,t,i);this.add(c)}this[p]=f},this),this._updateCommonStl(t,i,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,i,a){var n=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,p=a&&a.emphasisDisabled,c=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var h=t.getItemModel(i),d=h.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=h.getModel(["blur","lineStyle"]).getLineStyle(),u=h.getModel(["select","lineStyle"]).getLineStyle(),p=d.get("disabled"),c=d.get("focus"),v=d.get("blurScope"),f=at(h)}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,T(yC,function(b){var w=this.childOfName(b);if(w){w.setColor(g),w.style.opacity=m.opacity;for(var A=0;A<sr.length;A++){var C=sr[A],E=o.getState(C);if(E){var D=E.style||{},L=w.ensureState(C),M=L.style||(L.style={});D.stroke!=null&&(M[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(M.opacity=D.opacity)}}w.markRedraw()}},this);var y=n.getRawValue(i);ot(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,w){return n.getFormattedLabel(b,w,t.dataType)}},inheritColor:g||N.color.neutral99,defaultOpacity:m.opacity,defaultText:(y==null?t.getName(i):isFinite(y)?Be(y,10):y)+""});var x=this.getTextContent();if(x){var _=f.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var S=_.get("distance");V(S)||(S=[S,S]),x.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),He(this,c,v,p)},e.prototype.highlight=function(){Or(this)},e.prototype.downplay=function(){Nr(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");xC(i.shape,t),i.dirty()},e.prototype.beforeUpdate=function(){var t=this,i=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),n=t.getTextContent();if(!i&&!a&&(!n||n.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),p=l.pointAt(u),c=Va([],p,f);ra(c,c);function v(E,D){var L=E.__specifiedRotation;if(L==null){var M=l.tangentAt(D);E.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else E.attr("rotation",L)}if(i&&(i.setPosition(f),v(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&(a.setPosition(p),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var h=void 0,d=void 0,m=n.__labelDistance,g=m[0]*o,y=m[1]*o,x=u/2,_=l.tangentAt(x),S=[_[1],-_[0]],b=l.pointAt(x);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var w=_[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var A=-Math.atan2(_[1],_[0]);p[0]<f[0]&&(A=Math.PI+A),n.rotation=A}var C=void 0;switch(n.__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(n.__position){case"end":n.x=c[0]*g+p[0],n.y=c[1]*y+p[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*g+f[0],n.y=-c[1]*y+f[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=g*w+f[0],n.y=f[1]+C,h=_[0]<0?"right":"left",n.originX=-g*w,n.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+C,h="center",n.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-g*w+p[0],n.y=p[1]+C,h=_[0]>=0?"right":"left",n.originX=g*w,n.originY=-C;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||h})}},e})(te),Hp=YJ;var XJ=(function(){function r(e){this.group=new te,this._LineCtor=e||Hp}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,a=i.group,n=i._lineData;i._lineData=e,n||a.removeAll();var o=eB(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){a.remove(n.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=eB(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[];function a(l){!l.isGroup&&!ZJ(l)&&(l.incremental=i,l.ensureState("emphasis").hoverLayer=ja)}for(var n=e.start;n<e.end;n++){var o=t.getItemLayout(n);if(_C(o)){var s=new this._LineCtor(t,n,this._seriesScope);s.traverse(a),this.group.add(s),t.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Jr(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,i){var a=e.getItemLayout(t);if(_C(a)){var n=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,n),this.group.add(n)}},r.prototype._doUpdate=function(e,t,i,a,n){var o=e.getItemGraphicEl(i);if(!_C(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,n):o=new this._LineCtor(t,a,n),t.setItemGraphicEl(a,o),this.group.add(o)},r})();function ZJ(r){return r.animators&&r.animators.length>0}function eB(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:at(e)}}function tB(r){return isNaN(r[0])||isNaN(r[1])}function _C(r){return r&&!tB(r[0])&&!tB(r[1])}var Wp=XJ;var SC=[],bC=[],wC=[],Yp=Ft,TC=po,rB=Math.abs;function iB(r,e,t){for(var i=r[0],a=r[1],n=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){SC[0]=Yp(i[0],a[0],n[0],f),SC[1]=Yp(i[1],a[1],n[1],f);var p=rB(TC(SC,e)-l);p<o&&(o=p,s=f)}for(var c=0;c<32;c++){var v=s+u;bC[0]=Yp(i[0],a[0],n[0],s),bC[1]=Yp(i[1],a[1],n[1],s),wC[0]=Yp(i[0],a[0],n[0],v),wC[1]=Yp(i[1],a[1],n[1],v);var p=TC(bC,e)-l;if(rB(p)<.01)break;var h=TC(wC,e)-l;u/=2,p<0?h>=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function Rh(r,e){var t=[],i=as,a=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),p=s.getVisual("toSymbol");u.__original||(u.__original=[pi(u[0]),pi(u[1])],u[2]&&u.__original.push(pi(u[2])));var c=u.__original;if(u[2]!=null){if(rr(a[0],c[0]),rr(a[1],c[2]),rr(a[2],c[1]),f&&f!=="none"){var v=Hu(s.node1),h=iB(a,c[0],v*e);i(a[0][0],a[1][0],a[2][0],h,t),a[0][0]=t[3],a[1][0]=t[4],i(a[0][1],a[1][1],a[2][1],h,t),a[0][1]=t[3],a[1][1]=t[4]}if(p&&p!=="none"){var v=Hu(s.node2),h=iB(a,c[1],v*e);i(a[0][0],a[1][0],a[2][0],h,t),a[1][0]=t[1],a[2][0]=t[2],i(a[0][1],a[1][1],a[2][1],h,t),a[1][1]=t[1],a[2][1]=t[2]}rr(u[0],a[0]),rr(u[1],a[2]),rr(u[2],a[1])}else{if(rr(n[0],c[0]),rr(n[1],c[1]),Va(o,n[1],n[0]),ra(o,o),f&&f!=="none"){var v=Hu(s.node1);wc(n[0],n[0],o,v*e)}if(p&&p!=="none"){var v=Hu(s.node2);wc(n[1],n[1],o,-v*e)}rr(u[0],n[0]),rr(u[1],n[1])}})}var aB=ue();function nB(r){if(r)return aB(r).bridge}function CC(r,e){r&&(aB(r).bridge=e)}var KJ=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Wt,t}return e.prototype.init=function(t,i){var a=new to,n=new Wp,o=this.group,s=new te;this._controller=new ki(i.getZr()),s.add(a.group),s.add(n.group),o.add(s),this._symbolDraw=a,this._lineDraw=n,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,i,a){var n=this,o=Ip(t),s=!1;this._model=t,this._api=a,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(a);var f=this._symbolDraw,p=this._lineDraw;o&&La(l,Qi,o,this._firstRender?null:t),Rh(t.getGraph(),Gu(t));var c=t.getData();f.updateData(c);var v=t.getEdgeData();p.updateData(v),this._updateNodeAndLinkScale(),o&&Qs(t,a,this._controller,function(_,S,b){return t.coordinateSystem.containPoint([S,b])},null),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&(s=!0,this._startForceLayoutIteration(h,a,d));var m=t.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),w=_.getModel();if(b){b.off("drag").off("dragend");var A=w.get("draggable");A&&b.on("drag",function(E){switch(m){case"force":h.warmUp(),!n._layouting&&n._startForceLayoutIteration(h,a,d),h.setFixed(S),c.setItemLayout(S,[b.x,b.y]);break;case"circular":c.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),Fp(t,"symbolSize",_,[E.offsetX,E.offsetY]),n.updateLayout(t);break;case"none":default:c.setItemLayout(S,[b.x,b.y]),Ph(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),b.setDraggable(A,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(ce(b).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(ce(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),x=c.getLayout("cy");c.graph.eachNode(function(_){hC(_,g,y,x)}),this._firstRender=!1,s||this._renderThumbnail(t,a,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(t,i,a){var n=this,o=!1;(function s(){t.step(function(l){n.updateLayout(n._model),(l||!o)&&(o=!0,n._renderThumbnail(n._model,i,n._symbolDraw,n._lineDraw)),(n._layouting=!l)&&(a?n._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype.__updateOnOwnRoam=function(t,i,a){var n=Ip(i);!this._active||!n||(La(this._mainGroup,Qi,n,null),k0(t)&&(this._updateNodeAndLinkScale(),Rh(i.getGraph(),Gu(i)),this._lineDraw.updateLayout(),a.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),a=Gu(t);i.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(a)})},e.prototype.updateLayout=function(t){this._active&&(Rh(t.getGraph(),Gu(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,i=t.coordinateSystem;if(i.type==="view"){var a=nB(t);if(a)return{bridge:a,coordSys:i}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(Nu(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,i,a,n){var o=this._getThumbnailInfo();if(o){var s=new te,l=a.group.children(),u=n.group.children(),f=new te,p=new te;s.add(p),s.add(f);for(var c=0;c<l.length;c++){var v=l[c],h=v.children()[0],d=v.x,m=v.y,g=ae(h.shape),y=k(g,{width:h.scaleX,height:h.scaleY,x:d-h.scaleX/2,y:m-h.scaleY/2}),x=ae(h.style),_=new h.constructor({shape:y,style:x,z2:151});p.add(_)}for(var c=0;c<u.length;c++){var v=u[c],S=v.children()[0],x=ae(S.style),y=ae(S.shape),b=new j0({style:x,shape:y,z2:151});f.add(b)}o.bridge.renderContent({api:i,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:Nu(null,o.coordSys)})}},e.type=Wt,e})(Ve),oB=KJ;var sB=et(Wt,qJ);function qJ(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType(Wt,function(t){var i=t.getCategoriesData(),a=t.getGraph(),n=a.data,o=i.mapArray(i.getName);n.filterSelf(function(s){var l=n.getItemModel(s),u=l.getShallow("category");if(u!=null){Ce(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}var lB=et(Wt,jJ);function jJ(r){var e={};r.eachSeriesByType(Wt,function(t){var i=t.getCategoriesData(),a=t.getData(),n={};i.each(function(o){var s=i.getName(o);n["ec-"+s]=o;var l=i.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),i.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],p=0;p<f.length;p++){var c=l.getShallow(f[p],!0);c!=null&&i.setItemVisual(o,f[p],c)}}),i.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){W(l)&&(l=n["ec-"+l]);var u=i.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");k(f,u);for(var p=["symbol","symbolSize","symbolKeepAspect"],c=0;c<p.length;c++)a.setItemVisual(o,p[c],i.getItemVisual(l,p[c]))}})})}function AC(r){r.registerChartView(oB),r.registerSeriesModel(GU),r.registerProcessor(sB),r.registerVisual(lB),r.registerVisual(HU),r.registerLayout(WU),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,XU),r.registerLayout(KU),r.registerCoordinateSystem("graphView",{dimensions:Js.dimensions,create:dC}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},nt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},nt),Lp(r,wr,Wt)}var Wu="chord",JJ=(function(r){I(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.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new Ma(K(this.getData,this),K(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,i){var a=t.edges||t.links||[],n=t.data||t.nodes||[];if(n&&a){var o=Fu(n,a,this,!0,s);return o.data}function s(l,u){var f=Re.prototype.getModel;function p(v,h){var d=f.call(this,v,h);return d.resolveParentPath=c,d}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=c,v.getModel=p,v});function c(v){if(v&&(v[0]==="label"||v[1]==="label")){var h=v.slice();return v[0]==="label"?h[0]="edgeLabel":v[1]==="label"&&(h[1]="edgeLabel"),h}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,a){var n=this.getDataParams(t,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),vt("nameValue",{name:f.join(" > "),value:n.value,noValue:n.value==null})}return vt("nameValue",{name:n.name,value:n.value,noValue:n.value==null})},e.prototype.getDataParams=function(t,i){var a=r.prototype.getDataParams.call(this,t,i);if(i==="node"){var n=this.getData(),o=this.getGraph().getNodeByIndex(t);if(a.name==null&&(a.name=n.getName(t)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},e.type="series."+Wu,e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e})(Fe),uB=JJ;var QJ=(function(r){I(e,r);function e(t,i,a){var n=r.call(this)||this;ce(n).dataType="node",n.z2=2;var o=new Ee;return n.setTextContent(o),n.updateData(t,i,a,!0),n}return e.prototype.updateData=function(t,i,a,n){var o=this,s=t.graph.getNodeByIndex(i),l=t.hostModel,u=s.getModel(),f=u.getModel("emphasis"),p=t.getItemLayout(i),c=k(si(u.getModel("itemStyle"),p,!0),p),v=this;if(isNaN(c.startAngle)){v.setShape(c);return}n?v.setShape(c):Pe(v,{shape:c},l,i);var h=k(si(u.getModel("itemStyle"),p,!0),p);o.setShape(h),o.useStyle(t.getItemVisual(i,"style")),ut(o,u),this._updateLabel(l,u,s),t.setItemGraphicEl(i,v),ut(v,u,"itemStyle");var d=f.get("focus");He(this,d==="adjacency"?s.getAdjacentDataIndices():d,f.get("blurScope"),f.get("disabled"))},e.prototype._updateLabel=function(t,i,a){var n=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=i.getModel("label");n.ignore=!f.get("show");var p=at(i),c=a.getVisual("style");ot(n,p,{labelFetcher:{getFormattedLabel:function(y,x,_,S,b,w){return t.getFormattedLabel(y,x,"node",S,Rt(b,p.normal&&p.normal.get("formatter"),i.get("name")),w)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var v=f.get("position")||"outside",h=f.get("distance")||0,d;v==="outside"?d=o.r+h:d=(o.r+o.r0)/2,this.textConfig={inside:v!=="outside"};var m=v!=="outside"?f.get("align")||"center":l>0?"left":"right",g=v!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";n.attr({x:l*d+o.cx,y:u*d+o.cy,rotation:0,style:{align:m,verticalAlign:g}})},e})(Dt),EC=QJ;var pB=(function(r){I(e,r);function e(t,i,a,n){var o=r.call(this)||this;return ce(o).dataType="edge",o.updateData(t,i,a,n,!0),o}return e.prototype.buildPath=function(t,i){t.moveTo(i.s1[0],i.s1[1]);var a=.7,n=i.clockwise;t.arc(i.cx,i.cy,i.r,i.sStartAngle,i.sEndAngle,!n),t.bezierCurveTo((i.cx-i.s2[0])*a+i.s2[0],(i.cy-i.s2[1])*a+i.s2[1],(i.cx-i.t1[0])*a+i.t1[0],(i.cy-i.t1[1])*a+i.t1[1],i.t1[0],i.t1[1]),t.arc(i.cx,i.cy,i.r,i.tStartAngle,i.tEndAngle,!n),t.bezierCurveTo((i.cx-i.t2[0])*a+i.t2[0],(i.cy-i.t2[1])*a+i.t2[1],(i.cx-i.s1[0])*a+i.s1[0],(i.cy-i.s1[1])*a+i.s1[1],i.s1[0],i.s1[1]),t.closePath()},e.prototype.updateData=function(t,i,a,n,o){var s=t.hostModel,l=i.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),p=i.getItemModel(l.dataIndex),c=p.getModel("lineStyle"),v=p.getModel("emphasis"),h=v.get("focus"),d=k(si(f.getModel("itemStyle"),u,!0),u),m=this;if(isNaN(d.sStartAngle)||isNaN(d.tStartAngle)){m.setShape(d);return}o?(m.setShape(d),fB(m,l,t,c)):(Ht(m),fB(m,l,t,c),Pe(m,{shape:d},s,a)),He(this,h==="adjacency"?l.getAdjacentDataIndices():h,v.get("blurScope"),v.get("disabled")),ut(m,p,"lineStyle"),i.setItemGraphicEl(l.dataIndex,m)},e})(ge);function fB(r,e,t,i){var a=e.node1,n=e.node2,o=r.style;r.setStyle(i.getLineStyle());var s=i.get("color");switch(s){case"source":o.fill=t.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(a.dataIndex,"style").fill,u=t.getItemVisual(n.dataIndex,"style").fill;if(W(l)&&W(u)){var f=r.shape,p=(f.s1[0]+f.s2[0])/2,c=(f.s1[1]+f.s2[1])/2,v=(f.t1[0]+f.t2[0])/2,h=(f.t1[1]+f.t2[1])/2;o.fill=new Ei(p,c,v,h,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var $J=Math.PI/180,eQ=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Wu,t}return e.prototype.init=function(t,i){},e.prototype.render=function(t,i,a){var n=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*$J;if(n.diff(o).add(function(f){var p=n.getItemLayout(f);if(p){var c=new EC(n,f,l);ce(c).dataIndex=f,s.add(c)}}).update(function(f,p){var c=o.getItemGraphicEl(p),v=n.getItemLayout(f);if(!v){c&&Di(c,t,p);return}c?c.updateData(n,f,l):c=new EC(n,f,l),s.add(c)}).remove(function(f){var p=o.getItemGraphicEl(f);p&&Di(p,t,f)}).execute(),!o){var u=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=$(u[0],a.getWidth()),this.group.originY=$(u[1],a.getHeight()),Xe(this.group,{scaleX:1,scaleY:1},t)}this._data=n,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,i){var a=t.getData(),n=t.getEdgeData(),o=this._edgeData,s=this.group;n.diff(o).add(function(l){var u=new pB(a,n,l,i);ce(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,n,l,i),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&Di(u,t,l)}).execute(),this._edgeData=n},e.prototype.dispose=function(){},e.type=Wu,e})(Ve),cB=eQ;var DC=Math.PI/180,vB=et(Wu,tQ);function tQ(r,e){r.eachSeriesByType(Wu,function(t){rQ(t,e)})}function rQ(r,e){var t=r.getData(),i=t.graph,a=r.getEdgeData(),n=a.count();if(n){var o=vg(r,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,p=Math.max((r.get("padAngle")||0)*DC,0),c=Math.max((r.get("minAngle")||0)*DC,0),v=-r.get("startAngle")*DC,h=v+Math.PI*2,d=r.get("clockwise"),m=d?1:-1,g=[v,h];Hl(g,!d);var y=g[0],x=g[1],_=x-y,S=t.getSum("value")===0&&a.getSum("value")===0,b=[],w=0;i.eachEdge(function(F){var H=S?1:F.getValue("value");S&&(H>0||c)&&(w+=2);var Y=F.node1.dataIndex,q=F.node2.dataIndex;b[Y]=(b[Y]||0)+H,b[q]=(b[q]||0)+H});var A=0;if(i.eachNode(function(F){var H=F.getValue("value");isNaN(H)||(b[F.dataIndex]=Math.max(H,b[F.dataIndex]||0)),!S&&(b[F.dataIndex]>0||c)&&w++,A+=b[F.dataIndex]||0}),!(w===0||A===0)){p*w>=Math.abs(_)&&(p=Math.max(0,(Math.abs(_)-c*w)/w)),(p+c)*w>=Math.abs(_)&&(c=(Math.abs(_)-p*w)/w);var C=(_-p*w*m)/A,E=0,D=0,L=0,M=1/0;i.eachNode(function(F){var H=b[F.dataIndex]||0,Y=C*(A?H:1)*m;Math.abs(Y)<c?E+=c-Math.abs(Y):(M=Math.min(M,Math.abs(Y)-c),D+=Math.abs(Y)-c,L+=Math.abs(Y)),F.setLayout({angle:Y,value:H})});var P=!1;if(E>D){var O=E/D;i.eachNode(function(F){var H=F.getLayout().angle;Math.abs(H)>=c?F.setLayout({angle:H*O,ratio:O},!0):F.setLayout({angle:c,ratio:c===0?1:H/c},!0)})}else i.eachNode(function(F){if(!P){var H=F.getLayout().angle,Y=Math.min(H/L,1),q=Y*E;H-q<c&&(P=!0)}});var R=E;i.eachNode(function(F){if(!(R<=0)){var H=F.getLayout().angle;if(H>c&&c>0){var Y=P?1:Math.min(H/L,1),q=H-c,oe=Math.min(q,Math.min(R,E*Y));R-=oe,F.setLayout({angle:H-oe,ratio:(H-oe)/H},!0)}else c>0&&F.setLayout({angle:c,ratio:H===0?1:c/H},!0)}});var z=y,B=[];i.eachNode(function(F){var H=Math.max(F.getLayout().angle,c);F.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:z,endAngle:z+H*m,clockwise:d},!0),B[F.dataIndex]=z,z+=(H+p)*m}),i.eachEdge(function(F){var H=S?1:F.getValue("value"),Y=C*(A?H:1)*m,q=F.node1.dataIndex,oe=B[q]||0,X=Math.abs((F.node1.getLayout().ratio||1)*Y),G=oe+X*m,ne=[s+f*Math.cos(oe),l+f*Math.sin(oe)],ve=[s+f*Math.cos(G),l+f*Math.sin(G)],pe=F.node2.dataIndex,j=B[pe]||0,me=Math.abs((F.node2.getLayout().ratio||1)*Y),ie=j+me*m,he=[s+f*Math.cos(j),l+f*Math.sin(j)],ze=[s+f*Math.cos(ie),l+f*Math.sin(ie)];F.setLayout({s1:ne,s2:ve,sStartAngle:oe,sEndAngle:G,t1:he,t2:ze,tStartAngle:j,tEndAngle:ie,cx:s,cy:l,r:f,value:H,clockwise:d}),B[q]=G,B[pe]=ie})}}}function MC(r){r.registerChartView(cB),r.registerSeriesModel(uB),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,vB),r.registerProcessor(dn("chord"))}var iQ=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),aQ=(function(r){I(e,r);function e(t){var i=r.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new iQ},e.prototype.buildPath=function(t,i){var a=Math.cos,n=Math.sin,o=i.r,s=i.width,l=i.angle,u=i.x-a(l)*s*(s>=o/3?1:2),f=i.y-n(l)*s*(s>=o/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(i.x+a(l)*s,i.y+n(l)*s),t.lineTo(i.x+a(i.angle)*o,i.y+n(i.angle)*o),t.lineTo(i.x-a(l)*s,i.y-n(l)*s),t.lineTo(u,f)},e})(ge),hB=aQ;function nQ(r,e){var t=r.get("center"),i=e.getWidth(),a=e.getHeight(),n=Math.min(i,a),o=$(t[0],e.getWidth()),s=$(t[1],e.getHeight()),l=$(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function J0(r,e){var t=r==null?"":r+"";return e&&(W(e)?t=e.replace("{value}",t):ee(e)&&(t=e(r))),t}var oQ=(function(r){I(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,a){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=nQ(t,a);this._renderMain(t,i,a,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,a,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,p=t.getModel("axisLine"),c=p.get("roundCap"),v=c?Ep:Dt,h=p.get("show"),d=p.getModel("lineStyle"),m=d.get("width"),g=[u,f];Hl(g,!l),u=g[0],f=g[1];for(var y=f-u,x=u,_=[],S=0;h&&S<n.length;S++){var b=Math.min(Math.max(n[S][0],0),1);f=u+y*b;var w=new v({shape:{startAngle:x,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});w.setStyle({fill:n[S][1]}),w.setStyle(d.getLineStyle(["color","width"])),_.push(w),x=f}_.reverse(),T(_,function(C){return s.add(C)});var A=function(C){if(C<=0)return n[0][1];var E;for(E=0;E<n.length;E++)if(n[E][0]>=C&&(E===0?0:n[E-1][0])<C)return n[E][1];return n[E-1][1]};this._renderTicks(t,i,a,A,o,u,f,l,m),this._renderTitleAndDetail(t,i,a,A,o),this._renderAnchor(t,o),this._renderPointer(t,i,a,A,o,u,f,l,m)},e.prototype._renderTicks=function(t,i,a,n,o,s,l,u,f){for(var p=this.group,c=o.cx,v=o.cy,h=o.r,d=+t.get("min"),m=+t.get("max"),g=t.getModel("splitLine"),y=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),S=y.get("splitNumber"),b=$(g.get("length"),h),w=$(y.get("length"),h),A=s,C=(l-s)/_,E=C/S,D=g.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),M=g.get("distance"),P,O,R=0;R<=_;R++){if(P=Math.cos(A),O=Math.sin(A),g.get("show")){var z=M?M+f:f,B=new ct({shape:{x1:P*(h-z)+c,y1:O*(h-z)+v,x2:P*(h-b-z)+c,y2:O*(h-b-z)+v},style:D,silent:!0});D.stroke==="auto"&&B.setStyle({stroke:n(R/_)}),p.add(B)}if(x.get("show")){var z=x.get("distance")+M,F=J0(Be(R*(m-d)/_+d,aI),x.get("formatter")),H=n(R/_),Y=P*(h-b-z)+c,q=O*(h-b-z)+v,oe=x.get("rotate"),X=0;oe==="radial"?(X=-A+2*Math.PI,X>Math.PI/2&&(X+=Math.PI)):oe==="tangential"?X=-A-Math.PI/2:Ce(oe)&&(X=oe*Math.PI/180),X===0?p.add(new Ee({style:je(x,{text:F,x:Y,y:q,verticalAlign:O<-.8?"top":O>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:H}),silent:!0})):p.add(new Ee({style:je(x,{text:F,x:Y,y:q,verticalAlign:"middle",align:"center"},{inheritColor:H}),silent:!0,originX:Y,originY:q,rotation:X}))}if(y.get("show")&&R!==_){var z=y.get("distance");z=z?z+f:f;for(var G=0;G<=S;G++){P=Math.cos(A),O=Math.sin(A);var ne=new ct({shape:{x1:P*(h-z)+c,y1:O*(h-z)+v,x2:P*(h-w-z)+c,y2:O*(h-w-z)+v},silent:!0,style:L});L.stroke==="auto"&&ne.setStyle({stroke:n((R+G/S)/_)}),p.add(ne),A+=E}A-=E}else A+=C}},e.prototype._renderPointer=function(t,i,a,n,o,s,l,u,f){var p=this.group,c=this._data,v=this._progressEls,h=[],d=t.get(["pointer","show"]),m=t.getModel("progress"),g=m.get("show"),y=t.getData(),x=y.mapDimension("value"),_=+t.get("min"),S=+t.get("max"),b=[_,S],w=[s,l];function A(E,D){var L=y.getItemModel(E),M=L.getModel("pointer"),P=$(M.get("width"),o.r),O=$(M.get("length"),o.r),R=t.get(["pointer","icon"]),z=M.get("offsetCenter"),B=$(z[0],o.r),F=$(z[1],o.r),H=M.get("keepAspect"),Y;return R?Y=tt(R,B-P/2,F-O,P,O,null,H):Y=new hB({shape:{angle:-Math.PI/2,width:P,r:O,x:B,y:F}}),Y.rotation=-(D+Math.PI/2),Y.x=o.cx,Y.y=o.cy,Y}function C(E,D){var L=m.get("roundCap"),M=L?Ep:Dt,P=m.get("overlap"),O=P?m.get("width"):f/y.count(),R=P?o.r-O:o.r-(E+1)*O,z=P?o.r:o.r-E*O,B=new M({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:z}});return P&&(B.z2=Ge(y.get(x,E),[_,S],[100,0],!0)),B}(g||d)&&(y.diff(c).add(function(E){var D=y.get(x,E);if(d){var L=A(E,s);Xe(L,{rotation:-((isNaN(+D)?w[0]:Ge(D,b,w,!0))+Math.PI/2)},t),p.add(L),y.setItemGraphicEl(E,L)}if(g){var M=C(E,s),P=m.get("clip");Xe(M,{shape:{endAngle:Ge(D,b,w,P)}},t),p.add(M),ev(t.seriesIndex,y.dataType,E,M),h[E]=M}}).update(function(E,D){var L=y.get(x,E);if(d){var M=c.getItemGraphicEl(D),P=M?M.rotation:s,O=A(E,P);O.rotation=P,Pe(O,{rotation:-((isNaN(+L)?w[0]:Ge(L,b,w,!0))+Math.PI/2)},t),p.add(O),y.setItemGraphicEl(E,O)}if(g){var R=v[D],z=R?R.shape.endAngle:s,B=C(E,z),F=m.get("clip");Pe(B,{shape:{endAngle:Ge(L,b,w,F)}},t),p.add(B),ev(t.seriesIndex,y.dataType,E,B),h[E]=B}}).execute(),y.each(function(E){var D=y.getItemModel(E),L=D.getModel("emphasis"),M=L.get("focus"),P=L.get("blurScope"),O=L.get("disabled"),R=n(Ge(y.get(x,E),b,[0,1],!0));if(d){var z=y.getItemGraphicEl(E),B=y.getItemVisual(E,"style"),F=B.fill;if(z instanceof pt){var H=z.style;z.useStyle(k({image:H.image,x:H.x,y:H.y,width:H.width,height:H.height},B))}else z.useStyle(B),z.type!=="pointer"&&z.setColor(F);z.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",R),z.z2EmphasisLift=0,ut(z,D),He(z,M,P,O)}if(g){var Y=h[E];Y.useStyle(y.getItemVisual(E,"style")),Y.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),Y.style.fill==="auto"&&Y.setStyle("fill",R),Y.z2EmphasisLift=0,ut(Y,D),He(Y,M,P,O)}}),this._progressEls=h)},e.prototype._renderAnchor=function(t,i){var a=t.getModel("anchor"),n=a.get("show");if(n){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=tt(s,i.cx-o/2+$(l[0],i.r),i.cy-o/2+$(l[1],i.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,i,a,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),p=+t.get("max"),c=new te,v=[],h=[],d=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){v[g]=new Ee({silent:!0}),h[g]=new Ee({silent:!0})}).update(function(g,y){v[g]=s._titleEls[y],h[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),x=l.get(u,g),_=new te,S=n(Ge(x,[f,p],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),A=o.cx+$(w[0],o.r),C=o.cy+$(w[1],o.r),E=v[g];E.attr({z2:m?0:2,style:je(b,{x:A,y:C,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:S})}),_.add(E)}var D=y.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),M=o.cx+$(L[0],o.r),P=o.cy+$(L[1],o.r),O=$(D.get("width"),o.r),R=$(D.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(g,"style").fill:S,E=h[g],B=D.get("formatter");E.attr({z2:m?0:2,style:je(D,{x:M,y:P,text:J0(x,B),width:isNaN(O)?null:O,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Bm(E,{normal:D},x,function(H){return J0(H,B)}),d&&Fm(E,g,l,t,{getFormattedLabel:function(H,Y,q,oe,X,G){return J0(G?G.interpolatedValue:x,B)}}),_.add(E)}c.add(_)}),this.group.add(c),this._titleEls=v,this._detailEls=h},e.type="gauge",e})(Ve),dB=oQ;var sQ=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return ji(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,N.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:N.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:N.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:N.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:N.color.neutral00,borderWidth:0,borderColor:N.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:N.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:N.color.transparent,borderWidth:0,borderColor:N.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:N.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(Fe),mB=sQ;function IC(r){r.registerChartView(dB),r.registerSeriesModel(mB)}var Yo="funnel",lQ=(function(r){I(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 Ma(K(this.getData,this),K(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return ji(this,{coordDimensions:["value"],encodeDefaulter:be(qf,this)})},e.prototype._defaultLabelLine=function(t){Gi(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),a=r.prototype.getDataParams.call(this,t),n=i.mapDimension("value"),o=i.getSum(n);return a.percent=o?+(i.get(n,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series."+Yo,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:N.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},e})(Fe),gB=lQ;var uQ=["itemStyle","opacity"],fQ=(function(r){I(e,r);function e(t,i){var a=r.call(this)||this,n=a,o=new mt,s=new Ee;return n.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,i,!0),a}return e.prototype.updateData=function(t,i,a){var n=this,o=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),f=s.get(uQ);f=f??1,a||Ht(n),n.useStyle(t.getItemVisual(i,"style")),n.style.lineJoin="round",a?(n.setShape({points:l.points}),n.style.opacity=0,Xe(n,{style:{opacity:f}},o,i)):Pe(n,{style:{opacity:f},shape:{points:l.points}},o,i),ut(n,s),this._updateLabel(t,i),He(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var a=this,n=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),f=u.label,p=t.getItemVisual(i,"style"),c=p.fill;ot(o,at(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:p.opacity,defaultText:t.getName(i)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var v=l.getModel("label"),h=v.get("color"),d=h==="inherit"?c:null;a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:d,outsideFill:d});var m=f.linePoints;n.setShape({points:m}),a.textGuideLineConfig={anchor:m?new ye(m[0][0],m[0][1]):null},Pe(o,{style:{x:f.x,y:f.y}},s,i),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),xp(a,_p(l),{stroke:c})},e})(_t),pQ=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Yo,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new fQ(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,l),s.add(f),n.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Di(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Yo,e})(Ve),yB=pQ;function cQ(r,e){for(var t=r.mapDimension("value"),i=r.mapArray(t,function(l){return l}),a=[],n=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return ee(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return n?i[l]-i[u]:i[u]-i[l]}),a}function vQ(r){var e=r.hostModel,t=_B(e);r.each(function(i){var a=r.getItemModel(i),n=a.getModel("label"),o=n.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(i),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",p,c,v,h;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,p="left"):o==="insideRight"?(c=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,p="right"):(c=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,p="center"),h=[[c,v],[c,v]];else{var d=void 0,m=void 0,g=void 0,y=void 0,x=s.get("length");W(o)&&(!t&&de(["top","bottom"],o)>-1&&(o="left"),t&&de(["left","right"],o)>-1&&(o="bottom")),o==="left"?(d=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,g=d-x,c=g-5,p="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,g=d+x,c=g+5,p="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=m-x,v=y-5,p="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=m+x,v=y+5,p="center"):o==="rightTop"?(d=t?u[3][0]:u[1][0],m=t?u[3][1]:u[1][1],t?(y=m-x,v=y-5,p="center"):(g=d+x,c=g+5,p="top")):o==="rightBottom"?(d=u[2][0],m=u[2][1],t?(y=m+x,v=y+5,p="center"):(g=d+x,c=g+5,p="bottom")):o==="leftTop"?(d=u[0][0],m=t?u[0][1]:u[1][1],t?(y=m-x,v=y-5,p="center"):(g=d-x,c=g-5,p="right")):o==="leftBottom"?(d=t?u[1][0]:u[3][0],m=t?u[1][1]:u[2][1],t?(y=m+x,v=y+5,p="center"):(g=d-x,c=g-5,p="right")):(d=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,t?(y=m+x,v=y+5,p="center"):(g=d+x,c=g+5,p="left")),t?(g=d,c=g):(y=m,v=y),h=[[d,m],[g,y]]}l.label={linePoints:h,x:c,y:v,verticalAlign:"middle",textAlign:p,inside:f}})}var xB=et(Yo,hQ);function hQ(r,e){r.eachSeriesByType(Yo,function(t){var i=t.getData(),a=i.mapDimension("value"),n=t.get("sort"),o=rt(t,e),s=Ze(t.getBoxLayoutParams(),o.refContainer),l=_B(t),u=s.width,f=s.height,p=cQ(i,n),c=s.x,v=s.y,h=l?[$(t.get("minSize"),f),$(t.get("maxSize"),f)]:[$(t.get("minSize"),u),$(t.get("maxSize"),u)],d=i.getDataExtent(a),m=t.get("min"),g=t.get("max");m==null&&(m=Math.min(d[0],0)),g==null&&(g=d[1]);var y=t.get("funnelAlign"),x=t.get("gap"),_=l?u:f,S=(_-x*(i.count()-1))/i.count(),b=function(O,R){if(l){var z=i.get(a,O)||0,B=Ge(z,[m,g],h,!0),F=void 0;switch(y){case"top":F=v;break;case"center":F=v+(f-B)/2;break;case"bottom":F=v+(f-B);break}return[[R,F],[R,F+B]]}var H=i.get(a,O)||0,Y=Ge(H,[m,g],h,!0),q;switch(y){case"left":q=c;break;case"center":q=c+(u-Y)/2;break;case"right":q=c+u-Y;break}return[[q,R],[q+Y,R]]};n==="ascending"&&(S=-S,x=-x,l?c+=u:v+=f,p=p.reverse());for(var w=0;w<p.length;w++){var A=p[w],C=p[w+1],E=i.getItemModel(A);if(l){var D=E.get(["itemStyle","width"]);D==null?D=S:(D=$(D,u),n==="ascending"&&(D=-D));var L=b(A,c),M=b(C,c+D);c+=D+x,i.setItemLayout(A,{points:L.concat(M.slice().reverse())})}else{var P=E.get(["itemStyle","height"]);P==null?P=S:(P=$(P,f),n==="ascending"&&(P=-P));var L=b(A,v),M=b(C,v+P);v+=P+x,i.setItemLayout(A,{points:L.concat(M.slice().reverse())})}}vQ(i)})}function _B(r){return r.get("orient")==="horizontal"}function LC(r){r.registerChartView(yB),r.registerSeriesModel(gB),r.registerLayout(xB),r.registerProcessor(dn(Yo))}var dQ=.3,mQ=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new te,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,i,a,n){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,p=bB(t);s.diff(l).add(c).update(v).remove(h).execute();function c(m){var g=SB(s,o,m,f,u);PC(g,s,m,p)}function v(m,g){var y=l.getItemGraphicEl(g);o.add(y);var x=wB(s,m,f,u);s.setItemGraphicEl(m,y),Pe(y,{shape:{points:x}},t,m),Ht(y),PC(y,s,m,p)}function h(m){var g=l.getItemGraphicEl(m);o.remove(g)}if(!this._initialized){this._initialized=!0;var d=gQ(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,i,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,i,a){for(var n=i.getData(),o=i.coordinateSystem,s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=SB(n,this._dataGroup,l,o.dimensions,o);u.incremental=Sr(i),PC(u,n,l,bB(i)),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(Ve);function gQ(r,e,t){var i=r.model,a=r.getRect(),n=new xe({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=i.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),Xe(n,{shape:{width:a.width,height:a.height}},e,t),n}function wB(r,e,t,i){for(var a=[],n=0;n<t.length;n++){var o=t[n],s=r.get(r.mapDimension(o),e);yQ(s,i.getAxis(o).type)||a.push(i.dataToPoint(s,o))}return a}function SB(r,e,t,i,a){var n=wB(r,t,i,a),o=new mt({shape:{points:n},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function bB(r){var e=r.get("smooth",!0);return e===!0&&(e=dQ),e=xi(e),zt(e)&&(e=0),{smooth:e}}function PC(r,e,t,i){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",i.smooth);var a=e.getItemModel(t),n=a.getModel("emphasis");ut(r,a,"lineStyle"),He(r,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function yQ(r,e){return e==="category"?r==null:r==null||isNaN(r)}var TB=mQ;var xQ=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,i){return ur(null,this,{useEncodeDefaulter:K(_Q,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var i=this.coordinateSystem,a=this.getData(),n=[];return i.eachActiveState(a,function(o,s){t===o&&n.push(a.getRawIndex(s))}),n},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},e})(Fe);function _Q(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return T(e.dimensions,function(i){var a=SQ(i);t[i]=a}),t}}function SQ(r){return+r.replace("dim","")}var CB=xQ;var bQ=["lineStyle","opacity"],wQ={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,i={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,n){t.eachActiveState(n,function(o,s){var l=i[o];if(o==="normal"&&n.hasItemOption){var u=n.getItemModel(s).get(bQ,!0);u!=null&&(l=u)}var f=n.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}},AB=wQ;function RC(r){TQ(r),CQ(r)}function TQ(r){if(!r.parallel){var e=!1;T(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function CQ(r){var e=qe(r.parallelAxis);T(e,function(t){if(se(t)){var i=t.parallelIndex||0,a=qe(r.parallel)[i];a&&a.parallelAxisDefault&&_e(t,a.parallelAxisDefault,!1)}})}var AQ=5,EQ=(function(r){I(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,a){this._model=t,this._api=a,this._handlers||(this._handlers={},T(DQ,function(n,o){a.getZr().on(o,this._handlers[o]=K(n,this))},this)),Sa(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){Oo(this,"_throttledDispatchExpand"),T(this._handlers,function(a,n){i.getZr().off(n,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(k({type:"parallelAxisExpand"},t))},e.type="parallel",e})(We),DQ={mousedown:function(r){OC(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(OC(this,"click")&&e){var t=[r.offsetX,r.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>AQ)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!OC(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function OC(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var EB=EQ;var Xp="parallel",Q0=Xp,MQ=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&_e(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var a=t.get("parallelIndex");return a!=null&&i.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],a=Ne(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);T(a,function(n){t.push("dim"+n.get("dim")),i.push(n.componentIndex)})},e.type=Q0,e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(Le),DB=MQ;var IQ=(function(r){I(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(yr),MB=IQ;function ui(r,e,t,i,a,n){r=r||0;var o=go(t[1],-t[0]);if(a!=null&&(a=Zp(a,[0,o])),n!=null&&(n=Math.max(n,a??0)),i==="all"){var s=Math.abs(go(e[1],-e[0]));s=Zp(s,[0,o]),a=n=Zp(s,[a,n]),i=0}e[0]=Zp(e[0],t),e[1]=Zp(e[1],t);var l=NC(e,i);e[i]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]=go(f[0],u):f[1]=go(f[1],-u),e[i]=Zp(e[i],f);var p;return p=NC(e,i),a!=null&&(p.sign!==l.sign||p.span<a)&&(e[1-i]=go(e[i],l.sign*a)),p=NC(e,i),n!=null&&p.span>n&&(e[1-i]=go(e[i],p.sign*n)),e}function NC(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 Zp(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var LQ=(function(){function r(e,t,i){this.type=Xp,this._axesMap=Z(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=e.dimensions,n=e.parallelAxisIndex;T(a,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=Kn(u),p=this._axesMap.set(o,new MB(o,Ca(u,f,!1),[0,0],f,l));p.onBand=qn(p.scale,u),p.inverse=u.get("inverse"),u.axis=p,p.model=u,p.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){T(this.dimensions,function(i){var a=this._axesMap.get(i);Ki(a,ln),Jn(a)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,a=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=i&&o<=i+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var i=rt(e,t).refContainer;this._rect=Ze(e.getBoxLayoutParams(),i),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],a=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=$0(e.get("axisExpandWidth"),l),p=$0(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>p&&p>1&&f>0&&s>0,v=e.get("axisExpandWindow"),h;if(v)h=$0(v[1]-v[0],l),v[1]=v[0]+h;else{h=$0(f*(p-1),l);var d=e.get("axisExpandCenter")||_r(u/2);v=[f*d-h/2],v[1]=v[0]+h}var m=(s-h)/(u-p);m<3&&(m=0);var g=[_r(Be(v[0]/f,1))+1,ua(Be(v[1]/f,1))-1],y=m/f*v[0];return{layout:n,pixelDimIndex:o,layoutBase:t[i[o]],layoutLength:s,axisBase:t[i[1-o]],axisLength:t[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:m,axisExpandWindow:v,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,a=this._makeLayoutInfo(),n=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),T(i,function(o,s){var l=(a.axisExpandable?RQ:PQ)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:yf/2,vertical:0},p=[u[n].x+e.x,u[n].y+e.y],c=f[n],v=it();Pr(v,v,c),xr(v,v,p),this._axesLayout[o]={position:p,rotation:c,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,i,a){i==null&&(i=0),a==null&&(a=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];T(o,function(m){s.push(e.mapDimension(m)),l.push(n.get(m).model)});for(var u=this.hasAxisBrushed(),f=i;f<a;f++){var p=void 0;if(!u)p="normal";else{p="active";for(var c=e.getValues(s,f),v=0,h=o.length;v<h;v++){var d=l[v].getActiveState(c[v]);if(d==="inactive"){p="inactive";break}}}t(p,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,i=!1,a=0,n=e.length;a<n;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(i=!0);return i},r.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return Cr([e,0],i.transform)},r.prototype.getAxisLayout=function(e){return ae(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,a=t.axisExpandWindow.slice(),n=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,p=this._model.get("axisExpandSlideTriggerArea"),c=p[0]!=null;if(f)c&&f&&s<n*p[0]?(u="jump",l=s-n*p[2]):c&&f&&s>n*(1-p[0])?(u="jump",l=s-n*(1-p[2])):(l=s-n*p[1])>=0&&(l=s-n*(1-p[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?ui(l,a,o,"all"):u="none";else{var v=a[1]-a[0],h=o[1]*s/v;a=[Ae(0,h-v/2)],a[1]=Ye(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r})();function $0(r,e){return Ye(Ae(r,e[0]),e[1])}function PQ(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function RQ(r,e){var t=e.layoutLength,i=e.axisExpandWidth,a=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r<o[0]?(s=r*n,f=n):r<=o[1]?(s=e.axisExpandWindow0Pos+r*i-e.axisExpandWindow[0],l=i,u=!0):(s=t-(a-1-r)*n,f=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}var IB=LQ;function OQ(r,e){var t=[];return r.eachComponent(Q0,function(i,a){var n=new IB(i,r,e);n.name="parallel_"+a,n.resize(i,e),i.coordinateSystem=n,n.model=i,t.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")===Xp){var a=i.getReferringComponents(Q0,$e).models[0],n=i.coordinateSystem=a.coordinateSystem;n&&T(n.dimensions,function(o){Ea(n.getAxis(o),i,Xp)})}}),t}var NQ={create:OQ},LB=NQ;var PB=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return bi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=ae(t);if(i)for(var a=i.length-1;a>=0;a--)gt(i[a])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var n=0,o=i.length;n<o;n++)if(i[n][0]<=t&&t<=i[n][1])return"active";return"inactive"},e})(Le);st(PB,Aa);var kC=PB;var Yu=!0,Oh=Math.min,Kp=Math.max,kQ=Math.pow,zQ=1e4,VQ=6,UQ=6,RB="globalPan",BQ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},FQ={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},OB={brushStyle:{lineWidth:2,stroke:N.color.backgroundTint,fill:N.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},GQ=0,HQ=(function(r){I(e,r);function e(t){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new te,i._uid="brushController_"+GQ++,T(jQ,function(a,n){this._handlers[n]=K(a,this)},i),i}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;this._enableGlobalPan||nV(i,RB,this._uid),T(this._handlers,function(a,n){i.on(n,a)}),this._brushType=t.brushType,this._brushOption=_e(ae(OB),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;oV(t,RB,this._uid),T(this._handlers,function(i,a){t.off(a,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};T(t,function(a){i[a.panelId]=ae(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=U(t,function(c){return _e(ae(OB),c,!0)});var i="\0-brush-index-",a=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new Er(a,t,u,l).add(f).update(f).remove(p).execute(),this;function l(c,v){return(c.id!=null?c.id:i+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var h=t[c];if(v!=null&&a[v]===s)n[c]=a[v];else{var d=n[c]=v!=null?(a[v].__brushOption=h,a[v]):BB(o,UB(o,h));GC(o,d)}}function p(c){a[c]!==s&&o.group.remove(a[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),zC(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Qt);function UB(r,e){var t=ex[e.brushType].createCover(r,e);return t.__brushOption=e,GB(t,e),r.group.add(t),t}function BB(r,e){var t=HC(e);return t.endCreating&&(t.endCreating(r,e),GB(e,e.__brushOption)),e}function FB(r,e){var t=e.__brushOption;HC(e).updateCoverShape(r,e,t.range,t)}function GB(r,e){var t=e.z;t==null&&(t=zQ),r.traverse(function(i){i.z=t,i.z2=t})}function GC(r,e){HC(e).updateCommon(r,e),FB(r,e)}function HC(r){return ex[r.__brushOption.brushType]}function WC(r,e,t){var i=r._panels;if(!i)return Yu;var a,n=r._transform;return T(i,function(o){o.isTargetByCursor(e,t,n)&&(a=o)}),a}function HB(r,e){var t=r._panels;if(!t)return Yu;var i=e.__brushOption.panelId;return i!=null?t[i]:Yu}function zC(r){var e=r._covers,t=e.length;return T(e,function(i){r.group.remove(i)},r),e.length=0,!!t}function Xu(r,e){var t=U(r._covers,function(i){var a=i.__brushOption,n=ae(a.range);return{brushType:a.brushType,panelId:a.panelId,range:n}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function WQ(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],a=t[0]-i[0],n=t[1]-i[1],o=kQ(a*a+n*n,.5);return o>VQ}function WB(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function YB(r,e,t,i){var a=new te;return a.add(new xe({name:"main",style:YC(t),silent:!0,draggable:!0,cursor:"move",drift:be(NB,r,e,a,["n","s","w","e"]),ondragend:be(Xu,e,{isEnd:!0})})),T(i,function(n){a.add(new xe({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:be(NB,r,e,a,n),ondragend:be(Xu,e,{isEnd:!0})}))}),a}function XB(r,e,t,i){var a=i.brushStyle.lineWidth||0,n=Kp(a,UQ),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],p=t[1][1],c=f-n+a/2,v=p-n+a/2,h=f-o,d=p-s,m=h+a,g=d+a;Xo(r,e,"main",o,s,h,d),i.transformable&&(Xo(r,e,"w",l,u,n,g),Xo(r,e,"e",c,u,n,g),Xo(r,e,"n",l,u,m,n),Xo(r,e,"s",l,v,m,n),Xo(r,e,"nw",l,u,n,n),Xo(r,e,"ne",c,u,n,n),Xo(r,e,"sw",l,v,n,n),Xo(r,e,"se",c,v,n,n))}function VC(r,e){var t=e.__brushOption,i=t.transformable,a=e.childAt(0);a.useStyle(YC(t)),a.attr({silent:!i,cursor:i?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?UC(r,n[0]):XQ(r,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?FQ[s]+"-resize":null})})}function Xo(r,e,t,i,a,n,o){var s=e.childOfName(t);s&&s.setShape(KQ(XC(r,e,[[i,a],[i+n,a+o]])))}function YC(r){return re({strokeNoScale:!0},r.brushStyle)}function ZB(r,e,t,i){var a=[Oh(r,t),Oh(e,i)],n=[Kp(r,t),Kp(e,i)];return[[a[0],n[0]],[a[1],n[1]]]}function YQ(r){return Ja(r.group)}function UC(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=$l(t[e],YQ(r));return i[a]}function XQ(r,e){var t=[UC(r,e[0]),UC(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function NB(r,e,t,i,a,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=KB(e,a,n);T(i,function(u){var f=BQ[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(ZB(s[0][0],s[1][0],s[0][1],s[1][1])),GC(e,t),Xu(e,{isEnd:!1})}function ZQ(r,e,t,i){var a=e.__brushOption.range,n=KB(r,t,i);T(a,function(o){o[0]+=n[0],o[1]+=n[1]}),GC(r,e),Xu(r,{isEnd:!1})}function KB(r,e,t){var i=r.group,a=i.transformCoordToLocal(e,t),n=i.transformCoordToLocal(0,0);return[a[0]-n[0],a[1]-n[1]]}function XC(r,e,t){var i=HB(r,e);return i&&i!==Yu?i.clipPath(t,r._transform):ae(t)}function KQ(r){var e=Oh(r[0][0],r[1][0]),t=Oh(r[0][1],r[1][1]),i=Kp(r[0][0],r[1][0]),a=Kp(r[0][1],r[1][1]);return{x:e,y:t,width:i-e,height:a-t}}function qQ(r,e,t){if(!(!r._brushType||JQ(r,e.offsetX,e.offsetY))){var i=r._zr,a=r._covers,n=WC(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(n&&(n===Yu||s.panelId===n.panelId)&&ex[s.brushType].contain(a[o],t[0],t[1]))return}n&&i.setCursorStyle("crosshair")}}function BC(r){var e=r.event;e.preventDefault&&e.preventDefault()}function FC(r,e,t){return r.childOfName("main").contain(e,t)}function qB(r,e,t,i){var a=r._creatingCover,n=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),WQ(r)||a){if(n&&!a){o.brushMode==="single"&&zC(r);var l=ae(o);l.brushType=kB(l.brushType,n),l.panelId=n===Yu?null:n.panelId,a=r._creatingCover=UB(r,l),r._covers.push(a)}if(a){var u=ex[kB(r._brushType,n)],f=a.__brushOption;f.range=u.getCreatingRange(XC(r,a,r._track)),i&&(BB(r,a),u.updateCommon(r,a)),FB(r,a),s={isEnd:i}}}else i&&o.brushMode==="single"&&o.removeOnClick&&WC(r,e,t)&&zC(r)&&(s={isEnd:i,removeOnClick:!0});return s}function kB(r,e){return r==="auto"?e.defaultBrushType:r}var jQ={mousedown:function(r){if(this._dragging)zB(this,r);else if(!r.target||!r.target.draggable){BC(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=WC(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,i=this.group.transformCoordToLocal(e,t);if(qQ(this,r,i),this._dragging){BC(r);var a=qB(this,r,i,!1);a&&Xu(this,a)}},mouseup:function(r){zB(this,r)}};function zB(r,e){if(r._dragging){BC(e);var t=e.offsetX,i=e.offsetY,a=r.group.transformCoordToLocal(t,i),n=qB(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,n&&Xu(r,n)}}function JQ(r,e,t){var i=r._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var ex={lineX:VB(0),lineY:VB(1),rect:{createCover:function(r,e){function t(i){return i}return YB({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=WB(r);return ZB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,i){XB(r,e,t,i)},updateCommon:VC,contain:FC},polygon:{createCover:function(r,e){var t=new te;return t.add(new mt({name:"main",style:YC(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new _t({name:"main",draggable:!0,drift:be(ZQ,r,e),ondragend:be(Xu,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,i){e.childAt(0).setShape({points:XC(r,e,t)})},updateCommon:VC,contain:FC}};function VB(r){return{createCover:function(e,t){return YB({toRectRange:function(i){var a=[i,[0,100]];return r&&a.reverse(),a},fromRectRange:function(i){return i[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=WB(e),i=Oh(t[0][r],t[1][r]),a=Kp(t[0][r],t[1][r]);return[i,a]},updateCoverShape:function(e,t,i,a){var n,o=HB(e,t);if(o!==Yu&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,n];r&&l.reverse(),XB(e,t,l,a)},updateCommon:VC,contain:FC}}var qp=HQ;function tx(r){return r=ZC(r),function(e){return cv(e,r)}}function rx(r,e){return r=ZC(r),function(t){var i=e??t,a=i?r.width:r.height,n=i?r.x:r.y;return[n,n+(a||0)]}}function ix(r,e,t){var i=ZC(r);return function(a,n){return i.contain(n[0],n[1])&&!x0(a,e,t)}}function ZC(r){return fe.create(r)}var QQ=(function(r){I(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){r.prototype.init.apply(this,arguments),(this._brushController=new qp(i.getZr())).on("brush",K(this._onBrush,this))},e.prototype.render=function(t,i,a,n){if(!$Q(t,i,n)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new te,this.group.add(this._axisGroup),!!t.get("show")){var s=t$(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,p=t.axis.dim,c=l.getAxisLayout(p),v=k({strokeContainThreshold:f},c),h=new Mr(t,a,v);h.build(),this._axisGroup.add(h.group),this._refreshBrushController(v,u,t,s,f,a),Mo(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,a,n,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),p=fe.create({x:l[0],y:-o/2,width:u,height:o});p.x-=f,p.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:tx(p),isTargetByCursor:ix(p,s,n),getLinearBrushOtherExtent:rx(p,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(e$(a))},e.prototype._onBrush=function(t){var i=t.areas,a=this.axisModel,n=a.axis,o=U(i,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(We);function $Q(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function e$(r){var e=r.axis;return U(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function t$(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var JB=QQ;var r$={type:"axisAreaSelect",event:"axisAreaSelected"};function QB(r){r.registerAction(r$,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var i$={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Nh(r){r.registerComponentView(EB),r.registerComponentModel(DB),r.registerCoordinateSystem("parallel",LB),r.registerPreprocessor(RC),r.registerComponentModel(kC),r.registerComponentView(JB),gn(r,"parallel",kC,i$),QB(r)}function KC(r){Me(Nh),r.registerChartView(TB),r.registerSeriesModel(CB),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,AB)}var $i="sankey",a$=(function(r){I(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){var a=t.edges||t.links||[],n=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Re(o[l],this,i));var u=Fu(n,a,this,!0,f);return u.data;function f(p,c){p.wrapMethod("getItemModel",function(v,h){var d=v.parentModel,m=d.getData().getItemLayout(h);if(m){var g=m.depth,y=d.levelModels[g];y&&(v.parentModel=y)}return v}),c.wrapMethod("getItemModel",function(v,h){var d=v.parentModel,m=d.getGraph().getEdgeByIndex(h),g=m.node1.getLayout();if(g){var y=g.depth,x=d.levelModels[y];x&&(v.parentModel=x)}return v})}},e.prototype.setNodePosition=function(t,i){var a=this.option.data||this.option.nodes,n=a[t];n.localX=i[0],n.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,a){function n(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return vt("nameValue",{name:u,value:l,noValue:n(l)})}else{var f=this.getGraph().getNodeByIndex(t),p=f.getLayout().value,c=this.getDataParams(t,a).data.name;return vt("nameValue",{name:c!=null?c+"":null,value:p,noValue:n(p)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var a=r.prototype.getDataParams.call(this,t,i);if(a.value==null&&i==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;a.value=o}return a},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+$i,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:N.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:N.color.primary}},animationEasing:"linear",animationDuration:1e3},e})(Fe),$B=a$;var n$=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),o$=(function(r){I(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new n$},e.prototype.buildPath=function(t,i){var a=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+a,i.y2),t.bezierCurveTo(i.cpx2+a,i.cpy2,i.cpx1+a,i.cpy1,i.x1+a,i.y1)):(t.lineTo(i.x2,i.y2+a),t.bezierCurveTo(i.cpx2,i.cpy2+a,i.cpx1,i.cpy1+a,i.x1,i.y1+a)),t.closePath()},e.prototype.highlight=function(){Or(this)},e.prototype.downplay=function(){Nr(this)},e})(ge),s$=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=$i,t._mainGroup=new te,t}return e.prototype.init=function(t,i){this._controller=new ki(i.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,i,a){var n=t.getGraph(),o=this._mainGroup,s=t.layoutInfo,l=s.width,u=s.height,f=t.getData(),p=t.getData("edge"),c=t.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(t,a),Qs(t,a,this._controller,N0(o),null),n.eachEdge(function(v){var h=new o$,d=ce(h);d.dataIndex=v.dataIndex,d.seriesIndex=t.seriesIndex,d.dataType="edge";var m=v.getModel(),g=m.getModel("lineStyle"),y=g.get("curveness"),x=v.node1.getLayout(),_=v.node1.getModel(),S=_.get("localX"),b=_.get("localY"),w=v.node2.getLayout(),A=v.node2.getModel(),C=A.get("localX"),E=A.get("localY"),D=v.getLayout(),L,M,P,O,R,z,B,F;h.shape.extent=Math.max(1,D.dy),h.shape.orient=c,c==="vertical"?(L=(S!=null?S*l:x.x)+D.sy,M=(b!=null?b*u:x.y)+x.dy,P=(C!=null?C*l:w.x)+D.ty,O=E!=null?E*u:w.y,R=L,z=M*(1-y)+O*y,B=P,F=M*y+O*(1-y)):(L=(S!=null?S*l:x.x)+x.dx,M=(b!=null?b*u:x.y)+D.sy,P=C!=null?C*l:w.x,O=(E!=null?E*u:w.y)+D.ty,R=L*(1-y)+P*y,z=M,B=L*y+P*(1-y),F=O),h.setShape({x1:L,y1:M,x2:P,y2:O,cpx1:R,cpy1:z,cpx2:B,cpy2:F}),h.useStyle(g.getItemStyle()),eF(h.style,c,v);var H=""+m.get("value"),Y=at(m,"edgeLabel");ot(h,Y,{labelFetcher:{getFormattedLabel:function(X,G,ne,ve,pe,j){return t.getFormattedLabel(X,G,"edge",ve,Rt(pe,Y.normal&&Y.normal.get("formatter"),H),j)}},labelDataIndex:v.dataIndex,defaultText:H}),h.setTextConfig({position:"inside"});var q=m.getModel("emphasis");ut(h,m,"lineStyle",function(X){var G=X.getItemStyle();return eF(G,c,v),G}),o.add(h),p.setItemGraphicEl(v.dataIndex,h);var oe=q.get("focus");He(h,oe==="adjacency"?v.getAdjacentDataIndices():oe==="trajectory"?v.getTrajectoryDataIndices():oe,q.get("blurScope"),q.get("disabled"))}),n.eachNode(function(v){var h=v.getLayout(),d=v.getModel(),m=d.get("localX"),g=d.get("localY"),y=d.getModel("emphasis"),x=d.get(["itemStyle","borderRadius"])||0,_=new xe({shape:{x:m!=null?m*l:h.x,y:g!=null?g*u:h.y,width:h.dx,height:h.dy,r:x},style:d.getModel("itemStyle").getItemStyle(),z2:10});ot(_,at(d),{labelFetcher:{getFormattedLabel:function(b,w){return t.getFormattedLabel(b,w,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),ut(_,d),o.add(_),f.setItemGraphicEl(v.dataIndex,_),ce(_).dataType="node";var S=y.get("focus");He(_,S==="adjacency"?v.getAdjacentDataIndices():S==="trajectory"?v.getTrajectoryDataIndices():S,y.get("blurScope"),y.get("disabled"))}),f.eachItemGraphicEl(function(v,h){var d=f.getItemModel(h);d.get("draggable")&&(v.drift=function(m,g){this.shape.x+=m,this.shape.y+=g,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(h),localX:this.shape.x/l,localY:this.shape.y/u})},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(l$(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,i,a){La(this.group,Qi,i.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,i){var a=t.layoutInfo,n=t.coordinateSystem=Pp(t,i,a.x,a.y,a.width,a.height);La(this.group,Qi,n,this._firstRender?null:t)},e.type=$i,e})(Ve);function eF(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),a=t.node2.getVisual("color");W(i)&&W(a)&&(r.fill=new Ei(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:a,offset:1}]))}}function l$(r,e,t){var i=new xe({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Xe(i,{shape:{width:r.width+20}},e,t),i}var tF=s$;var rF=et($i,u$);function u$(r,e){r.eachSeriesByType($i,function(t){var i=t.get("nodeWidth"),a=t.get("nodeGap"),n=rt(t,e).refContainer,o=Ze(t.getBoxLayoutParams(),n);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),f=u.nodes,p=u.edges;p$(f);var c=Ne(f,function(m){return m.getLayout().value===0}),v=c.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),d=t.get("nodeAlign");f$(f,p,i,a,s,l,v,h,d)})}function f$(r,e,t,i,a,n,o,s,l){c$(r,e,t,a,n,s,l),m$(r,e,n,a,i,o,s),C$(r,s)}function p$(r){T(r,function(e){var t=tl(e.outEdges,ax),i=tl(e.inEdges,ax),a=e.getValue()||0,n=Math.max(t,i,a);e.setLayout({value:n},!0)})}function c$(r,e,t,i,a,n,o){for(var s=[],l=[],u=[],f=[],p=0,c=0;c<e.length;c++)s[c]=1;for(var c=0;c<r.length;c++)l[c]=r[c].inEdges.length,l[c]===0&&u.push(r[c]);for(var v=-1;u.length;){for(var h=0;h<u.length;h++){var d=u[h],m=d.hostGraph.data.getRawDataItem(d.dataIndex),g=m.depth!=null&&m.depth>=0;g&&m.depth>v&&(v=m.depth),d.setLayout({depth:g?m.depth:p},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var y=0;y<d.outEdges.length;y++){var x=d.outEdges[y],_=de(e,x);s[_]=0;var S=x.node2,b=de(r,S);--l[b]===0&&de(f,S)<0&&f.push(S)}}++p,u=f,f=[]}for(var c=0;c<s.length;c++)if(s[c]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>p-1?v:p-1;o&&o!=="left"&&v$(r,o,n,w);var A=n==="vertical"?(a-t)/w:(i-t)/w;d$(r,A,n)}function iF(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function v$(r,e,t,i){if(e==="right"){for(var a=[],n=r,o=0;n.length;){for(var s=0;s<n.length;s++){var l=n[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];de(a,f.node1)<0&&a.push(f.node1)}}n=a,a=[],++o}T(r,function(p){iF(p)||p.setLayout({depth:Math.max(0,i-p.getLayout().skNodeHeight)},!0)})}else e==="justify"&&h$(r,i)}function h$(r,e){T(r,function(t){!iF(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function d$(r,e,t){T(r,function(i){var a=i.getLayout().depth*e;t==="vertical"?i.setLayout({y:a},!0):i.setLayout({x:a},!0)})}function m$(r,e,t,i,a,n,o){var s=g$(r,o);y$(s,e,t,i,a,o),qC(s,a,t,i,o);for(var l=1;n>0;n--)l*=.99,x$(s,l,o),qC(s,a,t,i,o),T$(s,l,o),qC(s,a,t,i,o)}function g$(r,e){var t=[],i=e==="vertical"?"y":"x",a=qc(r,function(n){return n.getLayout()[i]});return gt(a.keys),T(a.keys,function(n){t.push(a.buckets.get(n))}),t}function y$(r,e,t,i,a,n){var o=1/0;T(r,function(s){var l=s.length,u=0;T(s,function(p){u+=p.getLayout().value});var f=n==="vertical"?(i-(l-1)*a)/u:(t-(l-1)*a)/u;f<o&&(o=f)}),T(r,function(s){T(s,function(l,u){var f=l.getLayout().value*o;n==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),T(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function qC(r,e,t,i,a){var n=a==="vertical"?"x":"y";T(r,function(o){o.sort(function(d,m){return d.getLayout()[n]-m.getLayout()[n]});for(var s,l,u,f=0,p=o.length,c=a==="vertical"?"dx":"dy",v=0;v<p;v++)l=o[v],u=f-l.getLayout()[n],u>0&&(s=l.getLayout()[n]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]+l.getLayout()[c]+e;var h=a==="vertical"?i:t;if(u=f-e-h,u>0){s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=p-2;v>=0;--v)l=o[v],u=l.getLayout()[n]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]}})}function x$(r,e,t){T(r.slice().reverse(),function(i){T(i,function(a){if(a.outEdges.length){var n=tl(a.outEdges,_$,t)/tl(a.outEdges,ax);if(isNaN(n)){var o=a.outEdges.length;n=o?tl(a.outEdges,S$,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(n-rl(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(n-rl(a,t))*e;a.setLayout({y:l},!0)}}})})}function _$(r,e){return rl(r.node2,e)*r.getValue()}function S$(r,e){return rl(r.node2,e)}function b$(r,e){return rl(r.node1,e)*r.getValue()}function w$(r,e){return rl(r.node1,e)}function rl(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function ax(r){return r.getValue()}function tl(r,e,t){for(var i=0,a=r.length,n=-1;++n<a;){var o=+e(r[n],t);isNaN(o)||(i+=o)}return i}function T$(r,e,t){T(r,function(i){T(i,function(a){if(a.inEdges.length){var n=tl(a.inEdges,b$,t)/tl(a.inEdges,ax);if(isNaN(n)){var o=a.inEdges.length;n=o?tl(a.inEdges,w$,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(n-rl(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(n-rl(a,t))*e;a.setLayout({y:l},!0)}}})})}function C$(r,e){var t=e==="vertical"?"x":"y";T(r,function(i){i.outEdges.sort(function(a,n){return a.node2.getLayout()[t]-n.node2.getLayout()[t]}),i.inEdges.sort(function(a,n){return a.node1.getLayout()[t]-n.node1.getLayout()[t]})}),T(r,function(i){var a=0,n=0;T(i.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),T(i.inEdges,function(o){o.setLayout({ty:n},!0),n+=o.getLayout().dy})})}var aF=et($i,A$);function A$(r){r.eachSeriesByType($i,function(e){var t=e.getGraph(),i=t.nodes,a=t.edges;if(i.length){var n=1/0,o=-1/0;T(i,function(s){var l=s.getLayout().value;l<n&&(n=l),l>o&&(o=l)}),T(i,function(s){var l=new Bt({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&T(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function jC(r){r.registerChartView(tF),r.registerSeriesModel($B),r.registerLayout(rF),r.registerVisual(aF),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:wr,subType:$i,query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),Lp(r,wr,$i)}var nx=(function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var i,a=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=n.get("type"),l,u=e.layout;o==="category"?(u="horizontal",i=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",i=n.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var f=["x","y"],p=u==="horizontal"?0:1,c=this._baseAxisDim=f[p],v=f[1-p],h=[a,n],d=h[p].get("type"),m=h[1-p].get("type"),g=e.data;if(g&&l){var y=[];T(g,function(S,b){var w;V(S)?(w=S.slice(),S.unshift(b)):V(S.value)?(w=k({},S),w.value=w.value.slice(),S.value.unshift(b)):w=S,y.push(w)}),e.data=y}var x=this.defaultValueDimensions,_=[{name:c,type:xu(d),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:xu(m),dimsDef:x.slice()}];return ji(this,{coordDimensions:_,dimensionsCount:x.length+1,encodeDefaulter:be(mg,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r})();function jp(r,e){for(var t=e.ends.length,i=0,a=0;a<t;a++)r.contain(e.ends[a][0],e.ends[a][1])&&i++;return i?i<t?Vs:zs:Us}var Ra="boxplot",nF=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series."+Ra,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:N.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}},animationDuration:800},e})(Fe);st(nF,nx,!0);var oF=nF;var E$=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ra,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.getWhiskerBoxesLayout()==="horizontal"?1:0,u=t.get("clip",!0),f=t.coordinateSystem,p=f.getArea&&f.getArea(),c=u&&qi(f,!1,t);n.diff(s).add(function(v){if(n.hasValue(v)){var h=n.getItemLayout(v),d=u?jp(p,h):zs;if(d===Us)return;var m=sF(h,n,v,l,!0);Bs(d===Vs,m,c),n.setItemGraphicEl(v,m),o.add(m)}}).update(function(v,h){var d=s.getItemGraphicEl(h);if(!n.hasValue(v)){o.remove(d);return}var m=n.getItemLayout(v),g=u?jp(p,m):zs;if(g===Us){o.remove(d);return}d?(Ht(d),lF(m,d,n,v)):d=sF(m,n,v,l),Bs(g===Vs,d,c),o.add(d),n.setItemGraphicEl(v,d)}).remove(function(v){var h=s.getItemGraphicEl(v);h&&o.remove(h)}).execute(),this._data=n},e.prototype.remove=function(t){var i=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(n){n&&i.remove(n)})},e.type=Ra,e})(Ve),D$=(function(){function r(){}return r})(),M$=(function(r){I(e,r);function e(t){var i=r.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new D$},e.prototype.buildPath=function(t,i){var a=i.points,n=0;for(t.moveTo(a[n][0],a[n][1]),n++;n<4;n++)t.lineTo(a[n][0],a[n][1]);for(t.closePath();n<a.length;n++)t.moveTo(a[n][0],a[n][1]),n++,t.lineTo(a[n][0],a[n][1])},e})(ge);function sF(r,e,t,i,a){var n=r.ends,o=new M$({shape:{points:a?I$(n,i,r):n}});return lF(r,o,e,t,a),o}function lF(r,e,t,i,a){var n=t.hostModel,o=Ie[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},n,i),e.useStyle(t.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(i),l=s.getModel("emphasis");ut(e,s),He(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function I$(r,e,t){return U(r,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}var uF=E$;var L$=pa(),fF=et(Ra,P$);function P$(r){var e=Fo(Ra);dp(r,e,function(t){var i=$N(t,e);if(i){var a=R$(t,i);jn(t,e,function(n){var o=n.seriesIndex;O$(n,a.boxOffsetList[o],a.boxWidthList[o])})}})}function R$(r,e){var t=[],i=[],a=[],n=bt(r,{fromStat:{key:Fo(Ra)},min:1}).w;jn(r,Fo(Ra),function(f){var p=f.get("boxWidth");V(p)||(p=[p,p]),a[f.seriesIndex]=[$(p[0],n)||0,$(p[1],n)||0]});var o=n*.8-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return jn(r,Fo(Ra),function(f){var p=f.seriesIndex;i[p]=u,u+=s+l,t[p]=Ye(Ae(l,a[p][0]),a[p][1])}),{boxOffsetList:i,boxWidthList:t}}function O$(r,e,t){var i=r.coordinateSystem,a=r.getData(),n=t/2,o=r.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var p=0;p<a.count();p++){var c=a.get(u,p),v=x(c,f[2],p),h=x(c,f[0],p),d=x(c,f[1],p),m=x(c,f[3],p),g=x(c,f[4],p),y=[];_(y,d,!1),_(y,m,!0),y.push(h,d,g,m),S(y,h),S(y,g),S(y,v),a.setItemLayout(p,{initBaseline:v[s],ends:y})}function x(b,w,A){var C=a.get(w,A),E=[];E[o]=b,E[s]=C;var D;return isNaN(b)||isNaN(C)?D=[NaN,NaN]:(D=i.dataToPoint(E),D[o]+=e),D}function _(b,w,A){var C=w.slice(),E=w.slice();C[o]+=n,E[o]-=n,A?b.push(C,E):b.push(E,C)}function S(b,w){var A=w.slice(),C=w.slice();A[o]-=n,C[o]+=n,b.push(A,C)}}function pF(r){L$(r,function(){var e=Fo(Ra);mp(r,{key:e,seriesType:Ra,getMetrics:Cp}),Rs(e,Ws(e))})}function JC(r,e){e=e||{};for(var t=[],i=[],a=e.boundIQR,n=a==="none"||a===0,o=0;o<r.length;o++){var s=gt(r[o].slice()),l=wf(s,.25),u=wf(s,.5),f=wf(s,.75),p=s[0],c=s[s.length-1],v=(a??1.5)*(f-l),h=n?p:Math.max(p,l-v),d=n?c:Math.min(c,f+v),m=e.itemNameFormatter,g=ee(m)?m({value:o}):W(m)?m.replace("{value}",o+""):o+"";t.push([g,h,l,u,f,d]);for(var y=0;y<s.length;y++){var x=s[y];if(x<h||x>d){var _=[g,x];i.push(_)}}}return{boxData:t,outliers:i}}var cF={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ut){var i="";Ke(i)}var a=JC(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function QC(r){r.registerSeriesModel(oF),r.registerChartView(uF),r.registerLayout(fF),r.registerTransform(cF),pF(r)}var Oa="candlestick",vF=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,a){var n=i.getItemLayout(t);return n&&a.rect(n.brushRect)},e.type="series."+Oa,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(Fe);st(vF,nx,!0);var hF=vF;var N$=["itemStyle","borderColor"],k$=["itemStyle","borderColor0"],z$=["itemStyle","borderColorDoji"],V$=["itemStyle","color"],U$=["itemStyle","color0"];function ox(r,e){return e.get(r>0?V$:U$)}function sx(r,e){return e.get(r===0?z$:r>0?N$:k$)}var B$={seriesType:Oa,plan:Qr(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(i,a){for(var n;(n=i.next())!=null;){var o=a.getItemModel(n),s=a.getItemLayout(n).sign,l=o.getItemStyle();l.fill=ox(s,o),l.stroke=sx(s,o)||l.fill;var u=a.ensureUniqueItemVisual(n,"style");k(u,l)}}}}}},dF=B$;var F$=["color","borderColor"],G$=(function(r){I(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,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,a,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){Jr(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){var i=t.getData(),a=this._data,n=this.group,o=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&qi(l,!1,t);this._data||n.removeAll();var p=mF(t);i.diff(a).add(function(c){if(i.hasValue(c)){var v=i.getItemLayout(c),h=s?jp(u,v):zs;if(h===Us)return;var d=$C(v,c,p,!0);Xe(d,{shape:{points:v.ends}},t,c),Bs(h===Vs,d,f),eA(d,i,c,o),n.add(d),i.setItemGraphicEl(c,d)}}).update(function(c,v){var h=a.getItemGraphicEl(v);if(!i.hasValue(c)){n.remove(h);return}var d=i.getItemLayout(c),m=s?jp(u,d):zs;if(m===Us){n.remove(h);return}h?(Pe(h,{shape:{points:d.ends}},t,c),Ht(h)):h=$C(d,c,p),eA(h,i,c,o),Bs(m===Vs,h,f),n.add(h),i.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&n.remove(v)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),gF(t,this.group);var i=t.get("clip",!0)?qi(t.coordinateSystem,!1,t):null;Bs(!!i,this.group,i)},e.prototype._incrementalRenderNormal=function(t,i){for(var a=i.getData(),n=a.getLayout("isSimpleBox"),o=mF(i),s;(s=t.next())!=null;){var l=a.getItemLayout(s),u=$C(l,s,o);eA(u,a,s,n),u.incremental=Sr(i),this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,i){gF(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),Bs(!1,this.group,null),this._data=null},e.type=Oa,e})(Ve),H$=(function(){function r(){}return r})(),W$=(function(r){I(e,r);function e(t){var i=r.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new H$},e.prototype.buildPath=function(t,i){var a=i.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e})(ge);function $C(r,e,t,i){var a=r.ends;return new W$({shape:{points:i?Y$(a,t,r):a},z2:100})}function eA(r,e,t,i){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0;var n=a.getShallow("cursor");n&&r.attr("cursor",n),r.__simpleBox=i,ut(r,a);var o=e.getItemLayout(t).sign;T(r.states,function(l,u){var f=a.getModel(u),p=ox(o,f),c=sx(o,f)||p,v=l.style||(l.style={});p&&(v.fill=p),c&&(v.stroke=c)});var s=a.getModel("emphasis");He(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Y$(r,e,t){return U(r,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}function mF(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}var X$=(function(){function r(){}return r})(),tA=(function(r){I(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new X$},e.prototype.buildPath=function(t,i){for(var a=i.points,n=0;n<a.length;)if(this.__sign===a[n++]){var o=a[n++];t.moveTo(o,a[n++]),t.lineTo(o,a[n++])}else n+=3},e})(ge);function gF(r,e,t,i){var a=r.getData(),n=a.getLayout("largePoints"),o=new tA({shape:{points:n},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new tA({shape:{points:n},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new tA({shape:{points:n},__sign:0,ignoreCoarsePointer:!0});e.add(l),rA(1,o,r,a),rA(-1,s,r,a),rA(0,l,r,a),i&&(o.incremental=Sr(r),s.incremental=Sr(r),l.incremental=Sr(r)),t&&t.push(o,s,l)}function rA(r,e,t,i){var a=sx(r,t)||ox(r,t),n=t.getModel("itemStyle").getItemStyle(F$);e.useStyle(n),e.style.fill=null,e.style.stroke=a;var o=t.get("cursor");o&&e.attr("cursor",o)}var yF=G$;function iA(r){!r||!V(r.series)||T(r.series,function(e){se(e)&&e.type==="k"&&(e.type=Oa)})}var Z$=pa(),_F={seriesType:Oa,plan:Qr(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),i=K$(r,t),a=r.getWhiskerBoxesLayout()==="horizontal"?0:1,n=1-a,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=U(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],f=l[1],p=l[2],c=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?h:v};function v(d,m){for(var g,y=m.getStore();(g=d.next())!=null;){var x=y.get(s,g),_=y.get(u,g),S=y.get(f,g),b=y.get(p,g),w=y.get(c,g),A=Ye(_,S),C=Ae(_,S),E=z(A,x),D=z(C,x),L=z(b,x),M=z(w,x),P=[];B(P,D,0),B(P,E,1),P.push(H(M),H(D),H(L),H(E));var O=m.getItemModel(g),R=!!O.get(["itemStyle","borderColorDoji"]);m.setItemLayout(g,{sign:xF(y,g,_,S,f,R),initBaseline:_>S?D[n]:E[n],ends:P,brushRect:F(b,w,x)})}function z(Y,q){var oe=[];return oe[a]=q,oe[n]=Y,isNaN(q)||isNaN(Y)?[NaN,NaN]:e.dataToPoint(oe)}function B(Y,q,oe){var X=q.slice(),G=q.slice();X[a]=pv(X[a]+i/2,1,!1),G[a]=pv(G[a]-i/2,1,!0),oe?Y.push(X,G):Y.push(G,X)}function F(Y,q,oe){var X=z(Y,oe),G=z(q,oe);return X[a]-=i/2,G[a]-=i/2,{x:X[0],y:X[1],width:n?i:G[0]-X[0],height:n?G[1]-X[1]:i}}function H(Y){return Y[a]=pv(Y[a],1),Y}}function h(d,m){for(var g=ni(d.count*4),y=0,x,_=[],S=[],b,w=m.getStore(),A=!!r.get(["itemStyle","borderColorDoji"]);(b=d.next())!=null;){var C=w.get(s,b),E=w.get(u,b),D=w.get(f,b),L=w.get(p,b),M=w.get(c,b);if(isNaN(C)||isNaN(L)||isNaN(M)){g[y++]=NaN,y+=3;continue}g[y++]=xF(w,b,E,D,f,A),_[a]=C,_[n]=L,x=e.dataToPoint(_,null,S),g[y++]=x?x[0]:NaN,g[y++]=x?x[1]:NaN,_[n]=M,x=e.dataToPoint(_,null,S),g[y++]=x?x[1]:NaN}m.setLayout("largePoints",g)}}};function xF(r,e,t,i,a,n){var o;return t>i?o=-1:t<i?o=1:o=n?0:e>0?r.get(a,e-1)<=i?1:-1:1,o}function K$(r,e){var t=r.getBaseAxis(),i=bt(t,{fromStat:{key:Fo(Oa)},min:1}).w,a=$(J(r.get("barMaxWidth"),i),i),n=$(J(r.get("barMinWidth"),1),i),o=r.get("barWidth");return o!=null?$(o,i):Ae(Ye(i/2,a),n)}function SF(r){Z$(r,function(){var e=Fo(Oa);mp(r,{key:e,seriesType:Oa,getMetrics:Cp}),Rs(e,Ws(e))})}function aA(r){r.registerChartView(yF),r.registerSeriesModel(hF),r.registerPreprocessor(iA),r.registerVisual(dF),r.registerLayout(_F),SF(r)}function bF(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var q$=(function(r){I(e,r);function e(t,i){var a=r.call(this)||this,n=new Vo(t,i),o=new te;return a.add(n),a.add(o),a.updateData(t,i),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,a=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s<n;s++){var l=tt(i,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/n*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}bF(o,t)},e.prototype.updateEffectAnimation=function(t){for(var i=this._effectCfg,a=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],o=0;o<n.length;o++){var s=n[o];if(i[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}bF(a,t)},e.prototype.highlight=function(){Or(this)},e.prototype.downplay=function(){Nr(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,i){var a=this,n=t.hostModel;this.childAt(0).updateData(t,i);var o=this.childAt(1),s=t.getItemModel(i),l=t.getItemVisual(i,"symbol"),u=an(t.getItemVisual(i,"symbolSize")),f=t.getItemVisual(i,"style"),p=f&&f.fill,c=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",p)});var v=Zi(t.getItemVisual(i,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var h=t.getItemVisual(i,"symbolRotate");o.rotation=(h||0)*Math.PI/180||0;var d={};d.showEffectOn=n.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=i/t.count(),d.z=n.getShallow("z")||0,d.zlevel=n.getShallow("zlevel")||0,d.symbolType=l,d.color=p,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?d.showEffectOn!=="render"&&a.startEffectAnimation(d):m==="normal"&&d.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=d,He(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(te),wF=q$;var j$=(function(r){I(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._symbolDraw=new to(wF)},e.prototype.render=function(t,i,a){var n=t.getData(),o=this._symbolDraw;o.updateData(n,TF(t)),this.group.add(o.group)},e.prototype.updateTransform=function(t,i,a){var n=t.getData();this.group.dirty();var o=hn("").reset(t,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(TF(t))},e.prototype._updateGroupTransform=function(t){var i=t.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=JD(i.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(Ve);function TF(r){return{clipShape:qy(r)}}var CF=j$;var J$=(function(r){I(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 ur(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,i,a){return a.point(i.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(Fe),AF=J$;function nA(r){r.registerChartView(CF),r.registerSeriesModel(AF),r.registerLayout(hn("effectScatter"))}var Q$=(function(r){I(e,r);function e(t,i,a){var n=r.call(this)||this;return n.add(n.createLine(t,i,a)),n._updateEffectSymbol(t,i),n}return e.prototype.createLine=function(t,i,a){return new Hp(t,i,a)},e.prototype._updateEffectSymbol=function(t,i){var a=t.getItemModel(i),n=a.getModel("effect"),o=n.get("symbolSize"),s=n.get("symbol");V(o)||(o=[o,o]);var l=t.getItemVisual(i,"style"),u=n.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=tt(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(n.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,n,i))},e.prototype._updateEffectAnimation=function(t,i,a){var n=this.childAt(1);if(n){var o=t.getItemLayout(a),s=i.get("period")*1e3,l=i.get("loop"),u=i.get("roundTrip"),f=i.get("constantSpeed"),p=Pt(i.get("delay"),function(v){return v/t.count()*s/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),f>0&&(s=this._getLineLength(n)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var c=void 0;ee(p)?c=p(a):c=p,n.__t>0&&(c=-s*n.__t),this._animateSymbol(n,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,a,n,o){if(i>0){t.__t=0;var s=this,l=t.animate("",n).when(o?i*2:i,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return ia(t.__p1,t.__cp1)+ia(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,a){this.childAt(0).updateData(t,i,a),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,a=t.__p2,n=t.__cp1,o=t.__t<=1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Ft,f=Lc;s[0]=u(i[0],n[0],a[0],o),s[1]=u(i[1],n[1],a[1],o);var p=t.__t<=1?f(i[0],n[0],a[0],o):f(a[0],n[0],i[0],1-o),c=t.__t<=1?f(i[1],n[1],a[1],o):f(a[1],n[1],i[1],1-o);t.rotation=-Math.atan2(c,p)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=ia(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*ia(i,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,i){this.childAt(0).updateLayout(t,i);var a=t.getItemModel(i).getModel("effect");this._updateEffectAnimation(t,a,i)},e})(te),lx=Q$;var $$=(function(r){I(e,r);function e(t,i,a){var n=r.call(this)||this;return n._createPolyline(t,i,a),n}return e.prototype._createPolyline=function(t,i,a){var n=t.getItemLayout(i),o=new mt({shape:{points:n}});this.add(o),this._updateCommonStl(t,i,a)},e.prototype.updateData=function(t,i,a){var n=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(i)}};Pe(o,s,n,i),this._updateCommonStl(t,i,a)},e.prototype._updateCommonStl=function(t,i,a){var n=this.childAt(0),o=t.getItemModel(i),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var p=o.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),f=p.get("disabled"),l=p.get("focus"),u=p.get("blurScope")}n.useStyle(t.getItemVisual(i,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var c=n.ensureState("emphasis");c.style=s,He(this,l,u,f)},e.prototype.updateLayout=function(t,i){var a=this.childAt(0);a.stopAnimation(),a.setShape("points",t.getItemLayout(i))},e})(te),ux=$$;var eee=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,i,a){return new ux(t,i,a)},e.prototype._updateAnimationPoints=function(t,i){this._points=i;for(var a=[0],n=0,o=1;o<i.length;o++){var s=i[o-1],l=i[o];n+=ia(s,l),a.push(n)}if(n===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=n;this._offsets=a,this._length=n},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var i=t.__t<=1?t.__t:2-t.__t,a=this._points,n=this._offsets,o=a.length;if(n){var s=this._lastFrame,l;if(i<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(n[l]<=i);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(n[l]>i);l++);l=Math.min(l-1,o-2)}var f=(i-n[l])/(n[l+1]-n[l]),p=a[l],c=a[l+1];t.x=p[0]*(1-f)+f*c[0],t.y=p[1]*(1-f)+f*c[1];var v=t.__t<=1?c[0]-p[0]:p[0]-c[0],h=t.__t<=1?c[1]-p[1]:p[1]-c[1];t.rotation=-Math.atan2(h,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e})(lx),EF=eee;var tee=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),ree=(function(r){I(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new tee},e.prototype.buildPath=function(t,i){var a=i.segs,n=i.curveness,o;if(i.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],p=a[o++],c=a[o++];if(t.moveTo(u,f),n>0){var v=(u+p)/2-(f-c)*n,h=(f+c)/2-(p-u)*n;t.quadraticCurveTo(v,h,p,c)}else t.lineTo(p,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var a=this.shape,n=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<n.length;){var f=n[u++];if(f>0)for(var p=n[u++],c=n[u++],v=1;v<f;v++){var h=n[u++],d=n[u++];if(zn(p,c,h,d,s,t,i))return l}l++}else for(var l=0,u=0;u<n.length;){var p=n[u++],c=n[u++],h=n[u++],d=n[u++];if(o>0){var m=(p+h)/2-(c-d)*o,g=(c+d)/2-(h-p)*o;if(um(p,c,m,g,h,d,s,t,i))return l}else if(zn(p,c,h,d,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.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,a=i.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],p=a[u++];n=Math.min(f,n),s=Math.max(f,s),o=Math.min(p,o),l=Math.max(p,l)}t=this._rect=new fe(n,o,s,l)}return t},e})(ge),iee=(function(){function r(){this.group=new te}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t,i){var a=this._newAdded[0],n=t.getLayout("linesPoints"),o=a&&a.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+n.length);l.set(o),l.set(n,s),a.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=i,u.setShape({segs:n}),this._setCommon(u,t),u.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new ree({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,i){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var n=t.getVisual("style");n&&n.stroke&&e.setStyle("stroke",n.stroke),e.setStyle("fill",null);var o=ce(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),DF=iee;var aee={seriesType:"lines",plan:Qr(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),i=r.pipelineContext.large;return{progress:function(a,n){var o=[];if(i){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var p=0,c=[],f=a.start;f<a.end;f++){var v=r.getLineCoords(f,o);t&&(s[p++]=v);for(var h=0;h<v;h++)c=e.dataToPoint(o[h],!1,c),s[p++]=c[0],s[p++]=c[1]}n.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var d=n.getItemModel(f),v=r.getLineCoords(f,o),m=[];if(t)for(var g=0;g<v;g++)m.push(e.dataToPoint(o[g]));else{m[0]=e.dataToPoint(o[0]),m[1]=e.dataToPoint(o[1]);var y=d.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}n.setItemLayout(f,m)}}}}}},fx=aee;var nee=(function(r){I(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,a){var n=t.getData(),o=this._updateLineDraw(n,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.getZr(),f=!!Vm(a);f&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(n);var p=t.get("clip",!0)&&qi(t.coordinateSystem,!1,t);p?this.group.setClipPath(p):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._lineDraw.incrementalUpdate(t,i.getData(),Sr(i)),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,a){var n=t.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=fx.reset(t,i,a);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),o.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,i){var a=this._lineDraw,n=this._showEffect(i),o=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return(!a||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new DF:new Wp(o?n?EF:ux:n?lx:Hp),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=Vm(t);i&&this._lastZlevel!=null&&i.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e})(Ve),MF=nee;var oee=typeof Uint32Array>"u"?Array:Uint32Array,see=typeof Float64Array>"u"?Array:Float64Array;function IF(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=U(e,function(t){var i=[t[0].coord,t[1].coord],a={coords:i};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),rf([a,t[0],t[1]])}))}var lee=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],IF(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(IF(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=fo(this._flatCoords,i.flatCoords),this._flatCoordsOffset=fo(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),a=i.option instanceof Array?i.option:i.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;o<n;o++)i[o]=i[o]||[],i[o][0]=this._flatCoords[a+o*2],i[o][1]=this._flatCoords[a+o*2+1];return n}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)i[o]=i[o]||[],i[o][0]=s[o][0],i[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var i=0;if(this._flatCoords&&(i=this._flatCoords.length),Ce(t[0])){for(var a=t.length,n=new oee(a),o=new see(a),s=0,l=0,u=0,f=0;f<a;){u++;var p=t[f++];n[l++]=s+i,n[l++]=p;for(var c=0;c<p;c++){var v=t[f++],h=t[f++];o[s++]=v,o[s++]=h,f>a}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){if(0)var a;var n=new Tt(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;n.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),n},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getItemModel(t),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),p=[];u!=null&&p.push(u),f!=null&&p.push(f),l=p.join(" > ")}return vt("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(Fe),LF=lee;function px(r){return r instanceof Array||(r=[r,r]),r}var uee={seriesType:"lines",reset:function(r){var e=px(r.get("symbol")),t=px(r.get("symbolSize")),i=r.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function a(n,o){var s=n.getItemModel(o),l=px(s.getShallow("symbol",!0)),u=px(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?a:null}}},PF=uee;function oA(r){r.registerChartView(MF),r.registerSeriesModel(LF),r.registerLayout(fx),r.registerVisual(PF)}var fee=256,pee=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Nt.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,i,a,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,p=this.canvas,c=p.getContext("2d"),v=e.length;p.width=t,p.height=i;for(var h=0;h<v;++h){var d=e[h],m=d[0],g=d[1],y=d[2],x=a(y);c.globalAlpha=x,c.drawImage(s,m-f,g-f)}if(!p.width||!p.height)return p;for(var _=c.getImageData(0,0,p.width,p.height),S=_.data,b=0,w=S.length,A=this.minOpacity,C=this.maxOpacity,E=C-A;b<w;){var x=S[b+3]/256,D=Math.floor(x*(fee-1))*4;if(x>0){var L=o(x)?l:u;x>0&&(x=x*E+A),S[b++]=L[D],S[b++]=L[D+1],S[b++]=L[D+2],S[b++]=L[D+3]*x*256}else b+=4}return c.putImageData(_,0,0),p},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Nt.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var a=e.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor=N.color.neutral99,a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,a=i[t]||(i[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),a[o++]=n[0],a[o++]=n[1],a[o++]=n[2],a[o++]=n[3];return a},r})(),RF=pee;function cee(r,e,t){var i=r[1]-r[0];e=U(e,function(o){return{interval:[(o.interval[0]-r[0])/i,(o.interval[1]-r[0])/i]}});var a=e.length,n=0;return function(o){var s;for(s=n;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===a)for(s=n-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<a&&t[s]}}function vee(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(i){return i>=e[0]&&i<=e[1]}}var hee=(function(r){I(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,a){var n;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,a,0,t.getData().count()):zw(o)&&this._renderOnGeo(o,t,n,a)},e.prototype.incrementalPrepareRender=function(t,i,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,a,n){var o=i.coordinateSystem;o&&(zw(o)?this.render(i,a,n):(this._progressiveEls=[],this._renderOnGridLike(i,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Jr(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,i,a,n,o){var s=t.coordinateSystem,l=Da(s,"cartesian2d"),u=Da(s,"matrix"),f,p,c,v;if(l){var h=s.getAxis("x"),d=s.getAxis("y");f=bt(h).w+.5,p=bt(d).w+.5,c=h.scale.getExtent(),v=d.scale.getExtent()}for(var m=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),x=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=at(t),w=t.getModel("emphasis"),A=w.get("focus"),C=w.get("blurScope"),E=w.get("disabled"),D=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],L=a;L<n;L++){var M=void 0,P=g.getItemVisual(L,"style");if(l){var O=g.get(D[0],L),R=g.get(D[1],L);if(isNaN(g.get(D[2],L))||isNaN(O)||isNaN(R)||O<c[0]||O>c[1]||R<v[0]||R>v[1])continue;var z=s.dataToPoint([O,R]);M=new xe({shape:{x:z[0]-f/2,y:z[1]-p/2,width:f,height:p},style:P})}else if(u){var B=s.dataToLayout([g.get(D[0],L),g.get(D[1],L)]).rect;if(zt(B.x))continue;M=new xe({z2:1,shape:B,style:P})}else{if(isNaN(g.get(D[1],L)))continue;var F=s.dataToLayout([g.get(D[0],L)]),B=F.contentRect||F.rect;if(zt(B.x)||zt(B.y))continue;M=new xe({z2:1,shape:B,style:P})}if(g.hasItemOption){var H=g.getItemModel(L),Y=H.getModel("emphasis");y=Y.getModel("itemStyle").getItemStyle(),x=H.getModel(["blur","itemStyle"]).getItemStyle(),_=H.getModel(["select","itemStyle"]).getItemStyle(),S=H.get(["itemStyle","borderRadius"]),A=Y.get("focus"),C=Y.get("blurScope"),E=Y.get("disabled"),b=at(H)}M.shape.r=S;var q=t.getRawValue(L),oe="-";q&&q[2]!=null&&(oe=q[2]+""),ot(M,b,{labelFetcher:t,labelDataIndex:L,defaultOpacity:P.opacity,defaultText:oe}),M.ensureState("emphasis").style=y,M.ensureState("blur").style=x,M.ensureState("select").style=_,He(M,A,C,E),M.incremental=Sr(t,o),o&&(M.states.emphasis.hoverLayer=ja),m.add(M),g.setItemGraphicEl(L,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,i,a,n){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new RF;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=t.getViewRect().clone(),p=t.getRoamTransform();f.applyTransform(p);var c=Math.max(f.x,0),v=Math.max(f.y,0),h=Math.min(f.width+f.x,n.getWidth()),d=Math.min(f.height+f.y,n.getHeight()),m=h-c,g=d-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,A,C){var E=t.dataToPoint([w,A]);return E[0]-=c,E[1]-=v,E.push(C),E}),_=a.getExtent(),S=a.type==="visualMap.continuous"?vee(_,a.option.range):cee(_,a.getPieceList(),a.option.selected);u.update(x,m,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var b=new pt({style:{width:m,height:g,x:c,y:v,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e})(Ve),OF=hee;var dee=(function(r){I(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 ur(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Lo.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:N.color.primary}}},e})(Fe),NF=dee;function sA(r){r.registerChartView(OF),r.registerSeriesModel(NF)}var mee=["itemStyle","borderWidth"],kF=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],lA=new Tr,gee=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ys,t}return e.prototype.render=function(t,i,a){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),p=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[p.x,p.x+p.width],[p.y,p.y+p.height]],isHorizontal:f,valueDim:kF[+f],categoryDim:kF[1-+f]};o.diff(s).add(function(h){if(o.hasValue(h)){var d=VF(o,h),m=zF(o,h,d,c),g=UF(o,c,m);o.setItemGraphicEl(h,g),n.add(g),FF(g,c,m)}}).update(function(h,d){var m=s.getItemGraphicEl(d);if(!o.hasValue(h)){n.remove(m);return}var g=VF(o,h),y=zF(o,h,g,c),x=KF(o,y);m&&x!==m.__pictorialShapeStr&&(n.remove(m),o.setItemGraphicEl(h,null),m=null),m?Tee(m,c,y):m=UF(o,c,y,!0),o.setItemGraphicEl(h,m),m.__pictorialSymbolMeta=y,n.add(m),FF(m,c,y)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&BF(s,h,d.__pictorialSymbolMeta.animationModel,d)}).execute();var v=t.get("clip",!0)?qi(t.coordinateSystem,!1,t):null;return v?n.setClipPath(v):n.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,i){var a=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){BF(n,ce(o).dataIndex,t,o)}):a.removeAll()},e.type=Ys,e})(Ve);function zF(r,e,t,i){var a=r.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,p=t.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:p?t:null,hoverScale:p&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};yee(t,n,a,i,c),xee(r,e,a,n,o,c.boundingLength,c.pxSign,f,i,c),_ee(t,c.symbolScale,u,i,c);var v=c.symbolSize,h=Zi(t.get("symbolOffset"),v);return See(t,v,a,n,o,h,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function yee(r,e,t,i,a){var n=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),f;if(V(o)){var p=[uA(s,o[0])-l,uA(s,o[1])-l];p[1]<p[0]&&p.reverse(),f=p[u]}else o!=null?f=uA(s,o)-l:e?f=i.coordSysExtent[n.index][u]-l:f=t[n.wh];a.boundingLength=f,e&&(a.repeatCutLength=t[n.wh]);var c=n.xy==="x",v=s.inverse;a.pxSign=c&&!v||!c&&v?f>=0?1:-1:f>0?1:-1}function uA(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function xee(r,e,t,i,a,n,o,s,l,u){var f=l.valueDim,p=l.categoryDim,c=Math.abs(t[p.wh]),v=r.getItemVisual(e,"symbolSize"),h;V(v)?h=v.slice():v==null?h=["100%","100%"]:h=[v,v],h[p.index]=$(h[p.index],c),h[f.index]=$(h[f.index],i?c:Math.abs(n)),u.symbolSize=h;var d=u.symbolScale=[h[0]/s,h[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function _ee(r,e,t,i,a){var n=r.get(mee)||0;n&&(lA.attr({scaleX:e[0],scaleY:e[1],rotation:t}),lA.updateTransform(),n/=lA.getLineScale(),n*=e[i.valueDim.index]),a.valueLineWidth=n||0}function See(r,e,t,i,a,n,o,s,l,u,f,p){var c=f.categoryDim,v=f.valueDim,h=p.pxSign,d=Math.max(e[v.index]+s,0),m=d;if(i){var g=Math.abs(l),y=Pt(r.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=$(y,e[v.index]),S=Math.max(d+_*2,0),b=x?0:_*2,w=Ol(i),A=w?i:GF((g+b)/S),C=g-A*d;_=C/2/(x?A:Math.max(A-1,1)),S=d+_*2,b=x?0:_*2,!w&&i!=="fixed"&&(A=u?GF((Math.abs(u)+b)/S):0),m=A*S-b,p.repeatTimes=A,p.symbolMargin=_}var E=h*(m/2),D=p.pathPosition=[];D[c.index]=t[c.wh]/2,D[v.index]=o==="start"?E:o==="end"?l-E:l/2,n&&(D[0]+=n[0],D[1]+=n[1]);var L=p.bundlePosition=[];L[c.index]=t[c.xy],L[v.index]=t[v.xy];var M=p.barRectShape=k({},t);M[v.wh]=h*Math.max(Math.abs(t[v.wh]),Math.abs(D[v.index]+E)),M[c.wh]=t[c.wh];var P=p.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[v.xy]=0,P[v.wh]=t[v.wh]}function HF(r){var e=r.symbolPatternSize,t=tt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function WF(r,e,t,i){var a=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,p=n[e.valueDim.index]+o+t.symbolMargin*2;for(fA(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?Jp(d,null,h(f),t,i):Jp(d,null,{scaleX:0,scaleY:0},t,i,function(){a.remove(d)}),f++});f<u;f++){var c=HF(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,a.add(c);var v=h(f);Jp(c,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,i)}function h(d){var m=s.slice(),g=t.pxSign,y=d;return(t.symbolRepeatDirection==="start"?g>0:g<0)&&(y=u-1-d),m[l.index]=p*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function YF(r,e,t,i){var a=r.__pictorialBundle,n=r.__pictorialMainPath;n?Jp(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(n=r.__pictorialMainPath=HF(t),a.add(n),Jp(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function XF(r,e,t){var i=k({},e.barRectShape),a=r.__pictorialBarRect;a?Jp(a,null,{shape:i},e,t):(a=r.__pictorialBarRect=new xe({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function ZF(r,e,t,i){if(t.symbolClip){var a=r.__pictorialClipPath,n=k({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)Pe(a,{shape:n},s,l);else{n[o.wh]=0,a=new xe({shape:n}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],Ie[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function VF(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=bee,t.isAnimationEnabled=wee,t}function bee(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function wee(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function UF(r,e,t,i){var a=new te,n=new te;return a.add(n),a.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?WF(a,e,t):YF(a,e,t),XF(a,t,i),ZF(a,e,t,i),a.__pictorialShapeStr=KF(r,t),a.__pictorialSymbolMeta=t,a}function Tee(r,e,t){var i=t.animationModel,a=t.dataIndex,n=r.__pictorialBundle;Pe(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,a),t.symbolRepeat?WF(r,e,t,!0):YF(r,e,t,!0),XF(r,t,!0),ZF(r,e,t,!0)}function BF(r,e,t,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var n=[];fA(i,function(o){n.push(o)}),i.__pictorialMainPath&&n.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),T(n,function(o){da(o,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(e,null)}function KF(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function fA(r,e,t){T(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&e.call(t,i)})}function Jp(r,e,t,i,a,n){e&&r.attr(e),i.symbolClip&&!a?t&&r.attr(t):t&&Ie[a?"updateProps":"initProps"](r,t,i.animationModel,i.dataIndex,n)}function FF(r,e,t){var i=t.dataIndex,a=t.itemModel,n=a.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=n.get("focus"),p=n.get("blurScope"),c=n.get("scale");fA(r,function(d){if(d instanceof pt){var m=d.style;d.useStyle(k({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else d.useStyle(t.style);var g=d.ensureState("emphasis");g.style=o,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],h=r.__pictorialBarRect;h.ignoreClip=!0,ot(h,at(a),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:vn(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),He(r,f,p,n.get("disabled"))}function GF(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var qF=gee;var Cee=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series."+Ys,e.dependencies=["grid"],e.defaultOption=Vr(Ap.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:N.color.primary}}}),e})(Ap),jF=Cee;function pA(r){r.registerChartView(qF),r.registerSeriesModel(jF),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,r0(Ys)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,i0(Ys)),a0(r)}var cA=2,Zo="themeRiver",Aee=(function(r){I(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 Ma(K(this.getData,this),K(this.getRawData,this))},e.prototype.fixData=function(t){var i=t.length,a={},n=qc(t,function(c){return a.hasOwnProperty(c[0]+"")||(a[c[0]+""]=-1),c[2]}),o=[];n.buckets.each(function(c,v){o.push({name:v,dataList:c})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var p=o[l].dataList[f][0]+"";a[p]=l}for(var p in a)a.hasOwnProperty(p)&&a[p]!==l&&(a[p]=l,t[i]=[p,0,u],i++)}return t},e.prototype.getInitialData=function(t,i){for(var a=this.getReferringComponents("singleAxis",$e).models[0],n=a.get("type"),o=Ne(t.data,function(h){return h[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Z(),f=0,p=0;p<s.length;++p)l.push(s[p][cA]),u.get(s[p][cA])||(u.set(s[p][cA],f),f++);var c=wa(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:xu(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Tt(c,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),i=t.count(),a=[],n=0;n<i;++n)a[n]=n;var o=t.mapDimension("single"),s=qc(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(p,c){return t.get(o,p)-t.get(o,c)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,i,a){V(t)||(t=t?[t]:[]);for(var n=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var p=Number.MAX_VALUE,c=-1,v=o[f].indices.length,h=0;h<v;++h){var d=n.get(t[0],o[f].indices[h]),m=Math.abs(d-i);m<=p&&(u=d,p=m,c=o[f].indices[h])}s.push(c)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=n.getName(t),s=n.get(n.mapDimension("value"),t);return vt("nameValue",{name:o,value:s})},e.type="series."+Zo,e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(Fe),JF=Aee;var Eee=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Zo,t._layers=[],t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),f=u.rect,p=u.boundaryGap;s.x=0,s.y=f.y+p[0];function c(m){return m.name}var v=new Er(this._layersSeries||[],l,c,c),h=[];v.add(K(d,this,"add")).update(K(d,this,"update")).remove(K(d,this,"remove")).execute();function d(m,g,y){var x=o._layers;if(m==="remove"){s.remove(x[g]);return}for(var _=[],S=[],b,w=l[g].indices,A=0;A<w.length;A++){var C=n.getItemLayout(w[A]),E=C.x,D=C.y0,L=C.y;_.push(E,D),S.push(E,D+L),b=n.getItemVisual(w[A],"style")}var M,P=n.getItemLayout(w[0]),O=t.getModel("label"),R=O.get("margin"),z=t.getModel("emphasis");if(m==="add"){var B=h[g]=new te;M=new Ky({shape:{points:_,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),B.add(M),s.add(B),t.isAnimationEnabled()&&M.setClipPath(Dee(M.getBoundingRect(),t,function(){M.removeClipPath()}))}else{var B=x[y];M=B.childAt(0),s.add(B),h[g]=B,Pe(M,{shape:{points:_,stackedOnPoints:S}},t),Ht(M)}ot(M,at(t),{labelDataIndex:w[A-1],defaultText:n.getName(w[A-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),M.setTextConfig({position:null,local:!0});var F=M.getTextContent();F&&(F.x=P.x-R,F.y=P.y0+P.y/2),M.useStyle(b),n.setItemGraphicEl(g,M),ut(M,t),He(M,z.get("focus"),z.get("blurScope"),z.get("disabled"))}this._layersSeries=l,this._layers=h},e.type=Zo,e})(Ve);function Dee(r,e,t){var i=new xe({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Xe(i,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),i}var QF=Eee;var eG=et(Zo,Mee);function Mee(r,e){r.eachSeriesByType(Zo,function(t){var i=t.getData(),a=t.coordinateSystem,n={},o=a.getRect();n.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(n.boundaryGap=s,l.orient==="horizontal"){s[0]=$(s[0],o.height),s[1]=$(s[1],o.height);var u=o.height-s[0]-s[1];$F(i,t,u)}else{s[0]=$(s[0],o.width),s[1]=$(s[1],o.width);var f=o.width-s[0]-s[1];$F(i,t,f)}i.setLayout("layoutInfo",n)})}function $F(r,e,t){if(r.count())for(var i=e.coordinateSystem,a=e.getLayerSeries(),n=r.mapDimension("single"),o=r.mapDimension("value"),s=U(a,function(m){return U(m.indices,function(g){var y=i.dataToPoint(r.get(n,g));return y[1]=r.get(o,g),y})}),l=Iee(s),u=l.y0,f=t/l.max,p=a.length,c=a[0].indices.length,v,h=0;h<c;++h){v=u[h]*f,r.setItemLayout(a[0].indices[h],{layerIndex:0,x:s[0][h][0],y0:v,y:s[0][h][1]*f});for(var d=1;d<p;++d)v+=s[d-1][h][1]*f,r.setItemLayout(a[d].indices[h],{layerIndex:d,x:s[d][h][0],y0:v,y:s[d][h][1]*f})}}function Iee(r){for(var e=r.length,t=r[0].length,i=[],a=[],n=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>n&&(n=s),i.push(s)}for(var u=0;u<t;++u)a[u]=(n-i[u])/2;n=0;for(var f=0;f<t;++f){var p=i[f]+a[f];p>n&&(n=p)}return{y0:a,max:n}}function vA(r){r.registerChartView(QF),r.registerSeriesModel(JF),r.registerLayout(eG),r.registerProcessor(dn(Zo))}var Lee=2,Pee=4,Ree=(function(r){I(e,r);function e(t,i,a,n){var o=r.call(this)||this;o.z2=Lee,o.textConfig={inside:!0},ce(o).seriesIndex=i.seriesIndex;var s=new Ee({z2:Pee,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,i,a,n),o}return e.prototype.updateData=function(t,i,a,n,o){this.node=i,i.piece=this,a=a||this._seriesModel,n=n||this._ecModel;var s=this;ce(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),f=i.getLayout(),p=k({},f);p.label=null;var c=i.getVisual("style");c.lineJoin="bevel";var v=i.getVisual("decal");v&&(c.decal=nn(v,o));var h=si(l.getModel("itemStyle"),p,!0);k(p,h),T(sr,function(y){var x=s.ensureState(y),_=l.getModel([y,"itemStyle"]);x.style=_.getItemStyle();var S=si(_,p);S&&(x.shape=S)}),t?(s.setShape(p),s.shape.r=f.r0,Xe(s,{shape:{r:f.r}},a,i.dataIndex)):(Pe(s,{shape:p},a),Ht(s)),s.useStyle(c),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=n||this._ecModel;var m=u.get("focus"),g=m==="relative"?fo(i.getAncestorsIndices(),i.getDescendantIndices()):m==="ancestor"?i.getAncestorsIndices():m==="descendant"?i.getDescendantIndices():m;He(this,g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,a=this.node.getModel(),n=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),p=this,c=p.getTextContent(),v=this.node.dataIndex,h=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(h!=null&&Math.abs(s)<h);c.ignore=!d,T(ys,function(g){var y=g==="normal"?a.getModel("label"):a.getModel([g,"label"]),x=g==="normal",_=x?c:c.ensureState(g),S=t.getFormattedLabel(v,g);x&&(S=S||i.node.name),_.style=je(y,{},null,g!=="normal",!0),S&&(_.style.text=S);var b=y.get("show");b!=null&&!x&&(_.ignore=!b);var w=m(y,"position"),A=x?p:p.states[g],C=A.style.fill;A.textConfig={outsideFill:y.get("color")==="inherit"?C:null,inside:w!=="outside"};var E,D=m(y,"distance")||0,L=m(y,"align"),M=m(y,"rotate"),P=Math.PI*.5,O=Math.PI*1.5,R=br(M==="tangential"?Math.PI/2-l:l),z=R>P&&!Mn(R-P)&&R<O;w==="outside"?(E=o.r+D,L=z?"right":"left"):!L||L==="center"?(o.r0===0&&Mn(s-2*Math.PI)?E=0:E=(o.r+o.r0)/2,L="center"):L==="left"?(E=o.r0+D,L=z?"right":"left"):L==="right"&&(E=o.r-D,L=z?"left":"right"),_.style.align=L,_.style.verticalAlign=m(y,"verticalAlign")||"middle",_.x=E*u+o.cx,_.y=E*f+o.cy;var B=0;M==="radial"?B=br(-l)+(z?Math.PI:0):M==="tangential"?B=br(Math.PI/2-l)+(z?Math.PI:0):Ce(M)&&(B=M*Math.PI/180),_.rotation=br(B)});function m(g,y){var x=g.get(y);return x??n.get(y)}c.dirtyStyle()},e})(Dt),hA=Ree;var io="sunburst",Oee=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};tG(a);var n=this._levelModels=U(t.levels||[],function(l){return new Re(l,this,i)},this),o=kp.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var p=o.getNodeByDataIndex(f),c=n[p.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=el(a,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){Ch(this)},e.type="series."+io,e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(Fe);function tG(r){var e=0;T(r.children,function(i){tG(i);var a=i.value;V(a)&&(a=a[0]),e+=a});var t=r.value;V(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),V(r.value)?r.value[0]=t:r.value=t}var rG=Oee;var cx="sunburstRootToNode",iG="sunburstHighlight",Nee="sunburstUnhighlight";function aG(r){r.registerAction({type:cx,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a,n){var o=Wo(e,[cx],a);if(o){var s=a.getViewRoot();s&&(e.direction=zp(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:iG,update:"none"},function(e,t,i){e=k({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n){var o=Wo(e,[iG],n);o&&(e.dataIndex=o.node.dataIndex)}i.dispatchAction(k(e,{type:"highlight"}))}),r.registerAction({type:Nee,update:"updateView"},function(e,t,i){e=k({},e),i.dispatchAction(k(e,{type:"downplay"}))})}var kee=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=io,t}return e.prototype.render=function(t,i,a,n){var o=this;this.seriesModel=t,this.api=a,this.ecModel=i;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,p=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(y){c.push(y)});var v=this._oldChildren||[];h(c,v),g(l,u),this._initEvents(),this._oldChildren=c;function h(y,x){if(y.length===0&&x.length===0)return;new Er(x,y,_,_).add(S).update(S).remove(be(S,null)).execute();function _(b){return b.getId()}function S(b,w){var A=b==null?null:y[b],C=w==null?null:x[w];d(A,C)}}function d(y,x){if(!p&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,t,i,a),s.setItemGraphicEl(y.dataIndex,x.piece)):m(x);else if(y){var _=new hA(y,t,i,a);f.add(_),s.setItemGraphicEl(y.dataIndex,_)}}}function m(y){y&&y.piece&&(f.remove(y.piece),y.piece=null)}function g(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,i,a):(o.virtualPiece=new hA(y,t,i,a),f.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(x.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var a=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!a&&o.piece&&o.piece===i.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";su(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:cx,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type=io,e})(Ve),nG=kee;var oG=et(io,zee);function zee(r){var e={};function t(i,a,n){if(i.depth===0)return N.color.neutral50;for(var o=i;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return i.depth>1&&W(s)&&(s=Id(s,(i.depth-1)/(n-1)*.5)),s}r.eachSeriesByType(io,function(i){var a=i.getData(),n=a.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,i,n.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");k(u,l)})})}var sG=Math.PI/180,lG=et(io,Vee);function Vee(r,e){r.eachSeriesByType(io,function(t){var i=t.get("center"),a=t.get("radius");V(a)||(a=[0,a]),V(i)||(i=[i,i]);var n=e.getWidth(),o=e.getHeight(),s=Math.min(n,o),l=$(i[0],n),u=$(i[1],o),f=$(a[0],s/2),p=$(a[1],s/2),c=-t.get("startAngle")*sG,v=t.get("minAngle")*sG,h=t.getData().tree.root,d=t.getViewRoot(),m=d.depth,g=t.get("sort");g!=null&&uG(d,g);var y=0;T(d.children,function(O){!isNaN(O.getValue())&&y++});var x=d.getValue(),_=Math.PI/(x||y)*2,S=d.depth>0,b=d.height-(S?-1:1),w=(p-f)/(b||1),A=t.get("clockwise"),C=t.get("stillShowZeroSum"),E=A?1:-1,D=function(O,R){if(O){var z=R;if(O!==h){var B=O.getValue(),F=x===0&&C?_:B*_;F<v&&(F=v),z=R+E*F;var H=O.depth-m-(S?-1:1),Y=f+w*H,q=f+w*(H+1),oe=t.getLevelModel(O);if(oe){var X=oe.get("r0",!0),G=oe.get("r",!0),ne=oe.get("radius",!0);ne!=null&&(X=ne[0],G=ne[1]),X!=null&&(Y=$(X,s/2)),G!=null&&(q=$(G,s/2))}O.setLayout({angle:F,startAngle:R,endAngle:z,clockwise:A,cx:l,cy:u,r0:Y,r:q})}if(O.children&&O.children.length){var ve=0;T(O.children,function(pe){ve+=D(pe,R+ve)})}return z-R}};if(S){var L=f,M=f+w,P=Math.PI*2;h.setLayout({angle:P,startAngle:c,endAngle:c+P,clockwise:A,cx:l,cy:u,r0:L,r:M})}D(d,c)})}function uG(r,e){var t=r.children||[];r.children=Uee(t,e),t.length&&T(r.children,function(i){uG(i,e)})}function Uee(r,e){if(ee(e)){var t=U(r,function(a,n){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:n}});return t.sort(function(a,n){return e(a.params,n.params)}),U(t,function(a){return r[a.index]})}else{var i=e==="asc";return r.sort(function(a,n){var o=(a.getValue()-n.getValue())*(i?1:-1);return o===0?(a.dataIndex-n.dataIndex)*(i?-1:1):o})}}function dA(r){r.registerChartView(nG),r.registerSeriesModel(rG),r.registerLayout(lG),r.registerVisual(oG),aG(r)}var mA={color:"fill",borderColor:"stroke"},fG={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ao=ue(),Bee=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return ur(null,this)},e.prototype.getDataParams=function(t,i,a){var n=r.prototype.getDataParams.call(this,t,i);return a&&(n.info=ao(a).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(Fe),pG=Bee;function Fee(r,e){return e=e||[0,0],U(["x","y"],function(t,i){var a=this.getAxis(t),n=e[i],o=r[i]/2;return a.type==="category"?bt(a).w:Math.abs(a.dataToCoord(n-o)-a.dataToCoord(n+o))},this)}function gA(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:K(Fee,r)}}}function Gee(r,e){return e=e||[0,0],U([0,1],function(t){var i=e[t],a=r[t]/2,n=[],o=[];return n[t]=i-a,o[t]=i+a,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function yA(r){var e=r.view,t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:MV(e)},api:{coord:function(i){return r.dataToPoint(i)},size:K(Gee,r)}}}function Hee(r,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?bt(t).w:Math.abs(t.dataToCoord(i-a)-t.dataToCoord(i+a))}function xA(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:K(Hee,r)}}}function Wee(r,e){return e=e||[0,0],U(["Radius","Angle"],function(t,i){var a="get"+t+"Axis",n=this[a](),o=e[i],s=r[i]/2,l=n.type==="category"?bt(n).w:Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function _A(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:i[1],r0:i[0]},api:{coord:function(a){var n=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:K(Wee,r)}}}function SA(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,a){return r.dataToPoint(i,a)},layout:function(i,a){return r.dataToLayout(i,a)}}}}function bA(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,i){return r.dataToPoint(t,i)},layout:function(t,i){return r.dataToLayout(t,i)}}}}var hG={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},cG=Te(hG),RGe=fr(la,function(r,e){return r[e]=1,r},{}),OGe=la.join(", "),kh=["","style","shape","extra"],Qp=ue();function TA(r,e,t,i,a){var n=r+"Animation",o=Gn(r,i,a)||{},s=Qp(e).userDuring;return o.duration>0&&(o.during=s?K(qee,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),k(o,t[n]),o}function $p(r,e,t,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=t.isAnimationEnabled(),l=Qp(r),u=e.style;l.userDuring=e.during;var f={},p={};if(Jee(r,e,p),r.type==="compound")for(var c=r.shape.paths,v=e.shape.paths,h=0;h<v.length;h++){var d=v[h];wA("shape",d,c[h])}else wA("shape",e,p),wA("extra",e,p);if(!n&&s&&(jee(r,e,f),vG("shape",r,e,f),vG("extra",r,e,f),Qee(r,e,u,f)),p.style=u,Yee(r,p,o),Zee(r,e),s)if(n){var m={};T(kh,function(y){var x=y?e[y]:e;x&&x.enterFrom&&(y&&(m[y]=m[y]||{}),k(y?m[y]:m,x.enterFrom))});var g=TA("enter",r,e,t,a);g.duration>0&&r.animateFrom(m,g)}else Xee(r,e,a||0,t,f);CA(r,e),u?r.dirty():r.markRedraw()}function CA(r,e){for(var t=Qp(r).leaveToProps,i=0;i<kh.length;i++){var a=kh[i],n=a?e[a]:e;n&&n.leaveTo&&(t||(t=Qp(r).leaveToProps={}),a&&(t[a]=t[a]||{}),k(a?t[a]:t,n.leaveTo))}}function ec(r,e,t,i){if(r){var a=r.parent,n=Qp(r).leaveToProps;if(n){var o=TA("update",r,e,t,0);o.done=function(){a&&a.remove(r),i&&i()},r.animateTo(n,o)}else a&&a.remove(r),i&&i()}}function il(r){return r==="all"}function Yee(r,e,t){var i=e.style;if(!r.isGroup&&i){if(t){r.useStyle({});for(var a=r.animators,n=0;n<a.length;n++){var o=a[n];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(i)}e&&(e.style=null,e&&r.attr(e),e.style=i)}function Xee(r,e,t,i,a){if(a){var n=TA("update",r,e,i,t);n.duration>0&&r.animateFrom(a,n)}}function Zee(r,e){le(e,"silent")&&(r.silent=e.silent),le(e,"ignore")&&(r.ignore=e.ignore),r instanceof Gt&&le(e,"invisible")&&(r.invisible=e.invisible),r instanceof ge&&le(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var no={},Kee={setTransform:function(r,e){return no.el[r]=e,this},getTransform:function(r){return no.el[r]},setShape:function(r,e){var t=no.el,i=t.shape||(t.shape={});return i[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=no.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=no.el,i=t.style;return i&&(i[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=no.el.style;if(e)return e[r]},setExtra:function(r,e){var t=no.el.extra||(no.el.extra={});return t[r]=e,this},getExtra:function(r){var e=no.el.extra;if(e)return e[r]}};function qee(){var r=this,e=r.el;if(e){var t=Qp(e).userDuring,i=r.userDuring;if(t!==i){r.el=r.userDuring=null;return}no.el=e,i(Kee)}}function vG(r,e,t,i){var a=t[r];if(a){var n=e[r],o;if(n){var s=t.transition,l=a.transition;if(l)if(!o&&(o=i[r]={}),il(l))k(o,n);else for(var u=qe(l),f=0;f<u.length;f++){var p=u[f],c=n[p];o[p]=c}else if(il(s)||de(s,r)>=0){!o&&(o=i[r]={});for(var v=Te(n),f=0;f<v.length;f++){var p=v[f],c=n[p];$ee(a[p],c)&&(o[p]=c)}}}}}function wA(r,e,t){var i=e[r];if(i)for(var a=t[r]={},n=Te(i),o=0;o<n.length;o++){var s=n[o];a[s]=Al(i[s])}}function jee(r,e,t){for(var i=e.transition,a=il(i)?la:qe(i||[]),n=0;n<a.length;n++){var o=a[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function Jee(r,e,t){for(var i=0;i<cG.length;i++){var a=cG[i],n=hG[a],o=e[a];o&&(t[n[0]]=o[0],t[n[1]]=o[1])}for(var i=0;i<la.length;i++){var s=la[i];e[s]!=null&&(t[s]=e[s])}}function Qee(r,e,t,i){if(t){var a=r.style,n;if(a){var o=t.transition,s=e.transition;if(o&&!il(o)){var l=qe(o);!n&&(n=i.style={});for(var u=0;u<l.length;u++){var f=l[u],p=a[f];n[f]=p}}else if(r.getAnimationStyleProps&&(il(s)||il(o)||de(s,"style")>=0)){var c=r.getAnimationStyleProps(),v=c?c.style:null;if(v){!n&&(n=i.style={});for(var h=Te(t),u=0;u<h.length;u++){var f=h[u];if(v[f]){var p=a[f];n[f]=p}}}}}}}function $ee(r,e){return kt(r)?r!==e:r!=null&&isFinite(r)}var dG=ue(),ete=["percent","easing","shape","style","extra"];function vx(r){r.stopAnimation("keyframe"),r.attr(dG(r))}function tc(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(V(e)){T(e,function(s){tc(r,s,t)});return}var i=e.keyframes,a=e.duration;if(t&&a==null){var n=Gn("enter",t,0);a=n&&n.duration}if(!(!i||!a)){var o=dG(r);T(kh,function(s){if(!(s&&!r[s])){var l,u=!1;i.sort(function(f,p){return f.percent-p.percent}),T(i,function(f){var p=r.animators,c=s?f[s]:f;if(c){var v=Te(c);if(s||(v=Ne(v,function(m){return de(ete,m)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var h=0;h<p.length;h++)p[h]!==l&&p[h].targetName===l.targetName&&p[h].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;T(v,function(m){d[m]=((s?r[s]:r)||{})[m]}),l.whenWithKeys(a*f.percent,c,v,f.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var Ko="emphasis",al="normal",LA="blur",PA="select",nl=[al,Ko,LA,PA],AA={normal:["itemStyle"],emphasis:[Ko,"itemStyle"],blur:[LA,"itemStyle"],select:[PA,"itemStyle"]},EA={normal:["label"],emphasis:[Ko,"label"],blur:[LA,"label"],select:[PA,"label"]},tte=["x","y"],rte="e\0\0",Na={normal:{},emphasis:{},blur:{},select:{}},ite={cartesian2d:gA,geo:yA,single:xA,polar:_A,calendar:SA,matrix:bA};function MA(r){return r instanceof ge}function IA(r){return r instanceof Gt}function ate(r,e){e.copyTransform(r),IA(e)&&IA(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,MA(e)&&MA(r)&&e.setShape(r.shape))}var nte=(function(r){I(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,a,n){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=mG(t,s,i,a);o||l.removeAll(),s.diff(o).add(function(p){DA(a,null,p,u(p,n),t,l,s)}).remove(function(p){var c=o.getItemGraphicEl(p);c&&ec(c,ao(c).option,t)}).update(function(p,c){var v=o.getItemGraphicEl(c);DA(a,v,p,u(p,n),t,l,s)}).execute();var f=t.get("clip",!0)?qi(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,i,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,i,a,n,o){var s=i.getData(),l=mG(i,s,a,n),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=Sr(i),v.ensureState("emphasis").hoverLayer=ja)}for(var p=t.start;p<t.end;p++){var c=DA(null,null,p,l(p,o),i,this.group,s);c&&(c.traverse(f),u.push(c))}},e.prototype.eachRendered=function(t){Jr(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,i,a,n){var o=i.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e})(Ve),_G=nte;function RA(r){var e=r.type,t;if(e==="path"){var i=r.shape,a=i.width!=null&&i.height!=null?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,n=wG(i);t=Eo(n,null,a,i.layout||"center"),ao(t).customPathData=n}else if(e==="image")t=new pt({}),ao(t).customImagePath=r.style.image;else if(e==="text")t=new Ee({});else if(e==="group")t=new te;else if(e==="compoundPath"){var i=r.shape;if(!i||!i.paths){var o="";Ke(o)}var s=U(i.paths,function(f){if(f.type==="path")return Eo(f.shape.pathData,f,null);var p=Ss(f.type);if(!p){var c="";Ke(c)}return new p});t=new Fn({shape:{paths:s}})}else{var l=Ss(e);if(!l){var o="";Ke(o)}t=new l}return ao(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function OA(r,e,t,i,a,n,o){vx(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),i&&i.transition==null&&(i.transition=tte);var l=i&&i.style;if(l){if(e.type==="text"){var u=l;le(u,"textFill")&&(u.fill=u.textFill),le(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,p=MA(e)?l.decal:null;r&&p&&(p.dirty=!0,f=nn(p,r)),l.__decalPattern=f}if(IA(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}$p(e,i,n,{dataIndex:t,isInit:o,clearStyle:!0}),tc(e,i.keyframeAnimation,n)}function SG(r,e,t,i,a){var n=e.isGroup?null:e,o=a&&a[r].cfg;if(n){var s=n.ensureState(r);if(i===!1){var l=n.getState(r);l&&(l.style=null)}else s.style=i||null;o&&(s.textConfig=o),Ka(n)}}function ote(r,e,t){if(!r.isGroup){var i=r,a=t.currentZ,n=t.currentZLevel;i.z=a,i.zlevel=n;var o=e.z2;o!=null&&(i.z2=o||0);for(var s=0;s<nl.length;s++)ste(i,e,nl[s])}}function ste(r,e,t){var i=t===al,a=i?e:hx(e,t),n=a?a.z2:null,o;n!=null&&(o=i?r:r.ensureState(t),o.z2=n||0)}function mG(r,e,t,i){var a=r.get("renderItem");if(typeof a=="string"){var n=mO(a);n&&(a=n)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):ite[o.type](o));for(var l=re({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:S,style:w,ordinalRawValue:b,styleEmphasis:A,visual:D,barLayout:L,currentSeriesIndices:M,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:lte(r.getData()),itemPayload:r.get("itemPayload")||{}},f,p,c={},v={},h={},d={},m=0;m<nl.length;m++){var g=nl[m];h[g]=r.getModel(AA[g]),d[g]=r.getModel(EA[g])}function y(O){return O===f?p||(p=e.getItemModel(O)):e.getItemModel(O)}function x(O,R){return e.hasItemOption?O===f?c[R]||(c[R]=y(O).getModel(AA[R])):y(O).getModel(AA[R]):h[R]}function _(O,R){return e.hasItemOption?O===f?v[R]||(v[R]=y(O).getModel(EA[R])):y(O).getModel(EA[R]):d[R]}return function(O,R){return f=O,p=null,c={},v={},a&&a(re({dataIndexInside:O,dataIndex:e.getRawIndex(O),actionType:R?R.type:null},u),l)};function S(O,R){return R==null&&(R=f),e.getStore().get(e.getDimensionIndex(O||0),R)}function b(O,R){R==null&&(R=f),O=O||0;var z=e.getDimensionInfo(O);if(!z){var B=e.getDimensionIndex(O);return B>=0?e.getStore().get(B,R):void 0}var F=e.get(z.name,R),H=z&&z.ordinalMeta;return H?H.categories[F]:F}function w(O,R){R==null&&(R=f);var z=e.getItemVisual(R,"style"),B=z&&z.fill,F=z&&z.opacity,H=x(R,al).getItemStyle();B!=null&&(H.fill=B),F!=null&&(H.opacity=F);var Y={inheritColor:W(B)?B:N.color.neutral99},q=_(R,al),oe=je(q,null,Y,!1,!0);oe.text=q.getShallow("show")?J(r.getFormattedLabel(R,al),vn(e,R)):null;var X=dv(q,Y,!1);return E(O,H),H=Vw(H,oe,X),O&&C(H,O),H.legacy=!0,H}function A(O,R){R==null&&(R=f);var z=x(R,Ko).getItemStyle(),B=_(R,Ko),F=je(B,null,null,!0,!0);F.text=B.getShallow("show")?Rt(r.getFormattedLabel(R,Ko),r.getFormattedLabel(R,al),vn(e,R)):null;var H=dv(B,null,!0);return E(O,z),z=Vw(z,F,H),O&&C(z,O),z.legacy=!0,z}function C(O,R){for(var z in R)le(R,z)&&(O[z]=R[z])}function E(O,R){O&&(O.textFill&&(R.textFill=O.textFill),O.textPosition&&(R.textPosition=O.textPosition))}function D(O,R){if(R==null&&(R=f),le(mA,O)){var z=e.getItemVisual(R,"style");return z?z[mA[O]]:null}if(le(fG,O))return e.getItemVisual(R,O)}function L(O){if(o.type==="cartesian2d"){var R=o.getBaseAxis();return Wk(re({axis:R},O))}}function M(){return t.getCurrentSeriesIndices()}function P(O){return Bf(O,t)}}function lte(r){var e={};return T(r.dimensions,function(t){var i=r.getDimensionInfo(t);if(!i.isExtraCoord){var a=i.coordDim,n=e[a]=e[a]||[];n[i.coordDimIndex]=r.getDimensionIndex(t)}}),e}function DA(r,e,t,i,a,n,o){if(!i){n.remove(e);return}var s=NA(r,e,t,i,a,n);return s&&o.setItemGraphicEl(t,s),s&&He(s,i.focus,i.blurScope,i.emphasisDisabled),s}function NA(r,e,t,i,a,n){var o=-1,s=e;e&&bG(e,i,a)&&(o=de(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=RA(i),s&&ate(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),i.tooltipDisabled&&(u.tooltipDisabled=!0),Na.normal.cfg=Na.normal.conOpt=Na.emphasis.cfg=Na.emphasis.conOpt=Na.blur.cfg=Na.blur.conOpt=Na.select.cfg=Na.select.conOpt=null,Na.isLegacy=!1,fte(u,t,i,a,l,Na),ute(u,t,i,a,l),OA(r,u,t,i,Na,a,l),le(i,"info")&&(ao(u).info=i.info);for(var f=0;f<nl.length;f++){var p=nl[f];if(p!==al){var c=hx(i,p),v=kA(i,c,p);SG(p,u,c,v,Na)}}return ote(u,i,a),i.type==="group"&&pte(r,u,t,i,a),o>=0?n.replaceAt(u,o):n.add(u),u}function bG(r,e,t){var i=ao(r),a=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==i.customGraphicType||a==="path"&&dte(n)&&wG(n)!==i.customPathData||a==="image"&&le(o,"image")&&o.image!==i.customImagePath}function ute(r,e,t,i,a){var n=t.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&bG(o,n,i)&&(o=null),o||(o=RA(n),r.setClipPath(o)),OA(null,o,e,n,null,i,a)}}function fte(r,e,t,i,a,n){if(!(r.isGroup||r.type==="compoundPath")){gG(t,null,n),gG(t,Ko,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=RA(o),r.setTextContent(f)),OA(null,f,e,o,null,i,a);for(var p=o&&o.style,c=0;c<nl.length;c++){var v=nl[c];if(v!==al){var h=n[v].conOpt;SG(v,f,h,kA(o,h,v),null)}}p?f.dirty():f.markRedraw()}}}}function gG(r,e,t){var i=e?hx(r,e):r,a=e?kA(r,i,Ko):r.style,n=r.type,o=i?i.textConfig:null,s=r.textContent,l=s?e?hx(s,e):s:null;if(a&&(t.isLegacy||jy(a,n,!!o,!!l))){t.isLegacy=!0;var u=Jy(a,n,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var p=e?t[e]:t.normal;p.cfg=o,p.conOpt=l}function hx(r,e){return e?r?r[e]:null:r}function kA(r,e,t){var i=e&&e.style;return i==null&&t===Ko&&r&&(i=r.styleEmphasis),i}function pte(r,e,t,i,a){var n=i.children,o=n?n.length:0,s=i.$mergeChildren,l=s==="byName"||i.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){vte({api:r,oldChildren:e.children()||[],newChildren:n||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var p=n[f],c=e.childAt(f);p?(p.ignore==null&&(p.ignore=!1),NA(r,c,t,p,a,e)):c.ignore=!0}for(var v=e.childCount()-1;v>=f;v--){var h=e.childAt(v);cte(e,h,a)}}}function cte(r,e,t){e&&ec(e,ao(r).option,t)}function vte(r){new Er(r.oldChildren,r.newChildren,yG,yG,r).add(xG).update(xG).remove(hte).execute()}function yG(r,e){var t=r&&r.name;return t??rte+e}function xG(r,e){var t=this.context,i=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;NA(t.api,a,t.dataIndex,i,t.seriesModel,t.group)}function hte(r){var e=this.context,t=e.oldChildren[r];t&&ec(t,ao(t).option,e.seriesModel)}function wG(r){return r&&(r.pathData||r.d)}function dte(r){return r&&(le(r,"pathData")||le(r,"d"))}function zA(r){r.registerChartView(_G),r.registerSeriesModel(pG)}var Zu=ue(),TG=ae,VA=K,mte=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,a){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!a&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,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,n,e,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var p=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new te,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var c=be(CG,t,p);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}EG(s,t,!0),this._renderHandle(n)}},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"),a=e.axis,n=a.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&bt(a).w>s)return!0;if(o){var l=c0(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,a,n){},r.prototype.createPointerEl=function(e,t,i,a){var n=t.pointer;if(n){var o=Zu(e).pointerEl=new Ie[n.type](TG(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,a){if(t.label){var n=Zu(e).labelEl=new Ee(TG(t.label));e.add(n),AG(n,a)}},r.prototype.updatePointerEl=function(e,t,i){var a=Zu(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),i(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,a){var n=Zu(e).labelEl;n&&(n.setStyle(t.label.style),i(n,{x:t.label.x,y:t.label.y}),AG(n,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){a&&i.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Qa(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vi(u.event)},onmousedown:VA(this._onHandleDragMove,this,0,0),drift:VA(this._onHandleDragMove,this),ondragend:VA(this._onHandleDragEnd,this)}),i.add(a)),EG(a,t,!1),a.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");V(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Sa(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){CG(this._axisPointerModel,!t&&this._moveAnimation,this._handle,UA(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(UA(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(UA(a)),Zu(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,a=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Oo(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 CG(r,e,t,i){DG(Zu(t).lastProp,i)||(Zu(t).lastProp=i,e?Pe(t,i,r):(t.stopAnimation(),t.attr(i)))}function DG(r,e){if(se(r)&&se(e)){var t=!0;return T(e,function(i,a){t=t&&DG(r[a],i)}),!!t}else return r===e}function AG(r,e){r[e.get(["label","show"])?"show":"hide"]()}function UA(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function EG(r,e,t){var i=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=t)})}var rc=mte;function ic(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 BA(r,e,t,i,a){var n=t.get("value"),o=FA(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=ya(s.get("padding")||0),u=s.getFont(),f=ss(o,u),p=a.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],h=a.align;h==="right"&&(p[0]-=c),h==="center"&&(p[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(p[1]-=v),d==="middle"&&(p[1]-=v/2),gte(p,c,v,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:p[0],y:p[1],style:je(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function gte(r,e,t,i){var a=i.getWidth(),n=i.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,n)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function FA(r,e,t,i,a){r=e.scale.parse(r);var n=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:vp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=u&&u.getDataParams(f);p&&s.seriesData.push(p)}),W(o)?n=o.replace("{value}",n):ee(o)&&(n=o(s))}return n}function zh(r,e,t){var i=it();return Pr(i,i,t.rotation),xr(i,i,t.position),Cr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function dx(r,e,t,i,a,n){var o=Mr.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),BA(e,i,a,n,{position:zh(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ac(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function mx(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function GA(r,e,t,i,a,n){return{cx:r,cy:e,r0:t,r:i,startAngle:a,endAngle:n,clockwise:!0}}function nc(r,e,t){return bt(r,{fromStat:{sers:U(e,function(i){return t.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function oc(r,e,t){return[Ae(Ye(e[0],e[1]),r-t/2),Ye(r+t/2,Ae(e[0],e[1]))]}var yte=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=s.getGlobalExtent(),p=MG(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var v=ic(n),h=xte[u](s,c,f,p,n.get("seriesDataIndices"),n.ecModel);h.style=v,t.graphicKey=h.type,t.pointer=h}var d=vh(l.getRect(),a);dx(i,t,d,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=vh(i.axis.grid.getRect(),i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=zh(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=MG(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,p=[t.x,t.y];p[f]+=i[f],p[f]=Ye(l[1],p[f]),p[f]=Ae(l[0],p[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=p[f];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:t.rotation,cursorPoint:v,tooltipOption:h[f]}},e})(rc);function MG(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var xte={line:function(r,e,t,i){var a=ac([e,i[0]],[e,i[1]],IG(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,i,a,n){var o=nc(r,a,n),s=i[1]-i[0],l=oc(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:mx([u,i[0]],[f-u,s],IG(r))}}};function IG(r){return r.dim==="x"?0:1}var LG=yte;var _te=(function(r){I(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:N.color.border,width:1,type:"dashed"},shadowStyle:{color:N.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:N.color.neutral00,padding:[5,7,5,7],backgroundColor:N.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:N.color.accent40,throttle:40}},e})(Le),PG=_te;var qo=ue(),Ste=T;function yx(r,e,t){if(!Ue.node){var i=e.getZr();qo(i).records||(qo(i).records={}),bte(i,e);var a=qo(i).records[r]||(qo(i).records[r]={});a.handler=t}}function bte(r,e){if(qo(r).initialized)return;qo(r).initialized=!0,t("click",be(HA,"click")),t("mousemove",be(HA,"mousemove")),t("mousewheel",be(HA,"mousewheel")),t("globalout",Tte);function t(i,a){r.on(i,function(n){var o=Cte(e);Ste(qo(r).records,function(s){s&&a(s,n,o.dispatchAction)}),wte(o.pendings,e)})}}function wte(r,e){var t=r.showTip.length,i=r.hideTip.length,a;t?a=r.showTip[t-1]:i&&(a=r.hideTip[i-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function Tte(r,e,t){r.handler("leave",null,t)}function HA(r,e,t,i){e.handler(r,t,i)}function Cte(r){var e={showTip:[],hideTip:[]},t=function(i){var a=e[i.type];a?a.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function Vh(r,e){if(!Ue.node){var t=e.getZr(),i=(qo(t).records||{})[r];i&&(qo(t).records[r]=null)}}var Ate=(function(r){I(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,a){var n=i.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click|mousewheel";yx("axisPointer",a,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){Vh("axisPointer",i)},e.prototype.dispose=function(t,i){Vh("axisPointer",i)},e.type="axisPointer",e})(We),OG=Ate;function Uh(r,e){var t=[],i=r.seriesIndex,a;if(i==null||!(a=e.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=fa(n,r);if(o==null||o<0||V(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),p=f.dim,c=u.dim,v=p==="x"||p==="radius"?1:0,h=n.mapDimension(c),d=[];d[v]=n.get(h,o),d[1-v]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(U(l.dimensions,function(g){return n.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 NG=ue();function WA(r,e,t){var i=r.currTrigger,a=[r.x,r.y],n=r,o=r.dispatchAction||K(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){xx(a)&&(a=Uh({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=xx(a),u=n.axesInfo,f=s.axesInfo,p=i==="leave"||xx(a),c={},v={},h={list:[],map:{}},d={showPointer:be(Dte,v),showTooltip:be(Mte,h)};T(s.coordSysMap,function(g,y){var x=l||g.containPoint(a);T(s.coordSysAxesInfo[y],function(_,S){var b=_.axis,w=Rte(u,_);if(!p&&x&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=b.pointToData(a)),A!=null&&kG(_,A,d,!1,c)}})});var m={};return T(f,function(g,y){var x=g.linkGroup;x&&!v[y]&&T(x.axesInfo,function(_,S){var b=v[S];if(_!==g&&b){var w=b.value;x.mapper&&(w=g.axis.scale.parse(x.mapper(w,zG(_),zG(g)))),m[g.key]=w}})}),T(m,function(g,y){kG(f[y],g,d,!0,c)}),Ite(v,f,c),Lte(h,a,r,o),Pte(f,o,t),c}}function kG(r,e,t,i,a){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Ete(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&k(a,s[0]),!i&&r.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Ete(r,e){var t=e.axis,i=t.dim,a=r,n=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),p,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);c=v.dataIndices,p=v.nestestValue}else{if(c=l.indicesOfNearest(i,f[0],r,t.type==="category"?.5:null),!c.length)return;p=l.getData().get(f[0],c[0])}if(or(p)){var h=r-p,d=Math.abs(h);d<=o&&((d<o||h>=0&&s<0)&&(o=d,s=h,a=p,n.length=0),T(c,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:a}}function Dte(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function Mte(r,e,t,i){var a=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Dp(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:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Ite(r,e,t){var i=t.axesInfo=[];T(e,function(a,n){var o=a.axisPointerModel.option,s=r[n];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Lte(r,e,t,i){if(xx(e)||!r.list.length){i({type:"hideTip"});return}var a=((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:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Pte(r,e,t){var i=t.getZr(),a="axisPointerLastHighlights",n=NG(i)[a]||{},o=NG(i)[a]={};T(r,function(f,p){var c=f.axisPointerModel.option;c.status==="show"&&f.triggerEmphasis&&T(c.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}T(n,function(f,p){!o[p]&&l.push(u(f))}),T(o,function(f,p){!n[p]&&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 Rte(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 zG(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 xx(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function xn(r){Ni.registerAxisPointerClass("CartesianAxisPointer",LG),r.registerComponentModel(PG),r.registerComponentView(OG),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!V(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=kz(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},WA)}function YA(r){Me(d0),Me(xn)}var Ote=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),f=l.getOtherAxis(s).getExtent(),p=s.dataToCoord(i),c=n.get("type");if(c&&c!=="none"){var v=ic(n),h=kte[c](s,l,p,u,f,n.get("seriesDataIndices"),n.ecModel);h.style=v,t.graphicKey=h.type,t.pointer=h}var d=n.get(["label","margin"]),m=Nte(i,a,n,l,d);BA(t,a,n,o,m)},e})(rc);function Nte(r,e,t,i,a){var n=e.axis,o=n.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,f,p;if(n.dim==="radius"){var c=it();Pr(c,c,s),xr(c,c,[i.cx,i.cy]),u=Cr([o,-a],c);var v=e.getModel("axisLabel").get("rotate")||0,h=Mr.innerTextLayout(s,v*Math.PI/180,-1);f=h.textAlign,p=h.textVerticalAlign}else{var d=l[1];u=i.coordToPoint([d+a,o]);var m=i.cx,g=i.cy;f=Math.abs(u[0]-m)/d<.3?"center":u[0]>m?"left":"right",p=Math.abs(u[1]-g)/d<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:f,verticalAlign:p}}var kte={line:function(r,e,t,i,a){return r.dim==="angle"?{type:"Line",shape:ac(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,i,a,n,o){var s=Math.PI/180,l=nc(r,n,o),u;if(r.dim==="angle")u=GA(e.cx,e.cy,a[0],a[1],(-t-l/2)*s,(-t+l/2)*s);else{var f=oc(t,i,l),p=f[0],c=f[1];u=GA(e.cx,e.cy,p,c,0,Math.PI*2)}return{type:"Sector",shape:u}}},VG=Ote;var ea="polar",XA=ea,zte=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,a=this.ecModel;return a.eachComponent(t,function(n){n.getCoordSysModel()===this&&(i=n)},this),i},e.type=ea,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(Le),UG=zte;var ZA=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",$e).models[0]},e.type="polarAxis",e})(Le);st(ZA,Aa);var BG=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(ZA);var FG=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(ZA);var KA=(function(r){I(e,r);function e(t,i){return r.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e})(yr);KA.prototype.dataToRadius=yr.prototype.dataToCoord;KA.prototype.radiusToData=yr.prototype.coordToData;var GG=KA;var Vte=ue(),qA=(function(r){I(e,r);function e(t,i){return r.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),a=t.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=ss(s==null?"":s+"",i.getFont(),"center","top"),p=Math.max(f.height,7),c=p/u;isNaN(c)&&(c=1/0);var v=Math.max(0,Math.floor(c)),h=Vte(t.model),d=h.lastAutoInterval,m=h.lastTickCount;return d!=null&&m!=null&&Math.abs(d-v)<=1&&Math.abs(m-o)<=1&&d>v?v=d:(h.lastTickCount=o,h.lastAutoInterval=v),v},e})(yr);qA.prototype.dataToAngle=yr.prototype.dataToCoord;qA.prototype.angleToData=yr.prototype.coordToData;var HG=qA;var jA=["radius","angle"],Ute=(function(){function r(e){this.dimensions=jA,this.type=ea,this.cx=0,this.cy=0,this._radiusAxis=new GG,this._angleAxis=new HG,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,a=this._radiusAxis;return i.scale.type===e&&t.push(i),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,i){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],i)},r.prototype.pointToData=function(e,t,i){i=i||[];var a=this.pointToCoord(e);return i[0]=this._radiusAxis.radiusToData(a[0],t),i[1]=this._angleAxis.angleToData(a[1],t),i},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=this.getAngleAxis(),n=a.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e,t){t=t||[];var i=e[0],a=e[1]/180*Math.PI;return t[0]=Math.cos(a)*i+this.cx,t[1]=-Math.sin(a)*i+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var a=e.getExtent(),n=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-a[0]*n,endAngle:-a[1]*n,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,p=u*u+f*f,c=this.r,v=this.r0;return c!==v&&p-o<=c*c&&p+o>=v*v},x:this.cx-i[1],y:this.cy-i[1],width:i[1]*2,height:i[1]*2}},r.prototype.convertToPixel=function(e,t,i){var a=WG(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=WG(t);return a===this?this.pointToData(i):null},r})();function WG(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var YG=Ute;function Bte(r,e,t){var i=e.get("center"),a=rt(e,t).refContainer;r.cx=$(i[0],a.width)+a.x,r.cy=$(i[1],a.height)+a.y;var n=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:V(s)||(s=[0,s]);var l=[$(s[0],o),$(s[1],o)];n.inverse?n.setExtent(l[1],l[0]):n.setExtent(l[0],l[1])}function Fte(r,e){var t=this,i=t.getAngleAxis(),a=t.getRadiusAxis();if(Ki(i,ln),Ki(a,ln),Jn(i),Jn(a),i.type==="category"&&!i.onBand){var n=i.getExtent(),o=360/i.scale.count();i.inverse?n[1]+=o:n[1]-=o,i.setExtent(n[0],n[1])}}function Gte(r){return r.mainType==="angleAxis"}function XG(r,e){var t;if(r.type=Kn(e),r.scale=Ca(e,r.type,!1),r.onBand=qn(r.scale,e),r.inverse=e.get("inverse"),Gte(e)){r.inverse=r.inverse!==e.get("clockwise");var i=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(r.inverse?-360:360);r.setExtent(i,a)}e.axis=r,r.model=e}var Hte={dimensions:jA,create:function(r,e){var t=[];return r.eachComponent(XA,function(i,a){var n=new YG(a+"");n.update=Fte;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");XG(o,l),XG(s,u),Bte(n,i,e),t.push(n),i.coordinateSystem=n,n.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")===ea){var a=i.getReferringComponents(XA,$e).models[0],n=i.coordinateSystem=a.coordinateSystem;n&&(Ea(n.getRadiusAxis(),i,ea),Ea(n.getAngleAxis(),i,ea))}}),t}},ZG=Hte;var Wte=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function _x(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function Sx(r){var e=r.getRadiusAxis();return e.inverse?0:1}function KG(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var Yte=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,n=a.polar,o=n.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=[];T(a.getViewLabels(),function(f){if(!f.tick.offInterval){f=ae(f);var p=a.scale;f.coord=a.dataToCoord(sn(p,f.tick)),u.push(f)}}),KG(u),KG(s),T(Wte,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&Xte[f](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e})(Ni),Xte={axisLine:function(r,e,t,i,a,n){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Sx(t),p=f?0:1,c,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";n[p]===0?c=new Ie[v]({shape:{cx:t.cx,cy:t.cy,r:n[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new To({shape:{cx:t.cx,cy:t.cy,r:n[f],r0:n[p]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,i,a,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[Sx(t)],u=U(i,function(f){return new ct({shape:_x(t,[l,l+s],f.coord)})});r.add(mr(u,{style:re(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,i,a,n){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[Sx(t)],f=[],p=0;p<a.length;p++)for(var c=0;c<a[p].length;c++)f.push(new ct({shape:_x(t,[u,u+l],a[p][c].coord)}));r.add(mr(f,{style:re(s.getModel("lineStyle").getLineStyle(),re(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,i,a,n,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");T(o,function(p,c){var v=l,h=p.tick.value,d=n[Sx(t)],m=t.coordToPoint([d+u,p.coord]),g=t.cx,y=t.cy,x=Math.abs(m[0]-g)/d<.3?"center":m[0]>g?"left":"right",_=Math.abs(m[1]-y)/d<.3?"middle":m[1]>y?"top":"bottom";if(s&&s[h]){var S=s[h];se(S)&&S.textStyle&&(v=new Re(S.textStyle,l,l.ecModel))}var b=new Ee({silent:Mr.isLabelSilent(e),style:je(v,{x:m[0],y:m[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:p.formattedLabel,align:x,verticalAlign:_})});if(r.add(b),zr({el:b,componentModel:e,itemName:p.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:p.rawLabel,tickIndex:c}}),f){var w=Mr.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=p.rawLabel,ce(b).eventData=w}},this)},splitLine:function(r,e,t,i,a,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=0;p<i.length;p++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new ct({shape:_x(t,n,i[p].coord)}))}for(var p=0;p<f.length;p++)r.add(mr(f[p],{style:re({stroke:l[p%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,i,a,n){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new ct({shape:_x(t,n,a[u][f].coord)}));r.add(mr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,i,a,n){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=Math.PI/180,c=-i[0].coord*p,v=Math.min(n[0],n[1]),h=Math.max(n[0],n[1]),d=e.get("clockwise"),m=1,g=i.length;m<=g;m++){var y=m===g?i[0].coord:i[m].coord,x=u++%l.length;f[x]=f[x]||[],f[x].push(new Dt({shape:{cx:t.cx,cy:t.cy,r0:v,r:h,startAngle:c,endAngle:-y*p,clockwise:d},silent:!0})),c=-y*p}for(var m=0;m<f.length;m++)r.add(mr(f[m],{style:re({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},qG=Yte;var Zte=["splitLine","splitArea","minorSplitLine"],Kte=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i,a){if(this.group.removeAll(),!!t.get("show")){var n=this._axisGroup,o=this._axisGroup=new te;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),p=s.getMinorTicksCoords(),c=u.getExtent()[0],v=s.getExtent(),h=jte(l,t,c),d=new Mr(t,a,h);d.build(),o.add(d.group),Mo(n,o,t),T(Zte,function(m){t.get([m,"show"])&&!s.scale.isBlank()&&qte[m](this.group,t,l,c,v,f,p)},this)}},e.type="radiusAxis",e})(Ni),qte={splitLine:function(r,e,t,i,a,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),p=Math.PI/180,c=f.getExtent(),v=Math.abs(c[1]-c[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var h=[],d=0;d<n.length;d++){var m=u++%l.length;h[m]=h[m]||[],h[m].push(new Ie[v]({shape:{cx:t.cx,cy:t.cy,r:Math.max(n[d].coord,0),startAngle:-c[0]*p,endAngle:-c[1]*p,clockwise:f.inverse}}))}for(var d=0;d<h.length;d++)r.add(mr(h[d],{style:re({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,i,a,n,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var p=0;p<o[f].length;p++)u.push(new Tr({shape:{cx:t.cx,cy:t.cy,r:o[f][p].coord}}));r.add(mr(u,{style:re({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,i,a,n){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=n[0].coord,c=1;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Dt({shape:{cx:t.cx,cy:t.cy,r0:p,r:n[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),p=n[c].coord}for(var c=0;c<f.length;c++)r.add(mr(f[c],{style:re({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function jte(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var jG=Kte;var Jte=pa();function JG(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var QG=et(oi,Qte);function Qte(r){var e=Go(oi,ea);dp(r,e,function(t){var i=ere(t,oi),a={};jn(t,e,function(n){$te(t,n,i,a)})})}function $te(r,e,t,i){var a=e.getData(),n=JG(e),o=t[n],s=o.offset,l=o.width,u=e.coordinateSystem,f=u.getOtherAxis(r),p=u.cx,c=u.cy,v=e.get("barMinHeight")||0,h=e.get("barMinAngle")||0;i[n]=i[n]||[];for(var d=a.mapDimension(f.dim),m=a.mapDimension(r.dim),g=ti(a,d),y=r.dim!=="radius"||!e.get("roundCap",!0),x=f.dataToCoord(t0(f)),_=0,S=a.count();_<S;_++){var b=a.get(d,_),w=a.get(m,_),A=b>=0?"p":"n",C=x;g&&(i[n][w]||(i[n][w]={p:x,n:x}),C=i[n][w][A]);var E=void 0,D=void 0,L=void 0,M=void 0;if(f.dim==="radius"){var P=f.dataToCoord(b)-x,O=r.dataToCoord(w);ht(P)<v&&(P=(P<0?-1:1)*v),E=C,D=C+P,L=O-s,M=L-l,g&&(i[n][w][A]=D)}else{var R=f.dataToCoord(b,y)-x,z=r.dataToCoord(w);ht(R)<h&&(R=(R<0?-1:1)*h),E=z+s,D=E+l,L=C,M=C+R,g&&(i[n][w][A]=M)}a.setItemLayout(_,{cx:p,cy:c,r0:E,r:D,startAngle:-L*yf/180,endAngle:-M*yf/180,clockwise:L>=M})}}function ere(r,e){var t=Go(e,ea),i=bt(r,{fromStat:{key:t},min:1}).w,a=i,n=0,o="20%",s="30%",l={};jn(r,t,function(m){var g=JG(m);l[g]||n++,l[g]=l[g]||{width:0,maxWidth:0};var y=$(m.get("barWidth"),i),x=$(m.get("barMaxWidth"),i),_=m.get("barGap"),S=m.get("barCategoryGap");y&&!l[g].width&&(y=Ye(a,y),l[g].width=y,a-=y),x&&(l[g].maxWidth=x),_!=null&&(s=_),S!=null&&(o=S)});var u={},f=$(o,i),p=$(s,1),c=(a-f)/(n+(n-1)*p);c=Ae(c,0),T(l,function(m,g){var y=m.maxWidth;y&&y<c&&(y=Ye(y,a),m.width&&(y=Ye(y,m.width)),a-=y,m.width=y,n--)}),c=(a-f)/(n+(n-1)*p),c=Ae(c,0);var v=0,h;T(l,function(m,g){m.width||(m.width=c),h=m,v+=m.width*(1+p)}),h&&(v-=h.width*p);var d=-v/2;return T(l,function(m,g){u[g]=u[g]||{offset:d,width:m.width},d+=m.width*(1+p)}),u}function $G(r,e){Jte(r,function(){var t=Go(e,ea);e0(r,t,e,ea),Rs(t,Ws(t))})}var tre={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},rre={splitNumber:5},ire=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(We);function JA(r){Me(xn),Ni.registerAxisPointerClass("PolarAxisPointer",VG),r.registerCoordinateSystem("polar",ZG),r.registerComponentModel(UG),r.registerComponentView(ire),gn(r,"angle",BG,tre),gn(r,"radius",FG,rre),r.registerComponentView(qG),r.registerComponentView(jG),r.registerLayout(QG),$G(r,oi)}function Bh(r,e){e=e||{};var t=r.coordinateSystem,i=r.axis,a={},n=i.position,o=i.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[n]:l[0],o==="horizontal"?u.horizontal[n]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var p={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=p[n],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Pt(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var c=r.get(["axisLabel","rotate"]);return a.labelRotate=n==="top"?-c:c,a.z2=1,a}var are=["splitArea","splitLine","breakArea"],nre=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,i,a,n){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new te;var l=Bh(t),u=new Mr(t,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),T(are,function(f){t.get([f,"show"])&&ore[f](this,this.group,this._axisGroup,t,a)},this),Mo(s,this._axisGroup,t),r.prototype.render.call(this,t,i,a,n)},e.prototype.remove=function(){h0(this)},e.type="singleAxis",e})(Ni),ore={splitLine:function(r,e,t,i,a){var n=i.axis;if(!n.scale.isBlank()){var o=i.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=i.coordinateSystem.getRect(),p=n.isHorizontal(),c=[],v=0,h=n.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=0;g<h.length;++g){var y=n.toGlobalCoord(h[g].coord);p?(d[0]=y,d[1]=f.y,m[0]=y,m[1]=f.y+f.height):(d[0]=f.x,d[1]=y,m[0]=f.x+f.width,m[1]=y);var x=new ct({shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},silent:!0});Do(x.shape,u);var _=v++%l.length;c[_]=c[_]||[],c[_].push(x)}for(var S=s.getLineStyle(["color"]),g=0;g<c.length;++g)e.add(mr(c[g],{style:re({stroke:l[g%l.length]},S),silent:!0}))}},splitArea:function(r,e,t,i,a){v0(r,t,i,i)},breakArea:function(r,e,t,i,a){var n=Uo(),o=i.axis.scale;n&&o.type!=="ordinal"&&n.rectCoordBuildBreakAxis(e,r,i,i.coordinateSystem.getRect(),a)}},tH=nre;var sre=(function(r){I(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,i){return this.coordinateSystem.pointToData(t)[0]},e})(yr),rH=sre;var QA=["single"],lre=(function(){function r(e,t,i){this.type=Xs,this.dimension="single",this.dimensions=QA,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=this.dimension,n=Kn(e),o=new rH(a,Ca(e,n,!0),[0,0],n,e.get("position"));o.onBand=qn(o.scale,e),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(e,t){var i=this._axis;Ki(i,ln),Jn(i)},r.prototype.resize=function(e,t){var i=rt(e,t).refContainer;this._rect=Ze(e.getBoxLayoutParams(),i),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),a=i?[0,e.width]:[0,e.height],n=t.inverse?1:0;t.setExtent(a[n],a[1-n]),this._updateAxisTransform(t,i?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var i=e.getExtent(),a=i[0]+i[1],n=e.isHorizontal();e.toGlobalCoord=n?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=n?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),i=this.getAxis(),a=i.orient;return a==="horizontal"?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,i){i=i||[];var a=this.getAxis();return i[0]=a.coordToData(a.toLocalCoord(e[a.orient==="horizontal"?0:1])),i},r.prototype.dataToPoint=function(e,t,i){var a=this.getAxis(),n=this.getRect();i=i||[];var o=a.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[o]=a.toGlobalCoord(a.dataToCoord(+e)),i[1-o]=o===0?n.y+n.height/2:n.x+n.width/2,i},r.prototype.convertToPixel=function(e,t,i){var a=iH(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=iH(t);return a===this?this.pointToData(i):null},r})();function iH(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var aH=lre;function ure(r,e){var t=[];return r.eachComponent(m0,function(i,a){var n=new aH(i,r,e);n.name="single_"+a,n.resize(i,e),i.coordinateSystem=n,t.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")===Hz){var a=i.getReferringComponents(m0,$e).models[0],n=i.coordinateSystem=a&&a.coordinateSystem;n&&Ea(n.getAxis(),i,Xs)}}),t}var fre={create:ure,dimensions:QA},nH=fre;var oH=["x","y"],pre=["width","height"],cre=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.coordinateSystem,u=Tx(s),f=bx(l,u),p=bx(l,1-u),c=l.dataToPoint(i)[0],v=n.get("type");if(v&&v!=="none"){var h=ic(n),d=vre[v](s,c,f,p,n.get("seriesDataIndices"),n.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var m=Bh(a);dx(i,t,m,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=Bh(i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=zh(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.coordinateSystem,l=Tx(o),u=bx(s,l),f=[t.x,t.y];f[l]+=i[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var p=bx(s,1-l),c=(p[1]+p[0])/2,v=[c,c];return v[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e})(rc),vre={line:function(r,e,t,i){var a=ac([e,i[0]],[e,i[1]],Tx(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,i,a,n){var o=nc(r,a,n),s=i[1]-i[0],l=oc(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:mx([u,i[0]],[f-u,s],Tx(r))}}};function Tx(r){return r.isHorizontal()?0:1}function bx(r,e){var t=r.getRect();return[t[oH[e]],t[oH[e]]+t[pre[e]]]}var sH=cre;var hre=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(We);function $A(r){Me(xn),Ni.registerAxisPointerClass("SingleAxisPointer",sH),r.registerComponentView(hre),r.registerComponentView(tH),r.registerComponentModel(g0),gn(r,"single",g0,g0.defaultOption),r.registerCoordinateSystem("single",nH)}var dre=(function(r){I(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,a){var n=Li(t);r.prototype.init.apply(this,arguments),lH(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),lH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:N.color.axisLine,width:1,type:"solid"}},itemStyle:{color:N.color.neutral00,borderWidth:1,borderColor:N.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:N.size.s,color:N.color.secondary},monthLabel:{show:!0,position:"start",margin:N.size.s,align:"center",formatter:null,color:N.color.secondary},yearLabel:{show:!0,position:null,margin:N.size.xl,formatter:null,color:N.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(Le);function lH(r,e){var t=r.cellSize,i;V(t)?i=t:i=r.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var a=U([0,1],function(n){return XP(e,n)&&(i[n]="auto"),i[n]!=null&&i[n]!=="auto"});Ar(r,e,{type:"box",ignoreSize:a})}var uH=dre;var mre=(function(r){I(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,a){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,i,a){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=i.start.time;u<=i.end.time;u=n.getNextNDay(u,1).time){var f=n.dataToCalendarLayout([u],!1).tl,p=new xe({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(p)}},e.prototype._renderLines=function(t,i,a,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var p=i.start,c=0;p.time<=i.end.time;c++){h(p.formatedDate),c===0&&(p=s.getDateInfo(i.start.y+"-"+i.start.m));var v=p.date;v.setMonth(v.getMonth()+1),p=s.getDateInfo(v)}h(s.getNextNDay(i.end.time,1).formatedDate);function h(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToCalendarLayout([d],!1).tl);var m=o._getLinePointsOfOneWeek(t,d,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,n)},e.prototype._getEdgesPoints=function(t,i,a){var n=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return n[0][o]=n[0][o]-i/2,n[1][o]=n[1][o]+i/2,n},e.prototype._drawSplitline=function(t,i,a){var n=new mt({z2:20,shape:{points:t},style:i});a.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,i,a){for(var n=t.coordinateSystem,o=n.getDateInfo(i),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),f=n.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return W(t)&&t?ag(t,i):ee(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,a,n,o){var s=i[0],l=i[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(n==="left"||n==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,a,n){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,p=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,v={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],p],right:[u[c][0],p]},h=i.start.y;+i.end.y>+i.start.y&&(h=h+"-"+i.end.y);var d=o.get("formatter"),m={start:i.start.y,end:i.end.y,nameMap:h},g=this._formatterLabel(d,m),y=new Ee({z2:30,style:je(o,{text:g}),silent:o.get("silent")});y.attr(this._yearTextPositionControl(y,v[l],a,l,s)),n.add(y)}},e.prototype._monthTextPositionControl=function(t,i,a,n,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,i&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),n==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,a,n){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),p=[this._tlpoints,this._blpoints];(!s||W(s))&&(s&&(i=mv(s)||i),s=i.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=f==="center",d=o.get("silent"),m=0;m<p[c].length-1;m++){var g=p[c][m].slice(),y=this._firstDayOfMonth[m];if(h){var x=this._firstDayPoints[m];g[v]=(x[v]+p[0][m+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},w=this._formatterLabel(_,b),A=new Ee({z2:30,style:k(je(o,{text:w}),this._monthTextPositionControl(g,h,a,u,l)),silent:d});n.add(A)}}},e.prototype._weekTextPositionControl=function(t,i,a,n,o){var s="center",l="middle",u=t[0],f=t[1],p=a==="start";return i==="horizontal"?(u=u+n+(p?1:-1)*o[0]/2,s=p?"right":"left"):(f=f+n+(p?1:-1)*o[1]/2,l=p?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,i,a,n,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),p=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||W(f)){f&&(i=mv(f)||i);var v=i.get(["time","dayOfWeekShort"]);f=v||U(i.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var h=l.getNextNDay(a.end.time,7-a.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];p=$(p,Math.min(d[1],d[0])),u==="start"&&(h=l.getNextNDay(a.start.time,-(7+a.fweek)).time,p=-p);for(var m=s.get("silent"),g=0;g<7;g++){var y=l.getNextNDay(h,g),x=l.dataToCalendarLayout([y.time],!1).center,_=g;_=Math.abs((g+c)%7);var S=new Ee({z2:30,style:k(je(s,{text:f[_]}),this._weekTextPositionControl(x,n,u,p,d)),silent:m});o.add(S)}}},e.type="calendar",e})(We),fH=mre;var eE=864e5,gre=(function(){function r(e,t,i){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,i)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=Xr(e);var t=e.getFullYear(),i=e.getMonth()+1,a=i<10?"0"+i:""+i,n=e.getDate(),o=n<10?"0"+n:""+n,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,a=["width","height"],n=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];T([0,1],function(p){f(n,p)&&(o[a[p]]=n[p]*s[p])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Ze(o,l);T([0,1],function(p){f(n,p)||(n[p]=u[a[p]]/s[p])});function f(p,c){return p[c]!=null&&p[c]!=="auto"}this._sw=n[0],this._sh=n[1]},r.prototype.dataToPoint=function(e,t,i){i=i||[],V(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),n=this._rangeInfo,o=a.formatedDate;if(t&&!(a.time>=n.start.time&&a.time<n.end.time+eE))return i[0]=i[1]=NaN,i;var s=a.day,l=this._getRangeInfo([n.start.time,o]).nthWeek;return this._orient==="vertical"?(i[0]=this._rect.x+s*this._sw+this._sw/2,i[1]=this._rect.y+l*this._sh+this._sh/2):(i[0]=this._rect.x+l*this._sw+this._sw/2,i[1]=this._rect.y+s*this._sh+this._sh/2),i},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,i){i=i||{};var a=i.rect=i.rect||{},n=i.contentRect=i.contentRect||{},o=this.dataToPoint(e,t);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,fe.copy(n,a),ma(n,this._lineWidth/2,!0,!0),i},r.prototype.dataToCalendarLayout=function(e,t){var i=this.dataToPoint(e,t);return{center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,t-1,a):this._getDateByWeeksAndDay(t,i-1,a)},r.prototype.convertToPixel=function(e,t,i){var a=tE(t);return a===this?a.dataToPoint(i):null},r.prototype.convertToLayout=function(e,t,i){var a=tE(t);return a===this?a.dataToLayout(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=tE(t);return a===this?a.pointToData(i):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(V(e)&&e.length===1&&(e=e[0]),V(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var a=this.getDateInfo(i),n=a.date;n.setMonth(n.getMonth()+1);var o=this.getNextNDay(n,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var a=Math.floor(t[1].time/eE)-Math.floor(t[0].time/eE)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+a-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)a-=u,n.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),p=i?-f+1:f-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:p,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,i){var a=this._getRangeInfo(i);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var n=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+n),this.getDateInfo(o)},r.create=function(e,t){var i=[];return e.eachComponent("calendar",function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachComponent(function(a,n){Hn({targetModel:n,coordSysType:"calendar",coordSysProvider:fg})}),i},r.dimensions=["time","value"],r})();function tE(r){var e=r.calendarModel,t=r.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}var pH=gre;function rE(r){r.registerComponentModel(uH),r.registerComponentView(fH),r.registerCoordinateSystem("calendar",pH)}var _n={level:1,leaf:2,nonLeaf:3},Sn={none:0,all:1,body:2,corner:3};function iE(r,e,t){var i=e[De[t]].getCell(r);return!i&&Ce(r)&&r<0&&(i=e[De[1-t]].getUnitLayoutInfo(t,Math.round(r))),i}function Cx(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function Ax(r,e,t,i,a){cH(r[0],e,a,t,i,0),cH(r[1],e,a,t,i,1)}function cH(r,e,t,i,a,n){r[0]=1/0,r[1]=-1/0;var o=i[n],s=V(o)?o:[o],l=s.length,u=!!t;if(l>=1?(vH(r,e,s,u,a,n,0),l>1&&vH(r,e,s,u,a,n,l-1)):r[0]=r[1]=NaN,u){var f=-a[De[1-n]].getLocatorCount(n),p=a[De[n]].getLocatorCount(n)-1;t===Sn.body?f=Ae(0,f):t===Sn.corner&&(p=Ye(-1,p)),p<f&&(f=p=NaN),zt(r[0])&&(r[0]=f),zt(r[1])&&(r[1]=p),r[0]=Ae(Ye(r[0],p),f),r[1]=Ae(Ye(r[1],p),f)}}function vH(r,e,t,i,a,n,o){var s=iE(t[o],a,n);if(!s){r[0]=r[1]=NaN;return}var l=s.id[De[n]],u=l,f=_re(s);f&&(u+=f.span[De[n]]-1),r[0]=Ye(r[0],l,u),r[1]=Ae(r[1],l,u)}function Fh(r,e){return zt(r[e][0])||zt(r[e][1])}function aE(r,e,t,i){e=e||yre;for(var a=0;a<i;a++)e[a]=!1;for(;;){for(var n=!1,a=0;a<i;a++){var o=t[a];!e[a]&&o.cellMergeOwner&&xre(r,o.locatorRange)&&(e[a]=!0,n=!0)}if(!n)break}}var yre=[];function xre(r,e){return!hH(r[0],e[0])||!hH(r[1],e[1])?!1:(r[0][0]=Ye(r[0][0],e[0][0]),r[0][1]=Ae(r[0][1],e[0][1]),r[1][0]=Ye(r[1][0],e[1][0]),r[1][1]=Ae(r[1][1],e[1][1]),!0)}function hH(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function nE(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function dH(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function oE(r,e,t,i){var a=iE(e[i][0],t,i),n=iE(e[i][1],t,i);r[De[i]]=r[St[i]]=NaN,a&&n&&(r[De[i]]=a.xy,r[St[i]]=n.xy+n.wh-a.xy)}function sc(r,e,t,i){return r[De[e]]=t,r[De[1-e]]=i,r}function _re(r){return r&&(r.type===_n.leaf||r.type===_n.nonLeaf)?r:null}function Ku(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var sE=(function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=Sre(e);var i=t.get("data",!0),a=t.get("length",!0);if(i!=null&&!V(i)&&(i=[]),i)this._initByDimModelData(i);else if(a!=null){i=Array(a);for(var n=0;n<a;n++)i[n]=null;this._initByDimModelData(i)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,i=t._cells,a=t._levels,n=[],o=0;t._leavesCount=s(e,0,0),l();return;function s(u,f,p){var c=0;return u&&T(u,function(v,h){var d=!1,m;W(v)?m={value:v}:se(v)?(m=v,v.value!=null&&!W(v.value)&&(d=!0,m={value:null})):(m={value:null},v!=null&&(d=!0));var g={type:_n.nonLeaf,ordinal:NaN,level:p,firstLeafLocator:f,id:new ye,span:sc(new ye,t.dimIdx,1,1),option:m,xy:NaN,wh:NaN,dim:t,rect:Ku()};o++,(n[f]||(n[f]=[])).push(g),a[p]||(a[p]={type:_n.level,xy:NaN,wh:NaN,option:null,id:new ye,dim:t});var y=s(m.children,f,p+1),x=Math.max(1,y);g.span[De[t.dimIdx]]=x,c+=x,f+=x}),c}function l(){for(var u=[];i.length<o;)for(var f=0;f<n.length;f++){var p=n[f].pop();if(p){p.ordinal=u.length;var c=p.option.value;u.push(c),i.push(p),t._uniqueValueGen.calcDupBase(c)}}t._uniqueValueGen.ensureValueUnique(u,i);var v=t._ordinalMeta=new Ls({categories:u,needCollect:!1,deduplication:!1});t._scale=new bu({ordinalMeta:v});for(var h=0;h<t._leavesCount;h++){var d=t._cells[h];d.type=_n.leaf,d.span[De[1-t.dimIdx]]=t._levels.length-d.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:_n.level,xy:NaN,wh:NaN,option:null,id:new ye,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new Ls({needCollect:!0,deduplication:!0,onCollect:function(i,a){var n=e._cells[a]={type:_n.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new ye,span:sc(new ye,e.dimIdx,1,1),option:{value:i+""},xy:NaN,wh:NaN,dim:e,rect:Ku()};e._leavesCount++,e._setCellId(n)}});e._scale=new bu({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,i=this.dimIdx;sc(e.id,i,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;T(this._cells,function(i){sc(i.id,t,i.firstLeafLocator,i.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,i=this._model.get("levels",!0);i=V(i)?i:[],T(this._levels,function(a,n){sc(a.id,t,0,n-e),a.option=i[n]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,i,a){if(e=e||new Xa,t===this.dimIdx){var n=this._leavesCount,o=i!=null?Math.max(0,i):0;a=a!=null?Math.min(a,n):n,e.reset(this._cells,o,o+a)}else{var n=this._levels.length,o=i!=null?Math.max(0,i+n):0;a=a!=null?Math.min(a,n):n,e.reset(this._levels,o,o+a)}return e},r.prototype.resetCellIterator=function(e){return(e||new Xa).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new Xa).reset(this._levels,0)},r.prototype.getLayout=function(e,t,i){var a=this.getUnitLayoutInfo(t,i);e[De[t]]=a?a.xy:NaN,e[St[t]]=a?a.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return zt(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r})();function Sre(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),i=0;function a(s){var l;s!=null&&(l=s.match(t))&&(i=Ae(i,+l[1]+1))}function n(){return""+e+i++}function o(s,l){for(var u=Z(),f=0;f<s.length;f++){var p=s[f];(p==null||u.get(p)!=null)&&(s[f]=p=n(),l[f].option=re({value:p},l[f].option)),u.set(p,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var uE=(function(){function r(e,t,i){this._model=t,this._dims=i,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=Z(),i()),t;function i(){var n=[],o=e._model.getShallow("data");o&&!V(o)&&(o=null),T(o,function(h,d){if(!(!se(h)||!V(h.coord))){var m=Cx([]),g=null;if(Ax(m,g,h.coord,e._dims,h.coordClamp?Sn[e._kind]:Sn.none),!(Fh(m,0)||Fh(m,1))){var y=h&&h.mergeCells,x={id:new ye,span:new ye,locatorRange:m,option:h,cellMergeOwner:y};nE(x,m),n.push(x)}}});for(var s=[],l=0;l<n.length;l++){var u=n[l];if(u.cellMergeOwner){var f=u.locatorRange;aE(f,s,n,l);for(var p=0;p<l;p++)s[p]&&(n[p].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var c=k({},u.option);c.coord=null;var v={id:new ye,span:new ye,locatorRange:f,option:c,cellMergeOwner:!0};nE(v,f),n.push(v)}}}T(n,function(h){var d=a(h.id.x,h.id.y);if(h.cellMergeOwner&&(d.cellMergeOwner=!0,d.span=h.span,d.locatorRange=h.locatorRange,d.spanRect=Ku(),e._cellMergeOwnerList.push(d)),!(!h.cellMergeOwner&&!h.option))for(var m=0;m<h.span.y;m++)for(var g=0;g<h.span.x;g++){var y=a(h.id.x+g,h.id.y+m);y.option=h.option,h.cellMergeOwner&&(y.inSpanOf=d)}})}function a(n,o){var s=mH(n,o),l=t.get(s);return l||(l=t.set(s,{id:new ye(n,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(e){return this._ensureCellMap().get(mH(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!Fh(e,0)&&!Fh(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){lE[0]=e[0][0],lE[1]=e[1][0];var t=this.getCell(lE),i=t&&t.inSpanOf;if(i){dH(e,i.locatorRange);return}}var a=this._cellMergeOwnerList;aE(e,null,a,a.length)},r})();var lE=[];function mH(r,e){return r+"|"+e}var fE={show:!0,color:N.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function pE(r){return{color:"none",borderWidth:1,borderColor:r?"none":N.color.borderTint}}var gH={show:!0,label:fE,itemStyle:pE(!1),silent:void 0,dividerLineStyle:{width:1,color:N.color.border}},bre={label:fE,itemStyle:pE(!1),silent:void 0},wre={label:fE,itemStyle:pE(!0),silent:void 0},Tre={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:gH,y:gH,body:bre,corner:wre,backgroundStyle:{color:"none",borderColor:N.color.axisLine,borderWidth:1},triggerEvent:!1},Cre=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this._dimModels={x:new yH(this.get("x",!0)||{}),y:new yH(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var i=t.x.dim=new sE("x",t.x),a=t.y.dim=new sE("y",t.y),n={x:i,y:a};this._body=new uE("body",new Re(this.getShallow("body")),n),this._corner=new uE("corner",new Re(this.getShallow("corner")),n)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=Tre,e})(Le),yH=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e})(Re);var xH=Cre;var Ex=Math.round,Are=0,Ere=99,Dre={normal:25,special:100},Mre={normal:50,special:125},Ire=(function(r){I(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){this.group.removeAll();var a=this.group,n=t.coordinateSystem,o=n.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,f=l.dim;Lre(a,t,i),Pre(a,t,u,f,i);var p=t.getShallow("borderZ2",!0),c=J(p,Ere),v=c-1,h=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);h.lineWidth=0;var d=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);d.fill="none";var m=cE(o.clone(),h,Are),g=cE(o.clone(),d,c);m.silent=!0,g.silent=!0,a.add(m),a.add(g);var y=u.getUnitLayoutInfo(0,0),x=f.getUnitLayoutInfo(1,0);y&&x&&(u.shouldShow()&&a.add(_H({x1:o.x,y1:x.xy,x2:o.x+o.width,y2:x.xy},s.getModel("dividerLineStyle").getLineStyle(),v)),f.shouldShow()&&a.add(_H({x1:y.xy,y1:o.y,x2:y.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),v)))},e.type="matrix",e})(We);function Lre(r,e,t){i(0),i(1);function i(a){var n=e.getDimensionModel(De[a]),o=n.dim;if(o.shouldShow())for(var s=n.getModel("itemStyle"),l=n.getModel("label"),u=e.getShallow("tooltip",!0),f=[],p=o.resetCellIterator();p.next();){var c=p.item,v={};fe.copy(v,c.rect),ta(f,c.id.x,c.id.y),SH(f,e,r,t,c.option,s,l,n,v,c.option.value,Mre,u,a===0?"x":"y")}}}function Pre(r,e,t,i,a){n("body",e.getBody(),t,i),t.shouldShow()&&i.shouldShow()&&n("corner",e.getCorner(),i,t);function n(o,s,l,u){var f=new Re(e.getShallow(o,!0)),p=f.getModel("itemStyle"),c=f.getModel("label"),v=new Xa,h=new Xa,d=[],m=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(h,1);h.next();)for(l.resetLayoutIterator(v,0);v.next();){var g=v.item,y=h.item;ta(d,g.id.x,y.id.y);var x=s.getCell(d);if(!(x&&x.inSpanOf&&x.inSpanOf!==x)){var _={};x&&x.span?fe.copy(_,x.spanRect):(g.dim.getLayout(_,0,d[0]),y.dim.getLayout(_,1,d[1]));var S=x?x.option:null;SH(d,e,r,a,S,p,c,f,_,S?S.value:null,Dre,m,o)}}}}function SH(r,e,t,i,a,n,o,s,l,u,f,p,c){var v;Dx.option=a?a.itemStyle:null,Dx.parentModel=n,lc.option=a,lc.parentModel=s;var h=J(lc.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),d=p&&p.show,m=cE(l,Dx.getItemStyle(),h);t.add(m);var g=lc.get("cursor");g!=null&&m.attr("cursor",g);var y;if(u!=null){var x=u+"";qu.option=a?a.label:null,qu.parentModel=o,qu.ecModel=i;var _=qu.getShallow("formatter");if(_){var S={componentType:"matrix",componentIndex:e.componentIndex,name:x,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(W(_))x=ag(_,S);else if(ee(_)){var b=_(S);b!=null&&(x=b+"")}}if(ot(m,{normal:qu},{defaultText:x,autoOverflowArea:!0,layoutRect:ae(m.shape)}),y=m.getTextContent(),y){y.z2=h+1;var w=y.style;if(w&&w.overflow&&w.overflow!=="none"&&w.lineOverflow){var A={};fe.copy(A,l),ma(A,(((v=m.style)===null||v===void 0?void 0:v.lineWidth)||0)/2,!0,!0),m.updateInnerText(),y.getLocalTransform(Mx),Zt(Mx,Mx),fe.applyTransform(A,A,Mx),y.setClipPath(new xe({shape:A}))}}zr({el:m,componentModel:e,itemName:x,itemTooltipOption:p,formatterParamsExtra:{xyLocator:r.slice()}})}var C=e.get("triggerEvent",!0);if(y){var E=qu.get("silent");E==null&&(E=!(C||d)),y.silent=E,y.ignoreHostSilent=!0}var D=lc.get("silent");if(D==null&&(D=!m.style||m.style.fill==="none"||!m.style.fill),m.silent=D,C&&m){var L={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:c,name:y&&y.style?y.style.text:void 0,value:u,coord:r.slice()};ce(m).eventData=L}rm(lc),rm(Dx),rm(qu)}var lc=new Re,Dx=new Re,qu=new Re,Mx=[];function cE(r,e,t){var i=e.lineWidth;if(i){var a=r.x+r.width,n=r.y+r.height;r.x=qr(r.x,i,!0),r.y=qr(r.y,i,!0),r.width=qr(a,i,!0)-r.x,r.height=qr(n,i,!0)-r.y}return new xe({shape:r,style:e,z2:t})}function _H(r,e,t){var i=e.lineWidth;return i&&(Ex(r.x1*2)===Ex(r.x2*2)&&(r.x1=r.x2=qr(r.x1,i,!0)),Ex(r.y1*2)===Ex(r.y2*2)&&(r.y1=r.y2=qr(r.y1,i,!0))),new ct({shape:r,style:e,silent:!0,z2:t})}var bH=Ire;var Rre=(function(){function r(e,t,i){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var a=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(e,i)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var i=[];return e.eachComponent("matrix",function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachComponent(function(a,n){Hn({targetModel:n,coordSysType:"matrix",coordSysProvider:fg})}),i},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var i=this._dims,a=this._dimModels,n=this._rect=Ze(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});wH(a,i,n,0),wH(a,i,n,1),TH(0,i),TH(1,i),CH(this._model.getBody(),i),CH(this._model.getCorner(),i)},r.prototype.dataToPoint=function(e,t,i){return i=i||[],this.dataToLayout(e,t,Gh),i[0]=Gh.rect.x+Gh.rect.width/2,i[1]=Gh.rect.y+Gh.rect.height/2,i},r.prototype.dataToLayout=function(e,t,i){var a=this._dims;i=i||{};var n=i.rect=i.rect||{};n.x=n.y=n.width=n.height=NaN;var o=i.matrixXYLocatorRange=Cx(i.matrixXYLocatorRange);return V(e)&&(Ax(o,null,e,a,J(t&&t.clamp,Sn.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==Sn.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==Sn.body)&&this._model.getCorner().expandRangeByCellMerge(o)),oE(n,o,a,0),oE(n,o,a,1)),i},r.prototype.pointToData=function(e,t,i){var a=this._dims;return AH(oo,0,a,e,t&&t.clamp),AH(oo,1,a,e,t&&t.clamp),i=i||[],i[0]=i[1]=NaN,oo.y===Ir.inCorner&&oo.x===Ir.inBody?EH(oo,i,0,a):oo.x===Ir.inCorner&&oo.y===Ir.inBody?EH(oo,i,1,a):(DH(oo,i,0,a),DH(oo,i,1,a)),i},r.prototype.convertToPixel=function(e,t,i,a){var n=hE(t);return n===this?n.dataToPoint(i,a):void 0},r.prototype.convertToLayout=function(e,t,i,a){var n=hE(t);return n===this?n.dataToLayout(i,a):void 0},r.prototype.convertFromPixel=function(e,t,i,a){var n=hE(t);return n===this?n.pointToData(i,a):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r})(),Gh={rect:Ku()},Ix=new Xa,vE=new Xa;function wH(r,e,t,i){for(var a=1-i,n=e[De[i]],o=e[De[a]],s=o.shouldShow(),l=n.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,i);u.next();)u.item.wh=u.item.xy=NaN;for(var f=t[St[i]],p=n.getLocatorCount(i)+o.getLocatorCount(i),c=new Re,v=o.resetLevelIterator();v.next();)c.option=v.item.option,c.parentModel=r[De[a]],m(v.item,s?c.get("levelSize"):0);for(var h=new Re,d=n.resetCellIterator();d.next();)d.item.type===_n.leaf&&(h.option=d.item.option,h.parentModel=void 0,m(d.item,h.get("size")));function m(w,A){var C=Ore(A,i,t);zt(C)||(w.wh=dE(C,f),f=dE(f-w.wh),p--)}var g=p?f/p:0,y=!p&&f>=1,x=t[De[i]],_=n.getLocatorCount(i)-1,S=new Xa;for(o.resetLayoutIterator(S,i);S.next();)b(S.item);for(n.resetLayoutIterator(S,i);S.next();)b(S.item);function b(w){zt(w.wh)&&(w.wh=g),w.xy=x,w.id[De[i]]===_&&!y&&(w.wh=t[De[i]]+t[St[i]]-w.xy),x+=w.wh}}function TH(r,e){for(var t=e[De[r]].resetCellIterator();t.next();){var i=t.item;Lx(i.rect,r,i.id,i.span,e),Lx(i.rect,1-r,i.id,i.span,e),i.type===_n.nonLeaf&&(i.xy=i.rect[De[r]],i.wh=i.rect[St[r]])}}function CH(r,e){r.travelExistingCells(function(t){var i=t.span;if(i){var a=t.spanRect,n=t.id;Lx(a,0,n,i,e),Lx(a,1,n,i,e)}})}function Lx(r,e,t,i,a){r[St[e]]=0;var n=t[De[e]],o=n<0?a[De[1-e]]:a[De[e]],s=o.getUnitLayoutInfo(e,t[De[e]]);if(r[De[e]]=s.xy,r[St[e]]=s.wh,i[De[e]]>1){var l=o.getUnitLayoutInfo(e,t[De[e]]+i[De[e]]-1);r[St[e]]=l.xy+l.wh-s.xy}}function Ore(r,e,t){var i=xf(r,t[St[e]]);return dE(i,t[St[e]])}function dE(r,e){return Math.max(Math.min(r,J(e,1/0)),0)}function hE(r){var e=r.matrixModel,t=r.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}var Ir={inBody:1,inCorner:2,outside:3},oo={x:null,y:null,point:[]};function AH(r,e,t,i,a){var n=t[De[e]],o=t[De[1-e]],s=n.getUnitLayoutInfo(e,n.getLocatorCount(e)-1),l=n.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),f=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,p=r.point[e]=i[e];if(!l&&!f){r[De[e]]=Ir.outside;return}if(a===Sn.body){l?(r[De[e]]=Ir.inBody,p=Ye(s.xy+s.wh,Ae(l.xy,p)),r.point[e]=p):r[De[e]]=Ir.outside;return}else if(a===Sn.corner){f?(r[De[e]]=Ir.inCorner,p=Ye(f.xy+f.wh,Ae(u.xy,p)),r.point[e]=p):r[De[e]]=Ir.outside;return}var c=l?l.xy:f?f.xy+f.wh:NaN,v=u?u.xy:c,h=s?s.xy+s.wh:c;if(p<v){if(!a){r[De[e]]=Ir.outside;return}p=v}else if(p>h){if(!a){r[De[e]]=Ir.outside;return}p=h}r.point[e]=p,r[De[e]]=c<=p&&p<=h?Ir.inBody:v<=p&&p<=c?Ir.inCorner:Ir.outside}function EH(r,e,t,i){var a=1-t;if(r[De[t]]!==Ir.outside)for(i[De[t]].resetCellIterator(vE);vE.next();){var n=vE.item;if(MH(r.point[t],n.rect,t)&&MH(r.point[a],n.rect,a)){e[t]=n.ordinal,e[a]=n.id[De[a]];return}}}function DH(r,e,t,i){if(r[De[t]]!==Ir.outside){var a=r[De[t]]===Ir.inCorner?i[De[1-t]]:i[De[t]];for(a.resetLayoutIterator(Ix,t);Ix.next();)if(Nre(r.point[t],Ix.item)){e[t]=Ix.item.id[De[t]];return}}}function Nre(r,e){return e.xy<=r&&r<=e.xy+e.wh}function MH(r,e,t){return e[De[t]]<=r&&r<=e[De[t]]+e[St[t]]}var IH=Rre;function mE(r){r.registerComponentModel(xH),r.registerComponentView(bH),r.registerCoordinateSystem("matrix",IH)}function kre(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function LH(r,e){var t;return T(e,function(i){r[i]!=null&&r[i]!=="auto"&&(t=!0)}),t}function zre(r,e,t){var i=k({},t),a=r[e],n=t.$action||"merge";if(n==="merge")if(a){if(0)var o;_e(a,i,!0),Ar(a,i,{ignoreSize:!0}),Gb(t,a),Px(t,a),Px(t,a,"shape"),Px(t,a,"style"),Px(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=i;else n==="replace"?r[e]=i:n==="remove"&&a&&(r[e]=null)}var PH=["transition","enterFrom","leaveTo"],Vre=PH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Px(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var i=t?PH:Vre,a=0;a<i.length;a++){var n=i[a];r[n]==null&&e[n]!=null&&(r[n]=e[n])}}function Ure(r,e){if(r&&(r.hv=e.hv=[LH(e,["left","right"]),LH(e,["top","bottom"])],r.type==="group")){var t=r,i=e;t.width==null&&(t.width=i.width=0),t.height==null&&(t.height=i.height=0)}}var RH=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,i){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,i),this.option.elements=a},e.prototype.optionUpdated=function(t,i){var a=this.option,n=(i?a:t).elements,o=a.elements=i?[]:a.elements,s=[];this._flatten(n,s,null);var l=em(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];T(l,function(f,p){var c=f.newOption;c&&(u.push(c),kre(f,c),zre(o,p,c),Ure(o[p],c))},this),a.elements=Ne(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,i,a){T(t,function(n){if(n){a&&(n.parentOption=a),i.push(n);var o=n.children;o&&o.length&&this._flatten(o,i,n),delete n.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(Le);var OH={path:null,compoundPath:null,group:te,image:pt,text:Ee},ka=ue(),zH=(function(r){I(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._elMap=Z()},e.prototype.render=function(t,i,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var i=t.useElOptionsToUpdate();if(i){var a=this._elMap,n=this.group,o=t.get("z"),s=t.get("zlevel");T(i,function(l){var u=wt(l.id,null),f=u!=null?a.get(u):null,p=wt(l.parentId,null),c=p!=null?a.get(p):n,v=l.type,h=l.style;v==="text"&&h&&l.hv&&l.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=l.textContent,m=l.textConfig;if(h&&jy(h,v,!!m,!!d)){var g=Jy(h,v,!0);!m&&g.textConfig&&(m=l.textConfig=g.textConfig),!d&&g.textContent&&(d=g.textContent)}var y=Bre(l),x=l.$action||"merge",_=x==="merge",S=x==="replace";if(_){var b=!f,w=f;b?w=NH(u,c,l.type,a):(w&&(ka(w).isNew=!1),vx(w)),w&&($p(w,y,t,{isInit:b}),kH(w,l,o,s))}else if(S){Rx(f,l,a,t);var A=NH(u,c,l.type,a);A&&($p(A,y,t,{isInit:!0}),kH(A,l,o,s))}else x==="remove"&&(CA(f,l),Rx(f,l,a,t));var C=a.get(u);if(C&&d)if(_){var E=C.getTextContent();E?E.attr(d):C.setTextContent(new Ee(d))}else S&&C.setTextContent(new Ee(d));if(C){var D=l.clipPath;if(D){var L=D.type,M=void 0,b=!1;if(_){var P=C.getClipPath();b=!P||ka(P).type!==L,M=b?gE(L):P}else S&&(b=!0,M=gE(L));C.setClipPath(M),$p(M,D,t,{isInit:b}),tc(M,D.keyframeAnimation,t)}var O=ka(C);C.setTextConfig(m),O.option=l,Fre(C,t,l),zr({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),tc(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,i){for(var a=t.option.elements,n=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],f=0;f<a.length;f++){var p=a[f],c=wt(p.id,null),v=c!=null?o.get(c):null;if(!(!v||!v.isGroup)){var h=v.parent,d=h===n,m=ka(v),g=ka(h);m.width=$(m.option.width,d?s:g.width)||0,m.height=$(m.option.height,d?l:g.height)||0}}for(var f=a.length-1;f>=0;f--){var p=a[f],c=wt(p.id,null),v=c!=null?o.get(c):null;if(v){var h=v.parent,g=ka(h),y=h===n?{width:s,height:l}:{width:g.width,height:g.height},x={},_=bs(v,p,y,null,{hv:p.hv,boundingMode:p.bounding},x);if(!ka(v).isNew&&_){for(var S=p.transition,b={},w=0;w<u.length;w++){var A=u[w],C=x[A];S&&(il(S)||de(S,A)>=0)?b[A]=C:v[A]=C}Pe(v,b,t,0)}else v.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(a){Rx(a,ka(a).option,i,t._lastGraphicModel)}),this._elMap=Z()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(We);function gE(r){var e=le(OH,r)?OH[r]:Ss(r),t=new e({});return ka(t).type=r,t}function NH(r,e,t,i){var a=gE(t);return e.add(a),i.set(r,a),ka(a).id=r,ka(a).isNew=!0,a}function Rx(r,e,t,i){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(n){Rx(n,e,t,i)}),ec(r,e,i),t.removeKey(ka(r).id))}function kH(r,e,t,i){r.isGroup||T([["cursor",Gt.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(a){var n=a[0];le(e,n)?r[n]=J(e[n],a[1]):r[n]==null&&(r[n]=a[1])}),T(Te(e),function(a){if(a.indexOf("on")===0){var n=e[a];r[a]=ee(n)?n:null}}),le(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Bre(r){return r=k({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Bb),function(e){delete r[e]}),r}function Fre(r,e,t){var i=ce(r).eventData;!r.silent&&!r.ignore&&!i&&(i=ce(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),i&&(i.info=t.info)}function yE(r){r.registerComponentModel(RH),r.registerComponentView(zH),r.registerPreprocessor(function(e){var t=e.graphic;V(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var xE=["x","y","radius","angle","single"],Gre=ue(),Hre=["cartesian2d","polar","singleAxis"];function VH(r){var e=r.get("coordinateSystem");return de(Hre,e)>=0}function za(r){return r+"Axis"}function UH(r,e){var t=Z(),i=[],a=Z();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!a.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){a.set(f.uid,!0),i.push(f),u(f)}function l(f){var p=!1;return f.eachTargetAxis(function(c,v){var h=t.get(c);h&&h[v]&&(p=!0)}),p}function u(f){f.eachTargetAxis(function(p,c){(t.get(p)||t.set(p,[]))[c]=!0})}return i}function Ox(r){var e=r.ecModel,t={infoList:[],infoMap:Z()};return r.eachTargetAxis(function(i,a){var n=e.getComponent(za(i),a);if(n){var o=n.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(n)}}}),t}function BH(r){var e=Gre(Wg(r));return e.axisProxyMap||(e.axisProxyMap=Z())}function uc(r){if(r)return BH(r.ecModel).get(r.uid)}function FH(r,e){BH(r.ecModel).set(r.uid,e)}function Nx(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?uc(t.model):null}var _E=(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})(),Wre=(function(r){I(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,a){var n=GH(t);this.settledOption=n,this.mergeDefaultAndTheme(t,a),this._doInit(n)},e.prototype.mergeOption=function(t){var i=GH(t);_e(this.option,t,!0),_e(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(i[n[0]]=a[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=Z(),a=this._fillSpecifiedTargetAxis(i);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return T(xE,function(a){var n=this.getReferringComponents(za(a),bI);if(n.specified){i=!0;var o=new _E;T(n.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var a=this.ecModel,n=!0;if(n){var o=i==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var p=u[0];if(p){var c=new _E;if(c.add(p.componentIndex),t.set(f,c),n=!1,f==="x"||f==="y"){var v=p.getReferringComponents("grid",$e).models[0];v&&T(u,function(h){p.componentIndex!==h.componentIndex&&v===h.getReferringComponents("grid",$e).models[0]&&c.add(h.componentIndex)})}}}n&&T(xE,function(u){if(n){var f=a.findComponents({mainType:za(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var p=new _E;p.add(f[0].componentIndex),t.set(u,p),n=!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,a=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":a?i[o]=a[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,a){t==null&&(t=this.ecModel.getComponent(za(i),a))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(a,n){T(a.indexList,function(o){t.call(i,n,o)})})},e.prototype.getAxisProxy=function(t,i){return uc(this.getAxisModel(t,i))},e.prototype.getAxisModel=function(t,i){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[i])return this.ecModel.getComponent(za(t),i)},e.prototype.setRawRange=function(t){var i=this.option,a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(i[n[0]]=a[n[0]]=t[n[0]],i[n[1]]=a[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;T(["start","startValue","end","endValue"],function(a){i[a]=t[a]})},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 a=this.findRepresentativeAxisProxy();if(a)return a.getWindow().value}else return this.getAxisProxy(t,i).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return uc(t);for(var i,a=this._targetAxisInfoMap.keys(),n=0;n<a.length;n++)for(var o=a[n],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})(Le);function GH(r){var e={};return T(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var ol=Wre;var Yre=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(ol),HH=Yre;var Xre=(function(r){I(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,a,n){this.dataZoomModel=t,this.ecModel=i,this.api=a},e.type="dataZoom",e})(We),fc=Xre;var Zre=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(fc),WH=Zre;var Kre=(function(){function r(e,t,i,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=i}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getWindow=function(){return ae(this._window)},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(VH(t)){var i=za(this._dimName),a=t.getReferringComponents(i,$e).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ae(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._extent,i=this.getAxisModel().axis,a=i.scale,n=this._dataZoomModel,o=n.getRangePropMode(),s=[0,100],l=[],u=[],f,p=[!1,!1];T(["start","end"],function(x,_){var S=e[x],b=e[x+"Value"];o[_]==="percent"?(S==null&&(S=s[_]),b=Ge(S,s,t),p[_]=!0):(f=!0,b==null?b=t[_]:(b=a.parse(b),a.sanitize&&(b=a.sanitize(b,t))),S=Ge(b,t,s)),u[_]=b==null||isNaN(b)?t[_]:b,l[_]=S==null||isNaN(S)?s[_]:S}),gt(u),gt(l);var c=this._minMaxSpan;f?v(u,l,t,s,!1):v(l,u,s,t,!0);function v(x,_,S,b,w){var A=w?"Span":"ValueSpan";ui(0,x,S,"all",c["min"+A],c["max"+A]);for(var C=0;C<2;C++)_[C]=Ge(x[C],S,b,!0),w&&(_[C]=_[C],p[C]=!0);Ef(_)}var h=Mt(a)||Yn(a),d=i.getExtent(),m=ht(d[1]-d[0]),g=h?0:_f(u,m,.5);T([[0,ua],[1,_r]],function(x){var _=x[0],S=x[1];!p[_]||!isFinite(g)||(u[_]=Be(u[_],g),u[_]=Ye(t[1],Ae(t[0],u[_])),l[_]===s[_]&&(u[_]=t[_],h&&(u[_]=S(u[_]))))}),Ef(u);var y=[Ge(u[0],t,s,!0),Ge(u[1],t,s,!0)];return Ef(y),{value:u,percent:l,percentInverted:y,valuePrecision:g}},r.prototype.reset=function(e,t){if(this.hostedBy(e)){var i=this.getAxisModel().axis;Ki(i,a2);var a=i.scale.rawExtentInfo;this._extent=a.makeNoZoom(),this._updateMinMaxSpan();var n=e.settledOption;t&&(n=re({start:t[0],end:t[1]},n));var o=this._window=this.calculateDataWindow(n),s=o.percent,l=o.value;s[0]!==0&&a.setZoomMM(0,l[0]),s[1]!==100&&a.setZoomMM(1,l[1])}},r.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var i=this._dimName,a=this.getTargetSeriesModels(),n=e.get("filterMode"),o=this._window.value;if(n==="none")return;T(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(n==="weakFilter"){var p=u.getStore(),c=U(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var h,d,m,g=0;g<f.length;g++){var y=p.get(c[g],v),x=!isNaN(y),_=y<o[0],S=y>o[1];if(x&&!_&&!S)return!0;x&&(m=!0),_&&(h=!0),S&&(d=!0)}return m&&h&&d})}else T(f,function(v){if(n==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var h={};h[v]=o,u.selectRange(h)}});T(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._extent;T(["min","max"],function(a){var n=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=Ge(i[0]+o,i,[0,100],!0):n!=null&&(o=Ge(n,[0,100],i,!0)-i[0]),e[a+"Span"]=n,e[a+"ValueSpan"]=o},this)},r})(),YH=Kre;var qre={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(za(o),s);a(o,s,l,n)})})}var t=[];e(function(a,n,o,s){if(!uc(o)){var l=new YH(a,n,s,r);t.push(l),FH(o,l)}});var i=Z();return T(t,function(a){T(a.getTargetSeriesModels(),function(n){i.set(n.uid,n)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var i=[];t.eachTargetAxis(function(a,n){var o=t.getAxisProxy(a,n),s=Nx(t,o);s?i.push([o,s]):o.reset(t,null)}),T(i,function(a){a[0].reset(t,a[1].getWindow().percentInverted)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var a=i.getWindow(),n=a.percent,o=a.value;t.setCalculatedRange({start:n[0],end:n[1],startValue:o[0],endValue:o[1]})}})}},XH=qre;function SE(r){r.registerAction("dataZoom",function(e,t){var i=UH(t,e);T(i,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var jre=pa();function ju(r){jre(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,XH),SE(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function ZH(r){r.registerComponentModel(HH),r.registerComponentView(WH),ju(r)}var Lr=(function(){function r(){}return r})();var KH={};function sl(r,e){KH[r]=e}function kx(r){return KH[r]}var Qre=(function(r){I(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,a){var n=a.getTheme().get("toolbox"),o=n?n.feature:null;o&&(this._themeFeatureOption=k({},o),n.feature={}),r.prototype.init.call(this,t,i,a),o&&(n.feature=o)},e.prototype.optionUpdated=function(){T(this.option.feature,function(t,i){var a=this._themeFeatureOption,n=kx(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(this.ecModel)),a&&a[i]&&(_e(t,a[i]),a[i]=null),_e(t,n.defaultOption))},this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:N.size.m,itemSize:15,itemGap:N.size.s,showTitle:!0,iconStyle:{borderColor:N.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:N.color.accent70}},tooltip:{show:!1,position:"bottom"}},e})(Le),qH=Qre;function zx(r,e){var t=ya(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var a=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 a}var eie=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features=Z()),p=[];T(u,function(y,x){p.push(x)}),new Er(this._featureNames||[],p).add(c).update(c).remove(be(c,null)).execute(),this._featureNames=Ne(p,function(y){return f.hasKey(y)});function c(y,x){var _=y!=null&&x==null,S=y!=null&&x!=null,b=y==null,w=_||S?p[y]:p[x],A=u[w],C=_||S?new Re(A,t,i):null,E=C&&C.get("show"),D;if(_){if(!E)return;if(tie(w))D={onclick:C.option.onclick,featureName:w};else{var L=kx(w);if(!L)return;D=new L}f.set(w,D)}else D=f.get(w);if(b||!E){jH(D)&&D.dispose&&D.dispose(i,a),f.removeKey(w);return}n&&n.newTitle!=null&&n.featureName===w&&(A.title=n.newTitle),_&&(D.uid=Mi("toolbox-feature")),D.model=C,D.ecModel=i,D.api=a,v(C,D,w),C.setIconStatus=function(M,P){var O=this.option,R=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[M]=P,R[M]&&(P==="emphasis"?Or:Nr)(R[M])},jH(D)&&D.render&&D.render(C,i,a,n)}function v(y,x,_){var S=y.getModel("iconStyle"),b=y.getModel(["emphasis","iconStyle"]),w=x instanceof Lr&&x.getIcons?x.getIcons():y.get("icon"),A=y.get("title")||{},C,E;W(w)?(C={},C[_]=w):C=w,W(A)?(E={},E[_]=A):E=A;var D=y.iconPaths={};T(C,function(L,M){var P=Qa(L,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(S.getItemStyle());var O=P.ensureState("emphasis");O.style=b.getItemStyle();var R=new Ee({style:{text:E[M],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:Bf({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},i)},ignore:!0});P.setTextContent(R),zr({el:P,componentModel:t,itemName:M,formatterParamsExtra:{title:E[M]}}),P.__title=E[M],P.on("mouseover",function(){var z=b.getItemStyle(),B=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:b.get("textFill")||z.fill||z.stroke||N.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||B}),R.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",M])!=="emphasis"&&a.leaveEmphasis(this),R.hide()}),(y.get(["iconStatus",M])==="emphasis"?Or:Nr)(P),o.add(P),P.on("click",K(x.onclick,x,i,a,M)),D[M]=P})}var h=rt(t,a).refContainer,d=t.getBoxLayoutParams(),m=t.get("padding"),g=Ze(d,h,m);en(t.get("orient"),o,t.get("itemGap"),g.width,g.height),bs(o,d,h,m),o.add(zx(o.getBoundingRect(),t)),l||o.eachChild(function(y){var x=y.__title,_=y.ensureState("emphasis"),S=_.textConfig||(_.textConfig={}),b=y.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!ee(w)&&x){var A=w.style||(w.style={}),C=ss(x,Ee.makeFont(A)),E=y.x+o.x,D=y.y+o.y+s,L=!1;D+C.height>a.getHeight()&&(S.position="top",L=!0);var M=L?-5-C.height:s+10;E+C.width/2>a.getWidth()?(S.position=["100%",M],A.align="right"):E-C.width/2<0&&(S.position=[0,M],A.align="left")}})},e.prototype.updateView=function(t,i,a,n){T(this._features,function(o){o&&o instanceof Lr&&o.updateView&&o.updateView(o.model,i,a,n)})},e.prototype.dispose=function(t,i){T(this._features,function(a){a&&a instanceof Lr&&a.dispose&&a.dispose(t,i)})},e.type="toolbox",e})(We);function tie(r){return r.indexOf("my")===0}function jH(r){return r instanceof Lr}var JH=eie;var rie=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var a=this.model,n=a.get("name")||t.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||N.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Ue.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=n+"."+s,f.target="_blank",f.href=l;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),v=c[0].indexOf("base64")>-1,h=o?decodeURIComponent(c[1]):c[1];v&&(h=window.atob(h));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=h.length,g=new Uint8Array(m);m--;)g[m]=h.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,S=_.document;S.open("image/svg+xml","replace"),S.write(h),S.close(),_.focus(),S.execCommand("SaveAs",!0,d),document.body.removeChild(x)}}else{var b=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',A=window.open();A.document.write(w),A.document.title=n}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:N.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e})(Lr),QH=rie;var $H="__ec_magicType_stack__";var iie=[["line","bar"],["stack"]],aie=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),a={};return T(t.get("type"),function(n){i[n]&&(a[n]=i[n])}),a},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,a){var n=this.model,o=n.get(["seriesIndex",a]);if(e5[a]){var s={series:[]},l=function(p){var c=p.subType,v=p.id,h=e5[a](c,v,p,n);h&&(re(h,p.option),s.series.push(h));var d=p.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=d.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",x=p.getReferringComponents(y,$e).models[0],_=x.componentIndex;s[y]=s[y]||[];for(var S=0;S<=_;S++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=a==="bar"}}};T(iie,function(p){de(p,a)>=0&&T(p,function(c){n.setIconStatus(c,"normal")})}),n.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=_e({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e})(Lr),e5={line:function(r,e,t,i){if(r==="bar")return _e({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,e,t,i){if(r==="line")return _e({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,e,t,i){var a=t.get("stack")===$H;if(r==="line"||r==="bar")return i.setIconStatus("stack",a?"normal":"emphasis"),_e({id:e,stack:a?"":$H},i.get(["option","stack"])||{},!0)}};ei({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var t5=aie;var Ux=new Array(60).join("-"),pc=" ";function nie(r){var e={},t=[],i=[];return r.eachRawSeries(function(a){var n=a.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=Bk(o);e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function oie(r){var e=[];return T(r,function(t,i){var a=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(U(t.series,function(v){return v.name})),l=[a.model.getCategories()];T(t.series,function(v){var h=v.getRawData();l.push(v.getRawData().mapArray(h.mapDimension(o),function(d){return d}))});for(var u=[s.join(pc)],f=0;f<l[0].length;f++){for(var p=[],c=0;c<l.length;c++)p.push(l[c][f]);u.push(p.join(pc))}e.push(u.join(`
20
+ `))}),e.join(`
21
+
22
+ `+Ux+`
23
+
24
+ `)}function sie(r){return U(r,function(e){var t=e.getRawData(),i=[e.name],a=[];return t.each(t.dimensions,function(){for(var n=arguments.length,o=arguments[n-1],s=t.getName(o),l=0;l<n-1;l++)a[l]=arguments[l];i.push((s?s+pc:"")+a.join(pc))}),i.join(`
25
+ `)}).join(`
26
+
27
+ `+Ux+`
28
+
29
+ `)}function lie(r){var e=nie(r);return{value:Ne([oie(e.seriesGroupByCategoryAxis),sie(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
30
+
31
+ `+Ux+`
32
+
33
+ `),meta:e.meta}}function Vx(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function uie(r){var e=r.slice(0,r.indexOf(`
34
+ `));if(e.indexOf(pc)>=0)return!0}var bE=new RegExp("["+pc+"]+","g");function fie(r){for(var e=r.split(/\n+/g),t=Vx(e.shift()).split(bE),i=[],a=U(t,function(l){return{name:l,data:[]}}),n=0;n<e.length;n++){var o=Vx(e[n]).split(bE);i.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[n]=o[s])}return{series:a,categories:i}}function pie(r){for(var e=r.split(/\n+/g),t=Vx(e.shift()),i=[],a=0;a<e.length;a++){var n=Vx(e[a]);if(n){var o=n.split(bE),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[a]={name:s,value:[]},l=i[a].value):l=i[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?i[a].value=l[0]:i[a]=l[0])}}return{name:t,data:i}}function cie(r,e){var t=r.split(new RegExp(`
35
+ *`+Ux+`
36
+ *`,"g")),i={series:[]};return T(t,function(a,n){if(uie(a)){var o=fie(a),s=e[n],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=pie(a);i.series.push(o)}}),i}var vie=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var a=i.getDom(),n=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=n.get("backgroundColor")||N.color.neutral00;var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin:10px 20px",s.style.color=n.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var p=n.get("optionToContent"),c=n.get("contentToOption"),v=lie(t);if(ee(p)){var h=p(i.getOption());W(h)?u.innerHTML=h:Jo(h)&&u.appendChild(h)}else{f.readOnly=n.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=n.get("textColor"),d.borderColor=n.get("textareaBorderColor"),d.backgroundColor=n.get("textareaColor"),f.value=v.value,u.appendChild(f)}var m=v.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),_=document.createElement("div");y+=";background-color:"+n.get("buttonColor"),y+=";color:"+n.get("buttonTextColor");var S=this;function b(){a.removeChild(o),S._dom=null}Tc(x,"click",b),Tc(_,"click",function(){if(c==null&&p!=null||c!=null&&p==null){b();return}var w;try{ee(c)?w=c(u,i.getOption()):w=cie(f.value,m)}catch(A){throw b(),new Error("Data view format error "+A)}w&&i.dispatchAction({type:"changeDataView",newOption:w}),b()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=y,!n.get("readOnly")&&g.appendChild(_),g.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(g),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.dispose=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:N.color.background,textColor:N.color.primary,textareaColor:N.color.background,textareaBorderColor:N.color.border,buttonColor:N.color.accent50,buttonTextColor:N.color.neutral00};return i},e})(Lr);function hie(r,e){return U(r,function(t,i){var a=e&&e[i];if(se(a)&&!V(a)){var n=se(t)&&!V(t);n||(t={value:t});var o=a.name!=null&&t.name==null;return t=re(t,a),o&&delete t.name,t}else return t})}ei({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];T(r.newOption.series,function(i){var a=e.getSeriesByName(i.name)[0];if(!a)t.push(k({type:"scatter"},i));else{var n=a.get("data");t.push({name:i.name,data:hie(i.data,n)})}}),e.mergeOption(re({series:t},r.newOption))});var r5=vie;var i5=T,a5=ue();function n5(r,e){var t=wE(r);i5(e,function(i,a){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o[a])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function o5(r){var e=wE(r),t=e[e.length-1];e.length>1&&e.pop();var i={};return i5(t,function(a,n){for(var o=e.length-1;o>=0;o--)if(a=e[o][n],a){i[n]=a;break}}),i}function s5(r){a5(r).snapshots=null}function l5(r){return wE(r).length}function wE(r){var e=a5(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var die=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){s5(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e})(Lr);ei({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var f5=die;var mie=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],gie=(function(){function r(e,t,i){var a=this;this._targetInfoList=[];var n=p5(t,e);T(yie,function(o,s){(!i||!i.include||de(i.include,s)>=0)&&o(n,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,a,n){if((i.coordRanges||(i.coordRanges=[])).push(a),!i.coordRange){i.coordRange=a;var o=TE[i.brushType](0,n,a);i.__rangeOffset={offset:d5[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,i){T(e,function(a){var n=this.findTargetInfo(a,t);n&&n!==!0&&T(n.coordSyses,function(o){var s=TE[a.brushType](1,o,a.range,!0);i(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){T(e,function(i){var a=this.findTargetInfo(i,t);if(i.range=i.range||[],a&&a!==!0){i.panelId=a.panelId;var n=TE[i.brushType](0,a.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?d5[i.brushType](n.values,o.offset,xie(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return U(this._targetInfoList,function(i){var a=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:tx(a),isTargetByCursor:ix(a,e,i.coordSysModel),getLinearBrushOtherExtent:rx(a)}})},r.prototype.controlSeries=function(e,t,i){var a=this.findTargetInfo(e,i);return a===!0||a&&de(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,a=p5(t,e),n=0;n<i.length;n++){var o=i[n],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<c5.length;l++)if(c5[l](a,o))return o}return!0},r})();function CE(r){return r[0]>r[1]&&r.reverse(),r}function p5(r,e){return In(r,e,{includeMainTypes:mie})}var yie={grid:function(r,e){var t=r.xAxisModels,i=r.yAxisModels,a=r.gridModels,n=Z(),o={},s={};!t&&!i&&!a||(T(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),T(i,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),T(a,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,f=[];T(u.getCartesians(),function(p,c){(de(t,p.getAxis("x").model)>=0||de(i,p.getAxis("y").model)>=0)&&f.push(p)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:v5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){T(r.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:v5.geo})})}},c5=[function(r,e){var t=r.xAxisModel,i=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],v5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,e=kT(null,r);return xd(e,e,Nu(null,r)),e}},TE={lineX:be(h5,0),lineY:be(h5,1),rect:function(r,e,t,i){var a=r?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),n=r?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),o=[CE([a[0],n[0]]),CE([a[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,i){var a=[Ot(),Ot()],n=U(t,function(o){var s=r?e.pointToData(o,i):e.dataToPoint(o,i);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:n,xyMinMax:a}}};function h5(r,e,t,i){var a=t.getAxis(["x","y"][r]),n=CE(U([0,1],function(s){return e?a.coordToData(a.toLocalCoord(i[s]),!0):a.toGlobalCoord(a.dataToCoord(i[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var d5={lineX:be(m5,0),lineY:be(m5,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return U(r,function(i,a){return[i[0]-t[0]*e[a][0],i[1]-t[1]*e[a][1]]})}};function m5(r,e,t,i){return[e[0]-i[r]*t[0],e[1]-i[r]*t[1]]}function xie(r,e){var t=g5(r),i=g5(e),a=[t[0]/i[0],t[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function g5(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Hh=gie;var AE=T,_ie=xI("toolbox-dataZoom_");var Sie={x:"width",y:"height"},bie=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){this._brushController||(this._brushController=new qp(a.getZr()),this._brushController.on("brush",K(this._onBrush,this)).mount()),Cie(t,i,this,n,a),Tie(t,i)},e.prototype.onclick=function(t,i,a){wie[a].call(this)},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var a={},n=this.ecModel;this._brushController.updateCovers([]);var o=new Hh(EE(this.model),n,{include:["grid"]});o.matchOutputRanges(i,n,function(u,f,p){if(p.type==="cartesian2d"){var c=p.master.getRect().clone(),v=u.brushType;v==="rect"?(s("x",p,c,f[0]),s("y",p,c,f[1])):s({lineX:"x",lineY:"y"}[v],p,c,f)}}),n5(n,a),this._dispatchZoomAction(a);function s(u,f,p,c){var v=f.getAxis(u),h=v.model,d=l(u,h,n),m=d.findRepresentativeAxisProxy(h).getMinMaxSpan(),g=v.scale.getExtent();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(c=ui(0,c.slice(),g,0,m.minValueSpan,m.maxValueSpan));var y=_f(g,p[Sie[u]],.5);d&&(a[d.id]={dataZoomId:d.id,startValue:isFinite(y)?Be(c[0],y):c[0],endValue:isFinite(y)?Be(c[1],y):c[1]})}function l(u,f,p){var c;return p.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var h=v.getAxisModel(u,f.componentIndex);h&&(c=v)}),c}},e.prototype._dispatchZoomAction=function(t){var i=[];AE(t,function(a,n){i.push(ae(a))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:N.color.backgroundTint}};return i},e})(Lr),wie={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(o5(this.ecModel))}};function EE(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Tie(r,e){r.setIconStatus("back",l5(e)>1?"emphasis":"normal")}function Cie(r,e,t,i,a){var n=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(n=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new Hh(EE(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}$P("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),a=[],n=EE(i),o=In(r,n);AE(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),AE(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var p=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:_ie+u+p};c[f]=p,a.push(c)}return a});var y5=bie;function DE(r){r.registerComponentModel(qH),r.registerComponentView(JH),sl("saveAsImage",QH),sl("magicType",t5),sl("dataView",r5),sl("dataZoom",y5),sl("restore",f5),Me(ZH)}var Aie=(function(r){I(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:N.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:N.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:N.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:N.color.tertiary,fontSize:14}},e})(Le),x5=Aie;function Bx(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function _5(r){if(Ue.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t<i;t++)if(r[t]in e)return r[t]}}var ME=_5(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),S5=_5(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function IE(r,e){if(!r)return e;e=Wf(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function b5(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var Eie=IE(S5,"transition"),LE=IE(ME,"transform"),Die="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ue.transform3dSupported?"will-change:transform;":"");function Mie(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Iie(r,e,t){if(!W(t)||t==="inside")return"";var i=r.get("backgroundColor"),a=r.get("borderWidth");e=$a(e);var n=Mie(t),o=Math.max(Math.round(a)*1.5,6),s="",l=LE+":",u;de(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,p=o+a,c=p*Math.abs(Math.cos(f))+p*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-p)/2)*100)/100;s+=";"+n+":-"+v+"px";var h=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function Lie(r,e,t){var i="cubic-bezier(0.23,1,0.32,1)",a="",n="";return t&&(a=" "+r/2+"s "+i,n="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+i,n+=(n.length?",":"")+(Ue.transformSupported?""+LE+a:",left"+a+",top"+a)),Eie+":"+n}function w5(r,e,t){var i=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Ue.transformSupported)return t?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=Ue.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return t?"top:0;left:0;"+LE+":"+o+";":[["top",0],["left",0],[ME,o]]}function Pie(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont());var a=J(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var n=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return n&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+n),T(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function Rie(r,e,t,i){var a=[],n=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),p=r.getModel("textStyle"),c=Rg(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+v),e&&n>0&&a.push(Lie(n,t,i)),o&&a.push("background-color:"+o),T(["width","color","radius"],function(h){var d="border-"+h,m=Wf(d),g=r.get(m);g!=null&&a.push(d+":"+g+(h==="color"?"":"px"))}),a.push(Pie(p)),c!=null&&a.push("padding:"+ya(c).join("px ")+"px"),a.join(";")+";"}function T5(r,e,t,i,a){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&YD(r,o,t,i,a)}else{r[0]=i,r[1]=a;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Oie=(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,Ue.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),n=t.appendTo,o=n&&(W(n)?document.querySelector(n):Jo(n)?n:ee(n)&&n(e.getDom()));T5(this._styleCoord,a,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=a.handler,f=a.painter.getViewportRoot();ci(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=b5(t,"position"),a=t.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,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,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=Die+Rie(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+w5(n[0],n[1],!0)+("border-color:"+$a(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,a,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(W(n)&&i.get("trigger")==="item"&&!Bx(i)&&(s=Iie(i,a,n)),W(e))o.innerHTML=e+s;else if(e){o.innerHTML="",V(e)||(e=[e]);for(var l=0;l<e.length;l++)Jo(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(T5(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var a=this.el.style,n=w5(i[0],i[1]);T(n,function(o){a[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",Ue.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(K(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;XD(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})(),C5=Oie;var Nie=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),E5(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,a,n){var o=this;se(e)&&Ke(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Ee({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Rg(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),T(["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=A5(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 a=this._styleCoord;E5(a,this._zr,e,t),e=a[0],t=a[1];var n=i.style,o=ll(n.borderWidth||0),s=A5(n);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(K(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function ll(r){return Math.max(0,r)}function A5(r){var e=ll(r.shadowBlur||0),t=ll(r.shadowOffsetX||0),i=ll(r.shadowOffsetY||0);return{left:ll(e-t),right:ll(e+t),top:ll(e-i),bottom:ll(e+i)}}function E5(r,e,t,i){r[0]=t,r[1]=i,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var D5=Nie;var kie=new xe({shape:{x:-1,y:-1,width:2,height:2}}),zie=(function(r){I(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(!(Ue.node||!i.getDom())){var a=t.getComponent("tooltip"),n=this._renderMode=TI(a.get("renderMode"));this._tooltipContent=n==="richText"?new D5(i):new C5(i,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,i,a){if(!(Ue.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=a;var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Sa(this,"_updatePosition",50,"fixRate"):Oo(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");yx("itemTooltip",this._api,K(function(a,n,o){i!=="none"&&(i.indexOf(a)>=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,a=this._api,n=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,a,n){if(!(n.from===this.uid||Ue.node||!a.getDom())){var o=M5(n,a);this._ticket="";var s=n.dataByCoordSys,l=Fie(n,i,a);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:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=kie;f.x=n.x,f.y=n.y,f.update(),ce(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,a,n))return;var p=Uh(n,i),c=p.point[0],v=p.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:p.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:a.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(t,i,a,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,n.from!==this.uid&&this._hide(M5(n,a))},e.prototype._manuallyAxisShowTip=function(t,i,a,n){var o=n.seriesIndex,s=n.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),p=Wh([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,i){var a=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=ce(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;rn(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ce(f).dataIndex!=null?l=f:ce(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 a=t.get("showDelay");i=K(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},e.prototype._showAxisTooltip=function(t,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Wh([i.tooltipOption],n),l=this._renderMode,u=[],f=vt("section",{blocks:[],noHeader:!0}),p=[],c=new Og;T(t,function(y){T(y.dataByAxis,function(x){var _=a.getComponent(x.axisDim+"Axis",x.axisIndex),S=x.value,b=_.axis,w=b.scale.parse(S);if(!(!_||S==null)){var A=FA(S,b,a,x.seriesDataIndices,x.valueLabelOpt),C=vt("section",{header:A,noHeader:!Jt(A),sortBlocks:!0,blocks:[]});f.blocks.push(C),T(x.seriesDataIndices,function(E){var D=a.getSeriesByIndex(E.seriesIndex),L=E.dataIndexInside,M=D.getDataParams(L);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=vp(_.axis,{value:w}),M.axisValueLabel=A,M.marker=c.makeTooltipMarker("item",$a(M.color),l);var P=e1(D.formatTooltip(L,!0,null)),O=P.frag;if(O){var R=Wh([D],n).get("valueFormatter");C.blocks.push(R?k({valueFormatter:R},O):O)}P.text&&p.push(P.text),u.push(M)}})}})}),f.blocks.reverse(),p.reverse();var v=i.position,h=s.get("order"),d=s1(f,c,l,h,a.get("useUTC"),s.get("textStyle"));d&&p.unshift(d);var m=l==="richText"?`
37
+
38
+ `:"<br/>",g=p.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,c)})},e.prototype._showSeriesItemTooltip=function(t,i,a){var n=this._ecModel,o=ce(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,p=o.dataType,c=u.getData(p),v=this._renderMode,h=t.positionDefault,d=Wh([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,p),y=new Og;g.marker=y.makeTooltipMarker("item",$a(g.color),v);var x=e1(u.formatTooltip(f,!1,p)),_=d.get("order"),S=d.get("valueFormatter"),b=x.frag,w=b?s1(S?k({valueFormatter:S},b):b,y,v,_,n.get("useUTC"),d.get("textStyle")):x.text,A="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,g,A,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,a){var n=this._renderMode==="html",o=ce(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(W(l)){var f=l;l={content:f,formatter:f},u=!0}u&&n&&l.content&&(l=ae(l),l.content=Xt(l.content));var p=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&p.push(c),p.push({formatter:l.content});var v=t.positionDefault,h=Wh(p,this._tooltipModel,v?{position:v}:null),d=h.get("content"),m=Math.random()+"",g=new Og;this._showOrMove(h,function(){var y=ae(h.get("formatterParams")||{});this._showTooltipContent(h,d,y,m,t.offsetX,t.offsetY,t.position,i,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,a,n,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var p=this._tooltipContent;p.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var v=i,h=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),d=h.color;if(c)if(W(c)){var m=t.ecModel.get("useUTC"),g=V(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=c,y&&(v=nu(g.axisValue,v,m)),v=Yf(v,a,!0)}else if(ee(c)){var x=K(function(_,S){_===this._ticket&&(p.setContent(S,f,t,d,l),this._updatePosition(t,l,o,s,p,a,u))},this);this._ticket=n,v=c(a,n,x)}else v=c;p.setContent(v,f,t,d,l),p.show(t,d),this._updatePosition(t,l,o,s,p,a,u)}},e.prototype._getNearestPoint=function(t,i,a,n,o){if(a==="axis"||V(i))return{color:n||o};if(!V(i))return{color:n||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var p=o.getSize(),c=t.get("align"),v=t.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),ee(i)&&(i=i([a,n],s,o.el,h,{viewSize:[u,f],contentSize:p.slice()})),V(i))a=$(i[0],u),n=$(i[1],f);else if(se(i)){var d=i;d.width=p[0],d.height=p[1];var m=Ze(d,{width:u,height:f});a=m.x,n=m.y,c=null,v=null}else if(W(i)&&l){var g=Bie(i,h,p,t.get("borderWidth"));a=g[0],n=g[1]}else{var g=Vie(a,n,o,u,f,c?null:20,v?null:20);a=g[0],n=g[1]}if(c&&(a-=I5(c)?p[0]/2:c==="right"?p[0]:0),v&&(n-=I5(v)?p[1]/2:v==="bottom"?p[1]:0),Bx(t)){var g=Uie(a,n,o,u,f);a=g[0],n=g[1]}o.moveTo(a,n)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===t.length;return o&&T(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},p=f.dataByAxis||[];o=o&&u.length===p.length,o&&T(u,function(c,v){var h=p[v]||{},d=c.seriesDataIndices||[],m=h.seriesDataIndices||[];o=o&&c.value===h.value&&c.axisType===h.axisType&&c.axisId===h.axisId&&d.length===m.length,o&&T(d,function(g,y){var x=m[y];o=o&&g.seriesIndex===x.seriesIndex&&g.dataIndex===x.dataIndex}),n&&T(c.seriesDataIndices,function(g){var y=g.seriesIndex,x=i[y],_=n[y];x&&_&&_.data!==x.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){Ue.node||!i.getDom()||(Oo(this,"_updatePosition"),this._tooltipContent.dispose(),Vh("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(We);function Wh(r,e,t){var i=e.ecModel,a;t?(a=new Re(t,i,i),a=new Re(e.option,a,i)):a=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Re&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(a=new Re(o,a,i)))}return a}function M5(r,e){return r.dispatchAction||K(e.dispatchAction,e)}function Vie(r,e,t,i,a,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>i?r-=l+n:r+=n),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function Uie(r,e,t,i,a){var n=t.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function Bie(r,e,t,i){var a=t[0],n=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-a/2,l=e.y+f/2-n/2;break;case"top":s=e.x+u/2-a/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-n/2;break;case"right":s=e.x+u+o,l=e.y+f/2-n/2}return[s,l]}function I5(r){return r==="center"||r==="middle"}function Fie(r,e,t){var i=Kc(r).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=Ln(e,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ce(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var L5=zie;function PE(r){Me(xn),r.registerComponentModel(x5),r.registerComponentView(L5),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},nt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},nt)}var Gie=["rect","polygon","keep","clear"];function RE(r,e){var t=qe(r?r.brush:[]);if(t.length){var i=[];T(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var a=r&&r.toolbox;V(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var n=a.feature||(a.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),cs(s,function(l){return l+""},null),e&&!s.length&&s.push.apply(s,Gie)}}var P5=T;function R5(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Yh(r,e,t){var i={};return P5(e,function(n){var o=i[n]=a();P5(r[n],function(s,l){if(Bt.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new Bt(u),l==="opacity"&&(u=ae(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Bt(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function Fx(r,e,t){var i;T(t,function(a){e.hasOwnProperty(a)&&R5(e[a])&&(i=!0)}),i&&T(t,function(a){e.hasOwnProperty(a)&&R5(e[a])?r[a]=ae(e[a]):delete r[a]})}function O5(r,e,t,i,a,n){var o={};T(r,function(p){var c=Bt.prepareVisualTypes(e[p]);o[p]=c});var s;function l(p){return Pv(t,s,p)}function u(p,c){h1(t,s,p,c)}n==null?t.each(f):t.each([n],f);function f(p,c){s=n==null?p:c;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var h=i.call(a,p),d=e[h],m=o[h],g=0,y=m.length;g<y;g++){var x=m[g];d[x]&&d[x].applyVisual(p,l,u)}}}function N5(r,e,t,i){var a={};return T(r,function(n){var o=Bt.prepareVisualTypes(e[n]);a[n]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(S){return Pv(s,p,S)}function f(S,b){h1(s,p,S,b)}for(var p,c=s.getStore();(p=o.next())!=null;){var v=s.getRawDataItem(p);if(!(v&&v.visualMap===!1))for(var h=i!=null?c.get(l,p):p,d=t(h),m=e[d],g=a[d],y=0,x=g.length;y<x;y++){var _=g[y];m[_]&&m[_].applyVisual(h,u,f)}}}}}function V5(r){var e=r.brushType,t={point:function(i){return k5[e].point(i,t,r)},rect:function(i){return k5[e].rect(i,t,r)}};return t}var k5={lineX:z5(0),lineY:z5(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&zo(t.range,r[0],r[1])},rect:function(r,e,t){var i=t.range;if(!r||i.length<=1)return!1;var a=r.x,n=r.y,o=r.width,s=r.height,l=i[0];if(zo(i,a,n)||zo(i,a+o,n)||zo(i,a,n+s)||zo(i,a+o,n+s)||fe.create(r).contain(l[0],l[1])||Vf(a,n,a+o,n,i)||Vf(a,n,a,n+s,i)||Vf(a+o,n,a+o,n+s,i)||Vf(a,n+s,a+o,n+s,i))return!0}}};function z5(r){var e=["x","y"],t=["width","height"];return{point:function(i,a,n){if(i){var o=n.range,s=i[r];return Xh(s,o)}},rect:function(i,a,n){if(i){var o=n.range,s=[i[e[r]],i[e[r]]+i[t[r]]];return s[1]<s[0]&&s.reverse(),Xh(s[0],o)||Xh(s[1],o)||Xh(o[0],s)||Xh(o[1],s)}}}}function Xh(r,e){return e[0]<=r&&r<=e[1]}var U5=["inBrush","outOfBrush"],OE="__ecBrushSelect",NE="__ecInBrushSelectEvent";function kE(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Hh(e.option,r);t.setInputRanges(e.areas,r)})}var G5=Pn(Hie);function Hie(r,e,t){var i=[],a,n;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),kE(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ae(o.areas),selected:[]};i.push(l);var u=o.option,f=u.brushLink,p=[],c=[],v=[],h=!1;s||(a=u.throttleType,n=u.throttleDelay);var d=U(o.areas,function(S){var b=Zie[S.brushType],w=re({boundingRect:b?b(S):void 0},S);return w.selectors=V5(w),w}),m=Yh(o.option,U5,function(S){S.mappingMethod="fixed"});V(f)&&T(f,function(S){p[S]=1});function g(S){return f==="all"||!!p[S]}function y(S){return!!S.length}r.eachSeries(function(S,b){var w=v[b]=[];S.subType==="parallel"?x(S,b):_(S,b,w)});function x(S,b){var w=S.coordinateSystem;h=h||w.hasAxisBrushed(),g(b)&&w.eachActiveState(S.getData(),function(A,C){A==="active"&&(c[C]=1)})}function _(S,b,w){if(!(!S.brushSelector||Xie(o,b))&&(T(d,function(C){o.brushTargetManager.controlSeries(C,S,r)&&w.push(C),h=h||y(w)}),g(b)&&y(w))){var A=S.getData();A.each(function(C){B5(S,w,A,C)&&(c[C]=1)})}}r.eachSeries(function(S,b){var w={seriesId:S.id,seriesIndex:b,seriesName:S.name,dataIndex:[]};l.selected.push(w);var A=v[b],C=S.getData(),E=g(b)?function(D){return c[D]?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return B5(S,A,C,D)?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"};(g(b)?h:y(A))&&O5(U5,m,C,E)})}),Wie(e,a,n,i,t)}function Wie(r,e,t,i,a){if(a){var n=r.getZr();if(!n[NE]){n[OE]||(n[OE]=Yie);var o=Sa(n,OE,t,e);o(r,i)}}}function Yie(r,e){if(!r.isDisposed()){var t=r.getZr();t[NE]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[NE]=!1}}function B5(r,e,t,i){for(var a=0,n=e.length;a<n;a++){var o=e[a];if(r.brushSelector(i,t,o.selectors,o))return!0}}function Xie(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(V(t)?de(t,e)<0:e!==t)}var Zie={rect:function(r){return F5(r.range)},polygon:function(r){for(var e,t=r.range,i=0,a=t.length;i<a;i++){e=e||[Ot(),Ot()];var n=t[i];n[0]<e[0][0]&&(e[0][0]=n[0]),n[0]>e[0][1]&&(e[0][1]=n[0]),n[1]<e[1][0]&&(e[1][0]=n[1]),n[1]>e[1][1]&&(e[1][1]=n[1])}return e&&F5(e)}};function F5(r){return new fe(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Kie=(function(r){I(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){this.ecModel=t,this.api=i,this.model,(this._brushController=new qp(i.getZr())).on("brush",K(this._onBrush,this)).mount()},e.prototype.render=function(t,i,a,n){this.model=t,this._updateController(t,i,a,n)},e.prototype.updateTransform=function(t,i,a,n){kE(i),this._updateController(t,i,a,n)},e.prototype.updateVisual=function(t,i,a,n){this.updateTransform(t,i,a,n)},e.prototype.updateView=function(t,i,a,n){this._updateController(t,i,a,n)},e.prototype._updateController=function(t,i,a,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:ae(a),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:ae(a),$from:i})},e.type="brush",e})(We),H5=Kie;var qie=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&Fx(a,t,["inBrush","outOfBrush"]);var n=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=U(t,function(i){return W5(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=W5(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:N.color.backgroundTint,borderColor:N.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:N.color.disabled},e})(Le);function W5(r,e){return _e({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Re(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var Y5=qie;var jie=["rect","polygon","lineX","lineY","keep","clear"],Jie=(function(r){I(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a){var n,o,s;i.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,T(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,a){this.render(t,i,a)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),a={};return T(t.get("type",!0),function(n){i[n]&&(a[n]=i[n])}),a},e.prototype.onclick=function(t,i,a){var n=this._brushType,o=this._brushMode;a==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?n:n===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var i={show:!0,type:jie.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e})(Lr),X5=Jie;function zE(r){r.registerComponentView(H5),r.registerComponentModel(Y5),r.registerPreprocessor(RE),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,G5),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},nt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},nt),sl("brush",X5)}var Qie=(function(r){I(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:N.size.m,backgroundColor:N.color.transparent,borderColor:N.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:N.color.primary},subtextStyle:{fontSize:12,color:N.color.quaternary}},e})(Le),$ie=(function(r){I(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,a){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=J(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Ee({style:je(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),p=f.getBoundingRect(),c=t.get("subtext"),v=new Ee({style:je(s,{text:c,fill:s.getTextColor(),y:p.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=t.get("link"),d=t.get("sublink"),m=t.get("triggerEvent",!0);f.silent=!h&&!m,v.silent=!d&&!m,h&&f.on("click",function(){su(h,"_"+t.get("target"))}),d&&v.on("click",function(){su(d,"_"+t.get("subtarget"))}),ce(f).eventData=ce(v).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(f),c&&n.add(v);var g=n.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var x=rt(t,a),_=Ze(y,x.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),n.x=_.x,n.y=_.y,n.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),g=n.getBoundingRect();var b=_.margin,w=t.getItemStyle(["color","opacity"]);w.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:w,subPixelOptimize:!0,silent:!0});n.add(A)}},e.type="title",e})(We);function VE(r){r.registerComponentModel(Qie),r.registerComponentView($ie)}var eae=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],a=t.axisType,n=this._names=[],o;a==="category"?(o=[],T(i,function(u,f){var p=wt(Ya(u),""),c;se(u)?(c=ae(u),c.value=f):c=f,o.push(c),n.push(p)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Tt([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:N.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:N.color.secondary},data:[]},e})(Le),UE=eae;var Z5=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Vr(UE.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:N.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:N.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:N.color.tertiary},itemStyle:{color:N.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:N.color.accent50,borderColor:N.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:N.color.accent50,borderColor:N.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:N.color.accent60},itemStyle:{color:N.color.accent60,borderColor:N.color.accent60},controlStyle:{color:N.color.accent70,borderColor:N.color.accent70}},progress:{lineStyle:{color:N.color.accent30},itemStyle:{color:N.color.accent40}},data:[]}),e})(UE);st(Z5,hu.prototype);var K5=Z5;var tae=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(We),q5=tae;var rae=(function(r){I(e,r);function e(t,i,a,n){var o=r.call(this,t,i,a)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(yr),j5=rae;var BE=Math.PI,J5=ue(),iae=(function(r){I(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){this.api=i},e.prototype.render=function(t,i,a){if(this.model=t,this.api=a,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return vt("nameValue",{noName:!0,value:f})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var a=t.get(["label","position"]),n=t.get("orient"),o=aae(t,i),s;a==null||a==="auto"?s=n==="horizontal"?o.y+o.height/2<i.getHeight()/2?"-":"+":o.x+o.width/2<i.getWidth()/2?"+":"-":W(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:BE/2},p=n==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),v=c.get("show",!0),h=v?c.get("itemSize"):0,d=v?c.get("itemGap"):0,m=h+d,g=t.get(["label","rotate"])||0;g=g*BE/180;var y,x,_,S=c.get("position",!0),b=v&&c.get("showPlayBtn",!0),w=v&&c.get("showPrevBtn",!0),A=v&&c.get("showNextBtn",!0),C=0,E=p;S==="left"||S==="bottom"?(b&&(y=[0,0],C+=m),w&&(x=[C,0],C+=m),A&&(_=[E-h,0],E-=m)):(b&&(y=[E-h,0],E-=m),w&&(x=[0,0],C+=m),A&&(_=[E-h,0],E-=m));var D=[C,E];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:p,orient:n,rotation:f[n],labelRotation:g,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:y,prevBtnPosition:x,nextBtnPosition:_,axisExtent:D,controlSize:h,controlGap:d}},e.prototype._position=function(t,i){var a=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=it(),l=o.x,u=o.y+o.height;xr(s,s,[-l,-u]),Pr(s,s,-BE/2),xr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=y(o),p=y(a.getBoundingRect()),c=y(n.getBoundingRect()),v=[a.x,a.y],h=[n.x,n.y];h[0]=v[0]=f[0][0];var d=t.labelPosOpt;if(d==null||W(d)){var m=d==="+"?0:1;x(v,p,f,1,m),x(h,c,f,1,1-m)}else{var m=d>=0?0:1;x(v,p,f,1,m),h[1]=v[1]+d}a.setPosition(v),n.setPosition(h),a.rotation=n.rotation=t.rotation,g(a),g(n);function g(_){_.originX=f[0][0]-_.x,_.originY=f[1][0]-_.y}function y(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,S,b,w,A){_[w]+=b[w][A]-S[w][A]}},e.prototype._createAxis=function(t,i){var a=i.getData(),n=i.get("axisType")||i.get("type");n!=="category"&&n!=="time"&&(n="value");var o=Ca(i,n,!1);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),Z1(o,{fixMinMax:[!0,!0]});var l=new j5("value",o,t.axisExtent,n);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new te;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,a,n){var o=a.getExtent();if(n.get(["lineStyle","show"])){var s=new ct({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:k({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new ct({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:re({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,a,n){var o=this,s=n.getData(),l=a.scale.getTicks();this._tickSymbols=[],T(l,function(u){var f=a.dataToCoord(u.value),p=s.getItemModel(u.value),c=p.getModel("itemStyle"),v=p.getModel(["emphasis","itemStyle"]),h=p.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:K(o._changeTimeline,o,u.value)},m=Q5(p,c,i,d);m.ensureState("emphasis").style=v.getItemStyle(),m.ensureState("progress").style=h.getItemStyle(),ha(m);var g=ce(m);p.get("tooltip")?(g.dataIndex=u.value,g.dataModel=n):g.dataIndex=g.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,i,a,n){var o=this,s=a.getLabelModel();if(s.get("show")){var l=n.getData(),u=a.getViewLabels();this._tickLabels=[],T(u,function(f){if(!f.tick.offInterval){var p=f.tick.value,c=l.getItemModel(p),v=c.getModel("label"),h=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),m=a.dataToCoord(p),g=new Ee({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:K(o._changeTimeline,o,p),silent:!1,style:je(v,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});g.ensureState("emphasis").style=je(h),g.ensureState("progress").style=je(d),i.add(g),ha(g),J5(g).dataIndex=p,o._tickLabels.push(g)}})}},e.prototype._renderControl=function(t,i,a,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),f=n.getPlayState(),p=n.get("inverse",!0);c(t.nextBtnPosition,"next",K(this._changeTimeline,this,p?"-":"+")),c(t.prevBtnPosition,"prev",K(this._changeTimeline,this,p?"+":"-")),c(t.playPosition,f?"stop":"play",K(this._handlePlayClick,this,!f),!0);function c(v,h,d,m){if(v){var g=Rr(J(n.get(["controlStyle",h+"BtnSize"]),o),o),y=[0,-g/2,g,g],x=nae(n,h+"Icon",y,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:d});x.ensureState("emphasis").style=u,i.add(x),ha(x)}}},e.prototype._renderCurrentPointer=function(t,i,a,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(p){p.draggable=!0,p.drift=K(u._handlePointerDrag,u),p.ondragend=K(u._handlePointerDragend,u),$5(p,u._progressLine,s,a,n,!0)},onUpdate:function(p){$5(p,u._progressLine,s,a,n)}};this._currentPointer=Q5(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var a=this._toAxisCoord(t)[0],n=this._axis,o=gt(n.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=t.model;t._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var i=this._mainGroup.getLocalTransform();return Cr(t,i,!0)},e.prototype._findNearestTick=function(t){var i=this.model.getData(),a=1/0,n,o=this._axis;return i.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<a&&(a=f,n=l)}),n},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var i=this.model.getCurrentIndex();t==="+"?t=i+1:t==="-"&&(t=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),i=this._tickSymbols,a=this._tickLabels;if(i)for(var n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",n<t);if(a)for(var n=0;n<a.length;n++)a&&a[n]&&a[n].toggleState("progress",J5(a[n]).dataIndex<=t)},e.type="timeline.slider",e})(q5);function aae(r,e){return Ze(r.getBoxLayoutParams(),rt(r,e).refContainer,r.get("padding"))}function nae(r,e,t,i){var a=i.style,n=Qa(r.get(["controlStyle",e]),i||{},new fe(t[0],t[1],t[2],t[3]));return a&&n.setStyle(a),n}function Q5(r,e,t,i,a,n){var o=e.get("color");if(a)a.setColor(o),t.add(a),n&&n.onUpdate(a);else{var s=r.get("symbol");a=tt(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),n&&n.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),i=_e({rectHover:!0,z2:100},i,!0);var u=an(r.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var f=Zi(r.get("symbolOffset"),u);f&&(i.x=(i.x||0)+f[0],i.y=(i.y||0)+f[1]);var p=r.get("symbolRotate");return i.rotation=(p||0)*Math.PI/180||0,a.attr(i),a.updateTransform(),a}function $5(r,e,t,i,a,n){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=i.dataToCoord(a.getData().get("value",t));if(n||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var e3=iae;function t3(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,i){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),re({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)})}function FE(r){var e=r&&r.timeline;V(e)||(e=e?[e]:[]),T(e,function(t){t&&oae(t)})}function oae(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),r3(r),Ju(r,"controlPosition")){var i=r.controlStyle||(r.controlStyle={});Ju(i,"position")||(i.position=r.controlPosition),i.position==="none"&&!Ju(i,"show")&&(i.show=!1,delete i.position),delete r.controlPosition}T(r.data||[],function(a){se(a)&&!V(a)&&(!Ju(a,"value")&&Ju(a,"name")&&(a.value=a.name),r3(a))})}function r3(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),i=r.label||r.label||{},a=i.normal||(i.normal={}),n={normal:1,emphasis:1};T(i,function(o,s){!n[s]&&!Ju(a,s)&&(a[s]=o)}),t.label&&!Ju(i,"emphasis")&&(i.emphasis=t.label,delete t.label)}function Ju(r,e){return r.hasOwnProperty(e)}function GE(r){r.registerComponentModel(K5),r.registerComponentView(e3),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),t3(r),r.registerPreprocessor(FE)}function Qu(r,e){if(!r)return!1;for(var t=V(r)?r:[r],i=0;i<t.length;i++)if(t[i]&&t[i][e])return!0;return!1}function Hx(r){Gi(r,"label",["show"])}var Wx=ue(),i3=(function(r){I(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,a){this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ue.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,a,n){var o=this.mainType;a||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Wx(s)[o];if(!l||!l.data){Wx(s)[o]=null;return}u?u._mergeOption(l,i,!0):(n&&Hx(l),T(l.data,function(f){f instanceof Array?(Hx(f[0]),Hx(f[1])):Hx(f)}),u=this.createMarkerModelFromSeries(l,this,i),k(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Wx(s)[o]=u},this)},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return vt("section",{header:this.name,blocks:[vt("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 a=hu.prototype.getDataParams.call(this,t,i),n=this.__hostSeries;return n&&(a.seriesId=n.id,a.seriesName=n.name,a.seriesType=n.subType),a},e.getMarkerModelFromSeries=function(t,i){return Wx(t)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Le);st(i3,hu.prototype);var Hr=i3;var sae=(function(r){I(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,a){return new e(t,i,a)},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})(Hr),a3=sae;function HE(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function lae(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Yx(r,e,t,i,a,n,o){var s=[],l=ti(e,a),u=l?e.getCalculationInfo("stackResultDimension"):a,f=Zh(e,u,r),p=e.hostModel,c=p.indicesOfNearest(t,u,f)[0];s[n]=e.get(i,c),s[o]=e.get(u,c);var v=e.get(a,c),h=Yr(e.get(a,c));return h=Math.min(h,20),h>=0&&(s[o]=+s[o].toFixed(h)),[s,v]}var Xx={min:be(Yx,"min"),max:be(Yx,"max"),average:be(Yx,"average"),median:be(Yx,"median")};function ul(r,e){if(e){var t=r.getData(),i=r.coordinateSystem,a=i&&i.dimensions;if(!lae(e)&&!V(e.coord)&&V(a)){var n=WE(e,t,i,r);if(e=ae(e),e.type&&Xx[e.type]&&n.baseAxis&&n.valueAxis){var o=de(a,n.baseAxis.dim),s=de(a,n.valueAxis.dim),l=Xx[e.type](t,n.valueAxis.dim,n.baseDataDim,n.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||!V(a)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&Xx[e.type]){var f=i.getOtherAxis(u);f&&(e.value=Zh(t,t.mapDimension(f.dim),e.type))}}else for(var p=e.coord,c=0;c<2;c++)Xx[p[c]]&&(p[c]=Zh(t,t.mapDimension(a[c]),p[c]));return e}}function WE(r,e,t,i){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(uae(i,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=i.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function uae(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function fl(r,e){return r&&r.containData&&e.coord&&!HE(e)?r.containData(e.coord):!0}function n3(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!HE(e)&&!HE(t)?r.containZone(e.coord,t.coord):!0}function Zx(r,e){return r?function(t,i,a,n){var o=n<2?t.coord&&t.coord[n]:t.value;return _a(o,e[n])}:function(t,i,a,n){return _a(t.value,e[n])}}function Zh(r,e,t){if(t==="average"){var i=0,a=0;return r.each(e,function(n,o){isNaN(n)||(i+=n,a++)}),i/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var XE=ue(),fae=(function(r){I(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=Z()},e.prototype.render=function(t,i,a){var n=this,o=this.markerGroupMap;o.each(function(s){XE(s).keep=!1}),i.eachSeries(function(s){var l=Hr.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,i,a)}),o.each(function(s){!XE(s).keep&&n.group.remove(s.group)}),pae(i,o,this.type)},e.prototype.markKeep=function(t){XE(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var a=this;T(t,function(n){var o=Hr.getMarkerModelFromSeries(n,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(i?ym(l):nv(l))})}})},e.type="marker",e})(We);function pae(r,e,t){r.eachSeries(function(i){var a=Hr.getMarkerModelFromSeries(i,t),n=e.get(i.id);if(a&&n&&n.group){var o=ga(a),s=o.z,l=o.zlevel;eu(n.group,s,l)}})}var cc=fae;function o3(r,e,t){var i=e.coordinateSystem,a=t.getWidth(),n=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:a,p=u?o?o.height:0:n,c=u&&o?o.x:0,v=u&&o?o.y:0,h,d=$(l.get("x"),f)+c,m=$(l.get("y"),p)+v;if(!isNaN(d)&&!isNaN(m))h=[d,m];else if(e.getMarkerPosition)h=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);h=i.dataToPoint([g,y])}isNaN(d)||(h[0]=d),isNaN(m)||(h[1]=m),r.setItemLayout(s,h)})}var cae=(function(r){I(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,a){i.eachSeries(function(n){var o=Hr.getMarkerModelFromSeries(n,"markPoint");o&&(o3(o.getData(),n,a),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new to),p=vae(o,t,i);i.setData(p),o3(i.getData(),t,n),p.each(function(c){var v=p.getItemModel(c),h=v.getShallow("symbol"),d=v.getShallow("symbolSize"),m=v.getShallow("symbolRotate"),g=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(ee(h)||ee(d)||ee(m)||ee(g)){var x=i.getRawValue(c),_=i.getDataParams(c);ee(h)&&(h=h(x,_)),ee(d)&&(d=d(x,_)),ee(m)&&(m=m(x,_)),ee(g)&&(g=g(x,_))}var S=v.getModel("itemStyle").getItemStyle(),b=v.get("z2"),w=Wn(l,"color");S.fill||(S.fill=w),p.setItemVisual(c,{z2:J(b,0),symbol:h,symbolSize:d,symbolRotate:m,symbolOffset:g,symbolKeepAspect:y,style:S})}),f.updateData(p),this.group.add(f.group),p.eachItemGraphicEl(function(c){c.traverse(function(v){ce(v).dataModel=i})}),this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e})(cc);function vae(r,e,t){var i;r?i=U(r&&r.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return k(k({},u),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new Tt(i,t),n=U(t.get("data"),be(ul,e));r&&(n=Ne(n,be(fl,r)));var o=Zx(!!r,i);return a.initData(n,null,o),a}var s3=cae;function ZE(r){r.registerComponentModel(a3),r.registerComponentView(s3),r.registerPreprocessor(function(e){Qu(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var hae=(function(r){I(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,a){return new e(t,i,a)},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})(Hr),l3=hae;var Kx=ue(),dae=function(r,e,t,i){var a=r.getData(),n;if(V(i))n=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=Pt(i.yAxis,i.xAxis);else{var u=WE(i,a,e,r);s=u.valueAxis;var f=np(a,u.valueDataDim);l=Zh(a,f,o)}var p=s.dim==="x"?0:1,c=1-p,v=ae(i),h={coord:[]};v.type=null,v.coord=[],v.coord[c]=-1/0,h.coord[c]=1/0;var d=t.get("precision");d>=0&&Ce(l)&&(l=+l.toFixed(Math.min(d,20))),v.coord[p]=h.coord[p]=l,n=[v,h,{type:o,valueIndex:i.valueIndex,value:l}]}else n=[]}var m=[ul(r,n[0]),ul(r,n[1]),k({},n[2])];return m[2].type=m[2].type||null,_e(m[2],m[0]),_e(m[2],m[1]),m};function qx(r){return!isNaN(r)&&!isFinite(r)}function u3(r,e,t,i){var a=1-r,n=i.dimensions[r];return qx(e[a])&&qx(t[a])&&e[r]===t[r]&&i.getAxis(n).containData(e[r])}function mae(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(u3(1,t,i,r)||u3(0,t,i,r)))return!0}return fl(r,e[0])&&fl(r,e[1])}function KE(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=$(o.get("x"),a.getWidth()),u=$(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=n.dimensions,p=r.get(f[0],e),c=r.get(f[1],e);s=n.dataToPoint([p,c])}if(Da(n,"cartesian2d")){var v=n.getAxis("x"),h=n.getAxis("y"),f=n.dimensions;qx(r.get(f[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):qx(r.get(f[1],e))&&(s[1]=h.toGlobalCoord(h.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var gae=(function(r){I(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,a){i.eachSeries(function(n){var o=Hr.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=Kx(o).from,u=Kx(o).to;l.each(function(f){KE(l,f,!0,n,a),KE(u,f,!1,n,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Wp);this.group.add(f.group);var p=yae(o,t,i),c=p.from,v=p.to,h=p.line;Kx(i).from=c,Kx(i).to=v,i.setData(h);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");V(d)||(d=[d,d]),V(m)||(m=[m,m]),V(g)||(g=[g,g]),V(y)||(y=[y,y]),p.from.each(function(_){x(c,_,!0),x(v,_,!1)}),h.each(function(_){var S=h.getItemModel(_),b=S.getModel("lineStyle").getLineStyle();h.setItemLayout(_,[c.getItemLayout(_),v.getItemLayout(_)]);var w=S.get("z2");b.stroke==null&&(b.stroke=c.getItemVisual(_,"style").fill),h.setItemVisual(_,{z2:J(w,0),fromSymbolKeepAspect:c.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(_,"symbolOffset"),fromSymbolRotate:c.getItemVisual(_,"symbolRotate"),fromSymbolSize:c.getItemVisual(_,"symbolSize"),fromSymbol:c.getItemVisual(_,"symbol"),toSymbolKeepAspect:v.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(_,"symbolOffset"),toSymbolRotate:v.getItemVisual(_,"symbolRotate"),toSymbolSize:v.getItemVisual(_,"symbolSize"),toSymbol:v.getItemVisual(_,"symbol"),style:b})}),f.updateData(h),p.line.eachItemGraphicEl(function(_){ce(_).dataModel=i,_.traverse(function(S){ce(S).dataModel=i})});function x(_,S,b){var w=_.getItemModel(S);KE(_,S,b,t,n);var A=w.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=Wn(l,"color")),_.setItemVisual(S,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:J(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:J(w.get("symbolRotate",!0),g[b?0:1]),symbolSize:J(w.get("symbolSize"),m[b?0:1]),symbol:J(w.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})(cc);function yae(r,e,t){var i;r?i=U(r&&r.dimensions,function(u){var f=e.getData(),p=f.getDimensionInfo(f.mapDimension(u))||{};return k(k({},p),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new Tt(i,t),n=new Tt(i,t),o=new Tt([],t),s=U(t.get("data"),be(dae,e,r,t));r&&(s=Ne(s,be(mae,r)));var l=Zx(!!r,i);return a.initData(U(s,function(u){return u[0]}),null,l),n.initData(U(s,function(u){return u[1]}),null,l),o.initData(U(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:n,line:o}}var f3=gae;function qE(r){r.registerComponentModel(l3),r.registerComponentView(f3),r.registerPreprocessor(function(e){Qu(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var xae=(function(r){I(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,a){return new e(t,i,a)},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})(Hr),p3=xae;var jx=ue(),_ae=function(r,e,t,i){var a=i[0],n=i[1];if(!(!a||!n)){var o=ul(r,a),s=ul(r,n),l=o.coord,u=s.coord;l[0]=Pt(l[0],-1/0),l[1]=Pt(l[1],-1/0),u[0]=Pt(u[0],1/0),u[1]=Pt(u[1],1/0);var f=rf([{},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 Jx(r){return!isNaN(r)&&!isFinite(r)}function c3(r,e,t,i){var a=1-r;return Jx(e[a])&&Jx(t[a])}function Sae(r,e){var t=e.coord[0],i=e.coord[1],a={coord:t,x:e.x0,y:e.y0},n={coord:i,x:e.x1,y:e.y1};return Da(r,"cartesian2d")?t&&i&&(c3(1,t,i,r)||c3(0,t,i,r))?!0:n3(r,a,n):fl(r,a)||fl(r,n)}function v3(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=$(o.get(t[0]),a.getWidth()),u=$(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var f=r.getValues(["x0","y0"],e),p=r.getValues(["x1","y1"],e),c=n.clampData(f),v=n.clampData(p),h=[];t[0]==="x0"?h[0]=c[0]>v[0]?p[0]:f[0]:h[0]=c[0]>v[0]?f[0]:p[0],t[1]==="y0"?h[1]=c[1]>v[1]?p[1]:f[1]:h[1]=c[1]>v[1]?f[1]:p[1],s=i.getMarkerPosition(h,t,!0)}else{var d=r.get(t[0],e),m=r.get(t[1],e),g=[d,m];n.clampData&&n.clampData(g,g),s=n.dataToPoint(g,!0)}if(Da(n,"cartesian2d")){var y=n.getAxis("x"),x=n.getAxis("y"),d=r.get(t[0],e),m=r.get(t[1],e);Jx(d)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):Jx(m)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var h3=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],bae=(function(r){I(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,a){i.eachSeries(function(n){var o=Hr.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=U(h3,function(p){return v3(s,l,p,n,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new te});this.group.add(f.group),this.markKeep(f);var p=wae(o,t,i);i.setData(p),p.each(function(c){var v=U(h3,function(E){return v3(p,c,E,t,n)}),h=o.getAxis("x").scale,d=o.getAxis("y").scale,m=h.getExtent(),g=d.getExtent(),y=[h.parse(p.get("x0",c)),h.parse(p.get("x1",c))],x=[d.parse(p.get("y0",c)),d.parse(p.get("y1",c))];gt(y),gt(x);var _=!(m[0]>y[1]||m[1]<y[0]||g[0]>x[1]||g[1]<x[0]),S=!_;p.setItemLayout(c,{points:v,allClipped:S});var b=p.getItemModel(c),w=b.getModel("itemStyle").getItemStyle(),A=b.get("z2"),C=Wn(l,"color");w.fill||(w.fill=C,W(w.fill)&&(w.fill=Cl(w.fill,.4))),w.stroke||(w.stroke=C),p.setItemVisual(c,"style",w),p.setItemVisual(c,"z2",J(A,0))}),p.diff(jx(f).data).add(function(c){var v=p.getItemLayout(c),h=p.getItemVisual(c,"z2");if(!v.allClipped){var d=new _t({z2:J(h,0),shape:{points:v.points}});p.setItemGraphicEl(c,d),f.group.add(d)}}).update(function(c,v){var h=jx(f).data.getItemGraphicEl(v),d=p.getItemLayout(c),m=p.getItemVisual(c,"z2");d.allClipped?h&&f.group.remove(h):(h?Pe(h,{z2:J(m,0),shape:{points:d.points}},i,c):h=new _t({shape:{points:d.points}}),p.setItemGraphicEl(c,h),f.group.add(h))}).remove(function(c){var v=jx(f).data.getItemGraphicEl(c);f.group.remove(v)}).execute(),p.eachItemGraphicEl(function(c,v){var h=p.getItemModel(v),d=p.getItemVisual(v,"style");c.useStyle(p.getItemVisual(v,"style")),ot(c,at(h),{labelFetcher:i,labelDataIndex:v,defaultText:p.getName(v)||"",inheritColor:W(d.fill)?Cl(d.fill,1):N.color.neutral99}),ut(c,h),He(c,null,null,h.get(["emphasis","disabled"])),ce(c).dataModel=i}),jx(f).data=p,f.group.silent=i.get("silent")||t.get("silent")},e.type="markArea",e})(cc);function wae(r,e,t){var i,a,n=["x0","y0","x1","y1"];if(r){var o=U(r&&r.dimensions,function(u){var f=e.getData(),p=f.getDimensionInfo(f.mapDimension(u))||{};return k(k({},p),{name:u,ordinalMeta:null})});a=U(n,function(u,f){return{name:u,type:o[f%2].type}}),i=new Tt(a,t)}else a=[{name:"value",type:"float"}],i=new Tt(a,t);var s=U(t.get("data"),be(_ae,e,r,t));r&&(s=Ne(s,be(Sae,r)));var l=r?function(u,f,p,c){var v=u.coord[Math.floor(c/2)][c%2];return _a(v,a[c])}:function(u,f,p,c){return _a(u.value,a[c])};return i.initData(s,null,l),i.hasItemOption=!0,i}var d3=bae;function jE(r){r.registerComponentModel(p3),r.registerComponentView(d3),r.registerPreprocessor(function(e){Qu(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Tae=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"])}},Cae=(function(r){I(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,a){this.mergeDefaultAndTheme(t,a),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,a=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),V(i)&&T(i,function(n,o){W(n)&&(n={type:n}),i[o]=_e(n,Tae(a,n.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,a=0;a<t.length;a++){var n=t[a].get("name");if(this.isSelected(n)){this.select(n),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var p=l.legendVisualProvider,c=p.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&Cf(l)&&i.push(l.name)}),this._availableNames=a;var n=this.get("data")||i,o=Z(),s=U(n,function(l){return(W(l)||Ce(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Re(l,this,this.ecModel))},this);this._data=Ne(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,a=this.get("selectedMode");if(a==="single"){var n=this._data;T(n,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;T(t,function(a){i[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;T(t,function(a){var n=a.get("name",!0);i.hasOwnProperty(n)||(i[n]=!0),i[n]=!i[n]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&de(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:N.size.m,align:"auto",backgroundColor:N.color.transparent,borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:N.color.disabled,inactiveBorderColor:N.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:N.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:N.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:N.color.tertiary,borderWidth:1,borderColor:N.color.border},emphasis:{selectorLabel:{show:!0,color:N.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Le),Kh=Cae;var vc=be,JE=T,Qx=te,Aae=(function(r){I(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 Qx),this.group.add(this._selectorGroup=new Qx),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,a){var n=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,a,l,s,u);var f=rt(t,a).refContainer,p=t.getBoxLayoutParams(),c=t.get("padding"),v=Ze(p,f,c),h=this.layoutInner(t,o,v,n,l,u),d=Ze(re({width:h.width,height:h.height},p),f,c);this.group.x=d.x-h.x,this.group.y=d.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=zx(h,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,a,n,o,s,l){var u=this.getContentGroup(),f=Z(),p=i.get("selectedMode"),c=i.get("triggerEvent"),v=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&v.push(h.id)}),JE(i.getData(),function(h,d){var m=this,g=h.get("name");if(!this.newlineDisabled&&(g===""||g===`
39
+ `)){var y=new Qx;y.newline=!0,u.add(y);return}var x=a.getSeriesByName(g)[0];if(!f.get(g))if(x){var _=x.getData(),S=_.getVisual("legendLineStyle")||{},b=_.getVisual("legendIcon"),w=_.getVisual("style"),A=this._createItem(x,g,d,h,i,t,S,w,b,p,n);A.on("click",vc(m3,g,null,n,v)).on("mouseover",vc(QE,x.name,null,n,v)).on("mouseout",vc($E,x.name,null,n,v)),a.ssr&&A.eachChild(function(C){var E=ce(C);E.seriesIndex=x.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),c&&A.eachChild(function(C){m.packEventData(C,i,x,d,g)}),f.set(g,!0)}else a.eachRawSeries(function(C){var E=this;if(!f.get(g)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(g))return;var L=D.indexOfName(g),M=D.getItemVisual(L,"style"),P=D.getItemVisual(L,"legendIcon"),O=nr(M.fill);O&&O[3]===0&&(O[3]=.2,M=k(k({},M),{fill:di(O,"rgba")}));var R=this._createItem(C,g,d,h,i,t,{},M,P,p,n);R.on("click",vc(m3,null,g,n,v)).on("mouseover",vc(QE,null,g,n,v)).on("mouseout",vc($E,null,g,n,v)),a.ssr&&R.eachChild(function(z){var B=ce(z);B.seriesIndex=C.seriesIndex,B.dataIndex=d,B.ssrType="legend"}),c&&R.eachChild(function(z){E.packEventData(z,i,C,d,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,n,s,l)},e.prototype.packEventData=function(t,i,a,n,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:n,value:o,seriesIndex:a.seriesIndex};ce(t).eventData=s},e.prototype._createSelector=function(t,i,a,n,o){var s=this.getSelectorGroup();JE(t,function(u){var f=u.type,p=new Ee({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(p);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);ot(p,{normal:c,emphasis:v},{defaultText:u.title}),ha(p)})},e.prototype._createItem=function(t,i,a,n,o,s,l,u,f,p,c){var v=t.visualDrawType,h=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),x=n.get("icon");f=x||f||"roundRect";var _=Eae(f,n,l,u,v,m,c),S=new Qx,b=n.getModel("textStyle");if(ee(t.getLegendIcon)&&(!x||x==="inherit"))S.add(t.getLegendIcon({itemWidth:h,itemHeight:d,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;S.add(Dae({itemWidth:h,itemHeight:d,icon:f,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var A=s==="left"?h+5:-5,C=s,E=o.get("formatter"),D=i;W(E)&&E?D=E.replace("{name}",i??""):ee(E)&&(D=E(i));var L=m?b.getTextColor():n.get("inactiveColor");S.add(new Ee({style:je(b,{text:D,x:A,y:d/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var M=new xe({shape:S.getBoundingRect(),style:{fill:"transparent"}}),P=n.getModel("tooltip");return P.get("show")&&zr({el:M,componentModel:o,itemName:i,itemTooltipOption:P.option}),S.add(M),S.eachChild(function(O){O.silent=!0}),M.silent=!p,this.getContentGroup().add(S),ha(S),S.__legendDataIndex=a,S},e.prototype.layoutInner=function(t,i,a,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();en(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),p=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){en("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],h=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"?v[d]+=f[m]+h:p[d]+=c[m]+h,v[1-d]+=f[g]/2-c[g]/2,u.x=v[0],u.y=v[1],l.x=p[0],l.y=p[1];var x={x:0,y:0};return x[m]=f[m]+h+c[m],x[g]=Math.max(f[g],c[g]),x[y]=Math.min(0,c[y]+v[1-d]),x}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(We);function Eae(r,e,t,i,a,n,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),JE(m,function(y,x){m[x]==="inherit"&&(m[x]=g[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");u.decal=!p||p==="inherit"?i.decal:nn(p,o),u.fill==="inherit"&&(u.fill=i[a]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?i:t).opacity),s(u,i);var c=e.getModel("lineStyle"),v=c.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!n){var h=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=h==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Dae(r){var e=r.icon||"roundRect",t=tt(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=N.color.neutral00,t.style.lineWidth=2),t}function m3(r,e,t,i){$E(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r??e}),QE(r,e,t,i)}function QE(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:i})}function $E(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:i})}var $x=Aae;function qh(r,e,t){var i=r==="allSelect"||r==="inverseSelect",a={},n=[];t.eachComponent({mainType:"legend",query:e},function(s){i?s[r]():s[r](e.name),g3(s,a),n.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){T(a,function(l,u){s[l?"select":"unSelect"](u)}),g3(s,o)}),i?{selected:o,legendIndex:n}:{name:e.name,selected:o}}function g3(r,e){var t=e||{};return T(r.getData(),function(i){var a=i.get("name");if(!(a===`
40
+ `||a==="")){var n=r.isSelected(a);le(t,a)?t[a]=t[a]&&n:t[a]=n}}),t}function y3(r){r.registerAction("legendToggleSelect","legendselectchanged",be(qh,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",be(qh,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",be(qh,"inverseSelect")),r.registerAction("legendSelect","legendselected",be(qh,"select")),r.registerAction("legendUnSelect","legendunselected",be(qh,"unSelect"))}var x3=Pn(Mae);function Mae(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 e_(r){r.registerComponentModel(Kh),r.registerComponentView($x),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,x3),r.registerSubTypeDefaulter("legend",function(){return"plain"}),y3(r)}var Iae=(function(r){I(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,a){var n=Li(t);r.prototype.init.call(this,t,i,a),_3(this,t,n)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),_3(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Vr(Kh.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:N.color.accent50,pageIconInactiveColor:N.color.accent10,pageIconSize:15,pageTextStyle:{color:N.color.tertiary},animationDurationUpdate:800}),e})(Kh);function _3(r,e,t){var i=r.getOrient(),a=[1,1];a[i.index]=0,Ar(e,t,{type:"box",ignoreSize:!!a})}var S3=Iae;var b3=te,eD=["width","height"],tD=["x","y"],Lae=(function(r){I(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 b3),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new b3)},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,a,n,o,s,l){var u=this;r.prototype.renderInner.call(this,t,i,a,n,o,s,l);var f=this._controllerGroup,p=i.get("pageIconSize",!0),c=V(p)?p:[p,p];h("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new Ee({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1);function h(d,m){var g=d+"DataIndex",y=Qa(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:K(u._pageGo,u,g,i,n)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(t,i,a,n,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=eD[u],p=tD[u],c=eD[1-u],v=tD[1-u];o&&en("horizontal",l,t.get("selectorItemGap",!0));var h=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=ae(a);o&&(g[f]=a[f]-d[f]-h);var y=this._layoutContentAndController(t,n,g,u,f,c,v,p);if(o){if(s==="end")m[u]+=y[f]+h;else{var x=d[f]+h;m[u]-=x,y[p]-=x}y[f]+=d[f]+h,m[1-u]+=y[v]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[v]=Math.min(y[v],d[v]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,i,a,n,o,s,l,u){var f=this.getContentGroup(),p=this._containerGroup,c=this._controllerGroup;en(t.get("orient"),f,t.get("itemGap"),n?a.width:null,n?null:a.height),en("horizontal",c,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),h=c.getBoundingRect(),d=this._showController=v[o]>a[o],m=[-v.x,-v.y];i||(m[n]=f[u]);var g=[0,0],y=[-h.x,-h.y],x=J(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var _=t.get("pageButtonPosition",!0);_==="end"?y[n]+=a[o]-h[o]:g[n]+=h[o]+x}y[1-n]+=v[s]/2-h[s]/2,f.setPosition(m),p.setPosition(g),c.setPosition(y);var S={x:0,y:0};if(S[o]=d?a[o]:v[o],S[s]=Math.max(v[s],h[s]),S[l]=Math.min(0,h[l]+y[1-n]),p.__rectSize=a[o],d){var b={x:0,y:0};b[o]=Math.max(a[o]-h[o]-x,0),b[s]=S[s],p.setClipPath(new xe({shape:b})),p.__rectSize=b[o]}else c.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Pe(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),S},e.prototype._pageGo=function(t,i,a){var n=this._getPageInfo(i)[t];n!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var a=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",c=i[p]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var n=a.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;n&&o&&n.setStyle("text",W(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),a=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=eD[o],l=tD[o],u=this._findTargetItemIndex(i),f=a.children(),p=f[u],c=f.length,v=c?1:0,h={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return h;var d=_(p);h.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,x=null;m<=c;++m)x=_(f[m]),(!x&&y.e>g.s+n||x&&!S(x,g.s))&&(y.i>g.i?g=y:g=x,g&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=g.i),++h.pageCount)),y=x;for(var m=u-1,g=d,y=d,x=null;m>=-1;--m)x=_(f[m]),(!x||!S(y,x.s))&&g.i<y.i&&(y=g,h.pagePrevDataIndex==null&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=x;return h;function _(b){if(b){var w=b.getBoundingRect(),A=w[l]+b[l];return{s:A,e:A+w[s],i:b.__legendDataIndex}}}function S(b,w){return b.e>=w&&b.s<=w+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,a=this.getContentGroup(),n;return a.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(i=s)}),i??n},e.type="legend.scroll",e})($x),w3=Lae;function rD(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(i)})})}function T3(r){Me(e_),r.registerComponentModel(S3),r.registerComponentView(w3),rD(r)}function iD(r){Me(e_),Me(T3)}var Pae=(function(r){I(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=Vr(ol.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(ol),C3=Pae;var aD=ue();function A3(r,e,t){aD(r).coordSysRecordMap.each(function(i){var a=i.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function E3(r,e){for(var t=aD(r).coordSysRecordMap,i=t.keys(),a=0;a<i.length;a++){var n=i[a],o=t.get(n),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||D3(t,o))}}}function D3(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Rae(r,e){var t={model:e,containsPoint:be(Nae,e),dispatchAction:be(Oae,r),dataZoomInfoMap:null,controller:null},i=t.controller=new ki(r.getZr());return T(["pan","zoom","scrollMove"],function(a){i.on(a,function(n){var o=[];t.dataZoomInfoMap.each(function(s){if(n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,n);!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 Oae(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Nae(r,e,t,i){return r.coordinateSystem.containPoint([t,i])}function kae(r,e,t){var i,a="type_",n={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,p=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;n[a+p]>n[a+i]&&(i=p),o=o&&f.get("preventDefaultMouseMove",!0),s=J(f.get("cursorGrab",!0),s),l=J(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 M3(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var i=aD(t),a=i.coordSysRecordMap||(i.coordSysRecordMap=Z());a.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=Ox(n);T(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Rae(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Z());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),a.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){D3(a,n);return}var f=kae(l,n,t);o.enable(f.controlType,f.opt),Sa(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Vae=(function(r){I(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,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),A3(a,t,{pan:K(nD.pan,this),zoom:K(nD.zoom,this),scrollMove:K(nD.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){E3(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(fc),nD={zoom:function(r,e,t,i){var a=this.range,n=a.slice(),o=r.axisModels[0];if(o){var s=oD[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*(n[1]-n[0])+n[0],u=Math.max(1/i.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ui(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,a[0]!==n[0]||a[1]!==n[1])return n}},pan:I3(function(r,e,t,i,a,n){var o=oD[i]([n.oldX,n.oldY],[n.newX,n.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:I3(function(r,e,t,i,a,n){var o=oD[i]([0,0],[n.scrollDelta,n.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function I3(r){return function(e,t,i,a){var n=this.range,o=n.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,i,a);if(ui(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var oD={grid:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,e,t,i,a){var n=t.axis,o={},s=a.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=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,e,t,i,a){var n=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},L3=Vae;function jh(r){ju(r),r.registerComponentModel(C3),r.registerComponentView(L3),M3(r)}var Uae=(function(r){I(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=Vr(ol.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:N.color.accent10,borderRadius:0,backgroundColor:N.color.transparent,dataBackground:{lineStyle:{color:N.color.accent30,width:.5},areaStyle:{color:N.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:N.color.accent40,width:.5},areaStyle:{color:N.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:N.color.neutral00,borderColor:N.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:N.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:N.color.tertiary},brushSelect:!0,brushStyle:{color:N.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:N.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(ol),P3=Uae;var Jh=xe,Bae=1,sD=30,Fae=7,Qh="horizontal",R3="vertical",Gae=5,Hae=["line","bar","candlestick","scatter"],Wae={easing:"cubicOut",duration:100,delay:0},Yae=(function(r){I(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=K(this._onBrush,this),this._onBrushEnd=K(this._onBrushEnd,this)},e.prototype.render=function(t,i,a,n){if(r.prototype.render.apply(this,arguments),Sa(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}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Oo(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 te;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,a=t.get("brushSelect"),n=a?Fae:0,o=rt(t,i).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Qh?{right:o.width-s.x-s.width,top:o.height-sD-l-n,width:s.width,height:sD}:{right:l,top:s.y,width:sD,height:s.height},f=Li(t.option);T(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var p=Ze(f,o);this._location={x:p.x,y:p.y},this._size=[p.width,p.height],this._orient===R3&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,a=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Qh&&!o?{scaleY:l?1:-1,scaleX:1}:a===Qh&&o?{scaleY:l?1:-1,scaleX:-1}:a===R3&&!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,p=isNaN(u.y)?0:u.y;t.x=i.x-f,t.y=i.y-p,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,a=this._displayables.sliderGroup,n=t.get("brushSelect");a.add(new Jh({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Jh({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:K(this._onClickPanel,this)}),s=this.api.getZr();n?(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)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,a=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==a[0]||i[1]!==a[1]){var p=o.getDataExtent(t.thisDim),c=o.getDataExtent(l),v=(c[1]-c[0])*.3;c=[c[0]-v,c[1]+v];var h=[0,i[1]],d=[0,i[0]],m=[[i[0],0],[0,0]],g=[],y=d[1]/Math.max(1,o.count()-1),x=i[0]/(p[1]-p[0]),_=t.thisAxis.type==="time",S=-y,b=Math.round(o.count()/i[0]),w;o.each([t.thisDim,l],function(L,M,P){if(b>0&&P%b){_||(S+=y);return}S=_?(+L-p[0])*x:S+y;var O=M==null||isNaN(M)||M==="",R=O?0:Ge(M,c,h,!0);O&&!w&&P?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!O&&w&&(m.push([S,0]),g.push([S,0])),O||(m.push([S,R]),g.push([S,R])),w=O}),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(L){var M=A.getModel(L?"selectedDataBackground":"dataBackground"),P=new te,O=new _t({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new mt({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(O),P.add(R),P}for(var E=0;E<3;E++){var D=C(E===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var a,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!a&&!(i!==!0&&de(Hae,u.get("type"))<0)){var f=n.getComponent(za(o),s).axis,p=Xae(o),c,v=u.coordinateSystem;p!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),p=u.getData().mapDimension(p);var h=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:h,otherDim:p,otherAxisInverse:c}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,a=i.handles=[null,null],n=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,p=l.get("brushSelect"),c=i.filler=new Jh({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Jh({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:Bae,fill:N.color.transparent}})),T([0,1],function(x){var _=l.get("handleIcon");!Rv[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var S=tt(_,-1,0,2,2,null,!0);S.attr({cursor:Zae(this._orient),draggable:!0,drift:K(this._onDragMove,this,x),ondragend:K(this._onDragEnd,this),onmouseover:K(this._onOverDataInfoTriggerArea,this,!0),onmouseout:K(this._onOverDataInfoTriggerArea,this,!1),z2:5});var b=S.getBoundingRect(),w=l.get("handleSize");this._handleHeight=$(w,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(),ha(S);var A=l.get("handleColor");A!=null&&(S.style.fill=A),o.add(a[x]=S);var C=l.getModel("textStyle"),E=l.get("handleLabel")||{},D=E.show||!1;t.add(n[x]=new Ee({silent:!0,invisible:!D,style:je(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=c;if(p){var h=$(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:h}}),m=h*.8,g=i.moveHandleIcon=tt(l.get("moveHandleIcon"),-m/2,-m/2,m,m,N.color.neutral00,!0);g.silent=!0,g.y=s[1]+h/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(h,10));v=i.moveZone=new xe({invisible:!0,shape:{y:s[1]-y,height:h+y}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(v)}v.attr({draggable:!0,cursor:"grab",drift:K(this._onActualMoveZoneDrift,this),ondragstart:K(this._onActualMoveZoneDragStart,this),ondragend:K(this._onActualMoveZoneDragEnd,this),onmouseover:K(this._onOverDataInfoTriggerArea,this,!0),onmouseout:K(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Ge(t[0],[0,100],i,!0),Ge(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var a=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ui(i,n,o,a.get("zoomLock")?"all":t,s.minSpan!=null?Ge(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ge(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=gt([Ge(n[0],o,l,!0),Ge(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var i=this._displayables,a=this._handleEnds,n=gt(a.slice()),o=this._size;T([0,1],function(v){var h=i.handles[v],d=this._handleHeight;h.attr({scaleX:d/2,scaleY:d/2,x:a[v]+(v?-1:1),y:o[1]/2-d/2})},this),i.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[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,n[0],n[1],o[0]],f=0;f<l.length;f++){var p=l[f],c=p.getClipPath();c||(c=new xe,p.setClipPath(c)),c.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,a=this._displayables,n=a.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,p;if(t){var c={start:f[0],end:f[1]},v=Nx(i,l);if(v){var h=v.calculateDataWindow(c).percentInverted;c={start:h[0],end:h[1]}}p=l.calculateDataWindow(c)}else p=l.getWindow();s=[O3(i,0,p,u),O3(i,1,p,u)]}}var d=gt(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(g){var y=Ja(a.handles[g].parent,this.group),x=$l(g===0?"right":"left",y),_=this._handleWidth/2+Gae,S=Cr([d[g]+(g===0?-_:_),this._size[1]/2],y);n[g].setStyle({x:S[0],y:S[1],verticalAlign:o===Qh?"middle":x,align:o===Qh?x:"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")||{},a=i.show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=n.get("show")||!1,s=t||this._dragging?o:a,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,a){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,i,a)},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,a,n){this._dragging=!0,vi(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Cr([i,a],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,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>i[0]||a[1]<0||a[1]>i[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,a=t.offsetY;this._brushStart=new ye(i,a),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 a=i.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ui(0,l,o,0,u.minSpan!=null?Ge(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ge(u.maxSpan,s,o,!0):null),this._range=gt([Ge(l[0],o,s,!0),Ge(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(vi(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var a=this._displayables,n=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Jh({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),a.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),p=this._size;u[0]=Math.max(Math.min(p[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:p[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Wae:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=Ox(this.dataZoomModel).infoList;if(!t&&i.length){var a=i[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(fc);function O3(r,e,t,i){var a=r.get("labelFormatter"),n=r.get("labelPrecision");(n==null||n==="auto")&&(n=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":Mt(i)||Yn(i)?i.getLabel({value:Math.round(o)}):isFinite(n)?Be(o,n,!0):o+"";return ee(a)?a(o,s):W(a)?a.replace("{value}",s):s}function Xae(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Zae(r){return r==="vertical"?"ns-resize":"ew-resize"}var N3=Yae;function $h(r){r.registerComponentModel(P3),r.registerComponentView(N3),ju(r)}function lD(r){Me(jh),Me($h)}var Kae={get:function(r,e,t){var i=ae((qae[r]||{})[e]);return t&&V(i)?i[i.length-1]:i}},qae={color:{active:["#006edd","#e0ffff"],inactive:[N.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},t_=Kae;var k3=Bt.mapVisual,jae=Bt.eachVisual,Jae=V,uD=T,Qae=gt,$ae=Ge,ene=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&Fx(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=K(t,this),this.controllerVisuals=Yh(this.option.controller,i,t),this.targetVisuals=Yh(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,i=this.option.seriesTargets;if(i){var a=[];return uD(i,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;t.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var n=this.option.seriesId,o=this.option.seriesIndex;o==null&&n==null&&(o="all");var s=Ln(this.ecModel,"series",{index:o,id:n},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return U(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,i){T(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&t.call(i,n)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(a){a===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],V(t)&&(t=t.slice(),u=!0);var f=i?t:u?[p(t[0]),p(t[1])]:p(t);if(W(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ee(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function p(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=Qae([t.min,t.max]);this._dataExtent=i},e.prototype.getDimension=function(t){var i=this,a=this.option.seriesTargets;if(a){var n=Vi(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===i.ecModel.getSeriesByIndex(t).id});if(n)return n.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var i=t.hostModel.seriesIndex,a=this.getDimension(i);if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,o=n.length-1;o>=0;o--){var s=n[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});_e(n,a),_e(o,a);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(p){Jae(i.color)&&!p.inRange&&(p.inRange={color:i.color.slice().reverse()}),p.inRange=p.inRange||{color:t.get("gradientColor")}}function u(p,c,v){var h=p[c],d=p[v];h&&!d&&(d=p[v]={},uD(h,function(m,g){if(Bt.isValidType(g)){var y=t_.get(g,"inactive",s);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(p){var c=(p.inRange||{}).symbol||(p.outOfRange||{}).symbol,v=(p.inRange||{}).symbolSize||(p.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),d=this.getItemSymbol(),m=d||"roundRect";uD(this.stateList,function(g){var y=this.itemSize,x=p[g];x||(x=p[g]={color:s?h:[h]}),x.symbol==null&&(x.symbol=c&&ae(c)||(s?m:[m])),x.symbolSize==null&&(x.symbolSize=v&&ae(v)||(s?y[0]:[y[0],y[0]])),x.symbol=k3(x.symbol,function(b){return b==="none"?m:b});var _=x.symbolSize;if(_!=null){var S=-1/0;jae(_,function(b){b>S&&(S=b)}),x.symbolSize=k3(_,function(b){return $ae(b,[0,S],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:N.color.transparent,borderColor:N.color.borderTint,contentColor:N.color.theme[0],inactiveColor:N.color.disabled,borderWidth:0,padding:N.size.m,textGap:10,precision:0,textStyle:{color:N.color.secondary}},e})(Le),hc=ene;var z3=[20,140],tne=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=z3[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=z3[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):V(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=gt((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,a=this.getExtent(),n=J(this.option.unboundedRange,!0);return(n&&i[0]<=a[0]||i[0]<=t)&&(n&&i[1]>=a[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},e.prototype.getVisualMeta=function(t){var i=V3(this,"outOfRange",this.getExtent()),a=V3(this,"inRange",this.option.range.slice()),n=[];function o(v,h){n.push({value:v,color:t(v,h)})}for(var s=0,l=0,u=a.length,f=i.length;l<f&&(!a.length||i[l]<=a[0]);l++)i[l]<a[s]&&o(i[l],"outOfRange");for(var p=1;s<u;s++,p=0)p&&n.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var p=1;l<f;l++)(!a.length||a[a.length-1]<i[l])&&(p&&(n.length&&o(n[n.length-1].value,"outOfRange"),p=0),o(i[l],"outOfRange"));var c=n.length;return{stops:n,outerColors:[c?n[0].color:"transparent",c?n[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Vr(hc.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:N.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:N.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}}),e})(hc);function V3(r,e,t){if(t[0]===t[1])return t.slice();for(var i=200,a=(t[1]-t[0])/i,n=t[0],o=[],s=0;s<=i&&n<t[1];s++)o.push(n),n+=a;return o.push(t[1]),o}var U3=tne;var rne=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,a,n){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,a,n)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,a=ya(i.get("padding")||0),n=t.getBoundingRect();t.add(new xe({z2:-1,silent:!0,shape:{x:n.x-a[3],y:n.y-a[0],width:n.width+a[3]+a[1],height:n.height+a[0]+a[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,a){a=a||{};var n=a.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,h){s[v]=h}var p=o.controllerVisuals[n||o.getValueState(t)],c=Bt.prepareVisualTypes(p);return T(c,function(v){var h=p[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",h=p.__alphaForOpacity),Bt.dependsOn(v,i)&&h&&h.applyVisual(t,u,f)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,a=this.api,n=rt(i,a).refContainer;bs(t,i.getBoxLayoutParams(),n)},e.prototype.doRender=function(t,i,a,n){},e.type="visualMap",e})(We),r_=rne;var B3=[["left","right","width"],["top","bottom","height"]];function i_(r,e,t){var i=r.option,a=i.align;if(a!=null&&a!=="auto")return a;for(var n={width:e.getWidth(),height:e.getHeight()},o=i.orient==="horizontal"?1:0,s=B3[o],l=[0,null,10],u={},f=0;f<3;f++)u[B3[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:i[s[f]];var p=[["x","width",3],["y","height",0]][o],c=Ze(u,n,i.padding);return s[(c.margin[p[2]]||0)+c[p[0]]+c[p[1]]*.5<n[p[1]]*.5?0:1]}function dc(r,e){return T(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var so=Ge,ine=T,G3=Math.min,fD=Math.max,ane=12,nne=6,one=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,i){r.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=K(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=K(this._hideIndicator,this)},e.prototype.doRender=function(t,i,a,n){(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var a=t.get("text");this._renderEndsText(i,a,0),this._renderEndsText(i,a,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,a){if(i){var n=i[1-a];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),p=this._applyTransform(a===0?"bottom":"top",u),c=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Ee({style:je(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(c==="horizontal"?"middle":p),align:v.get("align")||(c==="horizontal"?p:"center"),text:n})}))}},e.prototype._renderBar=function(t){var i=this.visualMapModel,a=this._shapes,n=i.itemSize,o=this._orient,s=this._useHandle,l=i_(i,this.api,n),u=a.mainGroup=this._createBarGroup(l),f=new te;u.add(f),f.add(a.outOfRange=H3()),f.add(a.inRange=H3(null,s?Y3(this._orient):null,K(this._dragHandle,this,"all",!1),K(this._dragHandle,this,"all",!0))),f.setClipPath(new xe({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var p=i.textStyleModel.getTextRect("\u56FD"),c=fD(p.width,p.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(i,u,0,n,c,o),this._createHandle(i,u,1,n,c,o)),this._createIndicator(i,u,n,c,o),t.add(u)},e.prototype._createHandle=function(t,i,a,n,o,s){var l=K(this._dragHandle,this,a,!1),u=K(this._dragHandle,this,a,!0),f=Rr(t.get("handleSize"),n[0]),p=tt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=Y3(this._orient);p.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){vi(g.event)}}),p.x=n[0]/2,p.useStyle(t.getModel("handleStyle").getItemStyle()),p.setStyle({strokeNoScale:!0,strokeFirst:!0}),p.style.lineWidth*=2,p.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),wo(p,!0),i.add(p);var v=this.visualMapModel.textStyleModel,h=new Ee({cursor:c,draggable:!0,drift:l,onmousemove:function(g){vi(g.event)},ondragend:u,style:je(v,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var d=[f,0],m=this._shapes;m.handleThumbs[a]=p,m.handleLabelPoints[a]=d,m.handleLabels[a]=h},e.prototype._createIndicator=function(t,i,a,n,o){var s=Rr(t.get("indicatorSize"),a[0]),l=tt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof pt){var f=l.style;l.useStyle(k({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var p=this.visualMapModel.textStyleModel,c=new Ee({silent:!0,invisible:!0,style:je(p,{x:0,y:0,text:""})});this.group.add(c);var v=[(o==="horizontal"?n/2:nne)+a[0]/2,0],h=this._shapes;h.indicator=l,h.indicatorLabel=c,h.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,a,n){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([a,n],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():W3(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),a=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[so(i[0],a,n,!0),so(i[1],a,n,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var a=this.visualMapModel,n=this._handleEnds,o=[0,a.itemSize[1]];ui(i,n,o,t,0);var s=a.getExtent();this._dataInterval=[so(n[0],o,s,!0),so(n[1],o,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,a=i.getExtent(),n=this._shapes,o=[0,i.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,a,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Ei(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var a=100,n=[],o=(t[1]-t[0])/a;n.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),n},e.prototype._createBarPoints=function(t,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,a=this.visualMapModel.get("inverse");return new te(i==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent(),f=this._applyTransform("left",a.mainGroup);ine([0,1],function(p){var c=o[p];c.setStyle("fill",i.handlesColor[p]),c.y=t[p];var v=so(t[p],[0,l[1]],u,!0),h=this.getControllerVisual(v,"symbolSize");c.scaleX=c.scaleY=h/l[0],c.x=l[0]-h/2;var d=Cr(a.handleLabelPoints[p],Ja(c,this.group));if(this._orient==="horizontal"){var m=f==="left"||f==="top"?(l[0]-h)/2:(l[0]-h)/-2;d[1]+=m}s[p].setStyle({x:d[0],y:d[1],text:n.formatValueText(this._dataInterval[p]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,p=f.indicator;if(p){p.attr("invisible",!1);var c={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",c),h=this.getControllerVisual(t,"symbolSize"),d=so(t,s,u,!0),m=l[0]-h/2,g={x:p.x,y:p.y};p.y=d,p.x=m;var y=Cr(f.indicatorLabelPoint,Ja(p,this.group)),x=f.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",f.mainGroup),S=this._orient,b=S==="horizontal";x.setStyle({text:(a||"")+o.formatValueText(i),verticalAlign:b?_:"middle",align:b?"center":_});var w={x:m,y:d,style:{fill:v}},A={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};p.x=g.x,p.y=g.y,p.animateTo(w,C),x.animateTo(A,C)}else p.attr(w),x.attr(A);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var D=0;D<E.length;D++)this.api.enterBlur(E[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,n=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);n[1]=G3(fD(0,n[1]),a[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,i){var a=this.visualMapModel,n=a.itemSize;if(a.option.hoverLink){var o=[0,n[1]],s=a.getExtent();t=G3(fD(o[0],t),o[1]);var l=sne(a,s,o),u=[t-l,t+l],f=so(t,o,s,!0),p=[so(u[0],o,s,!0),so(u[1],o,s,!0)];u[0]<o[0]&&(p[0]=-1/0),u[1]>o[1]&&(p[1]=1/0),i&&(p[0]===-1/0?this._showIndicator(f,p[1],"< ",l):p[1]===1/0?this._showIndicator(f,p[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,v=[];(i||W3(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(p));var h=SI(c,v);this._dispatchHighDown("downplay",dc(h[0],a)),this._dispatchHighDown("highlight",dc(h[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(rn(t.target,function(l){var u=ce(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var a=this.ecModel.getSeriesByIndex(i.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(a)){var o=a.getData(i.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a<i.length;a++)this.api.leaveBlur(i[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",dc(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,i,a,n){var o=Ja(i,n?null:this.group);return V(t)?Cr(t,o,a):$l(t,o,a)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(r_);function H3(r,e,t,i){return new _t({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){vi(a.event)},ondragend:i})}function sne(r,e,t){var i=ane/2,a=r.get("hoverLinkDataSize");return a&&(i=so(a,e,t,!0)/2),i}function W3(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function Y3(r){return r==="vertical"?"ns-resize":"ew-resize"}var X3=one;var Z3={type:"selectDataRange",event:"dataRangeSelected",update:"update"},K3=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})};var q3=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(i){var a=r.pipelineContext;!i.isTargetSeries(r)||a&&a.large||t.push(N5(i.stateList,i.targetVisuals,K(i.getValueState,i),i.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),i=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var n=a.getVisualMeta(K(lne,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(n.dimension=o,i.push(n))}}),r.getData().setVisual("visualMeta",i)}}];function lne(r,e,t,i){for(var a=e.targetVisuals[i],n=Bt.prepareVisualTypes(a),o={color:Wn(r.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,p,c)}return o.color;function p(v){return o[v]}function c(v,h){o[v]=h}}var j3=T;function pD(r){var e=r&&r.visualMap;V(e)||(e=e?[e]:[]),j3(e,function(t){if(t){mc(t,"splitList")&&!mc(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var i=t.pieces;if(i&&V(i)&&j3(i,function(n){se(n)&&(mc(n,"start")&&!mc(n,"min")&&(n.min=n.start),mc(n,"end")&&!mc(n,"max")&&(n.max=n.end))}),0)var a}})}function mc(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var J3=!1;function ed(r){J3||(J3=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Z3,K3),T(q3,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(pD))}function td(r){r.registerComponentModel(U3),r.registerComponentView(X3),ed(r)}var une=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],fne[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var n=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=ae(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=U(this._pieceList,function(l){return l=ae(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},a=Bt.listVisualTypes(),n=this.isCategory();T(t.pieces,function(s){T(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),T(i,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&T(this.stateList,function(f){(t[f]||(t[f]={}))[l]=t_.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var a=this.option,n=this._pieceList,o=(i?a:t).selected||{};if(a.selected=o,T(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;T(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=ae(t)},e.prototype.getValueState=function(t){var i=Bt.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],a=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Bt.findPieceIndex(l,a);f===t&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var a=t.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,p){var c=n.getRepresentValue({interval:f});p||(p=n.getValueState(c));var v=t(c,p);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:i.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var p=f.interval;p&&(p[0]>u&&o([u,p[0]],"outOfRange"),o(p.slice()),u=p[1])},this),{stops:i,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Vr(hc.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(hc),fne={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var n=(i[1]-i[0])/a;+n.toFixed(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<a;s+=n,o++){var l=o===a-1?i[1]:s+n;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[i[1],1/0],close:[0,0]}),Yc(r),T(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;T(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),Q3(e,r)},pieces:function(r){var e=this.option;T(e.pieces,function(t,i){se(t)||(t={value:t});var a={text:"",index:i};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var n=a.value=t.value;a.interval=[n,n],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],p=0;p<2;p++){for(var c=[["gte","gt","min"],["lte","lt","max"]][p],v=0;v<3&&o[p]==null;v++)o[p]=t[c[v]],s[p]=l[v],f[p]=v===2;o[p]==null&&(o[p]=u[p])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Bt.retrieveVisuals(t),r.push(a)},this),Q3(e,r),Yc(r),T(r,function(t){var i=t.close,a=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function Q3(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var $3=une;var pne=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=this._getItemAlign(),s=i.itemSize,l=this._getViewData(),u=l.endsText,f=Pt(i.get("showLabel",!0),!u),p=!i.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),T(l.viewPieceList,function(c){var v=c.piece,h=new te;h.onclick=K(this._onItemClick,this,v),this._enableHoverLink(h,c.indexInModelPieceList);var d=i.getRepresentValue(v);if(this._createItemSymbol(h,d,[0,0,s[0],s[1]],p),f){var m=this.visualMapModel.getValueState(d),g=n.get("align")||o;h.add(new Ee({style:je(n,{x:g==="right"?-a:s[0]+a,y:s[1]/2,text:v.text,verticalAlign:n.get("verticalAlign")||"middle",align:g,opacity:J(n.get("opacity"),m==="outOfRange"?.5:1)}),silent:p}))}t.add(h)},this),u&&this._renderEndsText(t,u[1],s,f,o),en(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var a=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:dc(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return i_(t,this.api,t.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,i,a,n,o){if(i){var s=new te,l=this.visualMapModel.textStyleModel;s.add(new Ee({style:je(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=U(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},e.prototype._createItemSymbol=function(t,i,a,n){var o=tt(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color"));o.silent=n,t.add(o)},e.prototype._onItemClick=function(t){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(n){var o=ae(a.selected),s=i.getSelectedMapKey(t);n==="single"||n===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(r_),eW=pne;function rd(r){r.registerComponentModel($3),r.registerComponentView(eW),ed(r)}function cD(r){Me(td),Me(rd)}var tW=(function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:db(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var i=t.getViewOfComponentModel(this._thumbnailModel);i&&i.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r})();var rW=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,i){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new tW(this);if(this._target=null,this.ecModel.eachSeries(function(a){CC(a,null)}),this.shouldShow()){var i=this.getTarget();CC(i.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:N.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:N.color.neutral30,borderColor:N.color.neutral40,opacity:.3},z:10},e})(Le);var nW=(function(r){I(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,a){if(this._api=a,this._model=t,this._coordSys||(this._coordSys=new Js),!this._isEnabled()){this._clear();return}this._renderVersion=a.getECUpdateCycleVersion();var n=this.group;n.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=i.get("backgroundColor")||N.color.neutral00);var l=rt(t,a).refContainer,u=Ze(cg(t,!0),l),f=s.lineWidth||0,p=this._contentRect=ma(u.clone(),f/2,!0,!0),c=new te;n.add(c),c.setClipPath(new xe({shape:p.plain()}));var v=this._targetGroup=new te;c.add(v);var h=u.plain();h.r=o.getShallow("borderRadius",!0),n.add(this._bgRect=new xe({style:s,shape:h,silent:!1,cursor:"grab"}));var d=t.getModel("windowStyle"),m=d.getShallow("borderRadius",!0);c.add(this._windowRect=new xe({shape:{x:0,y:0,width:0,height:0,r:m},style:d.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),aW(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),aW(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var i=this._targetGroup,a=this._coordSys,n=this._contentRect;if(i.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();i.add(o),this._bgRect.z2=t.z2Range.min-10,js(a,s.x,s.y,s.width,s.height);var l=Ze({left:"center",top:"center",aspect:s.width/s.height},n);ku(a,l.x,l.y,l.width,l.height),Ou(o,a,Ho),o.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var i=this._bridgeRendered;i&&i.renderVersion===t.renderVersion&&(i.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var i=Zt([],t.targetTrans),a=ar([],Nu(null,this._coordSys),i);this._transThisToTarget=Zt([],a);var n=t.viewportRect;n?n=n.clone():n=new fe(0,0,this._api.getWidth(),this._api.getHeight()),n.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(re({r:s},n))}},e.prototype._resetRoamController=function(t){var i=this,a=this._api,n=this._roamController;if(n||(n=this._roamController=new ki(a.getZr())),!t||!this._isEnabled()){n.disable();return}n.enable(t,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return i._contentRect.contain(s,l)}}}),n.off("pan").off("zoom").on("pan",K(this._onPan,this)).on("zoom",K(this._onZoom,this))},e.prototype._onPan=function(t){var i=this._transThisToTarget;if(!(!this._isEnabled()||!i)){var a=ft([],[t.oldX,t.oldY],i),n=ft([],[t.oldX-t.dx,t.oldY-t.dy],i);this._api.dispatchAction(iW(this._model.getTarget().baseMapProvider,{dx:n[0]-a[0],dy:n[1]-a[1]}))}},e.prototype._onZoom=function(t){var i=this._transThisToTarget;if(!(!this._isEnabled()||!i)){var a=ft([],[t.originX,t.originY],i);this._api.dispatchAction(iW(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:a[0],originY:a[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var i=t.getTarget().baseMapProvider;return!!i},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e})(We);function iW(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",i={type:t};return i[r.mainType+"Id"]=r.id,k(i,e),i}function aW(r,e){var t=ga(r);eu(e.group,t.z,t.zlevel)}function vD(r){r.registerComponentModel(rW),r.registerComponentView(nW)}var cne={label:{enabled:!0},decal:{show:!1}},oW=ue(),sW=ue(),lW=Pn(vne);function vne(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var i=sW(r).scope||(sW(r).scope={}),a=ae(cne);_e(a.label,r.getLocaleModel().get("aria"),!1),_e(t.option,a,!1),n(),o();function n(){var f=t.getModel("decal"),p=f.get("show");if(p){var c=Z();r.eachSeries(function(v){v.isColorBySeries()||(oW(v).scope=c.get(v.type)||c.set(v.type,{}))}),r.eachSeries(function(v){if(ee(v.enableAriaDecal)){v.enableAriaDecal();return}var h=v.getData();if(v.isColorBySeries()){var x=_v(v.ecModel,v.name,i,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,x))}else{var d=v.getRawData(),m={},g=oW(v).scope;h.each(function(b){var w=h.getRawIndex(b);m[w]=b});var y=d.count();d.each(function(b){var w=m[b],A=d.getName(b)||b+"",C=_v(v.ecModel,A,g,y),E=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(E,C))})}function S(b,w){var A=b?k(k({},w),b):w;return A.dirty=!0,A}})}}function o(){var f=e.getZr().dom;if(f){var p=r.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=re(c.option,p),!!c.get("enabled")){if(f.setAttribute("role","img"),c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var v=r.getSeriesCount(),h=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,m=Math.min(v,d),g;if(!(v<1)){var y=l();if(y){var x=c.get(["general","withTitle"]);g=s(x,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=v>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=s(S,{seriesCount:v}),r.eachSeries(function(C,E){if(E<m){var D=void 0,L=C.get("name"),M=L?"withName":"withoutName";D=v>1?c.get(["series","multiple",M]):c.get(["series","single",M]),D=s(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var P=C.getData();if(P.count()>h){var O=c.get(["data","partialData"]);D+=s(O,{displayCnt:h})}else D+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),B=c.get(["data","excludeDimensionId"]),F=[],H=0;H<P.count();H++)if(H<h){var Y=P.getName(H),q=B?Ne(P.getValues(H),function(X,G){return de(B,G)===-1}):P.getValues(H),oe=c.get(["data",Y?"withName":"withoutName"]);F.push(s(oe,{name:Y,value:q.join(R)}))}D+=F.join(R)+z,_.push(D)}});var b=c.getModel(["series","multiple","separator"]),w=b.get("middle"),A=b.get("end");g+=_.join(w)+A,f.setAttribute("aria-label",g)}}}}function s(f,p){if(!W(f))return f;var c=f;return T(p,function(v,h){c=c.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),v)}),c}function l(){var f=r.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var p=r.getLocaleModel().get(["series","typeNames"]);return p[f]||p.chart}}function hD(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},T(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function dD(r){r.registerPreprocessor(hD),r.registerVisual(r.PRIORITY.VISUAL.ARIA,lW)}var uW={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},hne=(function(){function r(e){var t=this._condVal=W(e)?new RegExp(e):FD(e)?e:null;if(t==null){var i="";Ke(i)}}return r.prototype.evaluate=function(e){var t=typeof e;return W(t)?this._condVal.test(e):Ce(t)?this._condVal.test(e+""):!1},r})(),dne=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),mne=(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})(),gne=(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})(),yne=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),xne=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,i=t(this.valueGetterParam),a=e?this.valueParser(i):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(e?a:i))return!1;return!0},r})();function mD(r,e){if(r===!0||r===!1){var t=new dne;return t.value=r,t}var i="";return pW(r)||Ke(i),r.and?fW("and",r,e):r.or?fW("or",r,e):r.not?_ne(r,e):Sne(r,e)}function fW(r,e,t){var i=e[r],a="";V(i)||Ke(a),i.length||Ke(a);var n=r==="and"?new mne:new gne;return n.children=U(i,function(o){return mD(o,t)}),n.children.length||Ke(a),n}function _ne(r,e){var t=r.not,i="";pW(t)||Ke(i);var a=new yne;return a.child=mD(t,e),a.child||Ke(i),a}function Sne(r,e){for(var t="",i=e.prepareGetValue(r),a=[],n=Te(r),o=r.parser,s=o?Ag(o):null,l=0;l<n.length;l++){var u=n[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=le(uW,u)?uW[u]:u,p=r[u],c=s?s(p):p,v=AR(f,c)||f==="reg"&&new hne(c);v||Ke(t),a.push(v)}}a.length||Ke(t);var h=new xne;return h.valueGetterParam=i,h.valueParser=s,h.getValue=e.getValue,h.subCondList=a,h}function pW(r){return se(r)&&!kt(r)}var bne=(function(){function r(e,t){this._cond=mD(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function cW(r,e){return new bne(r,e)}var vW={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,i=cW(r.config,{valueGetterAttrMap:Z({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;le(s,"dimension")||Ke(l);var f=e.getDimensionInfo(u);return f||Ke(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],n=0,o=e.count();n<o;n++)t=e.getRawDataItem(n),i.evaluate()&&a.push(t);return{data:a}}};var hW={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,i="",a=qe(t);a.length||Ke(i);var n=[];T(a,function(f){var p=f.dimension,c=f.order,v=f.parser,h=f.incomparable;if(p==null&&Ke(i),c!=="asc"&&c!=="desc"&&Ke(i),h&&h!=="min"&&h!=="max"){var d="";Ke(d)}if(c!=="asc"&&c!=="desc"){var m="";Ke(m)}var g=e.getDimensionInfo(p);g||Ke(i);var y=v?Ag(v):null;v&&!y&&Ke(i),n.push({dimIdx:g.index,parser:y,comparator:new Eg(c,h)})});var o=e.sourceFormat;o!==Ut&&o!==hr&&Ke(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,p){for(var c=0;c<n.length;c++){var v=n[c],h=e.retrieveValueFromItem(f,v.dimIdx),d=e.retrieveValueFromItem(p,v.dimIdx);v.parser&&(h=v.parser(h),d=v.parser(d));var m=v.comparator.evaluate(h,d);if(m!==0)return m}return 0}),{data:s}}};function gD(r){r.registerTransform(vW),r.registerTransform(hW)}var wne=(function(r){I(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,a){r.prototype.init.call(this,t,i,a),this._sourceManager=new Lg(this),a1(this)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),a1(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:jr},e})(Le);var Tne=(function(r){I(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(We);function id(r){r.registerComponentModel(wne),r.registerComponentView(Tne)}var lo=pr.CMD;function gc(r,e){return Math.abs(r-e)<1e-5}function a_(r){var e=r.data,t=r.len(),i=[],a,n=0,o=0,s=0,l=0;function u(M,P){a&&a.length>2&&i.push(a),a=[M,P]}function f(M,P,O,R){gc(M,O)&&gc(P,R)||a.push(M,P,O,R,O,R)}function p(M,P,O,R,z,B){var F=Math.abs(P-M),H=Math.tan(F/4)*4/3,Y=P<M?-1:1,q=Math.cos(M),oe=Math.sin(M),X=Math.cos(P),G=Math.sin(P),ne=q*z+O,ve=oe*B+R,pe=X*z+O,j=G*B+R,me=z*H*Y,ie=B*H*Y;a.push(ne-me*oe,ve+ie*q,pe+me*G,j-ie*X,pe,j)}for(var c,v,h,d,m=0;m<t;){var g=e[m++],y=m===1;switch(y&&(n=e[m],o=e[m+1],s=n,l=o,(g===lo.L||g===lo.C||g===lo.Q)&&(a=[s,l])),g){case lo.M:n=s=e[m++],o=l=e[m++],u(s,l);break;case lo.L:c=e[m++],v=e[m++],f(n,o,c,v),n=c,o=v;break;case lo.C:a.push(e[m++],e[m++],e[m++],e[m++],n=e[m++],o=e[m++]);break;case lo.Q:c=e[m++],v=e[m++],h=e[m++],d=e[m++],a.push(n+2/3*(c-n),o+2/3*(v-o),h+2/3*(c-h),d+2/3*(v-d),h,d),n=h,o=d;break;case lo.A:var x=e[m++],_=e[m++],S=e[m++],b=e[m++],w=e[m++],A=e[m++]+w;m+=1;var C=!e[m++];c=Math.cos(w)*S+x,v=Math.sin(w)*b+_,y?(s=c,l=v,u(s,l)):f(n,o,c,v),n=Math.cos(A)*S+x,o=Math.sin(A)*b+_;for(var E=(C?-1:1)*Math.PI/2,D=w;C?D>A:D<A;D+=E){var L=C?Math.max(D+E,A):Math.min(D+E,A);p(D,L,x,_,S,b)}break;case lo.R:s=n=e[m++],l=o=e[m++],c=s+e[m++],v=l+e[m++],u(c,l),f(c,l,c,v),f(c,v,s,v),f(s,v,s,l),f(s,l,c,l);break;case lo.Z:a&&f(n,o,s,l),n=s,o=l;break}}return a&&a.length>2&&i.push(a),i}function yD(r,e,t,i,a,n,o,s,l,u){if(gc(r,t)&&gc(e,i)&&gc(a,o)&&gc(n,s)){l.push(o,s);return}var f=2/u,p=f*f,c=o-r,v=s-e,h=Math.sqrt(c*c+v*v);c/=h,v/=h;var d=t-r,m=i-e,g=a-o,y=n-s,x=d*d+m*m,_=g*g+y*y;if(x<p&&_<p){l.push(o,s);return}var S=c*d+v*m,b=-c*g-v*y,w=x-S*S,A=_-b*b;if(w<p&&S>=0&&A<p&&b>=0){l.push(o,s);return}var C=[],E=[];na(r,t,a,o,.5,C),na(e,i,n,s,.5,E),yD(C[0],E[0],C[1],E[1],C[2],E[2],C[3],E[3],l,u),yD(C[4],E[4],C[5],E[5],C[6],E[6],C[7],E[7],l,u)}function dW(r,e){var t=a_(r),i=[];e=e||1;for(var a=0;a<t.length;a++){var n=t[a],o=[],s=n[0],l=n[1];o.push(s,l);for(var u=2;u<n.length;){var f=n[u++],p=n[u++],c=n[u++],v=n[u++],h=n[u++],d=n[u++];yD(s,l,f,p,c,v,h,d,o,e),s=h,l=d}i.push(o)}return i}function xW(r,e,t){var i=r[e],a=r[1-e],n=Math.abs(i/a),o=Math.ceil(Math.sqrt(n*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,p=t-f;if(p>0)for(var u=0;u<p;u++)l[u%o]+=1;return l}function mW(r,e,t){for(var i=r.r0,a=r.r,n=r.startAngle,o=r.endAngle,s=Math.abs(o-n),l=s*a,u=a-i,f=l>Math.abs(u),p=xW([l,u],f?0:1,e),c=(f?s:u)/p.length,v=0;v<p.length;v++)for(var h=(f?u:s)/p[v],d=0;d<p[v];d++){var m={};f?(m.startAngle=n+c*v,m.endAngle=n+c*(v+1),m.r0=i+h*d,m.r=i+h*(d+1)):(m.startAngle=n+h*d,m.endAngle=n+h*(d+1),m.r0=i+c*v,m.r=i+c*(v+1)),m.clockwise=r.clockwise,m.cx=r.cx,m.cy=r.cy,t.push(m)}}function Cne(r,e,t){for(var i=r.width,a=r.height,n=i>a,o=xW([i,a],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",f=n?"y":"x",p=r[s]/o.length,c=0;c<o.length;c++)for(var v=r[l]/o[c],h=0;h<o[c];h++){var d={};d[u]=c*p,d[f]=h*v,d[s]=p,d[l]=v,d.x+=r.x,d.y+=r.y,t.push(d)}}function gW(r,e,t,i){return r*i-t*e}function Ane(r,e,t,i,a,n,o,s){var l=t-r,u=i-e,f=o-a,p=s-n,c=gW(f,p,l,u);if(Math.abs(c)<1e-6)return null;var v=r-a,h=e-n,d=gW(v,h,f,p)/c;return d<0||d>1?null:new ye(d*l+r,d*u+e)}function Ene(r,e,t){var i=new ye;ye.sub(i,t,e),i.normalize();var a=new ye;ye.sub(a,r,e);var n=a.dot(i);return n}function yc(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function Dne(r,e,t){for(var i=r.length,a=[],n=0;n<i;n++){var o=r[n],s=r[(n+1)%i],l=Ane(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:Ene(l,e,t),pt:l,idx:n})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(m,g){return m.projPt-g.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var p=u;u=f,f=p}for(var c=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],h=[c],d=[v],n=u.idx+1;n<=f.idx;n++)yc(h,r[n].slice());yc(h,v),yc(h,c);for(var n=f.idx+1;n<=u.idx+i;n++)yc(d,r[n%i].slice());return yc(d,c),yc(d,v),[{points:h},{points:d}]}function yW(r){var e=r.points,t=[],i=[];Vl(e,t,i);var a=new fe(t[0],t[1],i[0]-t[0],i[1]-t[1]),n=a.width,o=a.height,s=a.x,l=a.y,u=new ye,f=new ye;return n>o?(u.x=f.x=s+n/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+n),Dne(e,u,f)}function n_(r,e,t,i){if(t===1)i.push(e);else{var a=Math.floor(t/2),n=r(e);n_(r,n[0],a,i),n_(r,n[1],t-a,i)}return i}function Mne(r,e){for(var t=[],i=0;i<e;i++)t.push(Of(r));return t}function Ine(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function Lne(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function _W(r,e){var t=[],i=r.shape,a;switch(r.type){case"rect":Cne(i,e,t),a=xe;break;case"sector":mW(i,e,t),a=Dt;break;case"circle":mW({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},e,t),a=Dt;break;default:var n=r.getComputedTransform(),o=n?Math.sqrt(Math.max(n[0]*n[0]+n[1]*n[1],n[2]*n[2]+n[3]*n[3])):1,s=U(dW(r.getUpdatedPathProxy(),o),function(g){return Lne(g)}),l=s.length;if(l===0)n_(yW,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,p=U(s,function(g){var y=[],x=[];Vl(g,y,x);var _=(x[1]-y[1])*(x[0]-y[0]);return f+=_,{poly:g,area:_}});p.sort(function(g,y){return y.area-g.area});for(var c=e,u=0;u<l;u++){var v=p[u];if(c<=0)break;var h=u===l-1?c:Math.ceil(v.area/f*e);h<0||(n_(yW,{points:v.poly},h,t),c-=h)}}a=_t;break}if(!a)return Mne(r,e);for(var d=[],u=0;u<t.length;u++){var m=new a;m.setShape(t[u]),Ine(r,m),d.push(m)}return d}function Pne(r,e){var t=r.length,i=e.length;if(t===i)return[r,e];for(var a=[],n=[],o=t<i?r:e,s=Math.min(t,i),l=Math.abs(i-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,p=[o[0],o[1]],c=l,v=2;v<s;){var h=o[v-2],d=o[v-1],m=o[v++],g=o[v++],y=o[v++],x=o[v++],_=o[v++],S=o[v++];if(c<=0){p.push(m,g,y,x,_,S);continue}for(var b=Math.min(c,f-1)+1,w=1;w<=b;w++){var A=w/b;na(h,m,y,_,A,a),na(d,g,x,S,A,n),h=a[3],d=n[3],p.push(a[1],n[1],a[2],n[2],h,d),m=a[5],g=n[5],y=a[6],x=n[6]}c-=b-1}return o===r?[p,e]:[r,p]}function SW(r,e){for(var t=r.length,i=r[t-2],a=r[t-1],n=[],o=0;o<e.length;)n[o++]=i,n[o++]=a;return n}function Rne(r,e){for(var t,i,a,n=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,p=void 0;l?u?(t=Pne(l,u),f=t[0],p=t[1],i=f,a=p):(p=SW(a||l,l),f=l):(f=SW(i||u,u),p=u),n.push(f),o.push(p)}return[n,o]}function bW(r){for(var e=0,t=0,i=0,a=r.length,n=0,o=a-2;n<a;o=n,n+=2){var s=r[o],l=r[o+1],u=r[n],f=r[n+1],p=s*f-u*l;e+=p,t+=(s+u)*p,i+=(l+f)*p}return e===0?[r[0]||0,r[1]||0]:[t/e/3,i/e/3,e]}function One(r,e,t,i){for(var a=(r.length-2)/6,n=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,p=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%l+2,h=r[v]-t[0],d=r[v+1]-t[1],m=e[c]-i[0],g=e[c+1]-i[1],y=m-h,x=g-d;p+=y*y+x*x}p<n&&(n=p,o=u)}return o}function Nne(r){for(var e=[],t=r.length,i=0;i<t;i+=2)e[i]=r[t-i-2],e[i+1]=r[t-i-1];return e}function kne(r,e,t,i){for(var a=[],n,o=0;o<r.length;o++){var s=r[o],l=e[o],u=bW(s),f=bW(l);n==null&&(n=u[2]<0!=f[2]<0);var p=[],c=[],v=0,h=1/0,d=[],m=s.length;n&&(s=Nne(s));for(var g=One(s,l,u,f)*6,y=m-2,x=0;x<y;x+=2){var _=(g+x)%y+2;p[x+2]=s[_]-u[0],p[x+3]=s[_+1]-u[1]}if(p[0]=s[g]-u[0],p[1]=s[g+1]-u[1],t>0)for(var S=i/t,b=-i/2;b<=i/2;b+=S){for(var w=Math.sin(b),A=Math.cos(b),C=0,x=0;x<s.length;x+=2){var E=p[x],D=p[x+1],L=l[x]-f[0],M=l[x+1]-f[1],P=L*A-M*w,O=L*w+M*A;d[x]=P,d[x+1]=O;var R=P-E,z=O-D;C+=R*R+z*z}if(C<h){h=C,v=b;for(var B=0;B<d.length;B++)c[B]=d[B]}}else for(var F=0;F<m;F+=2)c[F]=l[F]-f[0],c[F+1]=l[F+1]-f[1];a.push({from:p,to:c,fromCp:u,toCp:f,rotation:-v})}return a}function nd(r){return r.__isCombineMorphing}var TW="__mOriginal_";function o_(r,e,t){var i=TW+e,a=r[i]||r[e];r[i]||(r[i]=r[e]);var n=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),n?u=n.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function ad(r,e){var t=TW+e;r[t]&&(r[e]=r[t],r[t]=null)}function wW(r,e){for(var t=0;t<r.length;t++)for(var i=r[t],a=0;a<i.length;){var n=i[a],o=i[a+1];i[a++]=e[0]*n+e[2]*o+e[4],i[a++]=e[1]*n+e[3]*o+e[5]}}function CW(r,e){var t=r.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),a=Rne(a_(t),a_(i)),n=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&wW(n,s),l&&wW(o,l),o_(e,"updateTransform",{replace:u}),e.transform=null;var f=kne(n,o,10,Math.PI),p=[];o_(e,"buildPath",{replace:function(c){for(var v=e.__morphT,h=1-v,d=[],m=0;m<f.length;m++){var g=f[m],y=g.from,x=g.to,_=g.rotation*v,S=g.fromCp,b=g.toCp,w=Math.sin(_),A=Math.cos(_);of(d,S,b,v);for(var C=0;C<y.length;C+=2){var E=y[C],D=y[C+1],L=x[C],M=x[C+1],P=E*h+L*v,O=D*h+M*v;p[C]=P*A-O*w+d[0],p[C+1]=P*w+O*A+d[1]}var R=p[0],z=p[1];c.moveTo(R,z);for(var C=2;C<y.length;){var L=p[C++],M=p[C++],B=p[C++],F=p[C++],H=p[C++],Y=p[C++];R===L&&z===M&&B===H&&F===Y?c.lineTo(H,Y):c.bezierCurveTo(L,M,B,F,H,Y),R=H,z=Y}}}})}function l_(r,e,t){if(!r||!e)return e;var i=t.done,a=t.during;CW(r,e),e.__morphT=0;function n(){ad(e,"buildPath"),ad(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},re({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){n(),i&&i()}},t)),e}function zne(r,e,t,i,a,n){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=n===i?0:Math.round(32767*(e-i)/(n-i));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,p=0;(r&u)>0&&(f=1),(e&u)>0&&(p=1),s+=u*u*(3*f^p),p===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function s_(r){var e=1/0,t=1/0,i=-1/0,a=-1/0,n=U(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),p=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(p,t),i=Math.max(f,i),a=Math.max(p,a),[f,p]}),o=U(n,function(s,l){return{cp:s,z:zne(s[0],s[1],e,t,i,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function AW(r){return _W(r.path,r.count)}function xD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function EW(r,e,t){var i=[];function a(S){for(var b=0;b<S.length;b++){var w=S[b];nd(w)?a(w.childrenRef()):w instanceof ge&&i.push(w)}}a(r);var n=i.length;if(!n)return xD();var o=t.dividePath||AW,s=o({path:e,count:n});if(s.length!==n)return console.error("Invalid morphing: unmatched splitted path"),xD();i=s_(i),s=s_(s);for(var l=t.done,u=t.during,f=t.individualDelay,p=new gi,c=0;c<n;c++){var v=i[c],h=s[c];h.parent=e,h.copyTransform(p),f||CW(v,h)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(S){for(var b=0;b<s.length;b++)s[b].addSelfToZr(S)}o_(e,"addSelfToZr",{after:function(S){d(S)}}),o_(e,"removeSelfFromZr",{after:function(S){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(S)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,ad(e,"addSelfToZr"),ad(e,"removeSelfFromZr")}var g=s.length;if(f)for(var y=g,x=function(){y--,y===0&&(m(),l&&l())},c=0;c<g;c++){var _=f?re({delay:(t.delay||0)+f(c,g,i[c],s[c]),done:x},t):t;l_(i[c],s[c],_)}else e.__morphT=0,e.animateTo({__morphT:1},re({during:function(S){for(var b=0;b<g;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(S)},done:function(){m();for(var S=0;S<r.length;S++)ad(r[S],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:i,toIndividuals:s,count:g}}function DW(r,e,t){var i=e.length,a=[],n=t.dividePath||AW;function o(v){for(var h=0;h<v.length;h++){var d=v[h];nd(d)?o(d.childrenRef()):d instanceof ge&&a.push(d)}}if(nd(r)){o(r.childrenRef());var s=a.length;if(s<i)for(var l=0,u=s;u<i;u++)a.push(Of(a[l++%s]));a.length=i}else{a=n({path:r,count:i});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==i)return console.error("Invalid morphing: unmatched splitted path"),xD()}a=s_(a),e=s_(e);for(var p=t.individualDelay,u=0;u<i;u++){var c=p?re({delay:(t.delay||0)+p(u,i,a[u],e[u])},t):t;l_(a[u],e[u],c)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function MW(r){return V(r[0])}function IW(r,e){for(var t=[],i=r.length,a=0;a<i;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var n=e[a].length,o=void 0;for(o=0;o<n;o++)t[o%i].many.push(e[a][o])}for(var s=0,a=i-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var n=l.length,u=Math.ceil(n/2);t[a].many=l.slice(u,n),t[s].many=l.slice(0,u),s++}return t}var Vne={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),i=0;i<r.count;i++){var a=Of(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function u_(r,e,t,i,a,n){if(!r.length||!e.length)return;var o=Gn("update",i,a);if(!(o&&o.duration>0))return;var s=i.getModel("universalTransition").get("delay"),l=k({setToFinal:!0},o),u,f;MW(r)&&(u=r,f=e),MW(e)&&(u=e,f=r);function p(g,y,x,_,S){var b=g.many,w=g.one;if(b.length===1&&!S){var A=y?b[0]:w,C=y?w:b[0];if(nd(A))p({many:[A],one:C},!0,x,_,!0);else{var E=s?re({delay:s(x,_)},l):l;l_(A,C,E),n(A,C,A,C,E)}}else for(var D=re({dividePath:Vne[t],individualDelay:s&&function(z,B,F,H){return s(z+x,_)}},l),L=y?EW(b,w,D):DW(w,b,D),M=L.fromIndividuals,P=L.toIndividuals,O=M.length,R=0;R<O;R++){var E=s?re({delay:s(R,O)},l):l;n(M[R],P[R],y?b[R]:g.one,y?g.one:b[R],E)}}for(var c=u?u===r:r.length>e.length,v=u?IW(f,u):IW(c?e:r,[c?r:e]),h=0,d=0;d<v.length;d++)h+=v[d].many.length;for(var m=0,d=0;d<v.length;d++)p(v[d],c,m,h),m+=v[d].many.length}function pl(r){if(!r)return[];if(V(r)){for(var e=[],t=0;t<r.length;t++)e.push(pl(r[t]));return e}var i=[];return r.traverse(function(a){a instanceof ge&&!a.disableMorphing&&!a.invisible&&!a.ignore&&i.push(a)}),i}var VW=1e4,Une=0,LW=1,PW=2,Bne=ue();function Fne(r,e){for(var t=r.dimensions,i=0;i<t.length;i++){var a=r.getDimensionInfo(t[i]);if(a&&a.otherDims[e]===0)return t[i]}}function Gne(r,e,t){var i=r.getDimensionInfo(t),a=i&&i.ordinalMeta;if(i){var n=r.get(i.name,e);return a&&a.categories[n]||n+""}}function RW(r,e,t,i){var a=i?"itemChildGroupId":"itemGroupId",n=Fne(r,a);if(n){var o=Gne(r,e,n);return o}var s=r.getRawDataItem(e),l=i?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!i)return t||r.getId(e)}function OW(r){var e=[];return T(r,function(t){var i=t.data,a=t.dataGroupId;if(!(i.count()>VW))for(var n=i.getIndices(),o=0;o<n.length;o++)e.push({data:i,groupId:RW(i,o,a,!1),childGroupId:RW(i,o,a,!0),divide:t.divide,dataIndex:o})}),e}function _D(r,e,t){r.traverse(function(i){i instanceof ge&&Xe(i,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function SD(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function xc(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function Hne(r,e,t){var i=Gn("update",t,e);i&&r.traverse(function(a){if(a instanceof Gt){var n=vP(a);n&&a.animateFrom({style:n},i)}})}function Wne(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++){var a=r[i],n=e[i];if(a.data.getId(a.dataIndex)!==n.data.getId(n.dataIndex))return!1}return!0}function UW(r,e,t){var i=OW(r),a=OW(e);function n(x,_,S,b,w){(S||x)&&_.animateFrom({style:S&&S!==x?k(k({},S.style),x.style):x.style},w)}var o=!1,s=Une,l=Z(),u=Z();T(i,function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var f=0;f<a.length;f++){var p=a[f].groupId;if(u.get(p)){s=LW;break}var c=a[f].childGroupId;if(c&&l.get(c)){s=PW;break}}function v(x,_){return function(S){var b=S.data,w=S.dataIndex;return _?b.getId(w):x?s===LW?S.childGroupId:S.groupId:s===PW?S.childGroupId:S.groupId}}var h=Wne(i,a),d={};if(!h)for(var f=0;f<a.length;f++){var m=a[f],g=m.data.getItemGraphicEl(m.dataIndex);g&&(d[g.id]=!0)}function y(x,_){var S=i[_],b=a[x],w=b.data.hostModel,A=S.data.getItemGraphicEl(S.dataIndex),C=b.data.getItemGraphicEl(b.dataIndex);if(A===C){C&&Hne(C,b.dataIndex,w);return}A&&d[A.id]||C&&(xc(C),A?(xc(A),SD(A),o=!0,u_(pl(A),pl(C),b.divide,w,x,n)):_D(C,w,x))}new Er(i,a,v(!0,h),v(!1,h),null,"multiple").update(y).updateManyToOne(function(x,_){var S=a[x],b=S.data,w=b.hostModel,A=b.getItemGraphicEl(S.dataIndex),C=Ne(U(_,function(E){return i[E].data.getItemGraphicEl(i[E].dataIndex)}),function(E){return E&&E!==A&&!d[E.id]});A&&(xc(A),C.length?(T(C,function(E){xc(E),SD(E)}),o=!0,u_(pl(C),pl(A),S.divide,w,x,n)):_D(A,w,S.dataIndex))}).updateOneToMany(function(x,_){var S=i[_],b=S.data.getItemGraphicEl(S.dataIndex);if(!(b&&d[b.id])){var w=Ne(U(x,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==b}),A=a[x[0]].data.hostModel;w.length&&(T(w,function(C){return xc(C)}),b?(xc(b),SD(b),o=!0,u_(pl(b),pl(w),S.divide,A,x[0],n)):T(w,function(C){return _D(C,A,x[0])}))}}).updateManyToMany(function(x,_){new Er(_,x,function(S){return i[S].data.getId(i[S].dataIndex)},function(S){return a[S].data.getId(a[S].dataIndex)}).update(function(S,b){y(x[S],_[b])}).execute()}).execute(),o&&T(e,function(x){var _=x.data,S=_.hostModel,b=S&&t.getViewOfSeriesModel(S),w=Gn("update",S,0);b&&S.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(A){A instanceof ge&&!A.animators.length&&A.animateFrom({style:{opacity:0}},w)})})}function NW(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function kW(r){return V(r)?r.sort().join(","):r}function cl(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Yne(r,e){var t=Z(),i=Z(),a=Z();T(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=NW(o),p=kW(f);i.set(p,{dataGroupId:l,data:u}),V(f)&&T(f,function(c){a.set(c,{key:p,dataGroupId:l,data:u})})});function n(o){t.get(o)&&vI("Duplicated seriesKey in universalTransition "+o)}return T(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=NW(o),f=kW(u),p=i.get(f);if(p)t.set(f,{oldSeries:[{dataGroupId:p.dataGroupId,divide:cl(p.data),data:p.data}],newSeries:[{dataGroupId:s,divide:cl(l),data:l}]});else if(V(u)){var c=[];T(u,function(d){var m=i.get(d);m.data&&c.push({dataGroupId:m.dataGroupId,divide:cl(m.data),data:m.data})}),c.length&&t.set(f,{oldSeries:c,newSeries:[{dataGroupId:s,data:l,divide:cl(l)}]})}else{var v=a.get(u);if(v){var h=t.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:cl(v.data)}],newSeries:[]},t.set(v.key,h)),h.newSeries.push({dataGroupId:s,data:l,divide:cl(l)})}}}}),t}function zW(r,e){for(var t=0;t<r.length;t++){var i=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(i)return t}}function Xne(r,e,t,i){var a=[],n=[];T(qe(r.from),function(o){var s=zW(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:cl(e.oldData[s]),groupIdDim:o.dimension})}),T(qe(r.to),function(o){var s=zW(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();n.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:cl(l),groupIdDim:o.dimension})}}),a.length>0&&n.length>0&&UW(a,n,i)}function bD(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){T(qe(i.seriesTransition),function(a){T(qe(a.to),function(n){for(var o=i.updatedSeries,s=0;s<o.length;s++)(n.seriesIndex!=null&&n.seriesIndex===o[s].seriesIndex||n.seriesId!=null&&n.seriesId===o[s].id)&&(o[s][Ev]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,i){var a=Bne(t);if(a.oldSeries&&i.updatedSeries&&i.optionChanged){var n=i.seriesTransition;if(n)T(qe(n),function(v){Xne(v,a,i,t)});else{var o=Yne(a,i);T(o.keys(),function(v){var h=o.get(v);UW(h.oldSeries,h.newSeries,t)})}T(i.updatedSeries,function(v){v[Ev]&&(v[Ev]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],p=0;p<s.length;p++){var c=s[p].getData();c.count()<VW&&(l.push(s[p]),u.push(s[p].get("dataGroupId")),f.push(c))}})}var Zne=(function(){function r(e,t){lp(this,r.decoratedMethods),this._outOfBrk=uy(null,t);var i=this._linear=uy(null,t);up(this,i),this.breaks=e&&e.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var i=0;i<this.breaks.length;i++){var a=this.breaks[i];if(a.vmin<e&&e<a.vmax){var n=t(e,a.vmax);return n}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return t==null||t===Ta?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(Dr,e,t)},setExtent2:function(e,t,i){Za(t,i)&&(e===Dr&&qne(this,[t,i]),this._outOfBrk.setExtent2(e,t,i),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(i,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&t.depth===Ta)return e;for(var i=BW,a=FW,n=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){e>s.vmin?i+=s.vmin-a+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal:i+=e-a,a=s.vmax,n=!1;break}i+=s.vmin-a+s.gapReal,a=s.vmax}return n&&(i+=e-a),i},transformOut:function(e,t){if(t&&t.depth===Ta)return e;for(var i=BW,a=FW,n=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=i+l.vmin-a,f=u+l.gapReal;if(e<=f){e>u?o=l.vmin+(e-u)/(f-u)*(l.vmax-l.vmin):o=a+e-i,a=l.vmax,n=!1;break}i=f,a=l.vmax}return n&&(o=a+e-i),o}},r})();function Kne(r,e){return new Zne(r,e)}var BW=0,FW=0;function qne(r,e){var t=0,i={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},n={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};T(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=CD(s,e);if(u){var f=u.vmin!==s.vmin,p=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!(f&&p))if(f||p){var v=f?"S":"E";n[v][l.type].has=!0,n[v][l.type].span=c,n[v][l.type].inExtFrac=c/(s.vmax-s.vmin),n[v][l.type].val=l.val}else i[l.type].span+=c,i[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(i.tpAbs.val-i.tpAbs.span)+(n.S.tpAbs.has?(n.S.tpAbs.val-n.S.tpAbs.span)*n.S.tpAbs.inExtFrac:0)+(n.E.tpAbs.has?(n.E.tpAbs.val-n.E.tpAbs.span)*n.E.tpAbs.inExtFrac:0)-i.tpPrct.span-(n.S.tpPrct.has?n.S.tpPrct.span*n.S.tpPrct.inExtFrac:0)-(n.E.tpPrct.has?n.E.tpPrct.span*n.E.tpPrct.inExtFrac:0))/(1-i.tpPrct.val-(n.S.tpPrct.has?n.S.tpPrct.val*n.S.tpPrct.inExtFrac:0)-(n.E.tpPrct.has?n.E.tpPrct.val*n.E.tpPrct.inExtFrac:0));T(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?Ae(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function jne(r,e,t,i,a,n){r!=="no"&&T(t,function(o){var s=CD(o,n);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],f=i(u),p=a*3/4;f>s.vmin-p&&f<s.vmax+p&&(r!=="preserve_extent_bound"||f!==n[0]&&f!==n[1])&&e.splice(l,1)}})}function Jne(r,e,t,i){T(e,function(a){var n=CD(a,t);n&&(r.push({value:n.vmin,break:{type:"vmin",parsedBreak:n},time:i?i(n):void 0}),r.push({value:n.vmax,break:{type:"vmax",parsedBreak:n},time:i?i(n):void 0}))}),e.length&&r.sort(function(a,n){return a.value-n.value})}function CD(r,e){var t=Ae(r.vmin,e[0]),i=Ye(r.vmax,e[1]);return t<i||t===i&&t>e[0]&&t<e[1]?{vmin:t,vmax:i,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function wD(r,e,t){var i=[];if(!r)return{breaks:i};function a(o,s){return o>=0&&o<1-1e-5}T(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ae(o),vmin:e.parse(o.start),vmax:e.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(W(o.gap)){var u=Jt(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;a(f,"Percent gap")||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var p=e.parse(o.gap);(!isFinite(p)||p<0)&&(p=0),s.gapParsed.type="tpAbs",s.gapParsed.val=p}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&T(["vmin","vmax"],function(v){s[v]<0&&(s[v]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}i.push(s)}}),i.sort(function(o,s){return o.vmin-s.vmin});var n=-1/0;return T(i,function(o,s){n>o.vmin&&(i[s]=null),n=o.vmax}),{breaks:Ne(i,function(o){return!!o})}}function AD(r,e){return TD(e)===TD(r)}function TD(r){return r.start+"_\0_"+r.end}function Qne(r,e,t){var i=[];T(r,function(n,o){var s=e(n);s&&s.type==="vmin"&&i.push([o])}),T(r,function(n,o){var s=e(n);if(s&&s.type==="vmax"){var l=Vi(i,function(u){return AD(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return T(i,function(n){n.length===2&&a.push(t?n:[r[n[0]],r[n[1]]])}),a}function $ne(r,e,t,i){if(e.break){var a=e.break.parsedBreak,n=Vi(t,function(f){return AD(f.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:i,depth:Ta},s=r.transformOut(a.vmin,o),l=r.transformOut(a.vmax,o),u={vmin:s,vmax:l,breakOption:a.breakOption,gapParsed:ae(n.gapParsed),gapReal:a.gapReal};return{tickVal:u[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}}function eoe(r,e,t,i,a){a.original=wD(r,e,t);var n=a.transformed=wD(r,e,t),o=a.lookup;n.breaks=U(n.breaks,function(s,l){var u={depth:Ta},f=e.transformIn(s.vmin,u),p=e.transformIn(s.vmax,u),c={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?e.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[i+l]=f,o.to[i+l]=s.vmin,o.from[i+l+1]=p,o.to[i+l+1]=s.vmax,{vmin:f,vmax:p,gapParsed:c,gapReal:s.gapReal,breakOption:s.breakOption}})}var toe={vmin:"start",vmax:"end"};function roe(r,e){return e&&(r=r||{},r.break={type:toe[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function GW(){OP({createBreakScaleMapper:Kne,pruneTicksByBreak:jne,addBreaksToTicks:Jne,parseAxisBreakOption:wD,identifyAxisBreak:AD,serializeAxisBreakIdentifier:TD,retrieveAxisBreakPairs:Qne,getTicksBreakOutwardTransform:$ne,parseAxisBreakOptionInwardTransform:eoe,makeAxisLabelFormatterParamBreak:roe})}var HW=ue();function ioe(r,e){var t=Vi(r,function(i){return yt().identifyAxisBreak(i.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function aoe(r){T(r,function(e){return e.shouldRemove=!0})}function noe(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function ooe(r,e,t,i,a){var n=t.axis;if(n.scale.isBlank()||!yt())return;var o=yt().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var p=s.get("expandOnClick"),c=s.get("zigzagZ"),v=s.getModel("itemStyle"),h=v.getItemStyle(),d=h.stroke,m=h.lineWidth,g=h.lineDash,y=h.fill,x=new te({ignoreModelZ:!0}),_=n.isHorizontal(),S=HW(e).visualList||(HW(e).visualList=[]);aoe(S);for(var b=function(C){var E=o[C][0].break.parsedBreak,D=[];D[0]=n.toGlobalCoord(n.dataToCoord(E.vmin,!0)),D[1]=n.toGlobalCoord(n.dataToCoord(E.vmax,!0)),D[1]<D[0]&&D.reverse();var L=ioe(S,E);L.shouldRemove=!1;var M=new te;A(L.zigzagRandomList,M,D[0],D[1],_,E),p&&M.on("click",function(){var P={type:wp,breaks:[{start:E.breakOption.start,end:E.breakOption.end}]};P[n.dim+"AxisIndex"]=t.componentIndex,a.dispatchAction(P)}),M.silent=!p,x.add(M)},w=0;w<o.length;w++)b(w);r.add(x),noe(S);function A(C,E,D,L,M,P){var O={stroke:d,lineWidth:m,lineDash:g,fill:"none"},R=M?0:1,z=1-R,B=i[De[z]]+i[St[z]];function F(ze){var Se=[],Oe=[];Se[R]=Oe[R]=ze,Se[z]=i[De[z]],Oe[z]=B;var ke={x1:Se[0],y1:Se[1],x2:Oe[0],y2:Oe[1]};return Yl(ke,ke,{lineWidth:1}),Se[0]=ke.x1,Se[1]=ke.y1,Se[R]}D=F(D),L=F(L);for(var H=[],Y=[],q=!0,oe=i[De[z]],X=0;;X++){var G=oe===i[De[z]],ne=oe>=B;ne&&(oe=B);var ve=[],pe=[];ve[R]=D,pe[R]=L,!G&&!ne&&(ve[R]+=q?-l:l,pe[R]-=q?l:-l),ve[z]=oe,pe[z]=oe,H.push(ve),Y.push(pe);var j=void 0;if(X<C.length?j=C[X]:(j=Math.random(),C.push(j)),oe+=j*(f-u)+u,q=!q,ne)break}var me=yt().serializeAxisBreakIdentifier(P.breakOption);if(E.add(new mt({anid:"break_a_"+me,shape:{points:H},style:O,z:c})),P.gapReal!==0){E.add(new mt({anid:"break_b_"+me,shape:{points:Y},style:O,z:c}));var ie=Y.slice();ie.reverse();var he=H.concat(ie);E.add(new _t({anid:"break_c_"+me,shape:{points:he},style:{fill:y,opacity:h.opacity},z:c}))}}}function soe(r,e,t,i){var a=r.axis,n=t.transform;lt(i.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=yt().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(m){return m.break},!1),l=U(s,function(m){var g=m[0].break.parsedBreak,y=[a.dataToCoord(g.vmin,!0),a.dataToCoord(g.vmax,!0)];return y[0]>y[1]&&y.reverse(),{coordPair:y,brkId:yt().serializeAxisBreakIdentifier(g.breakOption)}});l.sort(function(m,g){return m.coordPair[0]-g.coordPair[0]});for(var u=o[0],f=null,p=0;p<l.length;p++){var c=l[p],v=Math.max(c.coordPair[0],o[0]),h=Math.min(c.coordPair[1],o[1]);u<=v&&d(u,v,f,c),u=h,f=c}u<=o[1]&&d(u,o[1],f,null);function d(m,g,y,x){function _(D,L){n&&(ft(D,D,n),ft(L,L,n))}function S(D,L){var M={x1:D[0],y1:D[1],x2:L[0],y2:L[1]};Yl(M,M,i.style),D[0]=M.x1,D[1]=M.y1,L[0]=M.x2,L[1]=M.y2}var b=[m,0],w=[g,0],A=[m,5],C=[g,5];_(b,A),S(b,A),_(w,C),S(w,C),S(b,w);var E=new ct(k({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},i));e.add(E),E.anid="breakLine_"+(y?y.brkId:"\0")+"_\0_"+(x?x.brkId:"\0")}}function loe(r,e,t){if(Vi(t,function(y){return!y}))return;var i=new ye;if(!Sp(t[0],t[1],i,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var a=it();Pr(a,a,-e);var n=U(t,function(y){return y.transform?ar(it(),a,y.transform):a});function o(y){var x=t[0].localRect,_=new ye(x[St[y]]*n[0][0],x[St[y]]*n[0][1]);return Math.abs(_.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=U(t,function(y,x){var _=y.localRect.clone();return _.applyTransform(n[x]),_}),u=new ye;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(a);var f=i.clone().transform(a),p=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),c=(p+f.x)/2-u.x,v=Math.min(c,c-f.x),h=Math.max(c,c-f.x),d=h<0?h:v>0?v:0;s=(c-d)/f.x}var m=new ye,g=new ye;ye.scale(m,i,-s),ye.scale(g,i,1-s),Qv(t[0],m),Qv(t[1],g)}function uoe(r,e){var t={breaks:[]};return T(e.breaks,function(i){if(i){var a=Vi(r.get("breaks",!0),function(s){return yt().identifyAxisBreak(s,i)});if(a){var n=e.type,o={isExpanded:!!a.isExpanded};a.isExpanded=n===wp?!0:n===Gw?!1:n===Hw?!a.isExpanded:a.isExpanded,t.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),t}function WW(){Dk({adjustBreakLabelPair:loe,buildAxisBreakLine:soe,rectCoordBuildBreakAxis:ooe,updateModelAxisBreak:uoe})}function ED(r){Mk(r),GW(),WW()}function DD(){Rz(foe)}function foe(r,e){T(r,function(t){if(!t.model.get(["axisLabel","inside"])){var i=poe(t);if(i){var a=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);e[a]-=i[a]+n,t.position==="top"?e.y+=i.height+n:t.position==="left"&&(e.x+=i.width+n)}}})}function poe(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var i,a,n=t.getExtent();t instanceof bu?a=t.count():(i=t.getTicks(),a=i.length);var o=r.getLabelModel(),s=wu(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var p=i?i[f]:{value:n[0]+f},c=s(p,f),v=o.getTextRect(c),h=d(v,o.get("rotate")||0);l?l.union(h):l=h}return l;function d(m,g){var y=g*Math.PI/180,x=m.width,_=m.height,S=x*Math.abs(Math.cos(y))+Math.abs(_*Math.sin(y)),b=x*Math.abs(Math.sin(y))+Math.abs(_*Math.cos(y)),w=new fe(m.x,m.y,S,b);return w}}Me([fh]);Me([Ew]);Me([Bw,tT,oT,yT,wT,HT,QT,fC,AC,MC,IC,LC,KC,jC,QC,aA,nA,oA,sA,pA,vA,dA,zA]);Me(YA);Me(JA);Me(Th);Me($A);Me(Nh);Me(rE);Me(mE);Me(yE);Me(DE);Me(PE);Me(xn);Me(zE);Me(VE);Me(GE);Me(ZE);Me(qE);Me(jE);Me(iD);Me(lD);Me(jh);Me($h);Me(cD);Me(td);Me(rd);Me(vD);Me(dD);Me(gD);Me(id);Me(bD);Me(th);Me(ED);Me(DD);Me(xT);Me([fh,id]);Me(th);E2({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(r){return{fill:r.get("color")}},visualDrawType:"fill",optionUpdated:function(){var r=this.option;r.gridSize=Math.max(Math.floor(r.gridSize),4)},getInitialData:function(r,e){var t=un.createDimensions(r.data,{coordDimensions:["value"]}),i=new Tt(t,this);return i.initData(r.data),i},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}});D2({type:"wordCloud",render:function(r,e,t){var i=this.group;i.removeAll();var a=r.getData(),n=r.get("gridSize");r.layoutInstance.ondraw=function(o,s,l,u){var f=a.getItemModel(l),p=f.getModel("textStyle"),c=new Cy.Text({style:un.createTextStyle(p),scaleX:1/u.info.mu,scaleY:1/u.info.mu,x:(u.gx+u.info.gw/2)*n,y:(u.gy+u.info.gh/2)*n,rotation:u.rot});c.setStyle({x:u.info.fillTextOffsetX,y:u.info.fillTextOffsetY+s*.5,text:o,verticalAlign:"middle",fill:a.getItemVisual(l,"style").fill,fontSize:s}),i.add(c),a.setItemGraphicEl(l,c),c.ensureState("emphasis").style=un.createTextStyle(f.getModel(["emphasis","textStyle"]),{state:"emphasis"}),c.ensureState("blur").style=un.createTextStyle(f.getModel(["blur","textStyle"]),{state:"blur"}),un.enableHoverEmphasis(c,f.get(["emphasis","focus"]),f.get(["emphasis","blurScope"])),c.stateTransition={duration:r.get("animation")?r.get(["stateAnimation","duration"]):0,easing:r.get(["stateAnimation","easing"])},c.__highDownDispatcher=!0},this._model=r},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});window.setImmediate||(window.setImmediate=(function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||(function(){if(!window.postMessage||!window.addEventListener)return null;var t=[void 0],i="zero-timeout-message",a=function(o){var s=t.length;return t.push(o),window.postMessage(i+s.toString(36),"*"),s};return window.addEventListener("message",function(o){if(!(typeof o.data!="string"||o.data.substr(0,i.length)!==i)){o.stopImmediatePropagation();var s=parseInt(o.data.substr(i.length),36);t[s]&&(t[s](),t[s]=void 0)}},!0),window.clearImmediate=function(o){t[o]&&(t[o]=void 0)},a})()||function(t){window.setTimeout(t,0)}})());window.clearImmediate||(window.clearImmediate=(function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)}})());var LD=(function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return!(!t||!t.getImageData||!t.fillText||!Array.prototype.some||!Array.prototype.push)})(),ID=(function(){if(LD){for(var e=document.createElement("canvas").getContext("2d"),t=20,i,a;t;){if(e.font=t.toString(10)+"px sans-serif",e.measureText("\uFF37").width===i&&e.measureText("m").width===a)return t+1;i=e.measureText("\uFF37").width,a=e.measureText("m").width,t--}return 0}})(),coe=function(r){if(Array.isArray(r)){var e=r.slice();return e.splice(0,2),e}else return[]},voe=function(e){for(var t,i,a=e.length;a;)t=Math.floor(Math.random()*a),i=e[--a],e[a]=e[t],e[t]=i;return e},_c={},PD=function(e,t){if(!LD)return;var i=Math.floor(Math.random()*Date.now());Array.isArray(e)||(e=[e]),e.forEach(function(X,G){if(typeof X=="string"){if(e[G]=document.getElementById(X),!e[G])throw new Error("The element id specified is not found.")}else if(!X.tagName&&!X.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")});var a={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "\u5FAE\u8EDF\u6B63\u9ED1\u9AD4", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var n in t)n in a&&(a[n]=t[n]);if(typeof a.weightFactor!="function"){var o=a.weightFactor;a.weightFactor=function(G){return G*o}}if(typeof a.shape!="function")switch(a.shape){case"circle":default:a.shape="circle";break;case"cardioid":a.shape=function(G){return 1-Math.sin(G)};break;case"diamond":a.shape=function(G){var ne=G%(2*Math.PI/4);return 1/(Math.cos(ne)+Math.sin(ne))};break;case"square":a.shape=function(G){return Math.min(1/Math.abs(Math.cos(G)),1/Math.abs(Math.sin(G)))};break;case"triangle-forward":a.shape=function(G){var ne=G%(2*Math.PI/3);return 1/(Math.cos(ne)+Math.sqrt(3)*Math.sin(ne))};break;case"triangle":case"triangle-upright":a.shape=function(G){var ne=(G+Math.PI*3/2)%(2*Math.PI/3);return 1/(Math.cos(ne)+Math.sqrt(3)*Math.sin(ne))};break;case"pentagon":a.shape=function(G){var ne=(G+.955)%(2*Math.PI/5);return 1/(Math.cos(ne)+.726543*Math.sin(ne))};break;case"star":a.shape=function(G){var ne=(G+.955)%(2*Math.PI/10);return(G+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-ne)+3.07768*Math.sin(2*Math.PI/10-ne)):1/(Math.cos(ne)+3.07768*Math.sin(ne))};break}a.gridSize=Math.max(Math.floor(a.gridSize),4);var s=a.gridSize,l=s-a.maskGapWidth,u=Math.abs(a.maxRotation-a.minRotation),f=Math.min(a.maxRotation,a.minRotation),p=a.rotationStep,c,v,h,d,m,g,y;function x(X,G){return"hsl("+(Math.random()*360).toFixed()+","+(Math.random()*30+70).toFixed()+"%,"+(Math.random()*(G-X)+X).toFixed()+"%)"}switch(a.color){case"random-dark":y=function(){return x(10,50)};break;case"random-light":y=function(){return x(50,90)};break;default:typeof a.color=="function"&&(y=a.color);break}var _;typeof a.fontWeight=="function"&&(_=a.fontWeight);var S=null;typeof a.classes=="function"&&(S=a.classes);var b=!1,w=[],A,C=function(G){var ne=G.currentTarget,ve=ne.getBoundingClientRect(),pe,j;G.touches?(pe=G.touches[0].clientX,j=G.touches[0].clientY):(pe=G.clientX,j=G.clientY);var me=pe-ve.left,ie=j-ve.top,he=Math.floor(me*(ne.width/ve.width||1)/s),ze=Math.floor(ie*(ne.height/ve.height||1)/s);return w[he]?w[he][ze]:null},E=function(G){var ne=C(G);if(A!==ne){if(A=ne,!ne){a.hover(void 0,void 0,G);return}a.hover(ne.item,ne.dimension,G)}},D=function(G){var ne=C(G);ne&&(a.click(ne.item,ne.dimension,G),G.preventDefault())},L=[],M=function(G){if(L[G])return L[G];var ne=G*8,ve=ne,pe=[];for(G===0&&pe.push([d[0],d[1],0]);ve--;){var j=1;a.shape!=="circle"&&(j=a.shape(ve/ne*2*Math.PI)),pe.push([d[0]+G*j*Math.cos(-ve/ne*2*Math.PI),d[1]+G*j*Math.sin(-ve/ne*2*Math.PI)*a.ellipticity,ve/ne*2*Math.PI])}return L[G]=pe,pe},P=function(){return a.abortThreshold>0&&new Date().getTime()-g>a.abortThreshold},O=function(){return a.rotateRatio===0||Math.random()>a.rotateRatio?0:u===0?f:f+Math.round(Math.random()*u/p)*p},R=function(G,ne,ve,pe){var j=!1,me=a.weightFactor(ne);if(me<=a.minSize)return!1;var ie=1;me<ID&&(ie=(function(){for(var c_=2;c_*me<ID;)c_+=2;return c_})());var he;_?he=_(G,ne,me,pe):he=a.fontWeight;var ze=document.createElement("canvas"),Se=ze.getContext("2d",{willReadFrequently:!0});Se.font=he+" "+(me*ie).toString(10)+"px "+a.fontFamily;var Oe=Se.measureText(G).width/ie,ke=Math.max(me*ie,Se.measureText("m").width,Se.measureText("\uFF37").width)/ie,Je=Oe+ke*2,dt=ke*3,At=Math.ceil(Je/s),Et=Math.ceil(dt/s);Je=At*s,dt=Et*s;var Qe=-Oe/2,It=-ke*.4,tr=Math.ceil((Je*Math.abs(Math.sin(ve))+dt*Math.abs(Math.cos(ve)))/s),zi=Math.ceil((Je*Math.abs(Math.cos(ve))+dt*Math.abs(Math.sin(ve)))/s),vl=zi*s,$u=tr*s;ze.setAttribute("width",vl),ze.setAttribute("height",$u),j&&(document.body.appendChild(ze),Se.save()),Se.scale(1/ie,1/ie),Se.translate(vl*ie/2,$u*ie/2),Se.rotate(-ve),Se.font=he+" "+(me*ie).toString(10)+"px "+a.fontFamily,Se.fillStyle="#000",Se.textBaseline="middle",Se.fillText(G,Qe*ie,(It+me*.5)*ie);var XW=Se.getImageData(0,0,vl,$u).data;if(P())return!1;j&&(Se.strokeRect(Qe*ie,It,Oe*ie,ke*ie),Se.restore());for(var OD=[],uo=zi,bn,f_,p_,Wr=[tr/2,zi/2,tr/2,zi/2];uo--;)for(bn=tr;bn--;){p_=s;e:for(;p_--;)for(f_=s;f_--;)if(XW[((bn*s+p_)*vl+(uo*s+f_))*4+3]){OD.push([uo,bn]),uo<Wr[3]&&(Wr[3]=uo),uo>Wr[1]&&(Wr[1]=uo),bn<Wr[0]&&(Wr[0]=bn),bn>Wr[2]&&(Wr[2]=bn),j&&(Se.fillStyle="rgba(255, 0, 0, 0.5)",Se.fillRect(uo*s,bn*s,s-.5,s-.5));break e}j&&(Se.fillStyle="rgba(0, 0, 255, 0.5)",Se.fillRect(uo*s,bn*s,s-.5,s-.5))}return j&&(Se.fillStyle="rgba(0, 255, 0, 0.5)",Se.fillRect(Wr[3]*s,Wr[0]*s,(Wr[1]-Wr[3]+1)*s,(Wr[2]-Wr[0]+1)*s)),{mu:ie,occupied:OD,bounds:Wr,gw:zi,gh:tr,fillTextOffsetX:Qe,fillTextOffsetY:It,fillTextWidth:Oe,fillTextHeight:ke,fontSize:me}},z=function(G,ne,ve,pe,j){for(var me=j.length;me--;){var ie=G+j[me][0],he=ne+j[me][1];if(ie>=v||he>=h||ie<0||he<0){if(!a.drawOutOfBound)return!1;continue}if(!c[ie][he])return!1}return!0},B=function(G,ne,ve,pe,j,me,ie,he,ze,Se){var Oe=ve.fontSize,ke;y?ke=y(pe,j,Oe,me,ie,Se):ke=a.color;var Je;_?Je=_(pe,j,Oe,Se):Je=a.fontWeight;var dt;S?dt=S(pe,j,Oe,Se):dt=a.classes,e.forEach(function(At){if(At.getContext){var Et=At.getContext("2d"),Qe=ve.mu;Et.save(),Et.scale(1/Qe,1/Qe),Et.font=Je+" "+(Oe*Qe).toString(10)+"px "+a.fontFamily,Et.fillStyle=ke,Et.translate((G+ve.gw/2)*s*Qe,(ne+ve.gh/2)*s*Qe),he!==0&&Et.rotate(-he),Et.textBaseline="middle",Et.fillText(pe,ve.fillTextOffsetX*Qe,(ve.fillTextOffsetY+Oe*.5)*Qe),Et.restore()}else{var It=document.createElement("span"),tr="";tr="rotate("+-he/Math.PI*180+"deg) ",ve.mu!==1&&(tr+="translateX(-"+ve.fillTextWidth/4+"px) scale("+1/ve.mu+")");var zi={position:"absolute",display:"block",font:Je+" "+Oe*ve.mu+"px "+a.fontFamily,left:(G+ve.gw/2)*s+ve.fillTextOffsetX+"px",top:(ne+ve.gh/2)*s+ve.fillTextOffsetY+"px",width:ve.fillTextWidth+"px",height:ve.fillTextHeight+"px",lineHeight:Oe+"px",whiteSpace:"nowrap",transform:tr,webkitTransform:tr,msTransform:tr,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};ke&&(zi.color=ke),It.textContent=pe;for(var vl in zi)It.style[vl]=zi[vl];if(ze)for(var $u in ze)It.setAttribute($u,ze[$u]);dt&&(It.className+=dt),At.appendChild(It)}})},F=function(G,ne,ve,pe,j){if(!(G>=v||ne>=h||G<0||ne<0)){if(c[G][ne]=!1,ve){var me=e[0].getContext("2d");me.fillRect(G*s,ne*s,l,l)}b&&(w[G][ne]={item:j,dimension:pe})}},H=function(G,ne,ve,pe,j,me){var ie=j.occupied,he=a.drawMask,ze;he&&(ze=e[0].getContext("2d"),ze.save(),ze.fillStyle=a.maskColor);var Se;if(b){var Oe=j.bounds;Se={x:(G+Oe[3])*s,y:(ne+Oe[0])*s,w:(Oe[1]-Oe[3]+1)*s,h:(Oe[2]-Oe[0]+1)*s}}for(var ke=ie.length;ke--;){var Je=G+ie[ke][0],dt=ne+ie[ke][1];Je>=v||dt>=h||Je<0||dt<0||F(Je,dt,he,Se,me)}he&&ze.restore()},Y=function X(G,ne){if(ne>20)return null;var ve,pe,j;Array.isArray(G)?(ve=G[0],pe=G[1]):(ve=G.word,pe=G.weight,j=G.attributes);var me=O(),ie=coe(G),he=R(ve,pe,me,ie);if(!he||P())return!1;if(!a.drawOutOfBound&&!a.shrinkToFit){var ze=he.bounds;if(ze[1]-ze[3]+1>v||ze[2]-ze[0]+1>h)return!1}for(var Se=m+1,Oe=function(At){var Et=Math.floor(At[0]-he.gw/2),Qe=Math.floor(At[1]-he.gh/2),It=he.gw,tr=he.gh;return z(Et,Qe,It,tr,he.occupied)?(B(Et,Qe,he,ve,pe,m-Se,At[2],me,j,ie),H(Et,Qe,It,tr,he,G),{gx:Et,gy:Qe,rot:me,info:he}):!1};Se--;){var ke=M(m-Se);a.shuffle&&(ke=[].concat(ke),voe(ke));for(var Je=0;Je<ke.length;Je++){var dt=Oe(ke[Je]);if(dt)return dt}}return a.shrinkToFit?(Array.isArray(G)?G[1]=G[1]*3/4:G.weight=G.weight*3/4,X(G,ne+1)):null},q=function(G,ne,ve){if(ne)return!e.some(function(pe){var j=new CustomEvent(G,{detail:ve||{}});return!pe.dispatchEvent(j)},this);e.forEach(function(pe){var j=new CustomEvent(G,{detail:ve||{}});pe.dispatchEvent(j)},this)},oe=function(){var G=e[0];if(G.getContext)v=Math.ceil(G.width/s),h=Math.ceil(G.height/s);else{var ne=G.getBoundingClientRect();v=Math.ceil(ne.width/s),h=Math.ceil(ne.height/s)}if(q("wordcloudstart",!0)){d=a.origin?[a.origin[0]/s,a.origin[1]/s]:[v/2,h/2],m=Math.floor(Math.sqrt(v*v+h*h)),c=[];var ve,pe,j;if(!G.getContext||a.clearCanvas)for(e.forEach(function(Qe){if(Qe.getContext){var It=Qe.getContext("2d");It.fillStyle=a.backgroundColor,It.clearRect(0,0,v*(s+1),h*(s+1)),It.fillRect(0,0,v*(s+1),h*(s+1))}else Qe.textContent="",Qe.style.backgroundColor=a.backgroundColor,Qe.style.position="relative"}),ve=v;ve--;)for(c[ve]=[],pe=h;pe--;)c[ve][pe]=!0;else{var me=document.createElement("canvas").getContext("2d");me.fillStyle=a.backgroundColor,me.fillRect(0,0,1,1);var ie=me.getImageData(0,0,1,1).data,he=G.getContext("2d").getImageData(0,0,v*s,h*s).data;ve=v;for(var ze,Se;ve--;)for(c[ve]=[],pe=h;pe--;){Se=s;e:for(;Se--;)for(ze=s;ze--;)for(j=4;j--;)if(he[((pe*s+Se)*v*s+(ve*s+ze))*4+j]!==ie[j]){c[ve][pe]=!1;break e}c[ve][pe]!==!1&&(c[ve][pe]=!0)}he=me=ie=void 0}if(a.hover||a.click){for(b=!0,ve=v+1;ve--;)w[ve]=[];a.hover&&G.addEventListener("mousemove",E),a.click&&(G.addEventListener("click",D),G.addEventListener("touchstart",D),G.addEventListener("touchend",function(Qe){Qe.preventDefault()}),G.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),G.addEventListener("wordcloudstart",function Qe(){G.removeEventListener("wordcloudstart",Qe),G.removeEventListener("mousemove",E),G.removeEventListener("click",D),A=void 0})}j=0;var Oe,ke,Je=!0;a.layoutAnimation?a.wait!==0?(Oe=window.setTimeout,ke=window.clearTimeout):(Oe=window.setImmediate,ke=window.clearImmediate):(Oe=function(Qe){Qe()},ke=function(){Je=!1});var dt=function(It,tr){e.forEach(function(zi){zi.addEventListener(It,tr)},this)},At=function(It,tr){e.forEach(function(zi){zi.removeEventListener(It,tr)},this)},Et=function Qe(){At("wordcloudstart",Qe),ke(_c[i])};dt("wordcloudstart",Et),_c[i]=(a.layoutAnimation?Oe:setTimeout)(function Qe(){if(Je){if(j>=a.list.length){ke(_c[i]),q("wordcloudstop",!1),At("wordcloudstart",Et),delete _c[i];return}g=new Date().getTime();var It=Y(a.list[j],0),tr=!q("wordclouddrawn",!0,{item:a.list[j],drawn:It});if(P()||tr){ke(_c[i]),a.abort(),q("wordcloudabort",!1),q("wordcloudstop",!1),At("wordcloudstart",Et);return}j++,_c[i]=Oe(Qe,a.wait)}},a.wait)}};oe()};PD.isSupported=LD;PD.minFontSize=ID;var RD=PD;if(!RD.isSupported)throw new Error("Sorry your browser not support wordCloud");function hoe(r){for(var e=r.getContext("2d"),t=e.getImageData(0,0,r.width,r.height),i=e.createImageData(t),a=0,n=0,o=0;o<t.data.length;o+=4){var s=t.data[o+3];if(s>128){var l=t.data[o]+t.data[o+1]+t.data[o+2];a+=l,++n}}for(var u=a/n,o=0;o<t.data.length;o+=4){var l=t.data[o]+t.data[o+1]+t.data[o+2],s=t.data[o+3];s<128||l>u?(i.data[o]=0,i.data[o+1]=0,i.data[o+2]=0,i.data[o+3]=0):(i.data[o]=255,i.data[o+1]=255,i.data[o+2]=255,i.data[o+3]=255)}e.putImageData(i,0,0)}ay(function(r,e){r.eachSeriesByType("wordCloud",function(t){var i=un.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),a=t.get("keepAspect"),n=t.get("maskImage"),o=n?n.width/n.height:1;a&&doe(i,o);var s=t.getData(),l=document.createElement("canvas");l.width=i.width,l.height=i.height;var u=l.getContext("2d");if(n)try{u.drawImage(n,0,0,l.width,l.height),hoe(l)}catch(m){console.error("Invalid mask image"),console.error(m.toString())}var f=t.get("sizeRange"),p=t.get("rotationRange"),c=s.getDataExtent("value"),v=Math.PI/180,h=t.get("gridSize");RD(l,{list:s.mapArray("value",function(m,g){var y=s.getItemModel(g);return[s.getName(g),y.get("textStyle.fontSize",!0)||Ty.linearMap(m,c,f),g]}).sort(function(m,g){return g[1]-m[1]}),fontFamily:t.get("textStyle.fontFamily")||t.get("emphasis.textStyle.fontFamily")||r.get("textStyle.fontFamily"),fontWeight:t.get("textStyle.fontWeight")||t.get("emphasis.textStyle.fontWeight")||r.get("textStyle.fontWeight"),gridSize:h,ellipticity:i.height/i.width,minRotation:p[0]*v,maxRotation:p[1]*v,clearCanvas:!n,rotateRatio:1,rotationStep:t.get("rotationStep")*v,drawOutOfBound:t.get("drawOutOfBound"),shrinkToFit:t.get("shrinkToFit"),layoutAnimation:t.get("layoutAnimation"),shuffle:!1,shape:t.get("shape")});function d(m){var g=m.detail.item;m.detail.drawn&&t.layoutInstance.ondraw&&(m.detail.drawn.gx+=i.x/h,m.detail.drawn.gy+=i.y/h,t.layoutInstance.ondraw(g[0],g[1],g[2],m.detail.drawn))}l.addEventListener("wordclouddrawn",d),t.layoutInstance&&t.layoutInstance.dispose(),t.layoutInstance={ondraw:null,dispose:function(){l.removeEventListener("wordclouddrawn",d),l.addEventListener("wordclouddrawn",function(m){m.preventDefault()})}}})});zv(function(r){var e=(r||{}).series;!gp.isArray(e)&&(e=e?[e]:[]);var t=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];gp.each(e,function(a){if(a&&a.type==="wordCloud"){var n=a.textStyle||{};i(n.normal),i(n.emphasis)}});function i(a){a&&gp.each(t,function(n){a.hasOwnProperty(n)&&(a["text"+Ay.capitalFirst(n)]=a[n])})}});function doe(r,e){var t=r.width,i=r.height;t>i*e?(r.x+=(t-i*e)/2,r.width=i*e):(r.y+=(i-t/e)/2,r.height=t/e)}function moe(r,e,t){let i=t!==void 0&&t.height!==void 0?{height:t.height}:void 0,a=lN(r,void 0,i);return a.setOption(e),a}var YW=globalThis,goe=YW.__GenuiAssets__??(YW.__GenuiAssets__={});goe.echartsFull={createChart:moe};})();
41
+ /*! Bundled license information:
42
+
43
+ tslib/tslib.es6.js:
44
+ (*! *****************************************************************************
45
+ Copyright (c) Microsoft Corporation.
46
+
47
+ Permission to use, copy, modify, and/or distribute this software for any
48
+ purpose with or without fee is hereby granted.
49
+
50
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
51
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
52
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
53
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
54
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
55
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
56
+ PERFORMANCE OF THIS SOFTWARE.
57
+ ***************************************************************************** *)
58
+
59
+ zrender/lib/zrender.js:
60
+ (*!
61
+ * ZRender, a high performance 2d drawing library.
62
+ *
63
+ * Copyright (c) 2013, Baidu Inc.
64
+ * All rights reserved.
65
+ *
66
+ * LICENSE
67
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
68
+ *)
69
+
70
+ echarts-wordcloud/src/layout.js:
71
+ (*!
72
+ * wordcloud2.js
73
+ * http://timdream.org/wordcloud2.js/
74
+ *
75
+ * Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
76
+ * Released under the MIT license
77
+ *)
78
+ */