@gramlot/gramlot 0.3.27 → 0.3.30

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 (194) hide show
  1. package/assets/icons/chart.svg +1 -0
  2. package/dist/components/audio/__init__.py +13 -0
  3. package/dist/components/audio/assets/collection.js +3 -0
  4. package/dist/components/audio/assets/index.js +3 -0
  5. package/dist/components/audio/commands.json +7 -0
  6. package/dist/components/audio/grammar.json +335 -0
  7. package/dist/components/charts/__init__.py +13 -0
  8. package/dist/components/charts/assets/collection.js +47 -0
  9. package/dist/components/charts/assets/files/55ea01207028f76d844678511f29fc800f8a1e67a8a0fe80470128677847ad32-echarts-gl.txt +29 -0
  10. package/dist/components/charts/assets/files/63727832aaf62004a2b249c933e327f3c90caf49e41a72f4bf436edf632cbda8-vega.txt +27 -0
  11. package/dist/components/charts/assets/files/8c45d9eaf50c2f72dd9c7ab9ef440788ba58a3538484b5c51c1f17d5128752e7-plotly.txt +21 -0
  12. package/dist/components/charts/assets/files/8f989229699b4fe2f1a0432d0e9edc338a8a911e250e2d1b01ecd770a5f5b1bd-uplot.txt +21 -0
  13. package/dist/components/charts/assets/files/c8fa058cba98f7f288b5d8fa4116f441d6dacb25b96da859e518c973fff41d0c-claygl.txt +23 -0
  14. package/dist/components/charts/assets/index.js +3 -0
  15. package/dist/components/charts/assets/modules/chunk-2CCTLZE7.js +76 -0
  16. package/dist/components/charts/assets/modules/chunk-RMRBEYTI.js +1 -0
  17. package/dist/components/charts/assets/modules/echarts-gl-CXVTZA6G.js +4409 -0
  18. package/dist/components/charts/assets/modules/plotly.min-4LB7HE7P.js +3596 -0
  19. package/dist/components/charts/assets/modules/uPlot.esm-5JJNHHRF.js +3 -0
  20. package/dist/components/charts/assets/modules/uPlot.min-N3E3FA74.js +1 -0
  21. package/dist/components/charts/assets/modules/vega.module-2QCOVQ3A.js +13 -0
  22. package/dist/components/charts/commands.json +7 -0
  23. package/dist/components/charts/grammar.json +1113 -0
  24. package/dist/components/chat/__init__.py +1 -1
  25. package/dist/components/chat/assets/collection.js +3 -3
  26. package/dist/components/chat/assets/index.js +1 -1
  27. package/dist/components/drawing/__init__.py +15 -0
  28. package/dist/components/drawing/assets/collection.js +28 -0
  29. package/dist/components/drawing/assets/index.js +3 -0
  30. package/dist/components/drawing/commands.json +7 -0
  31. package/dist/components/drawing/grammar.json +110 -0
  32. package/dist/components/editors/__init__.py +2 -2
  33. package/dist/components/editors/assets/collection.js +18 -18
  34. package/dist/components/editors/assets/index.js +1 -1
  35. package/dist/components/editors/assets/modules/{prose-mirror-engine-GMZPJPNN.js → prose-mirror-engine-DQEAEIMV.js} +2 -2
  36. package/dist/components/editors/grammar.json +150 -0
  37. package/dist/components/grid/__init__.py +1 -1
  38. package/dist/components/grid/assets/collection.js +51 -30
  39. package/dist/components/grid/assets/index.js +1 -1
  40. package/dist/components/grid/grammar.json +258 -0
  41. package/dist/components/grouplets/__init__.py +1 -1
  42. package/dist/components/grouplets/assets/collection.js +3 -3
  43. package/dist/components/grouplets/assets/index.js +1 -1
  44. package/dist/components/inputs/__init__.py +3 -2
  45. package/dist/components/inputs/assets/collection.js +38 -23
  46. package/dist/components/inputs/assets/index.js +1 -1
  47. package/dist/components/inputs/grammar.json +1533 -321
  48. package/dist/components/layout/__init__.py +1 -1
  49. package/dist/components/layout/assets/collection.js +27 -23
  50. package/dist/components/layout/assets/index.js +1 -1
  51. package/dist/components/layout/grammar.json +85 -0
  52. package/dist/components/selection_trial/__init__.py +1 -1
  53. package/dist/components/selection_trial/assets/collection.js +3 -3
  54. package/dist/components/selection_trial/assets/index.js +1 -1
  55. package/dist/components/tree/__init__.py +1 -1
  56. package/dist/components/tree/assets/collection.js +11 -11
  57. package/dist/components/tree/assets/index.js +1 -1
  58. package/dist/components/tree/grammar.json +126 -0
  59. package/dist/components/typst/__init__.py +1 -1
  60. package/dist/components/typst/assets/collection.js +2 -2
  61. package/dist/components/typst/assets/index.js +1 -1
  62. package/dist/components/uploads/__init__.py +1 -1
  63. package/dist/components/uploads/assets/collection.js +8 -8
  64. package/dist/components/uploads/assets/index.js +1 -1
  65. package/dist/components/vizabi/__init__.py +13 -0
  66. package/dist/components/vizabi/assets/collection.js +22 -0
  67. package/dist/components/vizabi/assets/index.js +3 -0
  68. package/dist/components/vizabi/commands.json +7 -0
  69. package/dist/components/vizabi/grammar.json +128 -0
  70. package/dist/gramlot.js +572 -176
  71. package/dist/gramlot.min.js +85 -53
  72. package/dist/standard-collections.js +2 -0
  73. package/package.json +12 -4
  74. package/src/binding/grid-struct.js +2 -2
  75. package/src/binding/runtime.js +10 -0
  76. package/src/bootstrap.js +1 -1
  77. package/src/builder/gramlot-builder.d.ts +15 -2
  78. package/src/builder/gramlot-builder.js +22 -3
  79. package/src/builder/source.js +24 -1
  80. package/src/components/audio-analysis-session.js +65 -0
  81. package/src/components/audio.js +44 -0
  82. package/src/components/bases.js +6 -4
  83. package/src/components/border-container.js +6 -3
  84. package/src/components/buttons.js +47 -3
  85. package/src/components/chart-bar3d-options.js +30 -0
  86. package/src/components/chart-controls.js +83 -0
  87. package/src/components/chart-data-view.js +52 -0
  88. package/src/components/chart-data.js +42 -0
  89. package/src/components/chart-domains.js +46 -0
  90. package/src/components/chart-engines/echarts-options.js +50 -0
  91. package/src/components/chart-engines/echarts.js +82 -0
  92. package/src/components/chart-engines/index.js +22 -0
  93. package/src/components/chart-engines/plotly-map.js +34 -0
  94. package/src/components/chart-engines/plotly-spatial.js +35 -0
  95. package/src/components/chart-engines/plotly.js +138 -0
  96. package/src/components/chart-engines/uplot.js +57 -0
  97. package/src/components/chart-engines/vega.js +101 -0
  98. package/src/components/chart-fields.js +110 -0
  99. package/src/components/chart-geographic-options.js +47 -0
  100. package/src/components/chart-geojson.js +60 -0
  101. package/src/components/chart-geometry.js +11 -0
  102. package/src/components/chart-map-anchors.js +24 -0
  103. package/src/components/chart-map-bar3d-options.js +41 -0
  104. package/src/components/chart-map-data.js +25 -0
  105. package/src/components/chart-map-labels.js +8 -0
  106. package/src/components/chart-map-options.js +20 -0
  107. package/src/components/chart-pane.js +91 -0
  108. package/src/components/chart-renderer.js +58 -0
  109. package/src/components/chart-sample-view.js +32 -0
  110. package/src/components/chart-spatial-options.js +40 -0
  111. package/src/components/chart-time.js +84 -0
  112. package/src/components/chart-timeline.js +70 -0
  113. package/src/components/chart-types/area.js +2 -0
  114. package/src/components/chart-types/bar.js +2 -0
  115. package/src/components/chart-types/bar3D.js +2 -0
  116. package/src/components/chart-types/donut.js +2 -0
  117. package/src/components/chart-types/horizontalBar.js +2 -0
  118. package/src/components/chart-types/index.js +26 -0
  119. package/src/components/chart-types/line.js +2 -0
  120. package/src/components/chart-types/line3D.js +2 -0
  121. package/src/components/chart-types/lines3D.js +2 -0
  122. package/src/components/chart-types/map.js +2 -0
  123. package/src/components/chart-types/map3D.js +2 -0
  124. package/src/components/chart-types/mapBar3D.js +2 -0
  125. package/src/components/chart-types/pie.js +2 -0
  126. package/src/components/chart-types/polygons3D.js +2 -0
  127. package/src/components/chart-types/scatter.js +2 -0
  128. package/src/components/chart-types/scatter3D.js +2 -0
  129. package/src/components/chart-types/stackedArea.js +2 -0
  130. package/src/components/chart-types/stackedBar.js +2 -0
  131. package/src/components/chart-types/surface.js +2 -0
  132. package/src/components/charts.js +152 -0
  133. package/src/components/check-box-text-editor.js +88 -0
  134. package/src/components/check-box-text.js +193 -0
  135. package/src/components/check-box-tree.js +62 -0
  136. package/src/components/choice-editor.js +7 -5
  137. package/src/components/choice-field-styles.js +14 -0
  138. package/src/components/choices.js +5 -0
  139. package/src/components/drawing.js +199 -0
  140. package/src/components/grid-check-sets.js +98 -0
  141. package/src/components/grid-column-filters.js +198 -0
  142. package/src/components/grid-grammar.json +44 -0
  143. package/src/components/grid-header-interaction.js +3 -1
  144. package/src/components/grid-rows.js +2 -2
  145. package/src/components/grid-search-box.js +38 -22
  146. package/src/components/grid-search-styles.js +13 -14
  147. package/src/components/grid-search.js +8 -1
  148. package/src/components/grid-structure.js +10 -2
  149. package/src/components/grid-styles.js +23 -0
  150. package/src/components/grid.js +52 -10
  151. package/src/components/image-uploader.js +2 -2
  152. package/src/components/inputs.js +19 -10
  153. package/src/components/labelbox.js +5 -1
  154. package/src/components/licenses/claygl.txt +23 -0
  155. package/src/components/licenses/echarts-gl.txt +29 -0
  156. package/src/components/licenses/plotly.txt +21 -0
  157. package/src/components/licenses/uplot.txt +21 -0
  158. package/src/components/licenses/vega.txt +27 -0
  159. package/src/components/menus.js +19 -11
  160. package/src/components/toolbar-overflow.js +12 -8
  161. package/src/components/tree.js +30 -8
  162. package/src/components/typed-editor.js +14 -3
  163. package/src/components/vizabi-session.js +66 -0
  164. package/src/components/vizabi.js +66 -0
  165. package/src/components/window-surface.js +20 -9
  166. package/src/components/windows.js +1 -1
  167. package/src/gramlot.d.ts +1 -0
  168. package/src/gramlot.js +2 -0
  169. package/src/handlers/device-handler.js +32 -32
  170. package/src/handlers/source-handler.d.ts +2 -2
  171. package/src/ide-documents.js +19 -3
  172. package/src/ide-runtime.d.ts +1 -0
  173. package/src/ide-runtime.js +45 -31
  174. package/src/index.d.ts +1 -0
  175. package/src/renderer/drag-drop.js +1 -0
  176. package/src/renderer/gramlot-renderer.d.ts +2 -0
  177. package/src/renderer/gramlot-renderer.js +5 -4
  178. package/src/server/assets.d.ts +3 -0
  179. package/src/server/assets.js +9 -0
  180. package/src/server/gramlot-server.d.ts +1 -1
  181. package/src/server/gramlot-server.js +2 -1
  182. package/src/server/index.d.ts +1 -1
  183. package/src/server/index.js +1 -1
  184. package/src/server/visual-editor.js +17 -17
  185. package/src/stores/bag-collection-view.js +79 -17
  186. package/src/stores/collection-filter.js +2 -1
  187. package/src/stores/column-filter.js +49 -0
  188. package/src/stores/id-set.js +10 -0
  189. package/src/view/controls.js +8 -0
  190. package/src/view/html.js +10 -1
  191. package/src/view/label-menu.js +61 -0
  192. package/src/view/labelbox.js +15 -2
  193. package/themes/gramlot-base/theme.css +6 -0
  194. package/tools/gramlot-tools-inspector.js +169 -505
@@ -0,0 +1,76 @@
1
+ import{a as Ete}from"./chunk-RMRBEYTI.js";var kte=Ete((Gp,GN)=>{(function(de,wi){typeof Gp=="object"&&typeof GN<"u"?wi(Gp):typeof define=="function"&&define.amd?define(["exports"],wi):(de=typeof globalThis<"u"?globalThis:de||self,wi(de.echarts={}))})(Gp,(function(de){"use strict";/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */var wi=function(r,e){return wi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},wi(r,e)};function N(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");wi(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var FN=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),HN=(function(){function r(){this.browser=new FN,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})(),Ie=new HN;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ie.wxa=!0,Ie.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ie.worker=!0:!Ie.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ie.node=!0,Ie.svgSupported=!0):WN(navigator.userAgent,Ie);function WN(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[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 Fp=12,Ox="sans-serif",ea=Fp+"px "+Ox,UN=20,YN=100,XN="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ZN(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-UN)/YN;e[n]=a}return e}var $N=ZN(XN),Tt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,n){if(!r){var a=Tt.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||ea),r.measureText(t);t=t||"",n=n||ea;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||Fp,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=$N[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n},getTime:function(){return Date.now?Date.now():+new Date}};function Nx(r){for(var e in Tt)Tt.hasOwnProperty(e)&&r[e]&&(Tt[e]=r[e])}var Bx=Pr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Vx=Pr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),cs=Object.prototype.toString,bv=Array.prototype,qN=bv.forEach,KN=bv.filter,Hp=bv.slice,jN=bv.map,zx=function(){}.constructor,wv=zx?zx.prototype:null,Wp="__proto__",Up=2311,JN=Math.pow(2,53)-1;function Yp(){return Up>=JN&&(Up=0),Up++}function Lr(){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=cs.call(r);if(t==="[object Array]"){if(!hs(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=ae(r[n])}}else if(Vx[t]){if(!hs(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!Bx[t]&&!hs(r)&&!Oa(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Wp&&(e[o]=ae(r[o]))}return e}function _e(r,e,t){if(!ie(e)||!ie(r))return t?ae(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==Wp){var a=r[n],i=e[n];ie(i)&&ie(a)&&!H(i)&&!H(a)&&!Oa(i)&&!Oa(a)&&!Zp(i)&&!Zp(a)&&!hs(i)&&!hs(a)?_e(a,i,t):(t||!(n in r))&&(r[n]=ae(e[n]))}return r}function Tv(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=_e(t,r[n],e);return t}function G(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Wp&&(r[t]=e[t]);return r}function Gx(r,e,t){r=r||{};for(var n=0;n<t.length;n++){var a=t[n];r[a]=e[a]}return r}function ue(r,e,t){for(var n=Ae(e),a=0,i=n.length;a<i;a++){var o=n[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var QN=Tt.createCanvas;function ge(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function Xp(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function lt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else ue(r,e,t)}function Vt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,e,t){if(r&&e)if(r.forEach&&r.forEach===qN)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function U(r,e,t){if(!r)return[];if(!e)return Cv(r);if(r.map&&r.map===jN)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function Pr(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function Ve(r,e,t){if(!r)return[];if(!e)return Cv(r);if(r.filter&&r.filter===KN)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function ta(r,e,t){if(r&&e){for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))return r[n]}}function Ae(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 eB(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(Hp.call(arguments)))}}var j=wv&&ne(wv.bind)?wv.call.bind(wv.bind):eB;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(Hp.call(arguments)))}}function H(r){return Array.isArray?Array.isArray(r):cs.call(r)==="[object Array]"}function ne(r){return typeof r=="function"}function $(r){return typeof r=="string"}function jl(r){return cs.call(r)==="[object String]"}function Re(r){return typeof r=="number"}function ie(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Zp(r){return!!Bx[cs.call(r)]}function Zt(r){return!!Vx[cs.call(r)]}function Oa(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Jl(r){return r.colorStops!=null}function Fx(r){return r.image!=null}function $p(r){return cs.call(r)==="[object RegExp]"}function Ct(r){return r!==r}function At(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Q(r,e){return r??e}function $t(r,e,t){return r??e??t}function Cv(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Hp.apply(r,e)}function Ql(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 W(r,e){if(!r)throw new Error(e)}function yr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Hx="__ec_primitive__";function eu(r){r[Hx]=!0}function hs(r){return r[Hx]}var tB=(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 Ae(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r})(),Wx=typeof Map=="function";function rB(){return Wx?new Map:new tB}var Ux=(function(){function r(e){var t=H(e);this.data=rB();var n=this;e instanceof r?e.each(a):e&&A(e,a);function a(i,o){t?n.set(i,o):n.set(o,i)}}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(n,a){e.call(t,n,a)})},r.prototype.keys=function(){var e=this.data.keys();return Wx?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function K(r){return new Ux(r)}function ds(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function tu(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&G(t,e),t}function qp(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(r,e){return r.hasOwnProperty(e)}function at(){}var ru=180/Math.PI,nB=Number.EPSILON||Math.pow(2,-52),aB=Object.freeze({__proto__:null,guid:Yp,logError:Lr,clone:ae,merge:_e,mergeAll:Tv,extend:G,assignProps:Gx,defaults:ue,createCanvas:QN,indexOf:ge,inherits:Xp,mixin:lt,isArrayLike:Vt,each:A,map:U,reduce:Pr,filter:Ve,find:ta,keys:Ae,bind:j,curry:be,isArray:H,isFunction:ne,isString:$,isStringSafe:jl,isNumber:Re,isObject:ie,isBuiltInObject:Zp,isTypedArray:Zt,isDom:Oa,isGradientObject:Jl,isImagePatternObject:Fx,isRegExp:$p,eqNaN:Ct,retrieve:At,retrieve2:Q,retrieve3:$t,slice:Cv,normalizeCssArray:Ql,assert:W,trim:yr,setAsPrimitive:eu,isPrimitive:hs,HashMap:Ux,createHashMap:K,concatArray:ds,createObject:tu,disableUserSelect:qp,hasOwn:J,noop:at,RADIAN_TO_DEGREE:ru,EPSILON:nB});function Na(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function zt(r,e){return r[0]=e[0],r[1]=e[1],r}function yn(r){return[r[0],r[1]]}function ra(r,e,t){return r[0]=e,r[1]=t,r}function Kp(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Av(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function Ba(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function nu(r){return Math.sqrt(jp(r))}var iB=nu;function jp(r){return r[0]*r[0]+r[1]*r[1]}var oB=jp;function sB(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function lB(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function uB(r,e){return r[0]*e[0]+r[1]*e[1]}function au(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Ti(r,e){var t=nu(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Mv(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var na=Mv;function Yx(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Va=Yx;function fB(r,e){return r[0]=-e[0],r[1]=-e[1],r}function iu(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function it(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function aa(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ia(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var vB=Object.freeze({__proto__:null,create:Na,copy:zt,clone:yn,set:ra,add:Kp,scaleAndAdd:Av,sub:Ba,len:nu,length:iB,lenSquare:jp,lengthSquare:oB,mul:sB,div:lB,dot:uB,scale:au,normalize:Ti,distance:Mv,dist:na,distanceSquare:Yx,distSquare:Va,negate:fB,lerp:iu,applyTransform:it,min:aa,max:ia}),ps=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),cB=(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 ps(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new ps(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ps(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ps(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ps(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ps(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Rr=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[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 n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.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 i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=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(!(i&&i.filter&&f.query!=null&&!i.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 i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),hB=Math.log(2);function Jp(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/hB);return r[t][l]}for(var u=n|1<<t,f=t+1;n&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var d=1<<c;d&a||(v+=(h%2?-1:1)*r[t][c]*Jp(r,e-1,f,u,a|d,i),h++)}return i[o]=v,v}function Xx(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]]],n={},a=Jp(t,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Jp(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var Dv="___zrEVENTSAVED",Qp=[];function dB(r,e,t,n,a){return eg(Qp,e,n,a,!0)&&eg(r,t,Qp[0],Qp[1])}function pB(r,e){r&&t(r),e&&t(e);function t(n){var a=n[Dv];a&&(a.clearMarkers&&a.clearMarkers(),delete n[Dv])}}function eg(r,e,t,n,a){if(e.getBoundingClientRect&&Ie.domSupported&&!Zx(e)){var i=e[Dv]||(e[Dv]={}),o=gB(e,i),s=yB(o,i,a);if(s)return s(r,t,n),!0}return!1}function gB(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){A(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function yB(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=t?Xx(s,o):Xx(o,s))}function Zx(r){return r.nodeName.toUpperCase()==="CANVAS"}var mB=/([&<>"'])/g,_B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Gt(r){return r==null?"":(r+"").replace(mB,function(e,t){return _B[t]})}var SB=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tg=[],xB=Ie.browser.firefox&&+Ie.browser.version.split(".")[0]<39;function rg(r,e,t,n){return t=t||{},n?$x(r,e,t):xB&&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):$x(r,e,t),t}function $x(r,e,t){if(Ie.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(Zx(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(eg(tg,r,n,a)){t.zrX=tg[0],t.zrY=tg[1];return}}t.zrX=t.zrY=0}function ng(r){return r||window.event}function Er(r,e,t){if(e=ng(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&rg(r,o,e,t)}else{rg(r,e,e,t);var i=bB(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&SB.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function bB(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function ag(r,e,t,n){r.addEventListener(e,t,n)}function wB(r,e,t,n){r.removeEventListener(e,t,n)}var oa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function qx(r){return r.which===2||r.which===3}var TB=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=rg(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in ig)if(ig.hasOwnProperty(t)){var n=ig[t](this._track,e);if(n)return n}},r})();function Kx(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function CB(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var ig={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Kx(n)/Kx(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=CB(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Qe(){return[1,0,0,1,0,0]}function Ci(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function za(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 mr(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=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]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Qr(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 sa(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),v=Math.cos(t);return r[0]=a*v+s*f,r[1]=-a*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-n[0])+f*(u-n[1])+n[0],r[5]=v*(u-n[1])-f*(o-n[0])+n[1],r}function Iv(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function _r(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-t*s)*l,r):null}function jx(r){var e=Qe();return za(e,r),e}var AB=Object.freeze({__proto__:null,create:Qe,identity:Ci,copy:za,mul:mr,translate:Qr,rotate:sa,scale:Iv,invert:_r,clone:jx}),fe=(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,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},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,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+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,n){e.x=t,e.y=n},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,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r})(),Ai=Math.min,gs=Math.max,og=Math.abs,Jx=["x","y"],MB=["width","height"],Mi=new fe,Di=new fe,Ii=new fe,Li=new fe,Sr=rb(),ou=Sr.minTv,sg=Sr.maxTv,su=[0,0],se=(function(){function r(e,t,n,a){lg(this,e,t,n,a)}return r.set=function(e,t,n,a,i){return a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),e.x=t,e.y=n,e.width=a,e.height=i,e},r.prototype.union=function(e){var t=Ai(e.x,this.x),n=Ai(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=gs(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=gs(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return Qx(Qe(),this,e)},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,a){n&&fe.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=lg(IB,e.x,e.y,e.width,e.height)),t instanceof r||(t=lg(LB,t.x,t.y,t.width,t.height));var s=!!n;Sr.reset(a,s);var l=Sr.touchThreshold,u=e.x+l,f=e.x+e.width-l,v=e.y+l,c=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f<h||d<u||c<p||g<v);return(s||i)&&(su[0]=1/0,su[1]=0,tb(u,f,h,d,0,s,i,o),tb(v,c,p,g,1,s,i,o),s&&fe.copy(n,y?Sr.useDir?Sr.dirMinTv:ou:sg)),y},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=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){ys(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,n){if(!n){e!==t&&ys(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Mi.x=Ii.x=t.x,Mi.y=Li.y=t.y,Di.x=Li.x=t.x+t.width,Di.y=Ii.y=t.y+t.height,Mi.transform(n),Li.transform(n),Di.transform(n),Ii.transform(n),e.x=Ai(Mi.x,Di.x,Ii.x,Li.x),e.y=Ai(Mi.y,Di.y,Ii.y,Li.y);var l=gs(Mi.x,Di.x,Ii.x,Li.x),u=gs(Mi.y,Di.y,Ii.y,Li.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,n){var a=n.width/t.width,i=n.height/t.height;return e=Ci(e||[]),Qr(e,e,ra(ug,-t.x,-t.y)),Iv(e,e,ra(ug,a,i)),Qr(e,e,ra(ug,n.x,n.y)),e},r})(),Lv=se.create,lg=se.set,ys=se.copy,Qx=se.calculateTransform,eb=se.applyTransform,DB=se.contain,IB=new se(0,0,0,0),LB=new se(0,0,0,0),ug=[];function tb(r,e,t,n,a,i,o,s){var l=og(e-t),u=og(n-r),f=Ai(l,u),v=Jx[a],c=Jx[1-a],h=MB[a];e<t||n<r?l<u?(i&&(sg[v]=-l),s&&(o[v]=e,o[h]=0)):(i&&(sg[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=gs(r,t),o[h]=Ai(e,n)-o[v]),i&&(f<su[0]||Sr.useDir)&&(su[0]=Ai(f,su[0]),(l<u||!Sr.bidirectional)&&(ou[v]=l,ou[c]=0,Sr.useDir&&Sr.calcDirMTV()),(l>=u||!Sr.bidirectional)&&(ou[v]=-u,ou[c]=0,Sr.useDir&&Sr.calcDirMTV())))}function rb(){var r=0,e=new fe,t=new fe,n={minTv:new fe,maxTv:new fe,useDir:!1,dirMinTv:new fe,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=gs(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(a(f)){a(i.x)&&a(i.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}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function a(i){return og(i)<1e-10}return n}var nb="silent";function PB(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:RB}}function RB(){oa(this.event)}var EB=(function(r){N(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})(Rr),lu=(function(){function r(e,t){this.x=e,this.y=t}return r})(),kB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fg=new se(0,0,0,0),ab=(function(r){N(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new lu(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new EB,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new cB(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(kB,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=ob(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new lu(n,a):this.findHover(n,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 n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new lu(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=PB(n,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,a){var i=this.storage.getDisplayList(),o=new lu(t,n);if(ib(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new se(t-u,n-u,l,l),v=i.length-1;v>=0;v--){var c=i[v];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(fg.copy(c.getBoundingRect()),c.transform&&fg.applyTransform(c.transform),fg.intersect(f)&&s.push(c))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=n+g*Math.sin(y);if(ib(s,o,m,_,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new TB);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new lu;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Rr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){ab.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=ob(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),o=i.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||na(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function OB(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?nb:!0}return!1}function ib(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=OB(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==nb)){e.target=o;break}}}function ob(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var sb=32,uu=7;function NB(r){for(var e=0;r>=sb;)e|=r&1,r>>=1;return r+e}function lb(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a<t&&n(r[a],r[a-1])<0;)a++;BB(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function BB(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function ub(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-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]=i}}function vg(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])>0){for(s=n-a;l<s&&i(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&&i(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);i(r,e[t+f])>0?o=f+1:l=f}return l}function cg(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])<0){for(s=a+1;l<s&&i(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=n-a;l<s&&i(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);i(r,e[t+f])<0?l=f:o=f+1}return l}function VB(r,e){var t=uu,n,a,i=0,o=[];n=[],a=[];function s(h,d){n[i]=h,a[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=a[h],g=n[h+1],y=a[h+1];a[h]=p+y,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=cg(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=vg(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?v(d,p,g,y):c(d,p,g,y)))}function v(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=t,b,w,C;;){b=0,w=0,C=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){C=!0;break}while((b|w)<x);if(C)break;do{if(b=cg(r[_],o,m,d,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(w=vg(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}x--}while(b>=uu||w>=uu);if(C)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=t;;){var C=0,T=0,M=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],C++,T=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],T++,C=0,--g===1){M=!0;break}while((C|T)<w);if(M)break;do{if(C=d-cg(o[_],r,h,d,d-1,e),C!==0){for(S-=C,m-=C,d-=C,b=S+1,x=m+1,y=C-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(T=g-vg(r[m],o,0,g,g-1,e),T!==0){for(S-=T,_-=T,g-=T,b=S+1,x=_+1,y=0;y<T;y++)r[b+y]=o[x+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--d===0){M=!0;break}w--}while(C>=uu||T>=uu);if(M)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Pv(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(a<sb){i=lb(r,t,n,e),ub(r,t,n,t+i,e);return}var o=VB(r,e),s=NB(a);do{if(i=lb(r,t,n,e),i<s){var l=a;l>s&&(l=s),ub(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var fr=1,fu=2,ms=4,fb=!1;function hg(){fb||(fb=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function vb(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var zB=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vb}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,Pv(n,vb)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)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 v=e.childrenRef(),c=0;c<v.length;c++){var h=v[c];e.__dirty&&(h.__dirty|=fr),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(hg(),d.z=0),isNaN(d.z2)&&(hg(),d.z2=0),isNaN(d.zlevel)&&(hg(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},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,n=e.length;t<n;t++)this.delRoot(e[t]);return}var a=ge(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})(),cb;cb=Ie.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var dg=cb,vu={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,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*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)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.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-vu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?vu.bounceIn(r*2)*.5:vu.bounceOut(r*2-1)*.5+.5}},Rv=Math.pow,Ga=Math.sqrt,Ev=1e-8,hb=1e-4,db=Ga(3),kv=1/3,mn=Na(),kr=Na(),_s=Na();function Fa(r){return r>-Ev&&r<Ev}function pb(r){return r>Ev||r<-Ev}function Mt(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function gb(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function Ov(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if(Fa(f)&&Fa(v))if(Fa(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if(Fa(p)){var g=v/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=Ga(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-Rv(-_,kv):_=Rv(_,kv),S<0?S=-Rv(-S,kv):S=Rv(S,kv);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*v)/(2*Ga(f*f*f)),b=Math.acos(x)/3,w=Ga(f),C=Math.cos(b),d=(-s-2*w*C)/(3*o),y=(-s+w*(C+db*Math.sin(b)))/(3*o),T=(-s+w*(C-db*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),T>=0&&T<=1&&(i[h++]=T)}}return h}function yb(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(Fa(o)){if(pb(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Fa(f))a[0]=-i/(2*o);else if(f>0){var v=Ga(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function Ha(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,l=(n-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,v=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=n}function mb(r,e,t,n,a,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;mn[0]=l,mn[1]=u;for(var m=0;m<1;m+=.05)kr[0]=Mt(r,t,a,o,m),kr[1]=Mt(e,n,i,s,m),g=Va(mn,kr),g<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<hb);_++)d=v-c,p=v+c,kr[0]=Mt(r,t,a,o,d),kr[1]=Mt(e,n,i,s,d),g=Va(kr,mn),d>=0&&g<h?(v=d,h=g):(_s[0]=Mt(r,t,a,o,p),_s[1]=Mt(e,n,i,s,p),y=Va(_s,mn),p<=1&&y<h?(v=p,h=y):c*=.5);return f&&(f[0]=Mt(r,t,a,o,v),f[1]=Mt(e,n,i,s,v)),Ga(h)}function GB(r,e,t,n,a,i,o,s,l){for(var u=r,f=e,v=0,c=1/l,h=1;h<=l;h++){var d=h*c,p=Mt(r,t,a,o,d),g=Mt(e,n,i,s,d),y=p-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=p,f=g}return v}function Rt(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function pg(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function FB(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(Fa(i)){if(pb(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Fa(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var v=Ga(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function _b(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function cu(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function Sb(r,e,t,n,a,i,o,s,l){var u,f=.005,v=1/0;mn[0]=o,mn[1]=s;for(var c=0;c<1;c+=.05){kr[0]=Rt(r,t,a,c),kr[1]=Rt(e,n,i,c);var h=Va(mn,kr);h<v&&(u=c,v=h)}v=1/0;for(var d=0;d<32&&!(f<hb);d++){var p=u-f,g=u+f;kr[0]=Rt(r,t,a,p),kr[1]=Rt(e,n,i,p);var h=Va(kr,mn);if(p>=0&&h<v)u=p,v=h;else{_s[0]=Rt(r,t,a,g),_s[1]=Rt(e,n,i,g);var y=Va(_s,mn);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Rt(r,t,a,u),l[1]=Rt(e,n,i,u)),Ga(v)}function HB(r,e,t,n,a,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Rt(r,t,a,c),d=Rt(e,n,i,c),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var WB=/cubic-bezier\(([0-9,\.e ]+)\)/;function gg(r){var e=r&&WB.exec(r);if(e){var t=e[1].split(","),n=+yr(t[0]),a=+yr(t[1]),i=+yr(t[2]),o=+yr(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ov(0,n,i,1,l,s)&&Mt(0,a,o,1,s[0])}}}var UB=(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||at,this.ondestroy=e.ondestroy||at,this.onrestart=e.onrestart||at,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 n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;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=ne(e)?e:vu[e]||gg(e)},r})(),xb=(function(){function r(e){this.value=e}return r})(),YB=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new xb(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,n=e.next;t?t.next=n:this.head=n,n?n.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})(),Ss=(function(){function r(e){this._list=new YB,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new xb(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),bb={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 en(r){return r=Math.round(r),r<0?0:r>255?255:r}function XB(r){return r=Math.round(r),r<0?0:r>360?360:r}function hu(r){return r<0?0:r>1?1:r}function Nv(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?en(parseFloat(e)/100*255):en(parseInt(e,10))}function la(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?hu(parseFloat(e)/100):hu(parseFloat(e))}function yg(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 Wa(r,e,t){return r+(e-r)*t}function Or(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function mg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var wb=new Ss(20),Bv=null;function xs(r,e){Bv&&mg(Bv,e),Bv=wb.put(r,Bv||e.slice())}function qt(r,e){if(r){e=e||[];var t=wb.get(r);if(t)return mg(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in bb)return mg(e,bb[n]),xs(r,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Or(e,0,0,0,1);return}return Or(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),xs(r,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Or(e,0,0,0,1);return}return Or(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),xs(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Or(e,+u[0],+u[1],+u[2],1):Or(e,0,0,0,1);f=la(u.pop());case"rgb":if(u.length>=3)return Or(e,Nv(u[0]),Nv(u[1]),Nv(u[2]),u.length===3?f:la(u[3])),xs(r,e),e;Or(e,0,0,0,1);return;case"hsla":if(u.length!==4){Or(e,0,0,0,1);return}return u[3]=la(u[3]),_g(u,e),xs(r,e),e;case"hsl":if(u.length!==3){Or(e,0,0,0,1);return}return _g(u,e),xs(r,e),e;default:return}}Or(e,0,0,0,1)}}function _g(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=la(r[1]),a=la(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],Or(e,en(yg(o,i,t+1/3)*255),en(yg(o,i,t)*255),en(yg(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function ZB(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,c=((i-n)/6+o/2)/o;e===i?l=c-v:t===i?l=1/3+f-c:n===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function Vv(r,e){var t=qt(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Nr(t,t.length===4?"rgba":"rgb")}}function $B(r){var e=qt(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function du(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return t[0]=en(Wa(o[0],s[0],l)),t[1]=en(Wa(o[1],s[1],l)),t[2]=en(Wa(o[2],s[2],l)),t[3]=hu(Wa(o[3],s[3],l)),t}}var qB=du;function Sg(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=qt(e[a]),s=qt(e[i]),l=n-a,u=Nr([en(Wa(o[0],s[0],l)),en(Wa(o[1],s[1],l)),en(Wa(o[2],s[2],l)),hu(Wa(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var KB=Sg;function ua(r,e,t,n){var a=qt(r);if(r)return a=ZB(a),e!=null&&(a[0]=XB(ne(e)?e(a[0]):e)),t!=null&&(a[1]=la(ne(t)?t(a[1]):t)),n!=null&&(a[2]=la(ne(n)?n(a[2]):n)),Nr(_g(a),"rgba")}function pu(r,e){var t=qt(r);if(t&&e!=null)return t[3]=hu(e),Nr(t,"rgba")}function Nr(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 gu(r,e){var t=qt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function jB(){return Nr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Tb=new Ss(100);function zv(r){if($(r)){var e=Tb.get(r);return e||(e=Vv(r,-.1),Tb.put(r,e)),e}else if(Jl(r)){var t=G({},r);return t.colorStops=U(r.colorStops,function(n){return{offset:n.offset,color:Vv(n.color,-.1)}}),t}return r}var JB=Object.freeze({__proto__:null,parseCssInt:Nv,parseCssFloat:la,parse:qt,lift:Vv,toHex:$B,fastLerp:du,fastMapToColor:qB,lerp:Sg,mapToColor:KB,modifyHSL:ua,modifyAlpha:pu,stringify:Nr,lum:gu,random:jB,liftColor:zv}),Gv=Math.round;function yu(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=qt(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Cb=1e-4;function Ua(r){return r<Cb&&r>-Cb}function Fv(r){return Gv(r*1e3)/1e3}function xg(r){return Gv(r*1e4)/1e4}function QB(r){return"matrix("+Fv(r[0])+","+Fv(r[1])+","+Fv(r[2])+","+Fv(r[3])+","+xg(r[4])+","+xg(r[5])+")"}var eV={left:"start",right:"end",center:"middle",middle:"middle"};function tV(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function rV(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function nV(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 Ab(r){return r&&!!r.image}function aV(r){return r&&!!r.svgElement}function bg(r){return Ab(r)||aV(r)}function Mb(r){return r.type==="linear"}function Db(r){return r.type==="radial"}function Ib(r){return r&&(r.type==="linear"||r.type==="radial")}function Hv(r){return"url(#"+r+")"}function Lb(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 Pb(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*ru,a=Q(r.scaleX,1),i=Q(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Gv(o*ru)+"deg, "+Gv(s*ru)+"deg)"),l.join(" ")}var iV=(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 Lr("Base64 isn't natively supported in the current environment."),null}})(),wg=Array.prototype.slice;function fa(r,e,t){return(e-r)*t+r}function Tg(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=fa(e[i],t[i],n);return r}function oV(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=fa(e[o][s],t[o][s],n)}return r}function Wv(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=e[i]+t[i]*n;return r}function Rb(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function sV(r,e){for(var t=r.length,n=e.length,a=t>n?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function lV(r,e,t){var n=r,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(t===1?a[l]:wg.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function mu(r){if(Vt(r)){var e=r.length;if(Vt(r[0])){for(var t=[],n=0;n<e;n++)t.push(wg.call(r[n]));return t}return wg.call(r)}return r}function Uv(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 uV(r){return Vt(r&&r[0])?2:1}var Yv=0,Xv=1,Eb=2,_u=3,Cg=4,Ag=5,kb=6;function Ob(r){return r===Cg||r===Ag}function Zv(r){return r===Xv||r===Eb}var Su=[0,0,0,0],fV=(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,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=kb,l=t;if(Vt(t)){var u=uV(t);s=u,(u===1&&!Re(t[0])||u===2&&!Re(t[0][0]))&&(o=!0)}else if(Re(t)&&!Ct(t))s=Yv;else if($(t))if(!isNaN(+t))s=Yv;else{var f=qt(t);f&&(l=f,s=_u)}else if(Jl(t)){var v=G({},l);v.colorStops=U(t.colorStops,function(h){return{offset:h.offset,color:qt(h.color)}}),Mb(t)?s=Cg:Db(t)&&(s=Ag),l=v}i===0?this.valType=s:(s!==this.valType||s===kb)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return n&&(c.easing=n,c.easingFunc=ne(n)?n:vu[n]||gg(n)),a.push(c),c},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Zv(a),u=Ob(a),f=0;f<i;f++){var v=n[f],c=v.value,h=o.value;v.percent=v.time/e,s||(l&&f!==i-1?lV(c,h,a):u&&sV(c.colorStops,h.colorStops))}if(!s&&a!==Ag&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var d=n[0].value,f=0;f<i;f++)a===Yv?n[f].additiveValue=n[f].value-d:a===_u?n[f].additiveValue=Wv([],n[f].value,d,-1):Zv(a)&&(n[f].additiveValue=a===Xv?Wv([],n[f].value,d,-1):Rb([],n[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===_u,f,v=this._lastFr,c=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=c(v+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-h.percent,y=g===0?1:c((t-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Su:e[l];if((Zv(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:d.rawValue;else if(Zv(i))i===Xv?Tg(m,h[a],d[a],y):oV(m,h[a],d[a],y);else if(Ob(i)){var _=h[a],S=d[a],x=i===Cg;e[l]={type:x?"linear":"radial",x:fa(_.x,S.x,y),y:fa(_.y,S.y,y),colorStops:U(_.colorStops,function(w,C){var T=S.colorStops[C];return{offset:fa(w.offset,T.offset,y),color:Uv(Tg([],w.color,T.color,y))}}),global:S.global},x?(e[l].x2=fa(_.x2,S.x2,y),e[l].y2=fa(_.y2,S.y2,y)):e[l].r=fa(_.r,S.r,y)}else if(u)Tg(m,h[a],d[a],y),n||(e[l]=Uv(m));else{var b=fa(h[a],d[a],y);n?this._additiveValue=b:e[l]=b}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,a=this._additiveValue;t===Yv?e[n]=e[n]+a:t===_u?(qt(e[n],Su),Wv(Su,Su,a,1),e[n]=Uv(Su)):t===Xv?Wv(e[n],e[n],a,1):t===Eb&&Rb(e[n],e[n],a,1)},r})(),Mg=(function(){function r(e,t,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){Lr("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}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,n){return this.whenWithKeys(e,t,Ae(t),n)},r.prototype.whenWithKeys=function(e,t,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new fV(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,f.valType===_u&&u&&(u=Uv(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,mu(u),a),this._trackKeys.push(s)}l.addKeyframe(e,mu(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,n=0;n<t;n++)e[n].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 n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],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 v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new UB({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(t._target,h);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,h)},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 n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var i=t[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=mu(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Ae(e);for(var n=0;n<t.length;n++){var a=t[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function bs(){return new Date().getTime()}var vV=(function(r){N(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}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 n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,a=t.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=bs()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(dg(n),!t._paused&&t.update())}dg(n)},e.prototype.start=function(){this._running||(this._time=bs(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=bs(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=bs()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var a=new Mg(t,n.loop);return this.addAnimator(a),a},e})(Rr),cV=300,Dg=Ie.domSupported,Ig=(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},n=U(r,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:r,touch:e,pointer:n}})(),Nb={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Bb=!1;function Lg(r){var e=r.pointerType;return e==="pen"||e==="touch"}function hV(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 Pg(r){r&&(r.zrByTouch=!0)}function dV(r,e){return Er(r.dom,new pV(r,e),!0)}function Vb(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var pV=(function(){function r(e,t){this.stopPropagation=at,this.stopImmediatePropagation=at,this.preventDefault=at,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),tn={mousedown:function(r){r=Er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Er(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=Er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Er(this.dom,r);var e=r.toElement||r.relatedTarget;Vb(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Bb=!0,r=Er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Bb||(r=Er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Er(this.dom,r),Pg(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),tn.mousemove.call(this,r),tn.mousedown.call(this,r)},touchmove:function(r){r=Er(this.dom,r),Pg(r),this.handler.processGesture(r,"change"),tn.mousemove.call(this,r)},touchend:function(r){r=Er(this.dom,r),Pg(r),this.handler.processGesture(r,"end"),tn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<cV&&tn.click.call(this,r)},pointerdown:function(r){tn.mousedown.call(this,r)},pointermove:function(r){Lg(r)||tn.mousemove.call(this,r)},pointerup:function(r){tn.mouseup.call(this,r)},pointerout:function(r){Lg(r)||tn.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){tn[r]=function(e){e=Er(this.dom,e),this.trigger(r,e)}});var Rg={pointermove:function(r){Lg(r)||Rg.mousemove.call(this,r)},pointerup:function(r){Rg.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 gV(r,e){var t=e.domHandlers;Ie.pointerEventsSupported?A(Ig.pointer,function(n){$v(e,n,function(a){t[n].call(r,a)})}):(Ie.touchEventsSupported&&A(Ig.touch,function(n){$v(e,n,function(a){t[n].call(r,a),hV(e)})}),A(Ig.mouse,function(n){$v(e,n,function(a){a=ng(a),e.touching||t[n].call(r,a)})}))}function yV(r,e){Ie.pointerEventsSupported?A(Nb.pointer,t):Ie.touchEventsSupported||A(Nb.mouse,t);function t(n){function a(i){i=ng(i),Vb(r,i.target)||(i=dV(r,i),e.domHandlers[n].call(r,i))}$v(e,n,a,{capture:!0})}}function $v(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,ag(r.domTarget,e,t,n)}function Eg(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&wB(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var zb=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),mV=(function(r){N(e,r);function e(t,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new zb(t,tn),Dg&&(a._globalHandlerScope=new zb(document,Rg)),gV(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Eg(this._localHandlerScope),Dg&&Eg(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,Dg&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?yV(this,n):Eg(n)}},e})(Rr),Gb=1;Ie.hasGlobalWindow&&(Gb=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var qv=Gb,kg=.4,Og="#333",Ng="#ccc",_V="#eee",Fb=Ci,Hb=5e-5;function Pi(r){return r>Hb||r<-Hb}var Ri=[],ws=[],Bg=Qe(),Vg=Math.abs,_n=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return Ya(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 Pi(this.rotation)||Pi(this.x)||Pi(this.y)||Pi(this.scaleX-1)||Pi(this.scaleY-1)||Pi(this.skewX)||Pi(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Fb(n),this.invTransform=null);return}n=n||Qe(),t?this.getLocalTransform(n):Fb(n),e&&(t?mr(n,e,n):za(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Qe(),_r(this.invTransform,n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ri);var n=Ri[0]<0?-1:1,a=Ri[1]<0?-1:1,i=((Ri[0]-n)*t+n)/Ri[0]||0,o=((Ri[1]-a)*t+a)/Ri[1]||0;e[0]*=i,e[1]*=i,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],n=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,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||Qe(),mr(ws,e.invTransform,t),t=ws);var n=this.originX,a=this.originY;(n||a)&&(Bg[4]=n,Bg[5]=a,mr(ws,t,Bg),ws[4]-=n,ws[5]-=a,t=ws),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 n=[e,t],a=this.invTransform;return a&&it(n,n,a),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],a=this.transform;return a&&it(n,n,a),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Vg(e[0]-1)>1e-10&&Vg(e[3]-1)>1e-10?Math.sqrt(Vg(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Sn(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;t[4]=-d*i-c*p*o,t[5]=-p*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=c*o,u&&sa(t,t,u),t[4]+=n+f,t[5]+=a+v,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})(),Ya=_n.getLocalTransform;function Ts(){return new _n}var va=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Sn(r,e){return Gx(r,e,va)}function xn(r){Kv||(Kv=new Ss(100)),r=r||ea;var e=Kv.get(r);return e||(e={font:r,strWidthCache:new Ss(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Tt.measureText("\u56FD",r).width,asciiCharWidth:Tt.measureText("a",r).width},Kv.put(r,e)),e}var Kv;function SV(r){if(!(zg>=Wb)){r=r||ea;for(var e=[],t=+new Date,n=0;n<=127;n++)e[n]=Tt.measureText(String.fromCharCode(n),r).width;var a=+new Date-t;return a>16?zg=Wb:a>2&&zg++,e}}var zg=0,Wb=5;function Ub(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=SV(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function bn(r,e){var t=r.strWidthCache,n=t.get(e);return n==null&&(n=Tt.measureText(e,r.font).width,t.put(e,n)),n}function Yb(r,e,t,n){var a=bn(xn(e),r),i=xu(e),o=Cs(0,a,t),s=Ei(0,i,n),l=new se(o,s,a,i);return l}function jv(r,e,t,n){var a=((r||"")+"").split(`
15
+ `),i=a.length;if(i===1)return Yb(a[0],e,t,n);for(var o=new se(0,0,0,0),s=0;s<a.length;s++){var l=Yb(a[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function Cs(r,e,t,n){return t==="right"?n?r+=e:r-=e:t==="center"&&(n?r+=e/2:r-=e/2),r}function Ei(r,e,t,n){return t==="middle"?n?r+=e/2:r-=e/2:t==="bottom"&&(n?r+=e:r-=e),r}function xu(r){return xn(r).stWideCharWidth}function wn(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Jv(r,e,t){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",v="top";if(n instanceof Array)l+=wn(n[0],t.width),u+=wn(n[1],t.height),f=null,v=null;else switch(n){case"left":l-=a,u+=s,f="right",v="middle";break;case"right":l+=a+o,u+=s,v="middle";break;case"top":l+=o/2,u-=a,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=a,u+=s,v="middle";break;case"insideRight":l+=o-a,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",v="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,v="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Gg="__zr_normal__",Fg=va.concat(["ignore"]),xV=Pr(va,function(r,e){return r[e]=!0,r},{ignore:!1}),As={},bV=new se(0,0,0,0),Qv=[],ec=0,tc=1,rc=(function(){function r(e){this.id=Yp(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){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 n=this.textConfig,a=n.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(t);var f=n.position!=null,v=n.autoOverflowArea,c=void 0;if((v||f)&&(c=bV,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(As,n,c):Jv(As,n,c),i.x=As.x,i.y=As.y,o=As.align,s=As.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=c.width*.5,p=c.height*.5):(d=wn(h[0],c.width),p=wn(h[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+p+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var m=y.overflowRect=y.overflowRect||new se(0,0,0,0);i.getLocalTransform(Qv),_r(Qv,Qv),se.copy(m,c),m.applyTransform(Qv)}else y.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=n.insideFill,x=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=n.outsideFill,x=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=b,y.align=o,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=fr,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()?Ng:Og},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&qt(t);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Nr(n,"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||{},G(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(ie(e))for(var n=e,a=Ae(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Gg)){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,Fg)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},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(Gg,!1,e)},r.prototype.useState=function(e,t,n,a){var i=e===Gg,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ge(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){Lr("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=this._textContent,v=Zb(this,f,u,a);v&&!this.__inHover&&(this.__inHover=v),this._applyStateObj(e,u,this._normalState,t,qb(this,n,l),l);var c=this._textGuide;return f&&f.useState(e,t,n,!!v),c&&c.useState(e,t,n,!!v),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=ec,this.__dirty&=~fr),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[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 v=a[o-1],c=this._textContent,h=Zb(this,c,v,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,qb(this,t,p),p);var g=this._textGuide;c&&c.useStates(e,t,!!h),g&&g.useStates(e,t,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=ec,this.__dirty&=~fr)}},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=ge(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var a=this.currentStates.slice(),i=ge(a,e),o=ge(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:n&&!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={},n,a=0;a<e.length;a++){var i=e[a];G(t,i),i.textConfig&&(n=n||{},G(n,i.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,a,i,o){if(this.__inHover!==tc){var s=!(t&&a);t&&t.textConfig?(this.textConfig=G({},a?this.textConfig:n.textConfig),G(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Fg.length;f++){var v=Fg[f],c=i&&xV[v];t&&t[v]!=null?c?(u=!0,l[v]=t[v]):this[v]=t[v]:s&&n[v]!=null&&(c?(u=!0,l[v]=n[v]):this[v]=n[v])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(t||n)[d]:t||n)}u&&this._transitionState(e,l,o)}},r.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");if(e===this)throw new Error("Recursive component attachment.");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;if(t!==e){if(t&&t!==e&&this.removeTextContent(),e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new _n,this._attachComponent(e),this._textContent=e,this.markRedraw()}},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),G(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|=fr;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 n=0;n<t.length;n++)e.animation.addAnimator(t[n]);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 n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var a=e?this[e]:this;if(!a){Lr('Property "'+e+'" is not existed in element '+this.id);return}var i=new Mg(a,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var i=a.animators,o=ge(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,n){Hg(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){Hg(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,a){for(var i=Hg(this,t,n,a),o=0;o<i.length;o++)i[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=ec,e.__dirty=fr;var t={};function n(i,o,s){t[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[i+o+s]=!0)}function a(i,o,s,l){Object.defineProperty(e,i,{get:function(){if(n(i,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){n(i,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,v){Object.defineProperty(v,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(v,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})();lt(rc,Rr),lt(rc,_n);function Hg(r,e,t,n,a){t=t||{};var i=[];Xb(r,"",r,e,t,n,i,a);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},v=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var c=0;c<i.length;c++){var h=i[c];f&&h.done(f),v&&h.aborted(v),t.force&&h.duration(t.duration),h.start(t.easing)}return i}function Wg(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function wV(r){return Vt(r[0])}function TV(r,e,t){if(Vt(e[t]))if(Vt(r[t])||(r[t]=[]),Zt(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),Wg(r[t],e[t],n))}else{var a=e[t],i=r[t],o=a.length;if(wV(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Wg(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Wg(i,a,o);i.length=a.length}else r[t]=e[t]}function CV(r,e){return r===e||Vt(r)&&Vt(e)&&AV(r,e)}function AV(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function Xb(r,e,t,n,a,i,o,s){for(var l=Ae(n),u=a.duration,f=a.delay,v=a.additive,c=a.setToFinal,h=!ie(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&t[y]!=null&&(h||i[y]))if(ie(m)&&!Vt(m)&&!Jl(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}Xb(r,y,t[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!v&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===e){var b=x.stopTracks(p);if(b){var w=ge(d,x);d.splice(w,1)}}}if(a.force||(p=Ve(p,function(D){return!CV(n[D],t[D])}),_=p.length),_>0||a.force&&!o.length){var C=void 0,T=void 0,M=void 0;if(s){T={},c&&(C={});for(var S=0;S<_;S++){var y=p[S];T[y]=t[y],c?C[y]=n[y]:t[y]=n[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=mu(t[y]),TV(t,n,y)}}var x=new Mg(t,!1,!1,v?Ve(d,function(L){return L.targetName===e}):null);x.targetName=e,a.scope&&(x.scope=a.scope),c&&C&&x.whenWithKeys(0,C,p),M&&x.whenWithKeys(0,M,p),x.whenWithKeys(u??500,s?T:n,p).delay(f||0),r.addAnimator(x,e),o.push(x)}}function Zb(r,e,t,n){return!(t&&t.hoverLayer||n)||$b(r)||e&&$b(e)?ec:tc}function $b(r){return r.type==="text"||r.type==="tspan"}function qb(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var le=(function(r){N(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}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 n=this._children,a=0;a<n.length;a++)if(n[a].name===t)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var a=ge(this._children,t);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(t,n){var a=this._children,i=a[n];if(t&&t!==this&&t.parent!==this&&t!==i){a[n]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,a=this._children,i=ge(a,t);return i<0?this:(a.splice(i,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,a=0;a<t.length;a++){var i=t[a];n&&i.removeSelfFromZr(n),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];t.call(n,o,i)}return this},e.prototype.traverse=function(t,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=t.call(n,i);i.isGroup&&!o&&i.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new se(0,0,0,0),a=t||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(se.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(rc);le.prototype.type="group";/*!
16
+ * ZRender, a high performance 2d drawing library.
17
+ *
18
+ * Copyright (c) 2013, Baidu Inc.
19
+ * All rights reserved.
20
+ *
21
+ * LICENSE
22
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
23
+ */var bu={},ki={};function MV(r){delete ki[r]}function DV(r){if(!r)return!1;if(typeof r=="string")return gu(r,1)<kg;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,a=0;a<n;a++)t+=gu(e[a].color,1);return t/=n,t<kg}return!1}var IV=(function(){function r(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new zB,o=n.renderer||"canvas";if(bu[o]||(o=Ae(bu)[0]),!bu[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new bu[o](t,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Ie.node&&!Ie.worker&&!l?new mV(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,v=f==null||f==="auto"?Ie.touchEventsSupported:!!f,c=44,h;v&&(h=Q(n.pointerSize,c)),this.handler=new ab(i,s,u,s.root,h),this.animation=new vV({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=DV(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,n=bs(),a=this._needsRefresh,i=this._needsRefreshHover;(a||i)&&(t=!0,this._refresh({animUpdate:e,refresh:a,refreshHover:i}));var o=bs();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):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,n){return this._disposed||this.handler.on(e,t,n),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 le&&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,MV(this.id))},r})();function Ug(r,e){var t=new IV(Yp(),r,e);return ki[t.id]=t,t}function LV(r){r.dispose()}function PV(){for(var r in ki)ki.hasOwnProperty(r)&&ki[r].dispose();ki={}}function RV(r){return ki[r]}function Kb(r,e){bu[r]=e}var Yg;function jb(r){if(typeof Yg=="function")return Yg(r)}function Jb(r){Yg=r}var EV="6.1.0",kV=Object.freeze({__proto__:null,init:Ug,dispose:LV,disposeAll:PV,getInstance:RV,registerPainter:Kb,getElementSSRData:jb,registerSSRDataGetter:Jb,version:EV}),Qb=1e-4,nc=20,OV=14;function NV(r){return r.replace(/^\s+|\s+$/g,"")}var Ge=Math.min,Te=Math.max,rt=Math.abs,rn=Math.round,Br=Math.floor,Oi=Math.ceil,Ni=Math.pow,Bi=Math.log,wu=Math.LN10,ac=Math.PI,BV=Math.random;function Ne(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}var q=VV;function VV(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 ic(r,e,t)}function ic(r,e,t){return $(r)?ew(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function zV(r){return $(r)&&ew(r)}function ew(r){return!!NV(r).match(/%$/)}function Ee(r,e,t){return W(e!=null),isNaN(e)?t?""+r:+r:(e=Ge(Te(0,e),nc),r=(+r).toFixed(e),t?r:+r)}function GV(r,e,t){return e==null&&(e=10),Ee(r,e,t)}function Et(r){return r.sort(function(e,t){return e-t}),r}function nn(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(rn(r*e)/e===r)return t}return tw(r)}function tw(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Te(0,o-n)}function FV(r,e){var t=Br(Bi(r[1]-r[0])/wu),n=rn(Bi(rt(e[1]-e[0]))/wu),a=Ge(Te(-t+n,0),nc);return isFinite(a)?a:nc}function Xg(r,e,t){var n=rt(r[1]-r[0]);if(!isFinite(n)||n===0)return NaN;var a=Bi(2*rt(t||1)*rt(n))/wu,i=Bi(rt(e))/wu,o=Te(0,Oi(-a+i));return isFinite(o)||(o=NaN),o}function HV(r,e,t){if(!r[e])return 0;var n=rw(r,t);return n[e]||0}function rw(r,e){var t=Pr(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Ni(10,e),a=U(r,function(h){return(isNaN(h)?0:h)/t*n*100}),i=n*100,o=U(a,function(h){return Br(h)}),s=Pr(o,function(h,d){return h+d},0),l=U(a,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,v=0,c=l.length;v<c;++v)l[v]>u&&(u=l[v],f=v);++o[f],l[f]=0,++s}return U(o,function(h){return h/n})}function Vi(r,e){var t=Te(nn(r),nn(e)),n=r+e;return t>nc?n:Ee(n,t)}var Tu=Ni(2,53)-1;function Zg(r){var e=ac*2;return(r%e+e)%e}function zi(r){return r>-Qb&&r<Qb}var WV=/^(?:(\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 Tn(r){if(r instanceof Date)return r;if($(r)){var e=WV.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(rn(r))}function $g(r){return Ni(10,oc(r))}function oc(r){if(r===0)return 0;var e=Br(Bi(r)/wu);return r/Ni(10,e)>=10&&e++,e}var nw=2;function sc(r,e){var t=oc(r),n=Ni(10,t),a=r/n,i;return e===nw?i=1:e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,Ee(r,-t)}function lc(r,e){var t=(r.length-1)*e+1,n=Br(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function qg(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-t),e=a[o],t=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}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 Cn(r){var e=parseFloat(r);return e==r&&(e!==0||!$(r)||r.indexOf("x")<=0)?e:NaN}function uc(r){return!isNaN(Cn(r))}function Kg(){return rn(BV()*9)}function aw(r,e){return e===0?r:aw(e,r%e)}function iw(r,e){return r==null?e:e==null?r:r*e/aw(r,e)}function xr(r){return r!=null&&isFinite(r)}var UV="[ECharts] ",ow={},YV=typeof console<"u"&&console.warn&&console.log;function fc(r,e,t){if(YV){if(t){if(ow[e])return;ow[e]=!0}console[r](UV+e)}}function sw(r,e){fc("log",r,e)}function et(r,e){fc("warn",r,e)}function Le(r,e){fc("error",r,e)}function an(r){fc("warn","DEPRECATED: "+r,!0)}function ut(r,e,t){an((t?"["+t+"]":"")+(r+" is deprecated; use "+e+" instead."))}function tr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t="",n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":Ct(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":ne(a)?"function () { ... }":$p(a)?a+"":null};return t=U(r,function(a){if($(a))return a;var i=n(a);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" "),t}function ze(r){throw new Error(r)}function lw(r,e,t){return(e-r)*t+r}var uw="series\0",fw="\0_ec_\0";function Ue(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 n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var vw=["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 Ms(r){return ie(r)&&!H(r)&&!(r instanceof Date)?r.value:r}function XV(r){return ie(r)&&!(r instanceof Array)}function cw(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=K();A(e,function(l,u){if(!ie(l)){e[u]=null;return}l.id!=null&&!pw(l.id)&&dw(l.id),l.name!=null&&!pw(l.name)&&dw(l.name)});var s=ZV(r,o,t);return(n||a)&&$V(s,r,o,e),n&&qV(s,e),n||a?KV(s,e,a):i&&jV(s,e),JV(s),s}function ZV(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||Ds(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function $V(r,e,t,n){A(n,function(a,i){if(!(!a||a.id==null)){var o=Cu(a.id),s=t.get(o);if(s!=null){var l=r[s];W(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function qV(r,e){A(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!Ds(t)&&!Ds(i)&&hw("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function KV(r,e,t){A(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Ds(a.existing)||a.existing&&n.id!=null&&!hw("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function jV(r,e){A(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function JV(r){var e=K();A(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),A(r,function(t){var n=t.newOption;W(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),A(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(ie(i)){if(o.name=i.name!=null?Cu(i.name):a?a.name:uw+n,a)o.id=Cu(a.id);else if(i.id!=null)o.id=Cu(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function hw(r,e,t){var n=mt(e[r],null),a=mt(t[r],null);return n!=null&&a!=null&&n===a}function Cu(r){if(r==null)throw new Error;return mt(r,"")}function mt(r,e){return r==null?e:$(r)?r:Re(r)||jl(r)?r+"":e}function dw(r){et("`"+r+"` is invalid id or name. Must be a string or number.")}function pw(r){return jl(r)||uc(r)}function jg(r){var e=r.name;return!!(e&&e.indexOf(uw))}function Ds(r){return r&&r.id!=null&&Cu(r.id).indexOf(fw)===0}function QV(r){return fw+r}function ez(r,e,t){A(r,function(n){var a=n.newOption;ie(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=tz(e,a,n.existing,t))})}function tz(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function rz(r,e){var t={},n={};return a(r||[],t),a(e||[],n,t),[i(t),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=mt(o[u].seriesId,null);if(v==null)return;for(var c=Ue(o[u].dataIndex),h=l&&l[v],d=0,p=c.length;d<p;d++){var g=c[d];h&&h[g]?h[g]=null:(s[v]||(s[v]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Fi(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return H(e.dataIndex)?U(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return H(e.name)?U(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Se(){var r="__ec_inner_"+nz++;return function(e){return e[r]||(e[r]={})}}var nz=Kg();function Is(r,e,t){var n=Jg(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var v=Ls(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"]=v.models,s[f+"Model"]=v.models[0]}),s}function Jg(r,e){var t;if($(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=K(),i={},o=!1;return A(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();if(!(!f||!v||e&&e.includeMainTypes&&ge(e.includeMainTypes,f)<0)){o=o||!!f;var c=a.get(f)||a.set(f,{});c[v]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var ot={useDefault:!0,enableAll:!1,enableNone:!1},az={useDefault:!1,enableAll:!0,enableNone:!0};function Ls(r,e,t,n){n=n||ot;var a=t.index,i=t.id,o=t.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;Le('`"none"` or `false` is not a valid value on index option.'),a=-1}return a==="all"&&(n.enableAll?a=i=o=null:(Le('`"all"` is not a valid value on index option.'),a=-1)),s.models=r.queryComponents({mainType:e,index:a,id:i,name:o}),s}function Qg(r,e,t){W(e);var n={};n[e+"Id"]=r[e+"Id"],n[e+"Index"]=r[e+"Index"],n[e+"Name"]=r[e+"Name"];var a={mainType:e,query:n};return t&&(a.subType=t),a}function gw(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function iz(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function oz(r){return r==="auto"?Ie.domSupported?"html":"richText":r||"html"}function ey(r,e){var t=K(),n=[];return A(r,function(a){var i=e(a);(t.get(i)||(n.push(i),t.set(i,[]))).push(a)}),{keys:n,buckets:t}}function yw(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(Re(n)){var o=lw(t||0,n,a);return Ee(o,i?Math.max(nn(t||0),nn(n)):e)}else{if($(n))return a<1?t:n;for(var s=[],l=t,u=n,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var c=r.getDimensionInfo(v);if(c&&c.type==="ordinal")s[v]=(a<1&&l?l:u)[v];else{var h=l&&l[v]?l[v]:0,d=u[v],o=lw(h,d,a);s[v]=Ee(o,i?Math.max(nn(h),nn(d)):e)}}return s}}var Xa=(function(){function r(){}return r.prototype.reset=function(e,t,n,a){return this._list=e,this._step=a=a||1,this._idx=t,this._end=n??(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 ty(r){r.option=r.parentModel=r.ecModel=null}function Ft(){return[1/0,-1/0]}function ry(r,e){ca(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function mw(r,e){ca(e)&&e<r[0]&&(r[0]=e)}function _w(r,e){ca(e)&&e>r[1]&&(r[1]=e)}function sz(r,e){Hi(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function ca(r){return r!=null&&isFinite(r)}function Hi(r,e){return ca(r)&&ca(e)&&r<=e}function lz(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function vc(r){Hi(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function Ps(){var r="__ec_once_"+uz++;return function(e,t){W(e),J(e,r)||(e[r]=1,t())}}var uz=Kg();function cc(r,e,t){var n=K(),a=0;A(r,function(i){var o=e(i);W($(o));var s=n.get(o)||0;t&&t(i,s),!s&&!t&&(r[a++]=i),n.set(o,s+1)}),t||(r.length=a)}function fz(r){return W(r.value!=null),r.value+""}function vz(r){return W(r!=null),r+""}function An(r,e){return Q(e,!0)?r.seriesIndex+2:0}function Sw(r,e,t){var n=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&n>=t.threshold,large:r.get("large")&&n>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function xw(r,e){W(r.start===e.start&&r.end===e.end)}function _t(r,e){return{seriesType:r,overallReset:e}}function Au(r){return{overallReset:r}}var cz=".",Wi="___EC__COMPONENT__CONTAINER___",bw="___EC__EXTENDED_CLASS___";function Mn(r){var e={main:"",sub:""};if(r){var t=r.split(cz);e.main=t[0]||"",e.sub=t[1]||""}return e}function hz(r){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function dz(r){return!!(r&&r[bw])}function ny(r,e){r.$constructor=r,r.extend=function(t){A(e,function(i){t[i]||console.warn("Method `"+i+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,a;return pz(n)?a=(function(i){N(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(t.$constructor||n).apply(this,arguments)},Xp(a,this)),G(a.prototype,t),a[bw]=!0,a.extend=this.extend,a.superCall=mz,a.superApply=_z,a.superClass=n,a}}function pz(r){return ne(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function ww(r,e){r.extend=e.extend}var gz=Math.round(Math.random()*10);function yz(r){var e=["__\0is_clz",gz++].join("_");r.prototype[e]=!0,W(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(t){return!!(t&&t[e])}}function mz(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function _z(r,e,t){return this.superClass.prototype[e].apply(r,t)}function hc(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){hz(a),n.prototype.type=a;var i=Mn(a);if(!i.sub)e[i.main]&&console.warn(i.main+" exists."),e[i.main]=n;else if(i.sub!==Wi){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[Wi]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=Mn(n),i=[],o=e[a.main];return o&&o[Wi]?A(o,function(s,l){l!==Wi&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=Mn(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return A(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=Mn(n),i=e[a.main];return i&&i[Wi]};function t(n){var a=e[n.main];return(!a||!a[Wi])&&(a=e[n.main]={},a[Wi]=!0),a}}function Ui(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&ge(a,l)>=0||i&&ge(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var Sz=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],xz=Ui(Sz),bz=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return xz(this,e,t)},r})(),ay=new Ss(50);function wz(r){if(typeof r=="string"){var e=ay.get(r);return e&&e.image}else return r}function iy(r,e,t,n,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=ay.get(r),o={hostEl:t,cb:n,cbPayload:a};return i?(e=i.image,!dc(e)&&i.pending.push(o)):(e=Tt.loadImage(r,Tw,Tw),e.__zrImageSrc=r,ay.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Tw(){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],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function dc(r){return r&&r.width&&r.height}var oy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Tz(r,e,t,n,a){var i={};return Cw(i,r,e,t,n,a),i.text}function Cw(r,e,t,n,a,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
24
+ `);i=Aw(t,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Mw(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
25
+ `),r.isTruncated=s}function Aw(r,e,t,n){n=n||{};var a=G({},n);t=Q(t,"..."),a.maxIterations=Q(n.maxIterations,2);var i=a.minChar=Q(n.minChar,0),o=a.fontMeasureInfo=xn(e),s=o.asciiCharWidth;a.placeholder=Q(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=bn(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 Mw(r,e,t){var n=t.containerWidth,a=t.contentWidth,i=t.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=bn(i,e);if(o<=n){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?Cz(e,a,i):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=bn(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function Cz(r,e,t){for(var n=0,a=0,i=r.length;a<i&&n<e;a++)n+=Ub(t,r.charCodeAt(a));return a}function Az(r,e,t,n){var a=ly(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=i==="truncate",v=xu(u),c=Q(e.lineHeight,v),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&n!=null&&(g=n-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=a?Iw(a,e.font,p,i==="breakAll",0).lines:[]:y=a?a.split(`
26
+ `):[];var m=y.length*c;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/c);d=d||y.length>_,y=y.slice(0,_),m=y.length*c}if(a&&f&&p!=null)for(var S=Aw(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},b=0;b<y.length;b++)Mw(x,y[b],S),y[b]=x.textLine,d=d||x.isTruncated;for(var w=g,C=0,T=xn(u),b=0;b<y.length;b++)C=Math.max(bn(T,y[b]),C);p==null&&(p=C);var M=p;return w+=l,M+=s,{lines:y,height:g,outerWidth:M,outerHeight:w,lineHeight:c,calculatedLineHeight:v,contentWidth:C,contentHeight:m,width:p,isTruncated:d}}var Mz=(function(){function r(){}return r})(),Dw=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),Dz=(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 Iz(r,e,t,n,a){var i=new Dz,o=ly(r);if(!o)return i;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 v=e.height;v==null&&n!=null&&(v=n-u);for(var c=e.overflow,h=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=oy.lastIndex=0,p;(p=oy.exec(o))!=null;){var g=p.index;g>d&&sy(i,o.substring(d,g),e,h),sy(i,p[2],e,h,p[1]),d=oy.lastIndex}d<o.length&&sy(i,o.substring(d,o.length),e,h);var y=[],m=0,_=0,S=c==="truncate",x=e.lineOverflow==="truncate",b={};function w(ye,Be,ce){ye.width=Be,ye.lineHeight=ce,m+=ce,_=Math.max(_,Be)}e:for(var C=0;C<i.lines.length;C++){for(var T=i.lines[C],M=0,D=0,L=0;L<T.tokens.length;L++){var I=T.tokens[L],P=I.styleName&&e.rich[I.styleName]||{},E=I.textPadding=P.padding,R=E?E[1]+E[3]:0,O=I.font=P.font||e.font;I.contentHeight=xu(O);var k=Q(P.height,I.contentHeight);if(I.innerHeight=k,E&&(k+=E[0]+E[2]),I.height=k,I.lineHeight=$t(P.lineHeight,e.lineHeight,k),I.align=P&&P.align||a,I.verticalAlign=P&&P.verticalAlign||"middle",x&&v!=null&&m+I.lineHeight>v){var V=i.lines.length;L>0?(T.tokens=T.tokens.slice(0,L),w(T,D,M),i.lines=i.lines.slice(0,C+1)):i.lines=i.lines.slice(0,C),i.isTruncated=i.isTruncated||i.lines.length<V;break e}var z=P.width,F=z==null||z==="auto";if(typeof z=="string"&&z.charAt(z.length-1)==="%")I.percentWidth=z,y.push(I),I.contentWidth=bn(xn(O),I.text);else{if(F){var Y=P.backgroundColor,Z=Y&&Y.image;Z&&(Z=wz(Z),dc(Z)&&(I.width=Math.max(I.width,Z.width*k/Z.height)))}var X=S&&f!=null?f-D:null;X!=null&&X<I.width?!F||X<R?(I.text="",I.width=I.contentWidth=0):(Cw(b,I.text,X-R,O,e.ellipsis,{minChar:e.truncateMinChar}),I.text=b.text,i.isTruncated=i.isTruncated||b.isTruncated,I.width=I.contentWidth=bn(xn(O),I.text)):I.contentWidth=bn(xn(O),I.text)}I.width+=R,D+=I.width,P&&(M=Math.max(M,I.lineHeight))}w(T,D,M)}i.outerWidth=i.width=Q(f,_),i.outerHeight=i.height=Q(v,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var C=0;C<y.length;C++){var I=y[C],ee=I.percentWidth;I.width=parseInt(ee,10)/100*i.width}return i}function sy(r,e,t,n,a){var i=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,f,v;if(n){var c=o.padding,h=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=wn(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
27
+ `),u=!0),n.accumWidth=d}else{var p=Iw(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,v=p.linesWidths,f=p.lines}}f||(f=e.split(`
28
+ `));for(var g=xn(l),y=0;y<f.length;y++){var m=f[y],_=new Mz;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=v?v[y]:bn(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new Dw)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(m||!x||i)&&S.push(_)}else s.push(new Dw([_]))}}function Lz(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Pz=Pr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function Rz(r){return Lz(r)?!!Pz[r]:!0}function Iw(r,e,t,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,v=xn(e),c=0;c<r.length;c++){var h=r.charAt(c);if(h===`
29
+ `){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Ub(v,h.charCodeAt(0)),p=n?!1:!Rz(h);if(i.length?f+d>t:a+f+d>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function Lw(r,e,t,n,a,i){if(r.baseX=t,r.baseY=n,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;se.set(Pw,Cs(t,o,a),Ei(n,s,i),o,s),se.intersect(e,Pw,null,Rw);var l=Rw.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Cs(l.x,l.width,a,!0),r.baseY=Ei(l.y,l.height,i,!0)}}var Pw=new se(0,0,0,0),Rw={outIntersectRect:{},clamp:!0};function ly(r){return r!=null?r+="":r=""}function Ez(r){var e=ly(r.text),t=r.font,n=bn(xn(t),e),a=xu(t);return uy(r,n,a,null)}function uy(r,e,t,n){var a=new se(Cs(r.x||0,e,r.textAlign),Ei(r.y||0,t,r.textBaseline),e,t),i=n??(Ew(r)?r.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function Ew(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var fy="__zr_style_"+Math.round(Math.random()*10),Yi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},pc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Yi[fy]=!0;var kw=["z","z2","invisible"],kz=["invisible"],Vr=(function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=Ae(t),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}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,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Oz(this,t,n)||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(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new se(0,0,0,0)),n?se.applyTransform(t,a,n):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 se(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,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:G(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=fu,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&fu)},e.prototype.styleUpdated=function(){this.__dirty&=~fu},e.prototype.createStyle=function(t){return tu(Yi,t)},e.prototype.useStyle=function(t){t[fy]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[fy]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,kw)},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u=this.__inHover===tc,f;if(n&&n.style?o?i?f=n.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(f,n.style)):l&&(f=a.style),f)if(o){var v=this.style;if(this.style=this.createStyle(l?{}:v),l)for(var c=Ae(v),h=0;h<c.length;h++){var d=c[h];d in f&&(f[d]=f[d],this.style[d]=v[d])}for(var p=Ae(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?kz:kw,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&a[d]!=null&&(this[d]=a[d])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(t,n){return G(t,n),t},e.prototype.getAnimationStyleProps=function(){return pc},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=fr|fu})(),e})(rc),vy=new se(0,0,0,0),cy=new se(0,0,0,0);function Oz(r,e,t){return vy.copy(r.getBoundingRect()),r.transform&&vy.applyTransform(r.transform),cy.width=e,cy.height=t,!vy.intersect(cy)}var vr=Math.min,cr=Math.max,hy=Math.sin,dy=Math.cos,Xi=Math.PI*2,gc=Na(),yc=Na(),mc=Na();function _c(r,e,t){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=vr(a,n[0]),i=cr(i,n[0]),o=vr(o,n[1]),s=cr(s,n[1]);e[0]=a,e[1]=o,t[0]=i,t[1]=s}}function Ow(r,e,t,n,a,i){a[0]=vr(r,t),a[1]=vr(e,n),i[0]=cr(r,t),i[1]=cr(e,n)}var Nw=[],Bw=[];function Nz(r,e,t,n,a,i,o,s,l,u){var f=yb,v=Mt,c=f(r,t,a,o,Nw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<c;h++){var d=v(r,t,a,o,Nw[h]);l[0]=vr(d,l[0]),u[0]=cr(d,u[0])}c=f(e,n,i,s,Bw);for(var h=0;h<c;h++){var p=v(e,n,i,s,Bw[h]);l[1]=vr(p,l[1]),u[1]=cr(p,u[1])}l[0]=vr(r,l[0]),u[0]=cr(r,u[0]),l[0]=vr(o,l[0]),u[0]=cr(o,u[0]),l[1]=vr(e,l[1]),u[1]=cr(e,u[1]),l[1]=vr(s,l[1]),u[1]=cr(s,u[1])}function Bz(r,e,t,n,a,i,o,s){var l=_b,u=Rt,f=cr(vr(l(r,t,a),1),0),v=cr(vr(l(e,n,i),1),0),c=u(r,t,a,f),h=u(e,n,i,v);o[0]=vr(r,a,c),o[1]=vr(e,i,h),s[0]=cr(r,a,c),s[1]=cr(e,i,h)}function Vz(r,e,t,n,a,i,o,s,l){var u=aa,f=ia,v=Math.abs(a-i);if(v%Xi<1e-4&&v>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(gc[0]=dy(a)*t+r,gc[1]=hy(a)*n+e,yc[0]=dy(i)*t+r,yc[1]=hy(i)*n+e,u(s,gc,yc),f(l,gc,yc),a=a%Xi,a<0&&(a=a+Xi),i=i%Xi,i<0&&(i=i+Xi),a>i&&!o?i+=Xi:a<i&&o&&(a+=Xi),o){var c=i;i=a,a=c}for(var h=0;h<i;h+=Math.PI/2)h>a&&(mc[0]=dy(h)*t+r,mc[1]=hy(h)*n+e,u(s,mc,s),f(l,mc,l))}var qe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Zi=[],$i=[],Dn=[],Za=[],In=[],Ln=[],py=Math.min,gy=Math.max,qi=Math.cos,Ki=Math.sin,ha=Math.abs,yy=Math.PI,$a=yy*2,my=typeof Float32Array<"u",Mu=[];function _y(r){var e=Math.round(r/yy*1e8)/1e8;return e%2*yy}function Sc(r,e){var t=_y(r[0]);t<0&&(t+=$a);var n=t-r[0],a=r[1];a+=n,!e&&a-t>=$a?a=t+$a:e&&t-a>=$a?a=t-$a:!e&&t>a?a=t+($a-_y(t-a)):e&&t<a&&(a=t-($a-_y(a-t))),r[0]=t,r[1]=a}var Pn=(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,n){n=n||0,n>0&&(this._ux=ha(n/qv/e)||0,this._uy=ha(n/qv/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(qe.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 n=ha(e-this._xi),a=ha(t-this._yi),i=n>this._ux||a>this._uy;if(this.addData(qe.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){return this._drawPendingPt(),this.addData(qe.C,e,t,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,a){return this._drawPendingPt(),this.addData(qe.Q,e,t,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(e,t,n,a,i,o){this._drawPendingPt(),Mu[0]=a,Mu[1]=i,Sc(Mu,o),a=Mu[0],i=Mu[1];var s=i-a;return this.addData(qe.A,e,t,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,a,i,o),this._xi=qi(i)*n+e,this._yi=Ki(i)*n+t,this},r.prototype.arcTo=function(e,t,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,a,i),this},r.prototype.rect=function(e,t,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,a),this.addData(qe.R,e,t,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(qe.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,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)&&my&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,a=this._len,i=0;i<t;i++)n+=e[i].len();var o=this.data;if(my&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<t;i++)for(var l=e[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},r.prototype.addData=function(e,t,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var v=0;v<arguments.length;v++)f[this._len++]=arguments[v]}},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,my&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Dn[0]=Dn[1]=In[0]=In[1]=Number.MAX_VALUE,Za[0]=Za[1]=Ln[0]=Ln[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],a=t,i=n),s){case qe.M:t=a=e[o++],n=i=e[o++],In[0]=a,In[1]=i,Ln[0]=a,Ln[1]=i;break;case qe.L:Ow(t,n,e[o],e[o+1],In,Ln),t=e[o++],n=e[o++];break;case qe.C:Nz(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],In,Ln),t=e[o++],n=e[o++];break;case qe.Q:Bz(t,n,e[o++],e[o++],e[o],e[o+1],In,Ln),t=e[o++],n=e[o++];break;case qe.A:var u=e[o++],f=e[o++],v=e[o++],c=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=!e[o++];l&&(a=qi(h)*v+u,i=Ki(h)*c+f),Vz(u,f,v,c,h,d,p,In,Ln),t=qi(d)*v+u,n=Ki(d)*c+f;break;case qe.R:a=t=e[o++],i=n=e[o++];var g=e[o++],y=e[o++];Ow(a,i,a+g,i+y,In,Ln);break;case qe.Z:t=a,n=i;break}aa(Dn,Dn,In),ia(Za,Za,Ln)}return o===0&&(Dn[0]=Dn[1]=Za[0]=Za[1]=0),new se(Dn[0],Dn[1],Za[0]-Dn[0],Za[1]-Dn[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,v=0,c=0;c<t;){var h=e[c++],d=c===1;d&&(i=e[c],o=e[c+1],s=i,l=o);var p=-1;switch(h){case qe.M:i=s=e[c++],o=l=e[c++];break;case qe.L:{var g=e[c++],y=e[c++],m=g-i,_=y-o;(ha(m)>n||ha(_)>a||c===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case qe.C:{var S=e[c++],x=e[c++],g=e[c++],y=e[c++],b=e[c++],w=e[c++];p=GB(i,o,S,x,g,y,b,w,10),i=b,o=w;break}case qe.Q:{var S=e[c++],x=e[c++],g=e[c++],y=e[c++];p=HB(i,o,S,x,g,y,10),i=g,o=y;break}case qe.A:var C=e[c++],T=e[c++],M=e[c++],D=e[c++],L=e[c++],I=e[c++],P=I+L;c+=1,d&&(s=qi(L)*M+C,l=Ki(L)*D+T),p=gy(M,D)*py($a,Math.abs(I)),i=qi(P)*M+C,o=Ki(P)*D+T;break;case qe.R:{s=i=e[c++],l=o=e[c++];var E=e[c++],R=e[c++];p=E*2+R*2;break}case qe.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[v++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,v,c,h=t<1,d,p,g=0,y=0,m,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m)))e:for(var b=0;b<o;){var w=n[b++],C=b===1;switch(C&&(u=n[b],f=n[b+1],s=u,l=f),w!==qe.L&&_>0&&(e.lineTo(S,x),_=0),w){case qe.M:s=u=n[b++],l=f=n[b++],e.moveTo(u,f);break;case qe.L:{v=n[b++],c=n[b++];var T=ha(v-u),M=ha(c-f);if(T>a||M>i){if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+v*L,f*(1-L)+c*L);break e}g+=D}e.lineTo(v,c),u=v,f=c,_=0}else{var I=T*T+M*M;I>_&&(S=v,x=c,_=I)}break}case qe.C:{var P=n[b++],E=n[b++],R=n[b++],O=n[b++],k=n[b++],V=n[b++];if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;Ha(u,P,R,k,L,Zi),Ha(f,E,O,V,L,$i),e.bezierCurveTo(Zi[1],$i[1],Zi[2],$i[2],Zi[3],$i[3]);break e}g+=D}e.bezierCurveTo(P,E,R,O,k,V),u=k,f=V;break}case qe.Q:{var P=n[b++],E=n[b++],R=n[b++],O=n[b++];if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;cu(u,P,R,L,Zi),cu(f,E,O,L,$i),e.quadraticCurveTo(Zi[1],$i[1],Zi[2],$i[2]);break e}g+=D}e.quadraticCurveTo(P,E,R,O),u=R,f=O;break}case qe.A:var z=n[b++],F=n[b++],Y=n[b++],Z=n[b++],X=n[b++],ee=n[b++],ye=n[b++],Be=!n[b++],ce=Y>Z?Y:Z,te=ha(Y-Z)>.001,me=X+ee,re=!1;if(h){var D=d[y++];g+D>m&&(me=X+ee*(m-g)/D,re=!0),g+=D}if(te&&e.ellipse?e.ellipse(z,F,Y,Z,ye,X,me,Be):e.arc(z,F,ce,X,me,Be),re)break e;C&&(s=qi(X)*Y+z,l=Ki(X)*Z+F),u=qi(me)*Y+z,f=Ki(me)*Z+F;break;case qe.R:s=u=n[b],l=f=n[b+1],v=n[b++],c=n[b++];var he=n[b++],Ze=n[b++];if(h){var D=d[y++];if(g+D>m){var ke=m-g;e.moveTo(v,c),e.lineTo(v+py(ke,he),c),ke-=he,ke>0&&e.lineTo(v+he,c+py(ke,Ze)),ke-=Ze,ke>0&&e.lineTo(v+gy(he-ke,0),c+Ze),ke-=he,ke>0&&e.lineTo(v,c+gy(Ze-ke,0));break e}g+=D}e.rect(v,c,he,Ze);break;case qe.Z:if(h){var D=d[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}g+=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=qe,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function qa(r,e,t,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,v=f*f/(l*l+1);return v<=s/2*s/2}function zz(r,e,t,n,a,i,o,s,l,u,f){if(l===0)return!1;var v=l;if(f>e+v&&f>n+v&&f>i+v&&f>s+v||f<e-v&&f<n-v&&f<i-v&&f<s-v||u>r+v&&u>t+v&&u>a+v&&u>o+v||u<r-v&&u<t-v&&u<a-v&&u<o-v)return!1;var c=mb(r,e,t,n,a,i,o,s,u,f,null);return c<=v/2}function Vw(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var f=Sb(r,e,t,n,a,i,s,l,null);return f<=u/2}var zw=Math.PI*2;function br(r){return r%=zw,r<0&&(r+=zw),r}var Du=Math.PI*2;function Gz(r,e,t,n,a,i,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(n-a)%Du<1e-4)return!0;if(i){var v=n;n=br(a),a=br(v)}else n=br(n),a=br(a);n>a&&(a+=Du);var c=Math.atan2(l,s);return c<0&&(c+=Du),c>=n&&c<=a||c+Du>=n&&c+Du<=a}function da(r,e,t,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===a?1/0:l>a?s:0}var Ka=Pn.CMD,ji=Math.PI*2,Fz=1e-4;function Hz(r,e){return Math.abs(r-e)<Fz}var rr=[-1,-1,-1],zr=[-1,-1];function Wz(){var r=zr[0];zr[0]=zr[1],zr[1]=r}function Uz(r,e,t,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var f=Ov(e,n,i,s,u,rr);if(f===0)return 0;for(var v=0,c=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=rr[p],y=g===0||g===1?.5:1,m=Mt(r,t,a,o,g);m<l||(c<0&&(c=yb(e,n,i,s,zr),zr[1]<zr[0]&&c>1&&Wz(),h=Mt(e,n,i,s,zr[0]),c>1&&(d=Mt(e,n,i,s,zr[1]))),c===2?g<zr[0]?v+=h<e?y:-y:g<zr[1]?v+=d<h?y:-y:v+=s<d?y:-y:g<zr[0]?v+=h<e?y:-y:v+=s<h?y:-y)}return v}function Yz(r,e,t,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=FB(e,n,i,s,rr);if(l===0)return 0;var u=_b(e,n,i);if(u>=0&&u<=1){for(var f=0,v=Rt(e,n,i,u),c=0;c<l;c++){var h=rr[c]===0||rr[c]===1?.5:1,d=Rt(r,t,a,rr[c]);d<o||(rr[c]<u?f+=v<e?h:-h:f+=i<v?h:-h)}return f}else{var h=rr[0]===0||rr[0]===1?.5:1,d=Rt(r,t,a,rr[0]);return d<o?0:i<e?h:-h}}function Xz(r,e,t,n,a,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);rr[0]=-l,rr[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=ji-1e-4){n=0,a=ji;var f=i?1:-1;return o>=rr[0]+r&&o<=rr[1]+r?f:0}if(n>a){var v=n;n=a,a=v}n<0&&(n+=ji,a+=ji);for(var c=0,h=0;h<2;h++){var d=rr[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=ji+p),(p>=n&&p<=a||p+ji>=n&&p+ji<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Gw(r,e,t,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,v=0,c,h,d=0;d<o;){var p=i[d++],g=d===1;switch(p===Ka.M&&d>1&&(t||(s+=da(l,u,f,v,n,a))),g&&(l=i[d],u=i[d+1],f=l,v=u),p){case Ka.M:f=i[d++],v=i[d++],l=f,u=v;break;case Ka.L:if(t){if(qa(l,u,i[d],i[d+1],e,n,a))return!0}else s+=da(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ka.C:if(t){if(zz(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=Uz(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ka.Q:if(t){if(Vw(l,u,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=Yz(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ka.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],x=i[d++],b=i[d++];d+=1;var w=!!(1-i[d++]);c=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=c,v=h):s+=da(l,u,c,h,n,a);var C=(n-y)*S/_+y;if(t){if(Gz(y,m,S,x,x+b,w,e,C,a))return!0}else s+=Xz(y,m,S,x,x+b,w,C,a);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case Ka.R:f=l=i[d++],v=u=i[d++];var T=i[d++],M=i[d++];if(c=f+T,h=v+M,t){if(qa(f,v,c,v,e,n,a)||qa(c,v,c,h,e,n,a)||qa(c,h,f,h,e,n,a)||qa(f,h,f,v,e,n,a))return!0}else s+=da(c,v,c,h,n,a),s+=da(f,h,f,v,n,a);break;case Ka.Z:if(t){if(qa(l,u,f,v,e,n,a))return!0}else s+=da(l,u,f,v,n,a);l=f,u=v;break}}return!t&&!Hz(u,v)&&(s+=da(l,u,f,v,n,a)||0),s!==0}function Zz(r,e,t){return Gw(r,0,!1,e,t)}function $z(r,e,t,n){return Gw(r,e,!0,t,n)}var xc=ue({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Yi),qz={style:ue({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},pc.style)},Sy=va.concat(["invisible","culling","z","z2","zlevel","parent"]),Me=(function(r){N(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 n=this.style;if(n.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 i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<Sy.length;++s)a[Sy[s]]=this[Sy[s]];a.__dirty|=fr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=Ae(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=t[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(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($(t)){var n=gu(t,0);return n>.5?Og:n>.2?_V:Ng}else if(t)return Ng}return Og},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if($(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=gu(t,0)<kg;if(i===o)return n}},e.prototype.buildPath=function(t,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~ms},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 Pn(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&ms)&&(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=n.strokeNoScale?this.getLineScale():1,u=n.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,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect(),o=this.style;if(t=a[0],n=a[1],i.contain(t,n)){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)),$z(s,l/u,t,n)))return!0}if(this.hasFill())return Zz(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ms,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,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=n:G(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&ms)},e.prototype.createStyle=function(t){return tu(xc,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=G({},this.shape))},e.prototype._applyStateObj=function(t,n,a,i,o,s){if(r.prototype._applyStateObj.call(this,t,n,a,i,o,s),this.__inHover!==tc){var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=G({},a.shape),G(u,n.shape)):(u=G({},i?this.shape:a.shape),G(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=G({},this.shape);for(var f={},v=Ae(u),c=0;c<v.length;c++){var h=v[c];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return qz},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=(function(i){N(o,i);function o(s){var l=i.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"&&(n.prototype[a]=t[a]);return n},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=fr|fu|ms})(),e})(Vr),Kz=ue({strokeFirst:!0,font:ea,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},xc),Rs=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Ew(this.style)},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return tu(Kz,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=Ez(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Vr);Rs.prototype.type="tspan";var jz=ue({x:0,y:0},Yi),Jz={style:ue({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},pc.style)};function Qz(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Dt=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return tu(jz,t)},e.prototype._getSize=function(t){var n=this.style,a=n[t];if(a!=null)return a;var i=Qz(n.image)?n.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Jz},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new se(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Vr);Dt.prototype.type="image";function e5(r,e){var t=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,f;a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),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 v;s+l>a&&(v=s+l,s*=a/v,l*=a/v),u+f>a&&(v=u+f,u*=a/v,f*=a/v),l+u>i&&(v=l+u,l*=i/v,u*=i/v),s+f>i&&(v=s+f,s*=i/v,f*=i/v),r.moveTo(t+s,n),r.lineTo(t+a-l,n),l!==0&&r.arc(t+a-l,n+l,l,-Math.PI/2,0),r.lineTo(t+a,n+i-u),u!==0&&r.arc(t+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(t+f,n+i),f!==0&&r.arc(t+f,n+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5),r.closePath()}var Es=Math.round;function bc(r,e,t){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Es(n*2)===Es(a*2)&&(r.x1=r.x2=wr(n,s,!0)),Es(i*2)===Es(o*2)&&(r.y1=r.y2=wr(i,s,!0))),r}}function Fw(r,e,t){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=wr(n,s,!0),r.y=wr(a,s,!0),r.width=Math.max(wr(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(wr(a+o,s,!1)-r.y,o===0?0:1)),r}}function wr(r,e,t){if(!e)return r;var n=Es(r*2);return(n+Es(e))%2===0?n/2:(n+(t?1:-1))/2}var t5=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),r5={},Ce=(function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new t5},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=Fw(r5,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?e5(t,n):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Me);Ce.prototype.type="rect";var Hw={fill:"#000"},Ww=2,Rn={},n5={style:ue({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},pc.style)},Pe=(function(r){N(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Hw,n.attr(t),n}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 n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.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,o5(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 n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new se(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Hw},e.prototype.setTextContent=function(t){throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,n){if(!n)return t;var a=n.rich,i=t.rich||a&&{};return G(t,n),a&&i?(this._mergeRich(i,a),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,n){for(var a=Ae(n),i=0;i<a.length;i++){var o=a[i];t[o]=t[o]||{},G(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return n5},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||ea,a=t.padding,i=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||i.align||"left",u=t.verticalAlign||i.verticalAlign||"top";Lw(Rn,i.overflowRect,o,s,l,u),o=Rn.baseX,s=Rn.baseY;var f=Jw(t),v=Az(f,t,Rn.outerWidth,Rn.outerHeight),c=xy(t),h=!!t.backgroundColor,d=v.outerHeight,p=v.outerWidth,g=v.lines,y=v.lineHeight;this.isTruncated=!!v.isTruncated;var m=o,_=Ei(s,v.contentHeight,u);if(c||a){var S=Cs(o,p,l),x=Ei(s,d,u);c&&this._renderBackground(t,t,S,x,p,d)}_+=y/2,a&&(m=jw(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var b=0,w=!1,C=!1,T=Kw("fill"in t?t.fill:(C=!0,i.fill)),M=qw("stroke"in t?t.stroke:!h&&(!i.autoStroke||C)?(b=Ww,w=!0,i.stroke):null),D=t.textShadowBlur>0,L=0;L<g.length;L++){var I=this._getOrCreateChild(Rs),P=I.createStyle();I.useStyle(P),P.text=g[L],P.x=m,P.y=_,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=M,P.fill=T,M&&(P.lineWidth=t.lineWidth||b,P.lineDash=t.lineDash,P.lineDashOffset=t.lineDashOffset||0),P.font=n,Xw(P,t),_+=y,I.setBoundingRect(uy(P,v.contentWidth,v.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,n=this._defaultStyle,a=t.align||n.align,i=t.verticalAlign||n.verticalAlign,o=t.x||0,s=t.y||0;Lw(Rn,n.overflowRect,o,s,a,i),o=Rn.baseX,s=Rn.baseY;var l=Jw(t),u=Iz(l,t,Rn.outerWidth,Rn.outerHeight,a),f=u.width,v=u.outerWidth,c=u.outerHeight,h=t.padding;this.isTruncated=!!u.isTruncated;var d=Cs(o,v,a),p=Ei(s,c,i),g=d,y=p;h&&(g+=h[3],y+=h[0]);var m=g+f;xy(t)&&this._renderBackground(t,t,d,p,v,c);for(var _=!!t.backgroundColor,S=0;S<u.lines.length;S++){for(var x=u.lines[S],b=x.tokens,w=b.length,C=x.lineHeight,T=x.width,M=0,D=g,L=m,I=w-1,P=void 0;M<w&&(P=b[M],!P.align||P.align==="left");)this._placeToken(P,t,C,y,D,"left",_),T-=P.width,D+=P.width,M++;for(;I>=0&&(P=b[I],P.align==="right");)this._placeToken(P,t,C,y,L,"right",_),T-=P.width,L-=P.width,I--;for(D+=(f-(D-g)-(m-L)-T)/2;M<=I;)P=b[M],this._placeToken(P,t,C,y,D+P.width/2,"center",_),D+=P.width,M++;y+=C}},e.prototype._placeToken=function(t,n,a,i,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,v=i+a/2;f==="top"?v=i+t.height/2:f==="bottom"&&(v=i+a-t.height/2);var c=!t.isLineHolder&&xy(u);c&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,v-t.height/2,t.width,t.height);var h=!!u.backgroundColor,d=t.textPadding;d&&(o=jw(o,s,d),v-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Rs),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=Kw("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=qw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(_=Ww,S=!0,y.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=t.text,g.x=o,g.y=v,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||ea,g.opacity=$t(u.opacity,n.opacity,1),Xw(g,u),b&&(g.lineWidth=$t(u.lineWidth,n.lineWidth,_),g.lineDash=Q(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=b),x&&(g.fill=x),p.setBoundingRect(uy(g,t.contentWidth,t.contentHeight,S?0:null))},e.prototype._renderBackground=function(t,n,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,v=l&&l.image,c=l&&!v,h=t.borderRadius,d=this,p,g;if(c||t.lineHeight||u&&f){p=this._getOrCreateChild(Ce),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(c){var m=p.style;m.fill=l||null,m.fillOpacity=Q(t.fillOpacity,1)}else if(v){g=this._getOrCreateChild(Dt),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=Q(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=$t(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return Zw(t)&&(n=[t.fontStyle,t.fontWeight,Yw(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&yr(n)||t.textFont||t.font},e})(Vr),a5={left:!0,right:1,center:1},i5={top:1,bottom:1,middle:1},Uw=["fontStyle","fontWeight","fontSize","fontFamily"];function Yw(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Fp+"px":r+"px"}function Xw(r,e){for(var t=0;t<Uw.length;t++){var n=Uw[t],a=e[n];a!=null&&(r[n]=a)}}function Zw(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function o5(r){return $w(r),A(r.rich,$w),r}function $w(r){if(r){r.font=Pe.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||a5[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||i5[t]?t:"top";var n=r.padding;n&&(r.padding=Ql(r.padding))}}function qw(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Kw(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function jw(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function Jw(r){var e=r.text;return e!=null&&(e+=""),e}function xy(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ve=Se(),by=function(r,e,t,n){if(n){var a=ve(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=ve(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},ks="undefined",En="series",wy=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Tr="original",kt="arrayRows",Cr="objectRows",on="keyedColumns",pa="typedArray",Qw="unknown",sn="column",Ji="row",eT="Roam",s5=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],tT=(function(){function r(e){A(s5,function(t){this[t]=j(e[t],e)},this)}return r})();function rT(r,e){return e.mainType===En?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var nT=1,aT={},iT=Se(),Ty=Se(),Cy=0,Iu=1,wc=2,nr=["emphasis","blur","select"],Lu=["normal","emphasis","blur","select"],Os=10,l5=9,Qi="highlight",Tc="downplay",Cc="select",Ay="unselect",Ac="toggleSelect",My="selectchanged";function Ns(r){return r!=null&&r!=="none"}function Mc(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function oT(r){Mc(r,"emphasis",wc)}function sT(r){r.hoverState===wc&&Mc(r,"normal",Cy)}function Dy(r){Mc(r,"blur",Iu)}function lT(r){r.hoverState===Iu&&Mc(r,"normal",Cy)}function u5(r){r.selected=!0}function f5(r){r.selected=!1}function uT(r,e,t){e(r,t)}function ga(r,e,t){uT(r,e,t),r.isGroup&&r.traverse(function(n){uT(n,e,t)})}function Dc(r,e){switch(e){case"emphasis":r.hoverState=wc;break;case"normal":r.hoverState=Cy;break;case"blur":r.hoverState=Iu;break;case"select":r.selected=!0}}function v5(r,e,t,n){for(var a=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[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(i,e)}return i}function c5(r,e,t,n){var a=t&&ge(t,"select")>=0,i=!1;if(r instanceof Me){var o=iT(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ns(s)||Ns(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=G({},n),u=G({},u),u.fill=s):!Ns(u.fill)&&Ns(s)?(i=!0,n=G({},n),u=G({},u),u.fill=zv(s)):!Ns(u.stroke)&&Ns(l)&&(i||(n=G({},n),u=G({},u)),u.stroke=zv(l)),n.style=u}}if(n&&n.z2==null){i||(n=G({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??Os)}return n}function h5(r,e,t){if(t&&t.z2==null){t=G({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??l5)}return t}function d5(r,e,t){var n=ge(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:v5(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=G({},t),o=G({opacity:n?a:i.opacity*.1},o),t.style=o),t}function Iy(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return c5(this,r,e,t);if(r==="blur")return d5(this,r,t);if(r==="select")return h5(this,r,t)}return t}function eo(r){r.stateProxy=Iy;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Iy),t&&(t.stateProxy=Iy)}function fT(r,e){!pT(r,e)&&!r.__highByOuter&&ga(r,oT)}function vT(r,e){!pT(r,e)&&!r.__highByOuter&&ga(r,sT)}function ya(r,e){r.__highByOuter|=1<<(e||0),ga(r,oT)}function ma(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&ga(r,sT)}function cT(r){ga(r,Dy)}function Ly(r){ga(r,lT)}function hT(r){ga(r,u5)}function dT(r){ga(r,f5)}function pT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function gT(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=Ty(i),s=rT(r,i),l=a==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){lT(u)}),l&&t.push(i)),o.isBlured=!1}),A(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function Py(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,f){for(var v=0;v<f.length;v++){var c=u.getItemGraphicEl(f[v]);c&&Ly(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,v=u.coordinateSystem;v&&v.master&&(v=v.master);var c=v&&s?v===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Dy(g)}),Vt(e))i(u.getData(),e);else if(ie(e))for(var d=Ae(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),Ty(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var v=n.getViewOfComponentModel(f);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,a)}})}}function Ry(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){Ty(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Dy(i)})}}}function p5(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(!a){Le("Unknown dataType "+e.dataType);return}var i=Fi(a,e);i=(H(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ve(o);Py(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);f!=null&&Py(n,f,v,t)}}function Ey(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(Ja(s[u])||Le("param should be highDownDispatcher"),ve(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function g5(r,e,t){Ja(r)||Le("param should be highDownDispatcher");var n=ve(r),a=Ey(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&Ry(n.componentMainType,n.componentIndex,t),A(i,function(s){return fT(s,e)})):(Py(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&Ry(n.componentMainType,n.componentIndex,t),fT(r,e))}function y5(r,e,t){Ja(r)||Le("param should be highDownDispatcher"),gT(t);var n=ve(r),a=Ey(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?A(a,function(i){return vT(i,e)}):vT(r,e)}function m5(r,e,t){if(Oy(e)){var n=e.dataType,a=r.getData(n),i=Fi(a,e);H(i)||(i=[i]),r[e.type===Ac?"toggleSelect":e.type===Cc?"select":"unselect"](i,n)}}function yT(r){var e=r.getAllData();A(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?hT(i):dT(i)})})}function _5(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();A(n,function(a){var i=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 ja(r,e,t){to(r,!0),ga(r,eo),ky(r,e,t)}function S5(r){to(r,!1)}function tt(r,e,t,n){n?S5(r):ja(r,e,t)}function ky(r,e,t){var n=ve(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var mT=["emphasis","blur","select"],x5={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function St(r,e,t,n){t=t||"itemStyle";for(var a=0;a<mT.length;a++){var i=mT[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=n?n(o):o[x5[t]]()}}function to(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function Ja(r){return!!(r&&r.__highDownDispatcher)}function b5(r,e,t){var n=ve(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function w5(r){var e=aT[r];return e==null&&nT<=32&&(e=aT[r]=nT++),e}function Oy(r){var e=r.type;return e===Cc||e===Ay||e===Ac}function _T(r){var e=r.type;return e===Qi||e===Tc}function T5(r){var e=iT(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 Bs=Pn.CMD,C5=[[],[],[]],ST=Math.sqrt,A5=Math.atan2;function xT(r,e){if(e){var t=r.data,n=r.len(),a,i,o,s,l,u,f=Bs.M,v=Bs.C,c=Bs.L,h=Bs.R,d=Bs.A,p=Bs.Q;for(o=0,s=0;o<n;){switch(a=t[o++],s=o,i=0,a){case f:i=1;break;case c:i=1;break;case v:i=3;break;case p:i=2;break;case d:var g=e[4],y=e[5],m=ST(e[0]*e[0]+e[1]*e[1]),_=ST(e[2]*e[2]+e[3]*e[3]),S=A5(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case h:u[0]=t[o++],u[1]=t[o++],it(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],it(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var x=C5[l];x[0]=t[o++],x[1]=t[o++],it(x,x,e),t[s++]=x[0],t[s++]=x[1]}}r.increaseVersion()}}var Ny=Math.sqrt,Ic=Math.sin,Lc=Math.cos,Pu=Math.PI;function bT(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function By(r,e){return(r[0]*e[0]+r[1]*e[1])/(bT(r)*bT(e))}function wT(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(By(r,e))}function TT(r,e,t,n,a,i,o,s,l,u,f){var v=l*(Pu/180),c=Lc(v)*(r-t)/2+Ic(v)*(e-n)/2,h=-1*Ic(v)*(r-t)/2+Lc(v)*(e-n)/2,d=c*c/(o*o)+h*h/(s*s);d>1&&(o*=Ny(d),s*=Ny(d));var p=(a===i?-1:1)*Ny((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,g=p*o*h/s,y=p*-s*c/o,m=(r+t)/2+Lc(v)*g-Ic(v)*y,_=(e+n)/2+Ic(v)*g+Lc(v)*y,S=wT([1,0],[(c-g)/o,(h-y)/s]),x=[(c-g)/o,(h-y)/s],b=[(-1*c-g)/o,(-1*h-y)/s],w=wT(x,b);if(By(x,b)<=-1&&(w=Pu),By(x,b)>=1&&(w=0),w<0){var C=Math.round(w/Pu*1e6)/1e6;w=Pu*2+C%2*Pu}f.addData(u,m,_,o,s,S,w,v,i)}var M5=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,D5=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function I5(r){var e=new Pn;if(!r)return e;var t=0,n=0,a=t,i=n,o,s=Pn.CMD,l=r.match(M5);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],v=f.charAt(0),c=void 0,h=f.match(D5)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=t,T=n,M=void 0,D=void 0;switch(v){case"l":t+=h[g++],n+=h[g++],c=s.L,e.addData(c,t,n);break;case"L":t=h[g++],n=h[g++],c=s.L,e.addData(c,t,n);break;case"m":t+=h[g++],n+=h[g++],c=s.M,e.addData(c,t,n),a=t,i=n,v="l";break;case"M":t=h[g++],n=h[g++],c=s.M,e.addData(c,t,n),a=t,i=n,v="L";break;case"h":t+=h[g++],c=s.L,e.addData(c,t,n);break;case"H":t=h[g++],c=s.L,e.addData(c,t,n);break;case"v":n+=h[g++],c=s.L,e.addData(c,t,n);break;case"V":n=h[g++],c=s.L,e.addData(c,t,n);break;case"C":c=s.C,e.addData(c,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),t=h[g-2],n=h[g-1];break;case"c":c=s.C,e.addData(c,h[g++]+t,h[g++]+n,h[g++]+t,h[g++]+n,h[g++]+t,h[g++]+n),t+=h[g-2],n+=h[g-1];break;case"S":y=t,m=n,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=n-D[M-3]),c=s.C,C=h[g++],T=h[g++],t=h[g++],n=h[g++],e.addData(c,y,m,C,T,t,n);break;case"s":y=t,m=n,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=n-D[M-3]),c=s.C,C=t+h[g++],T=n+h[g++],t+=h[g++],n+=h[g++],e.addData(c,y,m,C,T,t,n);break;case"Q":C=h[g++],T=h[g++],t=h[g++],n=h[g++],c=s.Q,e.addData(c,C,T,t,n);break;case"q":C=h[g++]+t,T=h[g++]+n,t+=h[g++],n+=h[g++],c=s.Q,e.addData(c,C,T,t,n);break;case"T":y=t,m=n,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=n-D[M-3]),t=h[g++],n=h[g++],c=s.Q,e.addData(c,y,m,t,n);break;case"t":y=t,m=n,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=n-D[M-3]),t+=h[g++],n+=h[g++],c=s.Q,e.addData(c,y,m,t,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],b=h[g++],w=h[g++],C=t,T=n,t=h[g++],n=h[g++],c=s.A,TT(C,T,t,n,b,w,_,S,x,c,e);break;case"a":_=h[g++],S=h[g++],x=h[g++],b=h[g++],w=h[g++],C=t,T=n,t+=h[g++],n+=h[g++],c=s.A,TT(C,T,t,n,b,w,_,S,x,c,e);break}}(v==="z"||v==="Z")&&(c=s.Z,e.addData(c),t=a,n=i),o=c}return e.toStatic(),e}var CT=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Me);function AT(r){return r.setData!=null}function MT(r,e){var t=I5(r),n=G({},e);return n.buildPath=function(a){var i=AT(a);if(i&&a.canSave()){a.appendPath(t);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&t.rebuildPath(o,1)}},n.applyTransform=function(a){xT(t,a),this.dirtyShape()},n}function DT(r,e){return new CT(MT(r,e))}function L5(r,e){var t=MT(r,e),n=(function(a){N(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i})(CT);return n}function P5(r,e){for(var t=[],n=r.length,a=0;a<n;a++){var i=r[a];t.push(i.getUpdatedPathProxy(!0))}var o=new Me(e);return o.createPathProxy(),o.buildPath=function(s){if(AT(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Vy(r,e){e=e||{};var t=new Me;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?xT(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 R5=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),kn=(function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new R5},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Me);kn.prototype.type="circle";var E5=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Ru=(function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new E5},e.prototype.buildPath=function(t,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),t.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),t.closePath()},e})(Me);Ru.prototype.type="ellipse";var IT=Math.PI,zy=IT*2,ro=Math.sin,Vs=Math.cos,k5=Math.acos,Kt=Math.atan2,LT=Math.abs,Eu=Math.sqrt,ku=Math.max,On=Math.min,ln=1e-4;function O5(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,v=s-i,c=v*l-f*u;if(!(c*c<ln))return c=(f*(e-i)-v*(r-a))/c,[r+c*l,e+c*u]}function Pc(r,e,t,n,a,i,o){var s=r-t,l=e-n,u=(o?i:-i)/Eu(s*s+l*l),f=u*l,v=-u*s,c=r+f,h=e+v,d=t+f,p=n+v,g=(c+d)/2,y=(h+p)/2,m=d-c,_=p-h,S=m*m+_*_,x=a-i,b=c*p-d*h,w=(_<0?-1:1)*Eu(ku(0,x*x*S-b*b)),C=(b*_-m*w)/S,T=(-b*m-_*w)/S,M=(b*_+m*w)/S,D=(-b*m+_*w)/S,L=C-g,I=T-y,P=M-g,E=D-y;return L*L+I*I>P*P+E*E&&(C=M,T=D),{cx:C,cy:T,x0:-f,y0:-v,x1:C*(a/x-1),y1:T*(a/x-1)}}function N5(r){var e;if(H(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 B5(r,e){var t,n=ku(e.r,0),a=ku(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,v=e.cy,c=!!e.clockwise,h=LT(u-l),d=h>zy&&h%zy;if(d>ln&&(h=d),!(n>ln))r.moveTo(f,v);else if(h>zy-ln)r.moveTo(f+n*Vs(l),v+n*ro(l)),r.arc(f,v,n,l,u,!c),a>ln&&(r.moveTo(f+a*Vs(u),v+a*ro(u)),r.arc(f,v,a,u,l,c));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=void 0,T=void 0,M=void 0,D=void 0,L=void 0,I=void 0,P=void 0,E=n*Vs(l),R=n*ro(l),O=a*Vs(u),k=a*ro(u),V=h>ln;if(V){var z=e.cornerRadius;z&&(t=N5(z),p=t[0],g=t[1],y=t[2],m=t[3]);var F=LT(n-a)/2;if(_=On(F,y),S=On(F,m),x=On(F,p),b=On(F,g),T=w=ku(_,S),M=C=ku(x,b),(w>ln||C>ln)&&(D=n*Vs(u),L=n*ro(u),I=a*Vs(l),P=a*ro(l),h<IT)){var Y=O5(E,R,I,P,D,L,O,k);if(Y){var Z=E-Y[0],X=R-Y[1],ee=D-Y[0],ye=L-Y[1],Be=1/ro(k5((Z*ee+X*ye)/(Eu(Z*Z+X*X)*Eu(ee*ee+ye*ye)))/2),ce=Eu(Y[0]*Y[0]+Y[1]*Y[1]);T=On(w,(n-ce)/(Be+1)),M=On(C,(a-ce)/(Be-1))}}}if(!V)r.moveTo(f+E,v+R);else if(T>ln){var te=On(y,T),me=On(m,T),re=Pc(I,P,E,R,n,te,c),he=Pc(D,L,O,k,n,me,c);r.moveTo(f+re.cx+re.x0,v+re.cy+re.y0),T<w&&te===me?r.arc(f+re.cx,v+re.cy,T,Kt(re.y0,re.x0),Kt(he.y0,he.x0),!c):(te>0&&r.arc(f+re.cx,v+re.cy,te,Kt(re.y0,re.x0),Kt(re.y1,re.x1),!c),r.arc(f,v,n,Kt(re.cy+re.y1,re.cx+re.x1),Kt(he.cy+he.y1,he.cx+he.x1),!c),me>0&&r.arc(f+he.cx,v+he.cy,me,Kt(he.y1,he.x1),Kt(he.y0,he.x0),!c))}else r.moveTo(f+E,v+R),r.arc(f,v,n,l,u,!c);if(!(a>ln)||!V)r.lineTo(f+O,v+k);else if(M>ln){var te=On(p,M),me=On(g,M),re=Pc(O,k,D,L,a,-me,c),he=Pc(E,R,I,P,a,-te,c);r.lineTo(f+re.cx+re.x0,v+re.cy+re.y0),M<C&&te===me?r.arc(f+re.cx,v+re.cy,M,Kt(re.y0,re.x0),Kt(he.y0,he.x0),!c):(me>0&&r.arc(f+re.cx,v+re.cy,me,Kt(re.y0,re.x0),Kt(re.y1,re.x1),!c),r.arc(f,v,a,Kt(re.cy+re.y1,re.cx+re.x1),Kt(he.cy+he.y1,he.cx+he.x1),c),te>0&&r.arc(f+he.cx,v+he.cy,te,Kt(he.y1,he.x1),Kt(he.y0,he.x0),!c))}else r.lineTo(f+O,v+k),r.arc(f,v,a,u,l,c)}r.closePath()}}}var V5=(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})(),Ht=(function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new V5},e.prototype.buildPath=function(t,n){B5(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Me);Ht.prototype.type="sector";var z5=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),zs=(function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new z5},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.PI*2;t.moveTo(a+n.r,i),t.arc(a,i,n.r,0,o,!1),t.moveTo(a+n.r0,i),t.arc(a,i,n.r0,0,o,!0)},e})(Me);zs.prototype.type="ring";function G5(r,e,t,n){var a=[],i=[],o=[],s=[],l,u,f,v;if(n){f=[1/0,1/0],v=[-1/0,-1/0];for(var c=0,h=r.length;c<h;c++)aa(f,f,r[c]),ia(v,v,r[c]);aa(f,f,n[0]),ia(v,v,n[1])}for(var c=0,h=r.length;c<h;c++){var d=r[c];if(t)l=r[c?c-1:h-1],u=r[(c+1)%h];else if(c===0||c===h-1){a.push(yn(r[c]));continue}else l=r[c-1],u=r[c+1];Ba(i,u,l),au(i,i,e);var p=Mv(d,l),g=Mv(d,u),y=p+g;y!==0&&(p/=y,g/=y),au(o,i,-p),au(s,i,g);var m=Kp([],d,o),_=Kp([],d,s);n&&(ia(m,m,f),aa(m,m,v),ia(_,_,f),aa(_,_,v)),a.push(m),a.push(_)}return t&&a.push(a.shift()),a}function PT(r,e,t){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=G5(a,n,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=i[s*2],u=i[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,v=a.length;s<v;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var F5=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Wt=(function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new F5},e.prototype.buildPath=function(t,n){PT(t,n,!0)},e})(Me);Wt.prototype.type="polygon";var H5=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Ot=(function(r){N(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 H5},e.prototype.buildPath=function(t,n){PT(t,n,!1)},e})(Me);Ot.prototype.type="polyline";var W5={},U5=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),ft=(function(r){N(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 U5},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=bc(W5,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e})(Me);ft.prototype.type="line";var hr=[],Y5=(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 RT(r,e,t){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(t?gb:Mt)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?gb:Mt)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?pg:Rt)(r.x1,r.cpx1,r.x2,e),(t?pg:Rt)(r.y1,r.cpy1,r.y2,e)]}var Gs=(function(r){N(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 Y5},e.prototype.buildPath=function(t,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,v=n.cpy2,c=n.percent;c!==0&&(t.moveTo(a,i),f==null||v==null?(c<1&&(cu(a,l,o,c,hr),l=hr[1],o=hr[2],cu(i,u,s,c,hr),u=hr[1],s=hr[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(Ha(a,l,f,o,c,hr),l=hr[1],f=hr[2],o=hr[3],Ha(i,u,v,s,c,hr),u=hr[1],v=hr[2],s=hr[3]),t.bezierCurveTo(l,u,f,v,o,s)))},e.prototype.pointAt=function(t){return RT(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=RT(this.shape,t,!0);return Ti(n,n)},e})(Me);Gs.prototype.type="bezier-curve";var X5=(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})(),Ou=(function(r){N(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 X5},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),v=Math.sin(s);t.moveTo(f*o+a,v*o+i),t.arc(a,i,o,s,l,!u)},e})(Me);Ou.prototype.type="arc";var Nu=(function(r){N(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,n=this.shapeChanged(),a=0;a<t.length;a++)n=n||t[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(n[0],n[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(t,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Me.prototype.getBoundingRect.call(this)},e})(Me),ET=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),no=(function(r){N(e,r);function e(t,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(ET),Gy=(function(r){N(e,r);function e(t,n,a,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(ET),Fy=Math.min,Z5=Math.max,Rc=Math.abs,ao=[0,0],io=[0,0],Nt=rb(),Ec=Nt.minTv,kc=Nt.maxTv,kT=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new fe;for(var n=0;n<2;n++)this._axes[n]=new fe;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),t)for(var u=0;u<4;u++)n[u].transform(t);fe.sub(a[0],n[1],n[0]),fe.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(e,t,n){var a=!0,i=!t;return t&&fe.set(t,0,0),Nt.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(a=!1,i)||!i&&!Nt.negativeSize&&fe.copy(t,a?Nt.useDir?Nt.dirMinTv:Ec:kc),a},r.prototype._intersectCheckOneSide=function(e,t,n,a){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ao),e._getProjMinMaxOnAxis(o,t._corners,io),Nt.negativeSize||ao[1]<io[0]||ao[0]>io[1]){if(i=!1,Nt.negativeSize||n)return i;var l=Rc(io[0]-ao[1]),u=Rc(ao[0]-io[1]);Fy(l,u)>kc.len()&&(l<u?fe.scale(kc,s,-l*a):fe.scale(kc,s,u*a))}else if(!n){var l=Rc(io[0]-ao[1]),u=Rc(ao[0]-io[1]);(Nt.useDir||Fy(l,u)<Ec.len())&&((l<u||!Nt.bidirectional)&&(fe.scale(Ec,s,l*a),Nt.useDir&&Nt.calcDirMTV()),(l>=u||!Nt.bidirectional)&&(fe.scale(Ec,s,-u*a),Nt.useDir&&Nt.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var a=this._axes[e],i=this._origin,o=t[0].dot(a)+i[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(a)+i[e];s=Fy(f,s),l=Z5(f,l)}n[0]=s+Nt.touchThreshold,n[1]=l-Nt.touchThreshold,Nt.negativeSize=n[1]<n[0]},r})(),OT=0,$5=1,q5=2,K5=1,Oc=0,j5=[],NT=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=$5,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new se(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(j5)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e})(Vr),BT=Se();function Fs(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,v=void 0;n?(u=Q(n.duration,200),f=Q(n.easing,"cubicOut"),v=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),v=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(v=i.delay)),ne(v)&&(v=v(t,a)),ne(u)&&(u=u(t));var c={duration:u||0,delay:v,easing:f};return c}else return null}function Hy(r,e,t,n,a,i,o){var s=!1,l;ne(a)?(o=i,i=a,a=null):ie(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Fs(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var v=f.duration,c=f.delay,h=f.easing,d={duration:v,delay:c||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Oe(r,e,t,n,a,i){Hy("update",r,e,t,n,a,i)}function Ke(r,e,t,n,a,i){Hy("enter",r,e,t,n,a,i)}function Hs(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 Qa(r,e,t,n,a,i){Hs(r)||Hy("leave",r,e,t,n,a,i)}function VT(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),Qa(r,{style:{opacity:0}},e,t,n)}function _a(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||VT(a,e,t,n)}):VT(r,e,t,n)}function Gr(r){BT(r).oldStyle=r.style}function J5(r){return BT(r).oldStyle}var Wy={},pe=["x","y"],st=["width","height"],zT=0,GT=1,Ws=2;function FT(r){return Me.extend(r)}var Q5=L5;function HT(r,e){return Q5(r,e)}function Fr(r,e){Wy[r]=e}function Bu(r){if(Wy.hasOwnProperty(r))return Wy[r]}function Us(r,e,t,n){var a=DT(r,e);return t&&(n==="center"&&(t=WT(t,a.getBoundingRect())),Yy(a,t)),a}function Uy(r,e,t){var n=new Dt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(WT(e,i))}}});return n}function WT(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Ar=P5;function Yy(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function Ys(r,e){return bc(r,r,{lineWidth:e}),r}function eG(r,e){return Fw(r,r,e),r}var Nc=wr;function oo(r,e){for(var t=Ci([]);r&&r!==e;)mr(t,r.getLocalTransform(),t),r=r.parent;return t}function un(r,e,t){return e&&!Vt(e)&&(e=_n.getLocalTransform(e)),t&&(e=_r([],e)),it([],r,e)}function Bc(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:rt(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:rt(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=un(i,e,t),rt(i[0])>rt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function UT(r){return!r.isGroup}function tG(r){return r.shape!=null}function Vu(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){UT(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return tG(o)&&(s.shape=ae(o.shape)),s}var i=n(r);e.traverse(function(o){if(UT(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Oe(o,l,t,ve(o).dataIndex)}}})}function Xy(r,e){return U(r,function(t){var n=t[0];n=Te(n,e.x),n=Ge(n,e.x+e.width);var a=t[1];return a=Te(a,e.y),a=Ge(a,e.y+e.height),[n,a]})}function YT(r,e){var t=Te(r.x,e.x),n=Ge(r.x+r.width,e.x+e.width),a=Te(r.y,e.y),i=Ge(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function Xs(r,e,t){var n=G({rectHover:!0},e),a=n.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),ue(a,t),new Dt(n)):Us(r.replace("path://",""),n,t,"center")}function zu(r,e,t,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(XT(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function XT(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,v=s-i,c=Zy(f,v,l,u);if(rG(c))return!1;var h=r-a,d=e-i,p=Zy(h,d,l,u)/c;if(p<0||p>1)return!1;var g=Zy(h,d,f,v)/c;return!(g<0||g>1)}function Zy(r,e,t,n){return r*n-t*e}function rG(r){return r<=1e-6&&r>=-1e-6}function so(r,e,t,n,a){return e==null||(Re(e)?nt[0]=nt[1]=nt[2]=nt[3]=e:(W(e.length===4),nt[0]=e[0],nt[1]=e[1],nt[2]=e[2],nt[3]=e[3]),n&&(nt[0]=Te(0,nt[0]),nt[1]=Te(0,nt[1]),nt[2]=Te(0,nt[2]),nt[3]=Te(0,nt[3])),t&&(nt[0]=-nt[0],nt[1]=-nt[1],nt[2]=-nt[2],nt[3]=-nt[3]),ZT(r,nt,"x","width",3,1,a&&a[0]||0),ZT(r,nt,"y","height",0,2,a&&a[1]||0)),r}var nt=[0,0,0,0];function ZT(r,e,t,n,a,i,o){var s=e[i]+e[a],l=r[n];r[n]+=s,o=Te(0,Ge(o,l)),r[n]<o?(r[n]=o,r[t]+=e[a]>=0?-e[a]:e[i]>=0?l+e[i]:rt(s)>1e-8?(l-o)*e[a]/s:0):r[t]-=e[a]}function Sa(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=$(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(Ae(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ve(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:ue({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function $y(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function ei(r,e){if(r)if(H(r))for(var t=0;t<r.length;t++)$y(r[t],e);else $y(r,e)}function qy(r){return!r||rt(r[1])<Vc&&rt(r[2])<Vc||rt(r[0])<Vc&&rt(r[3])<Vc}var Vc=1e-5;function Gu(r,e){return r?se.copy(r,e):e.clone()}function Ky(r,e){return e?za(r||Qe(),e):void 0}function lo(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function $T(r){var e=-1/0,t=1/0;$y(r,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function zc(r,e,t){qT(r,e,t,-1/0)}function qT(r,e,t,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=Te(qT(s[l],e,t,n),n);else r.z=e,r.zlevel=t,n=Te(r.z2||0,n);if(a&&(a.z=e,a.zlevel=t,isFinite(n)&&(a.z2=n+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}function jy(r){return r.animation={duration:0},r}function Gc(r,e){return e?za(Fu.transform,e):Ci(Fu.transform),Fu.decomposeTransform(),Sn(r,Fu),r}var Fu=new _n;Fu.transform=Qe();function Jy(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}Fr("circle",kn),Fr("ellipse",Ru),Fr("sector",Ht),Fr("ring",zs),Fr("polygon",Wt),Fr("polyline",Ot),Fr("rect",Ce),Fr("line",ft),Fr("bezierCurve",Gs),Fr("arc",Ou);var uo=Object.freeze({__proto__:null,updateProps:Oe,initProps:Ke,removeElement:Qa,removeElementWithFadeOut:_a,isElementRemoved:Hs,XY:pe,WH:st,HOVER_LAYER_NO:zT,HOVER_LAYER_FROM_THRESHOLD:GT,HOVER_LAYER_FOR_INCREMENTAL:Ws,extendShape:FT,extendPath:HT,registerShape:Fr,getShapeClass:Bu,makePath:Us,makeImage:Uy,mergePath:Ar,resizePath:Yy,subPixelOptimizeLine:Ys,subPixelOptimizeRect:eG,subPixelOptimize:Nc,getTransform:oo,applyTransform:un,transformDirection:Bc,groupTransition:Vu,clipPointsByRect:Xy,clipRectByRect:YT,createIcon:Xs,linePolygonIntersect:zu,lineLineIntersect:XT,expandOrShrinkRect:so,setTooltipConfig:Sa,traverseElements:ei,isBoundingRectAxisAligned:qy,ensureCopyRect:Gu,ensureCopyTransform:Ky,retrieveZInfo:lo,calcZ2Range:$T,traverseUpdateZ:zc,payloadDisableAnimation:jy,decomposeTransform:Gc,getCurrentCanvasPainter:Jy,Group:le,Image:Dt,Text:Pe,Circle:kn,Ellipse:Ru,Sector:Ht,Ring:zs,Polygon:Wt,Polyline:Ot,Rect:Ce,Line:ft,BezierCurve:Gs,Arc:Ou,IncrementalDisplayable:NT,CompoundPath:Nu,LinearGradient:no,RadialGradient:Gy,BoundingRect:se,OrientedBoundingRect:kT,Point:fe,Path:Me}),Fc={};function KT(r,e){for(var t=0;t<nr.length;t++){var n=nr[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Qy(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=ne(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<nr.length;u++){var f=nr[u],v=e[f];l[f]=Q(n?n.getFormattedLabel(a,f,null,i,v&&v.get("formatter")):null,s)}return l}function It(r,e,t,n){t=t||Fc;for(var a=r instanceof Pe,i=!1,o=0;o<Lu.length;o++){var s=e[Lu[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new Pe,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Qy(t,e),f=e.normal,v=!!f.getShallow("show"),c=Ye(f,n&&n.normal,t,!1,!a);c.text=u.normal,a||r.setTextConfig(Hc(f,t,!1));for(var o=0;o<nr.length;o++){var h=nr[o],s=e[h];if(s){var d=l.ensureState(h),p=!!Q(s.getShallow("show"),v);if(p!==v&&(d.ignore=!p),d.style=Ye(s,n&&n[h],t,!0,!a),d.style.text=u[h],!a){var g=r.ensureState(h);g.textConfig=Hc(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=!v,l.useStyle(c),l.dirty(),t.enableTextSetter&&(Zs(l).setLabelText=function(y){var m=Qy(t,e,y);KT(l,m)})}else l&&(l.ignore=!0);r.dirty()}function xt(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<nr.length;n++){var a=nr[n];t[a]=r.getModel([a,e])}return t}function Ye(r,e,t,n,a){var i={};return nG(i,r,t,n,a),e&&G(i,e),i}function Hc(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=Q(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&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function nG(r,e,t,n,a){t=t||Fc;var i=e.ecModel,o=i&&i.option.textStyle,s=aG(e),l;if(s){l={};var u="richInheritPlainLabel",f=Q(e.get(u),i?i.get(u):void 0);for(var v in s)if(s.hasOwnProperty(v)){var c=e.getModel(["rich",v]);eC(l[v]={},c,o,e,f,t,n,a,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=e.get("minMargin");if(g!=null)g=Re(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=$s.minMargin;else{var y=e.get("textMargin");y!=null&&(p.margin=Ql(y),p.__marginType=$s.textMargin)}eC(r,e,o,null,null,t,n,a,!0,!1)}function aG(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Fc).rich;if(t){e=e||{};for(var n=Ae(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var jT=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],JT=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],QT=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function eC(r,e,t,n,a,i,o,s,l,u){t=!o&&t||Fc;var f=i&&i.inheritColor,v=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Q(e.getShallow("opacity"),t.opacity);(v==="inherit"||v==="auto")&&(v==="auto"&&ut("color: 'auto'","color: 'inherit'"),f?v=f:v=null),(c==="inherit"||c==="auto")&&(c==="auto"&&ut("color: 'auto'","color: 'inherit'"),f?c=f:c=null),s||(v=v||t.color,c=c||t.textBorderColor),v!=null&&(r.fill=v),c!=null&&(r.stroke=c);var d=Q(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=Q(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var g=Q(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<jT.length;y++){var m=jT[y],_=a!==!1&&n?$t(e.getShallow(m),n.getShallow(m),t[m]):Q(e.getShallow(m),t[m]);_!=null&&(r[m]=_)}for(var y=0;y<JT.length;y++){var m=JT[y],_=e.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<QT.length;y++){var m=QT[y],_=e.getShallow(m);_!=null&&(r[m]=_)}var x=e.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor==="auto"&&ut("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor==="auto"&&ut("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=f)}}function em(r,e){var t=e&&e.getModel("textStyle");return yr([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 Zs=Se();function tC(r,e,t,n){if(r){var a=Zs(r);a.prevValue=a.value,a.value=t;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function rC(r,e,t,n,a){var i=Zs(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Q(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var v=yw(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:v;var c=Qy({labelDataIndex:e,labelFetcher:a,defaultText:o?o(v):v+""},i.statesModels,v);KT(r,c)}r.percent=0,(i.prevValue==null?Ke:Oe)(r,{percent:1},n,e,null,u)}var $s={minMargin:1,textMargin:2},iG=["textStyle","color"],tm=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],rm=new Pe,oG=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(iG):null)},r.prototype.getFont=function(){return em({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")},n=0;n<tm.length;n++)t[tm[n]]=this.getShallow(tm[n]);return rm.useStyle(t),rm.update(),rm.getBoundingRect()},r})(),nC=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],sG=Ui(nC),lG=(function(){function r(){}return r.prototype.getLineStyle=function(e){return sG(this,e)},r})(),aC=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],uG=Ui(aC),fG=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return uG(this,e,t)},r})(),De=(function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){for(var a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i]},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 n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,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(!Ie.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 n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r})();ny(De),yz(De),lt(De,lG),lt(De,fG),lt(De,bz),lt(De,oG);var vG=Math.round(Math.random()*10);function fo(r){return[r||"",vG++].join("_")}function cG(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=Mn(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=Mn(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function hG(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,v=u.noEntryList,c={};for(A(i,function(m){c[m]=!0});v.length;){var h=v.pop(),d=f[h],p=!!c[h];p&&(s.call(l,h,d.originalDeps.slice()),delete c[h]),A(d.successor,p?y:g)}A(c,function(){var m="";throw m=tr("Circular dependency may exists: ",c,i,o),new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&v.push(m)}function y(m){c[m]=!0,g(m)}};function t(i){var o={},s=[];return A(i,function(l){var u=n(o,l),f=u.originalDeps=e(l),v=a(f,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),A(v,function(c){ge(u.predecessor,c)<0&&u.predecessor.push(c);var h=n(o,c);ge(h.successor,c)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return A(i,function(l){ge(o,l)>=0&&s.push(l)}),s}}function ti(r,e){return _e(_e({},r,!0),e,!0)}var dG={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:". "}}}},pG={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:""}}}},Wc="ZH",nm="EN",qs=nm,Uc={},am={},iC=Ie.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||qs).toUpperCase();return r.indexOf(Wc)>-1?Wc:qs})():qs;function im(r,e){r=r.toUpperCase(),am[r]=new De(e),Uc[r]=e}function gG(r){if($(r)){var e=Uc[r.toUpperCase()]||{};return r===Wc||r===nm?ae(e):_e(ae(e),ae(Uc[qs]),!1)}else return _e(ae(r),ae(Uc[qs]),!1)}function om(r){return am[r]}function yG(){return am[qs]}im(nm,dG),im(Wc,pG);var sm=null;function mG(r){sm||(sm=r)}function vt(){return sm}function oC(r,e){var t=vt(),n=e.breakOption,a=e.breakParsed;return!a&&t&&(a=t.parseAxisBreakOption(n,r)),a}function Yc(r){var e=r.brk;return e?e.breaks:[]}function vo(r){var e=r.brk;return e?e.hasBreaks():!1}var lm=1e3,um=lm*60,Hu=um*60,Hr=Hu*24,sC=Hr*365,_G={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})/},Xc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},SG="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Zc="{yyyy}-{MM}-{dd}",lC={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zc,hour:Zc+" "+Xc.hour,minute:Zc+" "+Xc.minute,second:Zc+" "+Xc.second,millisecond:SG},Mr=["year","month","day","hour","minute","second","millisecond"],xG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function bG(r){return!$(r)&&!ne(r)?wG(r):r}function wG(r){r=r||{};var e={},t=!0;return A(Mr,function(n){t&&(t=r[n]==null)}),A(Mr,function(n,a){var i=r[n];e[n]={};for(var o=null,s=a;s>=0;s--){var l=Mr[s],u=ie(i)&&!H(i)?i[l]:i,f=void 0;H(u)?(f=u.slice(),o=f[0]||""):$(u)?(o=u,f=[o]):(o==null?o=Xc[n]:_G[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function ar(r,e){return r+="","0000".substr(0,e-r.length)+r}function Wu(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 TG(r){return r===Wu(r)}function CG(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Uu(r,e,t,n){var a=Tn(r),i=a[uC(t)](),o=a[fm(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[vm(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[cm(t)](),v=(f-1)%12+1,c=a[hm(t)](),h=a[dm(t)](),d=a[pm(t)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof De?n:om(n||iC)||yG(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,ar(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,ar(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ar(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ar(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ar(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,ar(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,ar(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,ar(d,3)).replace(/{S}/g,d+"")}function AG(r,e,t,n,a){var i=null;if($(t))i=t;else if(ne(t)){var o={time:r.time,level:r.time?r.time.level:0},s=vt();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Ks(r.value,a);i=t[f][f][0]}}return Uu(new Date(r.value),i,a,n)}function Ks(r,e){var t=Tn(r),n=t[fm(e)]()+1,a=t[vm(e)](),i=t[cm(e)](),o=t[hm(e)](),s=t[dm(e)](),l=t[pm(e)](),u=l===0,f=u&&s===0,v=f&&o===0,c=v&&i===0,h=c&&a===1,d=h&&n===1;return d?"year":h?"month":c?"day":v?"hour":f?"minute":u?"second":"millisecond"}function $c(r,e,t){switch(e){case"year":r[fC(t)](0);case"month":r[vC(t)](1);case"day":r[cC(t)](0);case"hour":r[hC(t)](0);case"minute":r[dC(t)](0);case"second":r[pC(t)](0)}return r}function uC(r){return r?"getUTCFullYear":"getFullYear"}function fm(r){return r?"getUTCMonth":"getMonth"}function vm(r){return r?"getUTCDate":"getDate"}function cm(r){return r?"getUTCHours":"getHours"}function hm(r){return r?"getUTCMinutes":"getMinutes"}function dm(r){return r?"getUTCSeconds":"getSeconds"}function pm(r){return r?"getUTCMilliseconds":"getMilliseconds"}function MG(r){return r?"setUTCFullYear":"setFullYear"}function fC(r){return r?"setUTCMonth":"setMonth"}function vC(r){return r?"setUTCDate":"setDate"}function cC(r){return r?"setUTCHours":"setHours"}function hC(r){return r?"setUTCMinutes":"setMinutes"}function dC(r){return r?"setUTCSeconds":"setSeconds"}function pC(r){return r?"setUTCMilliseconds":"setMilliseconds"}function DG(r,e,t,n,a,i,o,s){var l=new Pe({style:{text:r,font:e,align:t,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function gm(r){if(!uc(r))return $(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function ym(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var js=Ql;function mm(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&yr(f)?f:"-"}function i(f){return xr(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Tn(r):r;if(isNaN(+l)){if(s)return"-"}else return Uu(l,n,t)}if(e==="ordinal")return jl(r)?a(r):Re(r)&&i(r)?r+"":"-";var u=Cn(r);return i(u)?gm(u):jl(r)?a(r):typeof r=="boolean"?r+"":"-"}var gC=["a","b","c","d","e","f","g"],_m=function(r,e){return"{"+r+(e??"")+"}"};function Sm(r,e,t){H(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=gC[i];r=r.replace(_m(o),_m(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(_m(gC[l],s),t?Gt(u):u)}return r}function yC(r,e,t){return A(e,function(n,a){r=r.replace("{"+a+"}",t?Gt(n):n)}),r}function mC(r,e){var t=$(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!n)return"";if(i==="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:'+Gt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Gt(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function IG(r,e,t){ut("echarts.format.formatTime","echarts.time.format"),(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
30
+ yyyy`);var n=Tn(e),a=t?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),f=n[a+"Seconds"](),v=n[a+"Milliseconds"]();return r=r.replace("MM",ar(o,2)).replace("M",o).replace("yyyy",i).replace("yy",ar(i%100+"",2)).replace("dd",ar(s,2)).replace("d",s).replace("hh",ar(l,2)).replace("h",l).replace("mm",ar(u,2)).replace("m",u).replace("ss",ar(f,2)).replace("s",f).replace("SSS",ar(v,3)),r}function LG(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function co(r,e){return e=e||"transparent",$(r)?r:ie(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function qc(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Kc={},xm={},ho=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Kc,!0),this._normalMasterList=n(xm,!1);function n(a,i){var o=[];return A(a,function(s,l){var u=s.create(e,t);o=o.concat(u||[]),i&&A(u,function(f){return W(!f.update)})}),o}},r.prototype.update=function(e,t){A(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Kc[e]=t;return}xm[e]=t},r.get=function(e){return xm[e]||Kc[e]},r})();function PG(r){return!!Kc[r]}var RG=1,_C=2;function EG(r){W(!bm.get(r.fullType)),bm.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var bm=K();function SC(r){var e=r.getShallow("coord",!0),t=RG;if(e==null){var n=bm.get(r.type);n&&n.getCoord2&&(t=_C,e=n.getCoord2(r))}return{coord:e,from:t}}var Js=0,jc=1,xC=2;function bC(r,e){var t=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=n!=null,i=Js;if(t){var o=r.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(i=jc,o||(a&&e&&Le('coordinateSystemUsage "data" is not supported in non-series components.'),i=Js)):n==="box"&&(i=xC,!o&&!PG(t)&&(a&&e&&Le('coordinateSystem "'+t+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+r.type+'" yet.')),i=Js))}return{coordSysType:t,kind:i}}function Yu(r){var e=r.targetModel,t=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys,i=r.allowNotFound;W(!!t);var o=bC(e,!0),s=o.kind,l=o.coordSysType;if(a&&s!==jc&&(s=jc,l=t),s===Js||l!==t)return Js;var u=n(t,e);return u?(s===jc?(W(e.mainType==="series"),e.coordinateSystem=u):e.boxCoordinateSystem=u,s):(i||Le(t+" cannot be found for"+(" "+e.type+" (index: "+e.componentIndex+").")),Js)}var wC=function(r,e){var t=e.getReferringComponents(r,ot).models[0];return t&&t.coordinateSystem},Jc=A,TC=["left","right","top","bottom","width","height"],po=[["width","left","right"],["height","top","bottom"]];function wm(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),v=e.childAt(u+1),c=v&&v.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);h=i+p,h>n||l.newline?(i=0,h=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+t:o=d+t)})}var go=wm,Ote=be(wm,"vertical"),Nte=be(wm,"horizontal");function CC(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 kG(r,e){var t=bt(r,e,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(t.type===Xu.point)i=t.refPoint,a=Je(n,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=H(o)?o:[o,o];a=Je(n,t.refContainer),i=t.boxCoordFrom===_C?t.refPoint:[q(s[0],a.width)+a.x,q(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function AC(r,e){var t=kG(r,e),n=t.viewRect,a=t.center,i=r.get("radius");H(i)||(i=[0,i]);var o=q(n.width,e.getWidth()),s=q(n.height,e.getHeight()),l=Math.min(o,s),u=q(i[0],l/2),f=q(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function Je(r,e,t){t=js(t||0);var n=e.width,a=e.height,i=q(r.left,n),o=q(r.top,a),s=q(r.right,n),l=q(r.bottom,a),u=q(r.width,n),f=q(r.height,a),v=t[2]+t[0],c=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=n-s-c-i),isNaN(f)&&(f=a-l-v-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=n-s-u-c),isNaN(o)&&(o=a-l-f-v),r.left||r.right){case"center":i=n/2-u/2-t[3];break;case"right":i=n-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-v;break}i=i||0,o=o||0,isNaN(u)&&(u=n-c-i-(s||0)),isNaN(f)&&(f=a-v-o-(l||0));var d=new se((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}function MC(r,e,t){var n=r.getShallow("preserveAspect",!0);if(!n)return e;var a=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(a))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=n==="cover";return a>t&&!l||a<t&&l?(s.width=e.height*t,i==="left"?s.left=0:i==="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"),Je(s,e)}var Xu={rect:1,point:2};function bt(r,e,t){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=SC(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Xu.rect,s=f;var v=o.dataToLayout(u);n=v.contentRect||v.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint?(i=Xu.point,s=f,a=o.dataToPoint(u)):Le(r.type+"["+r.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return i==null&&(i=Xu.rect),i===Xu.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function Qc(r,e,t,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new se(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 v=Je(ue({width:u.width,height:u.height},e),t,n),c=o?v.x-u.x:0,h=s?v.y-u.y:0;return l==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function OG(r,e){return r[po[e][0]]!=null||r[po[e][1]]!=null&&r[po[e][2]]!=null}function Zu(r){var e=r.layoutMode||r.constructor.layoutMode;return ie(e)?e:e?{type:e}:null}function Nn(r,e,t){var n=t&&t.ignoreSize;!H(n)&&(n=[n,n]);var a=o(po[0],0),i=o(po[1],1);l(po[0],r,a),l(po[1],r,i);function o(u,f){var v={},c=0,h={},d=0,p=2;if(Jc(u,function(m){h[m]=r[m]}),Jc(u,function(m){J(e,m)&&(v[m]=h[m]=e[m]),s(v,m)&&c++,s(h,m)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===p||!c)return h;if(c>=p)return v;for(var g=0;g<u.length;g++){var y=u[g];if(!J(v,y)&&J(r,y)){v[y]=r[y];break}}return v}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,v){Jc(u,function(c){f[c]=v[c]})}}function yo(r){return DC({},r)}function DC(r,e){return e&&r&&Jc(TC,function(t){J(e,t)&&(r[t]=e[t])}),r}var NG=Se(),we=(function(r){N(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=fo("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=Zu(this),i=a?yo(t):{},o=n.getTheme();_e(t,o.get(this.mainType)),_e(t,this.getDefaultOption()),a&&Nn(t,i,a)},e.prototype.mergeOption=function(t,n){_e(this.option,t,!0);var a=Zu(this);a&&Nn(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!dz(t))return t.defaultOption;var n=NG(this);if(!n.defaultOption){for(var a=[],i=t;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=_e(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return Ls(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return CC(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})(De);ww(we,De),hc(we),cG(we),hG(we,BG);function BG(r){var e=[];return A(we.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=U(e,function(t){return Mn(t).main}),r!=="dataset"&&ge(e,"dataset")<=0&&e.unshift("dataset"),e}var B={color:{},darkColor:{},size:{}},ct=B.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)"};G(ct,{primary:ct.neutral80,secondary:ct.neutral70,tertiary:ct.neutral60,quaternary:ct.neutral50,disabled:ct.neutral20,border:ct.neutral30,borderTint:ct.neutral20,borderShade:ct.neutral40,background:ct.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ct.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ct.neutral70,axisLineTint:ct.neutral40,axisTick:ct.neutral70,axisTickMinor:ct.neutral60,axisLabel:ct.neutral70,axisSplitLine:ct.neutral15,axisMinorSplitLine:ct.neutral05});for(var mo in ct)if(ct.hasOwnProperty(mo)){var IC=ct[mo];mo==="theme"?B.darkColor.theme=ct.theme.slice():mo==="highlight"?B.darkColor.highlight="rgba(255,231,130,0.4)":mo.indexOf("accent")===0?B.darkColor[mo]=ua(IC,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):B.darkColor[mo]=ua(IC,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}B.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var LC="";typeof navigator<"u"&&(LC=navigator.platform||"");var Qs="rgba(0, 0, 0, 0.2)",PC=B.color.theme[0],VG=ua(PC,null,null,.9),RC={darkMode:"auto",colorBy:"series",color:B.color.theme,gradientColor:[VG,PC],aria:{decal:{decals:[{color:Qs,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Qs,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Qs,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Qs,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Qs,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Qs,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:LC.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},Ut={Must:1,Might:2,Not:3},EC=Se();function zG(r){EC(r).datasetMap=K()}function kC(r,e,t){var n={},a=Cm(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=EC(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,v;r=r.slice(),A(r,function(p,g){var y=ie(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,v=d(y)),n[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;h(n[y],_,m),h(o,_,m),c.valueWayDim+=m}else if(f===g)h(n[y],0,m),h(i,0,m);else{var _=c.categoryWayDim;h(n[y],_,m),h(o,_,m),c.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function Tm(r,e,t){var n={},a=Cm(r);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Cr||i===on)&&A(o,function(f,v){(ie(f)?f.name:f)==="name"&&(s=v)});var l=(function(){for(var f={},v={},c=[],h=0,d=Math.min(5,t);h<d;h++){var p=NC(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);c.push(p);var g=p===Ut.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&c[f.n]===Ut.Not)&&(f.n=h),y(f)&&c[f.n]!==Ut.Not)return f;g||(p===Ut.Might&&v.v==null&&h!==s&&(v.v=h),(v.n==null||v.n===v.v)&&(v.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(v)?v:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Cm(r){var e=r.get("data",!0);if(!e)return Ls(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ot).models[0]}function GG(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Ls(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ot).models}function OC(r,e){return NC(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function NC(r,e,t,n,a,i){var o,s=5;if(Zt(r))return Ut.Not;var l,u;if(n){var f=n[i];ie(f)?(l=f.name,u=f.type):$(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ut.Must:Ut.Not;if(e===kt){var v=r;if(t===Ji){for(var c=v[i],h=0;h<(c||[]).length&&h<s;h++)if((o=S(c[a+h]))!=null)return o}else for(var h=0;h<v.length&&h<s;h++){var d=v[a+h];if(d&&(o=S(d[i]))!=null)return o}}else if(e===Cr){var p=r;if(!l)return Ut.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(e===on){var y=r;if(!l)return Ut.Not;var c=y[l];if(!c||Zt(c))return Ut.Not;for(var h=0;h<c.length&&h<s;h++)if((o=S(c[h]))!=null)return o}else if(e===Tr)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],_=Ms(g);if(!H(_))return Ut.Not;if((o=S(_[i]))!=null)return o}function S(x){var b=$(x);if(x!=null&&isFinite(Number(x))&&x!=="")return b?Ut.Might:Ut.Not;if(b&&x!=="-")return Ut.Must}return Ut.Not}var Am=K();function FG(r,e){W(Am.get(r)==null&&e),Am.set(r,e)}function HG(r,e,t){var n=Am.get(e);if(!n)return t;var a=n(r);if(!a)return t;for(var i=0;i<a.length;i++)W(Ds(a[i]));return t.concat(a)}var BC=Se(),WG=Se(),Mm=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=Ue(this.get("color",!0)),i=this.get("colorLayer",!0);return VC(this,BC,a,i,e,t,n)},r.prototype.clearColorPalette=function(){YG(this,BC)},r})();function Dm(r,e,t,n){var a=Ue(r.get(["aria","decal","decals"]));return VC(r,WG,a,null,e,t,n)}function UG(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function VC(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?t:UG(n,o);if(f=f||t,!(!f||!f.length)){var v=f[l];return a&&(u[a]=v),s.paletteIdx=(l+1)%f.length,v}}function YG(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var eh,$u,zC,Im="\0_ec_inner",GC=1,XG={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},ZG={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},th={};function $G(r){A(r,function(e,t){if(!we.hasClass(t)){var n=XG[t];n&&!th[n]&&(Le("Component "+t+` is used but not imported.
31
+ import { `+n+` } from 'echarts/components';
32
+ echarts.use([`+n+"]);"),th[n]=!0)}})}var Lm=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new De(i),this._locale=new De(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){W(t!=null,"option is null/undefined"),W(t[Im]!==GC,"please use chart.getOption()");var i=WC(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,WC(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");$G(o),!this.option||t==="recreate"?zC(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=K(),u=n&&n.replaceMergeMainTypeMap;zG(this),A(t,function(v,c){v!=null&&(we.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?ae(v):_e(a[c],v,!0))}),u&&u.each(function(v,c){we.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),we.topologicalTravel(s,we.getAllClassMainTypes(),f,this);function f(v){var c=HG(this,v,Ue(t[v])),h=i.get(v),d=h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",p=cw(h,c,d);ez(p,v,we),a[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,_,S;A(p,function(x,b){var w=x.existing,C=x.newOption;if(!C)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=v==="series",M=we.getClass(v,x.keyInfo.subType,!T);if(!M){var D=x.keyInfo.subType,L=ZG[D];th[D]||(th[D]=!0,Le(L?"Series "+D+` is used but not imported.
33
+ import { `+L+` } from 'echarts/charts';
34
+ echarts.use([`+L+"]);":"Unknown series "+D));return}if(v==="tooltip"){if(_){S||(et("Currently only one tooltip component is allowed."),S=!0);return}_=!0}if(w&&w.constructor===M)w.name=x.keyInfo.name,w.mergeOption(C,this),w.optionUpdated(C,!1);else{var I=G({componentIndex:b},x.keyInfo);w=new M(C,this,this,I),G(w,I),x.brandNew&&(w.__requireNewView=!0),w.init(C,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),a[v]=g,i.set(v,y),o.set(v,m),v==="series"&&eh(this)}this._seriesIndices||eh(this)},e.prototype.getOption=function(){var t=ae(this.option);return A(t,function(n,a){if(we.hasClass(a)){for(var i=Ue(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ds(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[Im],t},e.prototype.setTheme=function(t){this._theme=new De(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,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],A(Ue(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=FC("id",i,s):o!=null?l=FC("name",o,s):l=Ve(s,function(u){return!!u}),HC(l,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):Ve(this._componentsMap.get(a),function(u){return!!u});return l(HC(o,t));function s(u){var f=a+"Index",v=a+"Id",c=a+"Name";return u&&(u[f]!=null||u[v]!=null||u[c]!=null)?{mainType:a,index:u[f],id:u[v],name:u[c]}:null}function l(u){return t.filter?Ve(u,t.filter):u}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(ne(t)){var o=n,s=t;i.each(function(v,c){for(var h=0;v&&h<v.length;h++){var d=v[h];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=$(t)?i.get(t):ie(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=mt(t,null);return Ve(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ve(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return Ve(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){$u(this),A(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){A(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){$u(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return A(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return $u(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){$u(this);var a=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=K(a)},e.prototype.restoreData=function(t){eh(this);var n=this._componentsMap,a=[];n.each(function(i,o){we.hasClass(o)&&a.push(o)}),we.topologicalTravel(a,we.getAllClassMainTypes(),function(i){A(n.get(i),function(o){o&&(i!=="series"||!qG(o,t))&&o.restoreData()})})},e.internalField=(function(){eh=function(t){var n=t._seriesIndices=[];A(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=K(n)},$u=function(t){if(!t._seriesIndices)throw new Error("Option should contains series.")},zC=function(t,n){t.option={},t.option[Im]=GC,t._componentsMap=K({series:[]}),t._componentsCount=K();var a=n.aria;ie(a)&&a.enabled==null&&(a.enabled=!0),KG(n,t._theme.option),_e(n,RC,!1),t._mergeOption(n,null)}})(),e})(De);function qG(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function KG(r,e){var t=r.color&&!r.colorLayer;A(e,function(n,a){a==="colorLayer"&&t||a==="color"&&r.color||we.hasClass(a)||(typeof n=="object"?r[a]=r[a]?_e(r[a],n,!1):ae(n):r[a]==null&&(r[a]=n))})}function FC(r,e,t){if(H(e)){var n=K();return A(e,function(i){if(i!=null){var o=mt(i,null);o!=null&&n.set(i,!0)}}),Ve(t,function(i){return i&&n.get(i[r])})}else{var a=mt(e,null);return Ve(t,function(i){return i&&a!=null&&i[r]===a})}}function HC(r,e){return e.hasOwnProperty("subType")?Ve(r,function(t){return t&&t.subType===e.subType}):r}function WC(r){var e=K();return r&&A(Ue(r.replaceMerge),function(t){W(we.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)}),{replaceMergeMainTypeMap:e}}lt(Lm,Mm);var jG=/^(min|max)?(.+)$/,JG=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(A(Ue(e.series),function(o){o&&o.data&&Zt(o.data)&&eu(o.data)}),A(Ue(e.dataset),function(o){o&&o.source&&Zt(o.source)&&eu(o.source)})),e=ae(e);var a=this._optionBackup,i=QG(e,t,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},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,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=ae(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)eF(a[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!rF(o,this._currentMediaIndices)&&(s=U(o,function(f){return ae(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r})();function QG(r,e,t){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,v=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((v||f)&&(r.options=r.media=null),i=r),f&&(H(u)?A(u,function(h){h&&!h.option&&ie(h.query)&&ie(h.query.option)&&Le("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),h&&h.option&&(h.query?n.push(h):a||(a=h))}):Le("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),c(i),A(l,function(h){return c(h)}),A(n,function(h){return c(h.option)});function c(h){A(e,function(d){d(h,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function eF(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return A(r,function(i,o){var s=o.match(jG);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();tF(n[u],i,l)||(a=!1)}}),a}function tF(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function rF(r,e){return r.join(",")===e.join(",")}var Wr=A,qu=ie,UC=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Pm(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=UC.length;t<n;t++){var a=UC[t],i=e.normal,o=e.emphasis;i&&i[a]&&(ut("itemStyle.normal."+a,a),r[a]=r[a]||{},r[a].normal?_e(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(ut("itemStyle.emphasis."+a,"emphasis."+a),r[a]=r[a]||{},r[a].emphasis?_e(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function jt(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(an("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),t?(r[e].normal=r[e].emphasis=null,ue(r[e],n)):r[e]=n),a&&(an(e+".emphasis has been changed to emphasis."+e+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function Ku(r){jt(r,"itemStyle"),jt(r,"lineStyle"),jt(r,"areaStyle"),jt(r,"label"),jt(r,"labelLine"),jt(r,"upperLabel"),jt(r,"edgeLabel")}function pt(r,e){var t=qu(r)&&r[e],n=qu(t)&&t.textStyle;if(n){an("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var a=0,i=vw.length;a<i;a++){var o=vw[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}}function Ur(r){r&&(Ku(r),pt(r,"label"),r.emphasis&&pt(r.emphasis,"label"))}function nF(r){if(qu(r)){Pm(r),Ku(r),pt(r,"label"),pt(r,"upperLabel"),pt(r,"edgeLabel"),r.emphasis&&(pt(r.emphasis,"label"),pt(r.emphasis,"upperLabel"),pt(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Pm(e),Ur(e));var t=r.markLine;t&&(Pm(t),Ur(t));var n=r.markArea;n&&Ur(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!Zt(i))for(var o=0;o<i.length;o++)Ur(i[o]);A(r.categories,function(u){Ku(u)})}if(a&&!Zt(a))for(var o=0;o<a.length;o++)Ur(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Ur(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)H(l[o])?(Ur(l[o][0]),Ur(l[o][1])):Ur(l[o]);r.type==="gauge"?(pt(r,"axisLabel"),pt(r,"title"),pt(r,"detail")):r.type==="treemap"?(jt(r.breadcrumb,"itemStyle"),A(r.levels,function(u){Ku(u)})):r.type==="tree"&&Ku(r.leaves)}}function xa(r){return H(r)?r:r?[r]:[]}function YC(r){return(H(r)?r[0]:r)||{}}function aF(r,e){Wr(xa(r.series),function(n){qu(n)&&nF(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Wr(t,function(n){Wr(xa(r[n]),function(a){a&&(pt(a,"axisLabel"),pt(a.axisPointer,"label"))})}),Wr(xa(r.parallel),function(n){var a=n&&n.parallelAxisDefault;pt(a,"axisLabel"),pt(a&&a.axisPointer,"label")}),Wr(xa(r.calendar),function(n){jt(n,"itemStyle"),pt(n,"dayLabel"),pt(n,"monthLabel"),pt(n,"yearLabel")}),Wr(xa(r.radar),function(n){pt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,an("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,an("nameGap property in radar component has been changed to axisNameGap")),Wr(n.indicator,function(a){a.text&&ut("text","name","radar.indicator")})}),Wr(xa(r.geo),function(n){qu(n)&&(Ur(n),Wr(xa(n.regions),function(a){Ur(a)}))}),Wr(xa(r.timeline),function(n){Ur(n),jt(n,"label"),jt(n,"itemStyle"),jt(n,"controlStyle",!0);var a=n.data;H(a)&&A(a,function(i){ie(i)&&(jt(i,"label"),jt(i,"itemStyle"))})}),Wr(xa(r.toolbox),function(n){jt(n,"iconStyle"),Wr(n.feature,function(a){jt(a,"iconStyle")})}),pt(YC(r.axisPointer),"label"),pt(YC(r.tooltip).axisPointer,"label")}function iF(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function oF(r,e,t,n){for(var a=e.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=t)}function XC(r){r&&A(sF,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var sF=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],lF=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Rm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ju(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Rm.length;t++){var n=Rm[t][1],a=Rm[t][0];e[n]!=null&&(e[a]=e[n],ut(n,a))}}function ZC(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(ut("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function $C(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,ut("downplay","blur","sunburst"))}function uF(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(ut("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function qC(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&qC(r[t].children,e)}function KC(r,e){aF(r,e),r.series=Ue(r.series),A(r.series,function(t){if(ie(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow,ut("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise,ut("clockWise","clockwise")),ZC(t.label);var a=t.data;if(a&&!Zt(a))for(var i=0;i<a.length;i++)ZC(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(ut("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=iF(t,"pointer.color");o!=null&&oF(t,"itemStyle.color",o)}else if(n==="bar"){ju(t),ju(t.backgroundStyle),ju(t.emphasis);var a=t.data;if(a&&!Zt(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(ju(a[i]),ju(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s,ut("highlightPolicy","emphasis.focus","sunburst"))),$C(t),qC(t.data,$C)}else n==="graph"||n==="sankey"?uF(t):n==="map"&&(t.mapType&&!t.map&&(ut("mapType","map","map"),t.map=t.mapType),t.mapLocation&&(an("`mapLocation` is not used anymore."),ue(t,t.mapLocation)));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(ut("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),XC(t)}}),r.dataRange&&(r.visualMap=r.dataRange),A(lF,function(t){var n=r[t];n&&(H(n)||(n=[n]),A(n,function(a){XC(a)}))})}var fF=Au(vF);function vF(r){var e=K();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(t){if(t.length!==0){var n=t[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&t.reverse(),A(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),cF(t)}})}function cF(r){A(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,v){var c=o.get(e.stackedDimension,v);if(isNaN(c))return a;var h,d;s?d=o.getRawIndex(v):h=o.get(e.stackedByDimension,v);for(var p=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=Vi(c,m),p=m;break}}}return n[0]=c,n[1]=p,n})})}var rh=(function(){function r(e){this.data=e.data||(e.sourceFormat===on?{}:[]),this.sourceFormat=e.sourceFormat||Qw,this.seriesLayoutBy=e.seriesLayoutBy||sn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var a=t[n];a.type==null&&OC(this,n)===Ut.Must&&(a.type="ordinal")}}return r})();function Em(r){return r instanceof rh}function km(r,e,t){t=t||jC(r);var n=e.seriesLayoutBy,a=dF(r,t,n,e.sourceHeader,e.dimensions),i=new rh({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ae(e)});return i}function Om(r){return new rh({data:r,sourceFormat:Zt(r)?pa:Tr})}function hF(r){return new rh({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ae(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function jC(r){var e=Qw;if(Zt(r))e=pa;else if(H(r)){r.length===0&&(e=kt);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(H(a)||Zt(a)){e=kt;break}else if(ie(a)){e=Cr;break}}}}else if(ie(r)){for(var i in r)if(J(r,i)&&Vt(r[i])){e=on;break}}return e}function dF(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:JC(a),startIndex:o,dimensionsDetectedCount:i};if(e===kt){var s=r;n==="auto"||n==null?QC(function(u){u!=null&&u!=="-"&&($(u)?o==null&&(o=1):o=0)},t,s,10):o=Re(n)?n:n?1:0,!a&&o===1&&(a=[],QC(function(u,f){a[f]=u!=null?u+"":""},t,s,1/0)),i=a?a.length:t===Ji?s.length:s[0]?s[0].length:null}else if(e===Cr)a||(a=pF(r));else if(e===on)a||(a=[],A(r,function(u,f){a.push(f)}));else if(e===Tr){var l=Ms(r[0]);i=H(l)&&l.length||1}else e===pa&&W(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:JC(a),dimensionsDetectedCount:i}}function pF(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Ae(t)}function JC(r){if(r){var e=K();return U(r,function(t,n){t=ie(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 i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function QC(r,e,t,n){if(e===Ji)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function eA(r){var e=r.sourceFormat;return e===Cr||e===on}var _o,So,xo,bo,tA,rA,nA=(function(){function r(e,t){var n=Em(e)?e:Om(e);this._source=n;var a=this._data=n.data,i=n.sourceFormat,o=n.seriesLayoutBy;if(i===pa){if(t==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=a}var s=gF[ah(i,o)];s&&s(a,n.dimensionsDefine),rA(this,a,n)}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;rA=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,v=l.startIndex,c=l.dimensionsDefine,h=tA[ah(u,f)];if(W(h,"Invalide sourceFormat: "+u),G(o,h),u===pa)o.getItem=t,o.count=a,o.fillStorage=n;else{var d=iA(u,f);o.getItem=j(d,null,s,v,c);var p=sA(u,f);o.count=j(p,null,s,v,c)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,v=0;v<u;v++)s[v]=l[f+v];return s},n=function(o,s,l,u){for(var f=this._data,v=this._dimSize,c=0;c<v;c++){for(var h=u[c],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*v+c];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};tA=(e={},e[kt+"_"+sn]={pure:!0,appendData:i},e[kt+"_"+Ji]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Cr]={pure:!0,appendData:i},e[on]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)f.push(l[v])})}},e[Tr]={appendData:i},e[pa]={persistent:!1,pure:!0,appendData:function(o){W(Zt(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),nh=function(r){H(r)||Le("series.data or dataset.source must be an array.")},gF=(_o={},_o[kt+"_"+sn]=nh,_o[kt+"_"+Ji]=nh,_o[Cr]=nh,_o[on]=function(r,e){for(var t=0;t<e.length;t++){var n=e[t].name;n==null&&Le("dimension name must not be null/undefined.")}},_o[Tr]=nh,_o),aA=function(r,e,t,n){return r[n]},yF=(So={},So[kt+"_"+sn]=function(r,e,t,n){return r[n+e]},So[kt+"_"+Ji]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},So[Cr]=aA,So[on]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[n]:null}return i},So[Tr]=aA,So);function iA(r,e){var t=yF[ah(r,e)];return W(t,'Do not support get item on "'+r+'", "'+e+'".'),t}var oA=function(r,e,t){return r.length},mF=(xo={},xo[kt+"_"+sn]=function(r,e,t){return Math.max(0,r.length-e)},xo[kt+"_"+Ji]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},xo[Cr]=oA,xo[on]=function(r,e,t){var n=t[0].name,a=n!=null?r[n]:null;return a?a.length:0},xo[Tr]=oA,xo);function sA(r,e){var t=mF[ah(r,e)];return W(t,'Do not support count on "'+r+'", "'+e+'".'),t}var Nm=function(r,e,t){return r[e]},_F=(bo={},bo[kt]=Nm,bo[Cr]=function(r,e,t){return r[t]},bo[on]=Nm,bo[Tr]=function(r,e,t){var n=Ms(r);return n instanceof Array?n[e]:n},bo[pa]=Nm,bo);function lA(r){var e=_F[r];return W(e,'Do not support get value on "'+r+'".'),e}function ah(r,e){return r===kt?r+"_"+e:r}function el(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return lA(i)(n,o,s)}else{var l=n;return i===Tr&&(l=Ms(n)),l}}}}var SF=/\{@(.+?)\}/g,ih=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,v=this.mainType,c=v==="series",h=n.userOutput&&n.userOutput.get();return{componentType:v,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:i,data:s,dataType:t,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&H(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(ne(i))return l.status=t,l.dimensionIndex=a,i(l);if($(i)){var f=Sm(i,l);return f.replace(SF,function(v,c){var h=c.length,d=c;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1),isNaN(d)&&Le("Invalide label formatter: @"+c+", only support @[0], @[1], @[2], ..."));var p=el(s,e,d);if(o&&H(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return el(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r})();function uA(r){var e,t;return ie(r)?r.type?t=r:console.warn("The return type of `formatTooltip` is not supported: "+tr(r)):e=r,{text:e,frag:t}}function Ju(r){return new xF(r)}var xF=(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,n=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 i;this._plan&&!n&&(i=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)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?(W(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(W(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(v||h<d)){var p=this._progress;if(H(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;W(y>=this._outputDueEnd),this._outputDueEnd=y}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,n,a,i){fA.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:fA.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),H(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){W(e&&!e._disposed&&e!==this),(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})(),fA=(function(){var r,e,t,n,a,i={reset:function(l,u,f,v){e=l,r=u,t=f,n=v,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<n?l:e;return e++,u}})();function ri(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Re(r)&&r!=null&&r!=="-"&&(r=+Tn(r)),r==null||r===""?NaN:Number(r))}var bF=K({number:function(r){return parseFloat(r)},time:function(r){return+Tn(r)},trim:function(r){return $(r)?yr(r):r}});function vA(r){return bF.get(r)}var cA={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}},wF=(function(){function r(e,t){if(!Re(t)){var n="";n='rvalue of "<", ">", "<=", ">=" can only be number in filter.',ze(n)}this._opFn=cA[e],this._rvalFloat=Cn(t)}return r.prototype.evaluate=function(e){return Re(e)?this._opFn(e,this._rvalFloat):this._opFn(Cn(e),this._rvalFloat)},r})(),hA=(function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=Re(e)?e:Cn(e),a=Re(t)?t:Cn(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=$(e),l=$(t);s&&(n=l?e:0),l&&(a=s?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r})(),TF=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Cn(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=Cn(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function CF(r,e){return r==="eq"||r==="ne"?new TF(r==="eq",e):J(cA,r)?new wF(r,e):null}function dA(r){var e="",t=-1/0,n=-1/0,a=1/0,i=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,n=r.ge),r.l!=null&&(e+="L"+r.l,a=r.l),r.le!=null&&(e+="LE"+r.le,i=r.le)),{key:e,g:t,ge:n,l:a,le:i}}function pA(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var AF=(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 ri(e,t)},r})();function MF(r,e){var t=new AF,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==sn&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',ze(o));var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";J(l,y)&&(_='dimension name "'+y+'" duplicated.',ze(_)),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var v=iA(a,sn);e.__isBuiltIn&&(t.getRawDataItem=function(p){return v(n,i,s,p)},t.getRawData=j(DF,null,r)),t.cloneRawData=j(IF,null,r);var c=sA(a,sn);t.count=j(c,null,n,i,s);var h=lA(a);t.retrieveValue=function(p,g){var y=v(n,i,s,p);return d(y,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return t.getDimensionInfo=j(LF,null,s,l),t.cloneAllDimensionInfo=j(PF,null,s),t}function DF(r){var e=r.sourceFormat;if(!Bm(e)){var t="";t="`getRawData` is not supported in source format "+e,ze(t)}return r.data}function IF(r){var e=r.sourceFormat,t=r.data;if(!Bm(e)){var n="";n="`cloneRawData` is not supported in source format "+e,ze(n)}if(e===kt){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===Cr){for(var a=[],i=0,o=t.length;i<o;i++)a.push(G({},t[i]));return a}}function LF(r,e,t){if(t!=null){if(Re(t)||!isNaN(t)&&!J(e,t))return r[t];if(J(e,t))return e[t]}}function PF(r){return ae(r)}var gA=K();function RF(r){r=ae(r);var e=r.type,t="";e||(t="Must have a `type` when `registerTransform`.",ze(t));var n=e.split(":");n.length!==2&&(t='Name must include namespace like "ns:regression".',ze(t));var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,gA.set(e,r)}function EF(r,e,t){var n=Ue(r),a=n.length,i="";a||(i="If `transform` declared, it should at least contain one transform.",ze(i));for(var o=0,s=a;o<s;o++){var l=n[o];e=kF(l,e,t,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function kF(r,e,t,n){var a="";e.length||(a="Must have at least one upstream dataset.",ze(a)),ie(r)||(a="transform declaration must be an object rather than "+typeof r+".",ze(a));var i=r.type,o=gA.get(i);o||(a='Can not find transform on type "'+i+'".',ze(a));var s=U(e,function(f){return MF(f,o)}),l=Ue(o.transform({upstream:s[0],upstreamList:s,config:ae(r.config)}));if(r.print){var u=U(l,function(f){var v=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+t.datasetIndex+v+" ===","- transform result data:",tr(f.data),"- transform result dimensions:",tr(f.dimensions)].join(`
35
+ `)}).join(`
36
+ `);sw(u)}return U(l,function(f,v){var c="";ie(f)||(c="A transform should not return some empty results.",ze(c)),f.data||(c="Transform result data should be not be null or undefined",ze(c));var h=jC(f.data);Bm(h)||(c="Transform result data should be array rows or object rows.",ze(c));var d,p=e[0];if(p&&v===0&&!f.dimensions){var g=p.startIndex;g&&(f.data=p.data.slice(0,g).concat(f.data)),d={seriesLayoutBy:sn,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:sn,sourceHeader:0,dimensions:f.dimensions};return km(f.data,d,null)})}function Bm(r){return r===kt||r===Cr}var OF=typeof Uint32Array===ks?Array:Uint32Array,NF=typeof Uint16Array===ks?Array:Uint16Array,yA=typeof Int32Array===ks?Array:Int32Array,mA=typeof Float64Array===ks?Array:Float64Array,_A={float:mA,int:yA,ordinal:Array,number:Array,time:mA},Vm;function tl(r){return r>65535?OF:NF}function BF(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function SA(r,e,t,n,a){var i=_A[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(n)}var zm=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return r.prototype.initData=function(e,t,n){W(ne(e.getItem)&&ne(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Vm[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=eA(a);this._dimensions=U(t,function(s){return o&&W(s.property!=null),{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 n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new _A[t||"float"](this._rawCount),this._rawExtent[i]=Ft(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=Ft());for(var l=i[e],u=o;u<s;u++){var f=n[u]=t.parseAndCollect(n[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],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){W(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=a[u];SA(n,u,f.type,l,!0)}for(var v=[],c=s;c<l;c++)for(var h=c-s,d=0;d<i;d++){var f=a[d],p=Vm.arrayRows.call(this,e[h]||v,f.property,h,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(m){return m.property}),f=0;f<s;f++){var v=o[f];l[f]||(l[f]=Ft()),SA(i,f,v.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,l);else for(var c=[],h=e;h<t;h++){c=a.getItem(h,c);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(c,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!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 n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)}),Et(t);var n=this.count();return n===0?0:n%2===1?t[(n-1)/2]:(t[n/2]+t[n/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,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=tl(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=tl(n._rawCount),o=new i(a),s=[],l=e.length,u=0,f=e[0],v=n._chunks,c=0;c<a;c++){var h=void 0,d=n.getRawIndex(c);if(l===0)h=t(c);else if(l===1){var p=v[f][d];h=t(p,c)}else{for(var g=0;g<l;g++)s[g]=v[e[g]][d];s[g]=c,h=t.apply(null,s)}h&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var a=Ae(e),i=a.length;if(!i)return this;var o=t.count(),s=tl(t._rawCount),l=new s(o),u=0,f=a[0],v=e[f][0],c=e[f][1],h=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=h[a[0]],y=0;y<n;y++){var m=g[y];(m>=v&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],S=e[a[1]][0],x=e[a[1]][1],y=0;y<n;y++){var m=g[y],b=_[y];(m>=v&&m<=c||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var w=t.getRawIndex(y),m=h[a[0]][w];(m>=v&&m<=c||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var C=!0,w=t.getRawIndex(y),T=0;T<i;T++){var M=a[T],m=h[M][w];(m<e[M][0]||m>e[M][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Ft();for(var v=0;v<s;v++){for(var c=e.getRawIndex(v),h=0;h<o;h++)l[h]=a[t[h]][c];l[o]=v;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=t[f],g=d[f],y=u[p],m=a[p];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,v,c,h=new(tl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=i[S];isNaN(x)||(m+=x)}m/=g-p;var b=d,w=Math.min(d+l,o),C=d-1,T=i[u];f=-1,c=b;for(var M=-1,D=0,_=b;_<w;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){D++,M<0&&(M=S);continue}v=Math.abs((C-y)*(x-T)-(C-_)*(m-T)),v>f&&(f=v,c=S)}D>0&&D<w-b&&(h[s++]=Math.min(M,c),c=Math.max(M,c)),h[s++]=c,u=c}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/t),o=a[e],s=this.count(),l=new(tl(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var v=f,c=o[this.getRawIndex(v)],h=f,d=o[this.getRawIndex(h)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<c&&(c=m,v=f+g),m>d&&(d=m,h=f+g)}var _=this.getRawIndex(v),S=this.getRawIndex(h);v<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),v=i._rawExtent[e]=Ft(),c=new(tl(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y),c[h++]=m}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var n=this._chunks[e],a=Ft();if(!n)return a;var i=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=dA(t),f=u.key,v=l[f];if(v)return v.slice();for(var c=a[0],h=a[1],d=0;d<i;d++){var p=this.getRawIndex(d),g=n[p];(!t||pA(u,g))&&(g<c&&(c=g),g>h&&(h=g))}return l[f]=[c,h]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&Pr(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?BF(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},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 n=this._indices.length;t=new e(n);for(var a=0;a<n;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,n,a,i){return ri(t[i],this._dimensions[i])}Vm={arrayRows:e,objectRows:function(t,n,a,i){return ri(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return ri(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}})(),r})(),xA=(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(),n=!!t.length,a,i;if(Qu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Zt(s)?pa:Tr,i=[];var v=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=Q(v.seriesLayoutBy,c.seriesLayoutBy)||null,d=Q(v.sourceHeader,c.sourceHeader),p=Q(v.dimensions,c.dimensions),g=h!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;a=g?[km(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(n){var m=this._applyTransform(t);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[km(_,this._getSourceMetaRawOption(),null)],i=[]}}W(a&&i),this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(W(a!=null||n!=null),a!=null){var i="";e.length!==1&&(i="When using `fromTransformResult`, there should be only one upstream dataset",wA(i))}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(a||0),v="";a!=null&&!f&&(v="Can not retrieve result by `fromTransformResult`: "+a,wA(v)),s.push(f),l.push(u._getVersionSign())}),n?o=EF(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[hF(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 n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){W(Qu(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Qu(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new zm,s.initData(new nA(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Qu(e)){var t=Cm(e);return t?[t.getSourceManager()]:[]}else return U(GG(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(Qu(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r})();function bA(r){var e=r.option.transform;e&&eu(r.option.transform)}function Qu(r){return r.mainType==="series"}function wA(r){throw new Error(r)}var VF="line-height:1";function TA(r){var e=r.lineHeight;return e==null?VF:"line-height:"+Gt(e+"")+"px"}function CA(r,e){var t=r.color||B.color.tertiary,n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||B.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Gt(n+"")+"px;color:"+Gt(t)+";font-weight:"+Gt(a+""),valueStyle:"font-size:"+Gt(o+"")+"px;color:"+Gt(i)+";font-weight:"+Gt(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var zF=[0,10,20,30],GF=["",`
37
+ `,`
38
+
39
+ `,`
40
+
41
+
42
+ `];function gt(r,e){return e.type=r,e}function Gm(r){return r.type==="section"}function AA(r){return Gm(r)?FF:HF}function MA(r){if(Gm(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return A(r.blocks,function(a){var i=MA(a);i>=e&&(e=i+ +(n&&(!i||Gm(a)&&!a.noHeader)))}),e}return 0}function FF(r,e,t,n){var a=e.noHeader,i=WF(MA(e)),o=[],s=e.blocks||[];W(!s||H(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new hA(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=e.valueFormatter,m=AA(p)(y?G(G({},r),{valueFormatter:y}):r,p,g>0?i.html:0,n);m!=null&&o.push(m)});var v=r.renderMode==="richText"?o.join(i.richText):Fm(n,o.join(""),a?t:i.html);if(a)return v;var c=mm(e.header,"ordinal",r.useUTC),h=CA(n,r.renderMode).nameStyle,d=TA(n);return r.renderMode==="richText"?IA(r,c,h)+i.richText+v:Fm(n,'<div style="'+h+";"+d+';">'+Gt(c)+"</div>"+v,t)}function HF(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=H(S)?S:[S],U(S,function(x,b){return mm(x,H(h)?h[b]:h,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||B.color.secondary,a),c=i?"":mm(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!i,g=!s&&i,y=CA(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":v)+(i?"":IA(r,c,m))+(o?"":XF(r,d,p,g,_)):Fm(n,(s?"":v)+(i?"":UF(c,!s,m))+(o?"":YF(d,p,g,_)),t)}}function DA(r,e,t,n,a,i){if(r){var o=AA(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function WF(r){return{html:zF[r],richText:GF[r]}}function Fm(r,e,t){var n='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=TA(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function UF(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+Gt(r)+"</span>"}function YF(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=H(r)?r:[r],'<span style="'+i+";"+n+'">'+U(r,function(o){return Gt(o)}).join("&nbsp;&nbsp;")+"</span>"}function IA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function XF(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(H(e)?e.join(" "):e,i)}function LA(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return co(n)}function PA(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Hm=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Kg()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=mC({color:t,type:e,renderMode:n,markerId:a});return $(i)?i:(W(a),this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?A(t,function(i){return G(n,i)}):G(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r})();function RA(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=H(s),u=LA(e,t),f,v,c,h;if(o>1||l&&!o){var d=ZF(s,e,t,i,u);f=d.inlineValues,v=d.inlineValueTypes,c=d.blocks,h=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=f=el(a,t,i[0]),v=p.type}else h=f=l?s[0]:s;var g=jg(e),y=g&&e.name||"",m=a.getName(t),_=n?y:m;return gt("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[gt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!yr(_),value:f,valueType:v,rawDataIndex:a.getRawIndex(t)})].concat(c||[])})}function ZF(r,e,t,n,a){var i=e.getData(),o=Pr(r,function(v,c,h){var d=i.getDimensionInfo(h);return v=v||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(v){f(el(i,t,v),v)}):A(r,f);function f(v,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push(gt("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:v,valueType:h.type})):(s.push(v),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ni=Se();function oh(r,e){return r.getName(e)||r.getId(e)}var sh="__universalTransitionEnabled",We=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Ju({count:qF,reset:KF}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=ni(this).sourceManager=new xA(this);i.prepareSource();var o=this.getInitialData(t,a);kA(o,this),this.dataTask.context.data=o,W(o,"getInitialData returned invalid data."),ni(this).dataBeforeProcessed=o,EA(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=Zu(this),i=a?yo(t):{},o=this.subType;we.hasClass(o)&&(o+="Series"),_e(t,n.getTheme().get(this.subType)),_e(t,this.getDefaultOption()),Gi(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Nn(t,i,a)},e.prototype.mergeOption=function(t,n){t=_e(this.option,t,!0),this.fillDataTextStyle(t.data);var a=Zu(this);a&&Nn(this.option,t,a);var i=ni(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);kA(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ni(this).dataBeforeProcessed=o,EA(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Zt(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&Gi(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=Wm(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return ni(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=Wm(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}ni(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return K(t)},e.prototype.getSourceManager=function(){return ni(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ni(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,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);for(var f=[],v=1/0,c=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,y=p.count();g<y;g++){var m=p.get(d,g),_=l.dataToCoord(m),S=u-_,x=Math.abs(S);x<=i&&((x<v||x===v&&S>=0&&c<0)&&(v=x,c=S,h=0),S===c&&(f[h++]=g))}return f.length=h,f},e.prototype.formatTooltip=function(t,n,a){return RA({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ie.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=Mm.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,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,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=oh(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=Ae(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[oh(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[sh])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ie(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var v=n[f],c=oh(t,v);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(v)}}else if(s==="single"||s===!0){var h=n[l-1],c=oh(t,h);o.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(i={},i[c]=t.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return we.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})(we);lt(We,ih),lt(We,Mm),ww(We,we);function EA(r){var e=r.name;jg(r)||(r.name=$F(r)||e)}function $F(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return A(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function qF(r){return r.model.getRawData().count()}function KF(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),jF}function jF(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function kA(r,e){A(ds(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,be(JF,e))})}function JF(r,e){var t=Wm(r);return t&&t.setOutputEnd((e||this).count()),e}function Wm(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Xe=(function(){function r(){this.group=new le,this.uid=fo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();ny(Xe),hc(Xe);function wo(){var r=Se();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var OA=Se(),QF=wo(),Fe=(function(){function r(){this.group=new le,this.uid=fo("viewChart"),this.renderTask=Ju({plan:e3,reset:t3}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){throw new Error("render method must been implemented")},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);if(!i){Le("Unknown dataType "+a.dataType);return}BA(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);if(!i){Le("Unknown dataType "+a.dataType);return}BA(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){ei(this.group,e)},r.markUpdateMethod=function(e,t){OA(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function NA(r,e,t){r&&Ja(r)&&(e==="emphasis"?ya:ma)(r,t)}function BA(r,e,t){var n=Fi(r,e),a=e&&e.highlightKey!=null?w5(e.highlightKey):null;n!=null?A(Ue(n),function(i){NA(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){NA(i,t,a)})}ny(Fe,["dispose"]),hc(Fe);function e3(r){return QF(r.model)}function t3(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&OA(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),r3[l]}var r3={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)}}},lh="\0__throttleOriginMethod",VA="\0__throttleRate",zA="\0__throttleType";function uh(r,e,t){var n,a=0,i=0,o=null,s,l,u,f;e=e||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||e,g=f||t;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(v,p):s>=0?v():o=setTimeout(v,-s),a=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function rl(r,e,t,n){var a=r[e];if(a){var i=a[lh]||a,o=a[zA],s=a[VA];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=uh(i,t,n==="debounce"),a[lh]=i,a[zA]=n,a[VA]=t}return a}}function ef(r,e){var t=r[e];t&&t[lh]&&(t.clear&&t.clear(),r[e]=t[lh])}var GA=Se(),FA={itemStyle:Ui(aC,!0),lineStyle:Ui(nC,!0)},n3={lineStyle:"stroke",itemStyle:"fill"};function HA(r,e){var t=r.visualStyleMapper||FA[e];return t||(console.warn("Unknown style type '"+e+"'."),FA.itemStyle)}function WA(r,e){var t=r.visualDrawType||n3[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var a3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=HA(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=WA(r,n),u=o[l],f=ne(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||v){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ne(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||ne(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(h,d){var p=r.getDataParams(d),g=G({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},tf=new De,i3={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=HA(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){tf.option=l[n];var u=a(tf),f=o.ensureUniqueItemVisual(s,"style");G(f,u),tf.option.decal&&(o.setItemVisual(s,"decal",tf.option.decal),tf.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},o3={performRawSeries:!0,overallReset:function(r){var e=K();r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();GA(t).scope=e.get(n)||e.set(n,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.getRawData(),a={},i=t.getData(),o=GA(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=WA(t,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],v=i.getItemVisual(f,"colorFromPalette");if(v){var c=i.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();c[l]=t.getColorFromPalette(h,o,d)}})}})}},fh=Math.PI;function s3(r,e){e=e||{},ue(e,{text:"loading",textColor:B.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:B.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new le,n=new Ce({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new Pe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Ce({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new Ou({shape:{startAngle:-fh/2,endAngle:-fh/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:fh*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:fh*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}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var UA=(function(){function r(e,t,n,a){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.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 n=this._pipelineMap.get(e.uid),a=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Sw(e,t,n);e.pipelineContext=n.context=a},r.prototype.restorePipelines=function(e,t){var n=this,a=n._pipelineMap=K();t.eachSeries(function(i){var o=e.painter.type==="canvas"&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;A(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";o='"reset" and "overallReset" must not be both specified.',W(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;A(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),v=f.seriesTaskMap,c=f.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,a.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(i=!0)}else v&&v.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.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,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=K(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(v){var c=v.uid,h=s.set(c,o&&o.get(c)||Ju({plan:c3,reset:h3,count:p3}));h.context={model:v,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(v,h)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||Ju({reset:l3});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=K(),u=e.seriesType,f=e.getTargetSeries,v=e.dirtyOnOverallProgress,c=!1,h="";h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',W(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):A(n.getSeries(),d);function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,Ju({reset:u3,onDirty:v3})));y.context={model:p,dirtyOnOverallProgress:v},y.agent=o,y.__block=v,i._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!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 ne(e)&&(e={overallReset:e,seriesType:g3(e)}),e.uid=fo("stageHandler"),t&&(e.visualType=t),e},r})();function l3(r){r.overallReset(r.ecModel,r.api,r.payload)}function u3(r){return r.dirtyOnOverallProgress&&f3}function f3(){this.agent.dirty(),this.getDownstream().dirty()}function v3(){this.agent&&this.agent.dirty()}function c3(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function h3(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ue(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?U(e,function(t,n){return YA(n)}):d3}var d3=YA(0);function YA(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function p3(r){return r.data.count()}function g3(r){vh=null;try{r(rf,XA)}catch{}return vh}var rf={},XA={},vh;ZA(rf,Lm),ZA(XA,tT),rf.eachSeriesByType=rf.eachRawSeriesByType=function(r){vh=r},rf.eachComponent=function(r){r.mainType==="series"&&r.subType&&(vh=r.subType)};function ZA(r,e){for(var t in e.prototype)r[t]=at}var oe=B.darkColor,$A=oe.background,nf=function(){return{axisLine:{lineStyle:{color:oe.axisLine}},splitLine:{lineStyle:{color:oe.axisSplitLine}},splitArea:{areaStyle:{color:[oe.backgroundTint,oe.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:oe.axisMinorSplitLine}},axisLabel:{color:oe.axisLabel},axisName:{}}},qA={label:{color:oe.secondary},itemStyle:{borderColor:oe.borderTint},dividerLineStyle:{color:oe.border}},KA={darkMode:!0,color:oe.theme,backgroundColor:$A,axisPointer:{lineStyle:{color:oe.border},crossStyle:{color:oe.borderShade},label:{color:oe.tertiary}},legend:{textStyle:{color:oe.secondary},pageTextStyle:{color:oe.tertiary}},textStyle:{color:oe.secondary},title:{textStyle:{color:oe.primary},subtextStyle:{color:oe.quaternary}},toolbox:{iconStyle:{borderColor:oe.accent50},feature:{dataView:{backgroundColor:$A,textColor:oe.primary,textareaColor:oe.background,textareaBorderColor:oe.border,buttonColor:oe.accent50,buttonTextColor:oe.neutral00}}},tooltip:{backgroundColor:oe.neutral20,defaultBorderColor:oe.border,textStyle:{color:oe.tertiary}},dataZoom:{borderColor:oe.accent10,textStyle:{color:oe.tertiary},brushStyle:{color:oe.backgroundTint},handleStyle:{color:oe.neutral00,borderColor:oe.accent20},moveHandleStyle:{color:oe.accent40},emphasis:{handleStyle:{borderColor:oe.accent50}},dataBackground:{lineStyle:{color:oe.accent30},areaStyle:{color:oe.accent20}},selectedDataBackground:{lineStyle:{color:oe.accent50},areaStyle:{color:oe.accent30}}},visualMap:{textStyle:{color:oe.secondary},handleStyle:{borderColor:oe.neutral30}},timeline:{lineStyle:{color:oe.accent10},label:{color:oe.tertiary},controlStyle:{color:oe.accent30,borderColor:oe.accent30}},calendar:{itemStyle:{color:oe.neutral00,borderColor:oe.neutral20},dayLabel:{color:oe.tertiary},monthLabel:{color:oe.secondary},yearLabel:{color:oe.secondary}},matrix:{x:qA,y:qA,backgroundColor:{borderColor:oe.axisLine},body:{itemStyle:{borderColor:oe.borderTint}}},timeAxis:nf(),logAxis:nf(),valueAxis:nf(),categoryAxis:nf(),line:{symbol:"circle"},graph:{color:oe.theme},gauge:{title:{color:oe.secondary},axisLine:{lineStyle:{color:[[1,oe.neutral05]]}},axisLabel:{color:oe.axisLabel},detail:{color:oe.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:oe.background}},radar:(function(){var r=nf();return r.axisName={color:oe.axisLabel},r.axisLine.lineStyle.color=oe.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:oe.neutral20,textStyle:{color:oe.secondary}},emphasis:{itemStyle:{color:oe.neutral30}}}},sunburst:{itemStyle:{borderColor:oe.background}},map:{itemStyle:{borderColor:oe.border,areaColor:oe.neutral10},label:{color:oe.tertiary},emphasis:{label:{color:oe.primary},itemStyle:{areaColor:oe.highlight}},select:{label:{color:oe.primary},itemStyle:{areaColor:oe.highlight}}},geo:{itemStyle:{borderColor:oe.border,areaColor:oe.neutral10},emphasis:{label:{color:oe.primary},itemStyle:{areaColor:oe.highlight}},select:{label:{color:oe.primary},itemStyle:{color:oe.highlight}}}};KA.categoryAxis.splitLine.show=!1;var y3=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if($(e)){var i=Mn(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var f=!1,v=0;v<o.length;v++){var c=o[v],h=u.lastIndexOf(c);if(h>0&&h===u.length-c.length){var d=u.slice(0,h);d!=="data"&&(t.mainType=d,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.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,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function f(v,c,h,d){return v[h]==null||c[d||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),Um=["symbol","symbolSize","symbolRotate","symbolOffset"],jA=Um.concat(["symbolKeepAspect"]),m3={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 n={},a={},i=!1,o=0;o<Um.length;o++){var s=Um[o],l=r.get(s);ne(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(G({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=Ae(a);function f(v,c){for(var h=r.getRawValue(c),d=r.getDataParams(c),p=0;p<u.length;p++){var g=u[p];v.setItemVisual(c,g,a[g](h,d))}}return{dataEach:i?f:null}}},_3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<jA.length;s++){var l=jA[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function Ym(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:console.warn("Unknown visual type "+t)}}function af(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:console.warn("Unknown visual type "+e)}}function JA(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break;default:console.warn("Unknown visual type "+t)}}function QA(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=G({},a),ut(a.type,n[1]),o.dispatchAction(G(a,{type:n[1],seriesIndex:t(i,a)}))})})}function nl(r,e,t,n,a){var i=r+e;t.isSilent(i)||(an("event "+i+" is deprecated."),n.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 v=o.getData(),c=Fi(v,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:H(c)?v.getName(c[0]):v.getName(c),selected:$(l)?l:G({},l)})}}))}function S3(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(nl("map","selectchanged",e,a,n),nl("pie","selectchanged",e,a,n)):n.fromAction==="select"?(nl("map","selected",e,a,n),nl("pie","selected",e,a,n)):n.fromAction==="unselect"&&(nl("map","unselected",e,a,n),nl("pie","unselected",e,a,n))})}function To(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var Yr=new Rr,ch={};function x3(r,e){ch[r]&&Le("Already has an implementation of "+r+"."),ch[r]=e}function eM(r){return ch[r]||Le("Implementation of "+r+" doesn't exists."),ch[r]}var tM={};function rM(r,e){tM[r]=e}function b3(r){return tM[r]}var hh=Se();function w3(r){hh(r).prepare={}}function T3(r){hh(r).fullUpdate={}}function nM(r){return hh(r).prepare}function al(r){return hh(r).fullUpdate}var C3=Math.round(Math.random()*9),A3=typeof Object.defineProperty=="function",M3=(function(){function r(){this._id="__ec_inner_"+C3++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return A3?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[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})(),D3=Me.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),I3=Me.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),L3=Me.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,v=Math.sin(u),c=Math.cos(u),h=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-v*h,l+s+c*h,t,n-d,t,n),r.bezierCurveTo(t,n-d,t-f+v*h,l+s+c*h,t-f,l+s),r.closePath()}}),P3=Me.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),R3={line:ft,rect:Ce,roundRect:Ce,square:Ce,circle:kn,diamond:I3,pin:L3,arrow:P3,triangle:D3},E3={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},dh={};A(R3,function(r,e){dh[e]=new r});var k3=Me.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Jv(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=dh[n];a||(n="rect",a=dh[n]),E3[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function O3(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||B.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function ht(r,e,t,n,a,i,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=Uy(r.slice(8),new se(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=Us(r.slice(7),{},new se(e,t,n,a),o?"center":"cover"):l=new k3({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=O3,i&&l.setColor(i),l}function il(r){return H(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Co(r,e){if(r!=null)return H(r)||(r=[r,r]),[q(r[0],e[0])||0,q(Q(r[1],r[0]),e[1])||0]}function Ao(r){return isFinite(r)}function N3(r,e,t){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,a=a*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),n=Ao(n)?n:0,a=Ao(a)?a:1,i=Ao(i)?i:0,o=Ao(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function B3(r,e,t){var n=t.width,a=t.height,i=Math.min(n,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*n+t.x,s=s*a+t.y,l=l*i),o=Ao(o)?o:.5,s=Ao(s)?s:.5,l=l>=0&&Ao(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Xm(r,e,t){for(var n=e.type==="radial"?B3(r,e,t):N3(r,e,t),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function V3(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 ph(r){return parseInt(r,10)}function ol(r,e,t){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||ph(s[n])||ph(r.style[n]))-(ph(s[i])||0)-(ph(s[o])||0)||0}function z3(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Re(r)?[r]:H(r)?r:null}function Zm(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&z3(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=U(t,function(i){return i/a}),n/=a)}return[t,n]}var G3=new Pn(!0);function gh(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function aM(r){return typeof r=="string"&&r!=="none"}function yh(r){var e=r.fill;return e!=null&&e!=="none"}function iM(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 oM(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 $m(r,e,t){var n=iy(e.image,e.__image,t);if(dc(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*ru),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function F3(r,e,t,n,a){var i,o=gh(t),s=yh(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var v=e.path||G3,c=e.__dirty;if(!n){var h=t.fill,d=t.stroke,p=s&&!!h.colorStops,g=o&&!!d.colorStops,y=s&&!!h.image,m=o&&!!d.image,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(_=c?Xm(r,h,w):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(S=c?Xm(r,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),y&&(x=c||!e.__canvasFillPattern?$m(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=x),m&&(b=c||!e.__canvasStrokePattern?$m(r,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),p?r.fillStyle=_:y&&(x?r.fillStyle=x:s=!1),g?r.strokeStyle=S:m&&(b?r.strokeStyle=b:o=!1)}var C=e.getGlobalScale();v.setScale(C[0],C[1],e.segmentIgnoreThreshold);var T,M;r.setLineDash&&t.lineDash&&(i=Zm(e),T=i[0],M=i[1]);var D=!0;(f||c&ms)&&(v.setDPR(r.dpr),u?v.setContext(null):(v.setContext(r),D=!1),v.reset(),e.buildPath(v,e.shape,n),v.toStatic(),e.pathUpdated()),D&&v.rebuildPath(r,u?l:1),T&&(r.setLineDash(T),r.lineDashOffset=M),n?(a.batchFill=s,a.batchStroke=o):t.strokeFirst?(o&&oM(r,t),s&&iM(r,t)):(s&&iM(r,t),o&&oM(r,t)),T&&r.setLineDash([])}function H3(r,e,t){var n=e.__image=iy(t.image,e.__image,e,e.onload);if(!(!n||!dc(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(n,u,f,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,v=o-u,c=s-f;r.drawImage(n,u,f,v,c,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function W3(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||ea,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=Zm(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(gh(t)&&r.strokeText(a,t.x,t.y),yh(t)&&r.fillText(a,t.x,t.y)):(yh(t)&&r.fillText(a,t.x,t.y),gh(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var sM=["shadowBlur","shadowOffsetX","shadowOffsetY"],lM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function uM(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){ir(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Yi.opacity:o}(n||e.blend!==t.blend)&&(i||(ir(r,a),i=!0),r.globalCompositeOperation=e.blend||Yi.blend);for(var s=0;s<sM.length;s++){var l=sM[s];(n||e[l]!==t[l])&&(i||(ir(r,a),i=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(i||(ir(r,a),i=!0),r.shadowColor=e.shadowColor||Yi.shadowColor),i}function fM(r,e,t,n,a){var i=e.style,o=n?null:t&&t.style||{};if(i===o)return!1;var s=uM(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(ir(r,a),s=!0),aM(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(ir(r,a),s=!0),aM(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(ir(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(ir(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<lM.length;f++){var v=lM[f],c=v[0];(n||i[c]!==o[c])&&(s||(ir(r,a),s=!0),r[c]=i[c]||v[1])}return s}function U3(r,e,t,n,a){return uM(r,e.style,t&&t.style,n,a)}function vM(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function Y3(r,e,t){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),vM(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=n}function X3(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 cM=1,hM=2,dM=3,pM=4;function Z3(r){var e=yh(r),t=gh(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 ir(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function qm(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Mo(r,e,t),sl(r,t)}function Mo(r,e,t){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~fr,e.__isRendered=!1;return}var a=e.__clipPaths,i=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!i||V3(a,i))&&(i&&(ir(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&(ir(r,t),r.save(),Y3(a,r,t),s=!0,t.prevElClipPaths=a)),t.allClipped){e.__dirty&=~fr,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof Me&&e.autoBatch&&Z3(o);s||X3(n,u.transform)?(ir(r,t),vM(r,e)):f||ir(r,t),e instanceof Me?(t.lastDrawType!==cM&&(l=!0,t.lastDrawType=cM),fM(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),F3(r,e,o,f,t)):e instanceof Rs?(t.lastDrawType!==dM&&(l=!0,t.lastDrawType=dM),fM(r,e,u,l,t),W3(r,e,o)):e instanceof Dt?(t.lastDrawType!==hM&&(l=!0,t.lastDrawType=hM),U3(r,e,u,l,t),H3(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==pM&&(l=!0,t.lastDrawType=pM),$3(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&ir(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function sl(r,e){ir(r,e),e.prevElClipPaths&&r.restore()}function $3(r,e,t){var n=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Mo(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}sl(r,i);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Mo(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}sl(r,i),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Km=new M3,gM=new Ss(100),yM=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ll(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&Km.delete(r);var i=Km.get(r);if(i)return i;var o=ue(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,Km.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],v=!0,c=0;c<yM.length;++c){var h=o[yM[c]];if(h!=null&&!H(h)&&!$(h)&&!Re(h)&&typeof h!="boolean"){v=!1;break}f.push(h)}var d;if(v){d=f.join(",")+(a?"-svg":"");var p=gM.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=_M(o.dashArrayX),y=q3(o.dashArrayY),m=mM(o.symbol),_=K3(g),S=SM(y),x=!a&&Tt.createCanvas(),b=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=T(),C;x&&(x.width=w.width*t,x.height=w.height*t,C=x.getContext("2d")),M(),v&&gM.put(d,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function T(){for(var D=1,L=0,I=_.length;L<I;++L)D=iw(D,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=iw(P,m[L].length);D*=P;var E=S*_.length*m.length,R=function(O){console.warn("Calculated decal size is greater than "+O+" due to decal option settings so "+O+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+O+" to be larger to avoid incontinuity.")};return D>o.maxTileWidth&&R("maxTileWidth"),E>o.maxTileHeight&&R("maxTileHeight"),{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function M(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var D=0,L=0;L<y.length;++L)D+=y[L];if(D<=0)return;for(var I=-S,P=0,E=0,R=0;I<w.height;){if(P%2===0){for(var O=E/2%m.length,k=0,V=0,z=0;k<w.width*2;){for(var F=0,L=0;L<g[R].length;++L)F+=g[R][L];if(F<=0)break;if(V%2===0){var Y=(1-o.symbolSize)*.5,Z=k+g[R][V]*Y,X=I+y[P]*Y,ee=g[R][V]*o.symbolSize,ye=y[P]*o.symbolSize,Be=z/2%m[O].length;ce(Z,X,ee,ye,m[O][Be])}k+=g[R][V],++z,++V,V===g[R].length&&(V=0)}++R,R===g.length&&(R=0)}I+=y[P],++E,++P,P===y.length&&(P=0)}function ce(te,me,re,he,Ze){var ke=a?1:t,He=ht(Ze,te*ke,me*ke,re*ke,he*ke,o.color,o.symbolKeepAspect);if(a){var $e=n.painter.renderOneToVNode(He);$e&&b.children.push($e)}else qm(C,He)}}}}function mM(r){if(!r||r.length===0)return[["rect"]];if($(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!$(r[t])){e=!1;break}if(e)return mM([r]);for(var n=[],t=0;t<r.length;++t)$(r[t])?n.push([r[t]]):n.push(r[t]);return n}function _M(r){if(!r||r.length===0)return[[0,0]];if(Re(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!Re(r[n])){t=!1;break}if(t)return _M([r]);for(var a=[],n=0;n<r.length;++n)if(Re(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=U(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function q3(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Re(r)){var e=Math.ceil(r);return[e,e]}var t=U(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function K3(r){return U(r,function(e){return SM(e)})}function SM(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var j3=Au(J3);function J3(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=ll(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=ll(a,e)}}})}var Q3="6.1.0",eH={zrender:"6.1.0"},tH=1,rH=800,nH=900,aH=920,iH=1e3,oH=2e3,xM=5e3,bM=1e3,sH=1100,jm=2e3,wM=3e3,lH=4e3,mh=4500,uH=4600,fH=5e3,vH=6e3,TM=7e3,CM={PROCESSOR:{SERIES_FILTER:rH,AXIS_STATISTICS:aH,FILTER:iH,STATISTIC:xM,STATISTICS:xM},VISUAL:{LAYOUT:bM,PROGRESSIVE_LAYOUT:sH,GLOBAL:jm,CHART:wM,POST_CHART_LAYOUT:uH,COMPONENT:lH,BRUSH:fH,CHART_ITEM:mh,ARIA:vH,DECAL:TM}},wt="__flagInMainProcess",_h="__mainProcessVersion",Bt="__pendingUpdate",Jm="__needsUpdateStatus",AM=/^[a-zA-Z0-9_]+$/,Qm="__connectUpdateStatus",MM=0,cH=1,hH=2;function DM(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){dr(this.id);return}return LM(this,r,e)}}function IM(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return LM(this,r,e)}}function LM(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Rr.prototype[e].apply(r,t)}var PM=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Rr),RM=PM.prototype;RM.on=IM("on"),RM.off=IM("off");var Do,e0,Sh,ba,xh,t0,r0,ul,fl,EM,kM,n0,OM,bh,NM,BM,Xr,VM,vl,wh=(function(r){N(e,r);function e(t,n,a){var i=r.call(this,new y3)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i.__v_skip=!0,i._dom=t;var o="canvas",s="auto",l=!1;i[_h]=1;var u=Ie.hasGlobalWindow?window:global;u&&(o=Q(u.__ECHARTS__DEFAULT__RENDERER__,o),s=Q(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=Q(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l)),a.ssr&&Jb(function(h){var d=ve(h),p=d.dataIndex;if(p!=null){var g=K();return g.set("series_index",d.seriesIndex),g.set("data_index",p),d.ssrType&&g.set("ssr_type",d.ssrType),g}});var f=i._zr=Ug(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Q(a.useDirtyRect,l),useCoarsePointer:Q(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=uh(j(f.flush,f),17),i._updateTheme(n),i._locale=gG(a.locale||iC),i._coordSysMgr=new ho;var v=i._api=NM(i);function c(h,d){return h.__prio-d.__prio}return Pv(Ah,c),Pv(o0,c),i._scheduler=new UA(i,v,o0,Ah),i._messageCenter=new PM,i._initEvents(),i.resize=j(i.resize,i),f.animation.on("frame",i._onframe,i),EM(f,i),kM(f,i),eu(i),i}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,n=this._model,a=this._api;if(VM(this),this[Bt]){var i=this[Bt].silent;this[wt]=!0,vl(this);try{Do(this),ba.update.call(this,null,this[Bt].updateParams)}catch(l){throw this[wt]=!1,this[Bt]=null,l}this._zr.flush(),this[wt]=!1,this[Bt]=null,ul.call(this,i),fl.call(this,i)}else if(t.unfinished){var o=tH;do{t.unfinished=!1;var s=Tt.getTime();t.performSeriesTasks(n),t.performDataProcessorTasks(n),t0(this,n),t.performVisualTasks(n),bh(this,this._model,a,"remain",{}),o-=Tt.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,n,a){if(this[wt]){Le("`setOption` should not be called during main process.");return}if(this._disposed){dr(this.id);return}var i,o,s;if(ie(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[wt]=!0,vl(this),!this._model||n){var l=new JG(this._api),u=this._theme,f=this._model=new Lm;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},s0);var v={seriesTransition:s,optionChanged:!0};if(a)this[Bt]={silent:i,updateParams:v},this[wt]=!1,this.getZr().wakeUp();else{try{Do(this),ba.update.call(this,null,v)}catch(c){throw this[Bt]=null,this[wt]=!1,c}this._ssr||this._zr.flush(),this[Bt]=null,this[wt]=!1,ul.call(this,i),fl.call(this,i)}},e.prototype.setTheme=function(t,n){if(this[wt]){Le("`setTheme` should not be called during main process.");return}if(this._disposed){dr(this.id);return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[Bt]&&(i==null&&(i=this[Bt].silent),o=this[Bt].updateParams,this[Bt]=null),this[wt]=!0,vl(this);try{this._updateTheme(t),a.setTheme(this._theme),Do(this),ba.update.call(this,{type:"setTheme"},o)}catch(s){throw this[wt]=!1,s}this[wt]=!1,ul.call(this,i),fl.call(this,i)}},e.prototype._updateTheme=function(t){$(t)&&(t=zM[t]),t&&(t=ae(t),t&&KC(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||Ie.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return ut("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;if(n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;if(n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return A(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){dr(this.id);return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;A(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.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 A(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){dr(this.id);return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Mh[a]){var l=s,u=s,f=-s,v=-s,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();A(Io,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ae(t)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),f=o(b.right,f),v=o(b.bottom,v),c.push({dom:x,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,v*=h;var d=f-l,p=v-u,g=Tt.createCanvas(),y=Ug(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return A(c,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new Ce({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),A(c,function(_){var S=new Dt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return xh(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return xh(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return xh(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){dr(this.id);return}var a=this._model,i,o=Is(a,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint?i=i||v.containPoint(n,u):et(l+": "+(v?"The found component do not support containPoint.":"No view mapping to the found component."))}else et(l+": containPoint is not supported")},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=Is(a,t,{defaultMainType:"series"}),o=i.seriesModel;o||et("There is no specified series model");var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Ym(s,l,n):af(s,n)},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;A(dH,function(a){var i=function(o){var s=t.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&To(l,function(p){var g=ve(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=G({},g.eventData),!0},!0),u){var v=u.componentType,c=u.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",c=u.seriesIndex);var h=v&&c!=null&&s.getComponent(v,c),d=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];!f&&!(h&&d)&&et("model or view can not be found by params"),u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},t.trigger(a,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;A(i0,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),S3(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){dr(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){dr(this.id);return}this._disposed=!0;var t=this.getDom();t&&gw(this.getDom(),u0,"");var n=this,a=n._api,i=n._model;A(n._componentsViews,function(o){o.dispose(i,a)}),A(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Io[n.id]},e.prototype.resize=function(t){if(this[wt]){Le("`resize` should not be called during main process.");return}if(this._disposed){dr(this.id);return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[Bt]&&(i==null&&(i=this[Bt].silent),a=!0,this[Bt]=null),this[wt]=!0,vl(this);try{a&&Do(this),ba.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)})}catch(o){throw this[wt]=!1,o}this[wt]=!1,ul.call(this,i),fl.call(this,i)}},e.prototype.showLoading=function(t,n){if(this._disposed){dr(this.id);return}if(ie(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!l0[t]){et("Loading effects "+t+" not exists.");return}var a=l0[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},e.prototype.hideLoading=function(){if(this._disposed){dr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=G({},t);return n.type=Ch[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){dr(this.id);return}if(ie(n)||(n={silent:!!n}),!!Th[t.type]&&this._model){if(this[wt]){this._pendingActions.push(t);return}var a=n.silent;r0.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&Ie.browser.weChat&&this._throttledZrFlush(),ul.call(this,a),fl.call(this,a)}},e.prototype.updateLabelLayout=function(){Yr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){dr(this.id);return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);W(t.data&&i),i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Do=function(v){w3(v._model);var c=v._scheduler;c.restorePipelines(v._zr,v._model),c.prepareStageTasks(),e0(v,!0),e0(v,!1),c.plan()},e0=function(v,c){for(var h=v._model,d=v._scheduler,p=c?v._componentsViews:v._chartsViews,g=c?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,_=0;_<p.length;_++)p[_].__alive=!1;c?h.eachComponent(function(b,w){b!=="series"&&S(w)}):h.eachSeries(S);function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,T=!w&&g[C];if(!T){var M=Mn(b.type),D=c?Xe.getClass(M.main,M.sub):Fe.getClass(M.sub);W(D,M.sub+" does not exist."),T=new D,T.init(h,m),g[C]=T,p.push(T),y.add(T.group)}b.__viewId=T.__id=C,T.__alive=!0,T.__model=b,T.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!c&&d.prepareView(T,b,h,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!c&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,m),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Sh=function(v,c,h,d,p){var g=v._model;if(g.setUpdatePayload(h),!d){A([].concat(v._componentsViews).concat(v._chartsViews),S);return}var y=Qg(h,d,p),m=h.excludeSeriesId,_;m!=null&&(_=K(),A(Ue(m),function(x){var b=mt(x,null);b!=null&&_.set(b,!0)})),g&&g.eachComponent(y,function(x){var b=_&&_.get(x.id)!=null;if(!b)if(_T(h))if(x instanceof We)h.type===Qi&&!h.notBlur&&!x.get(["emphasis","disabled"])&&p5(x,h,v._api);else{var w=Ey(x.mainType,x.componentIndex,h.name,v._api),C=w.focusSelf,T=w.dispatchers;h.type===Qi&&C&&!h.notBlur&&Ry(x.mainType,x.componentIndex,v._api),T&&A(T,function(M){h.type===Qi?ya(M):ma(M)})}else Oy(h)&&x instanceof We&&(m5(x,h,v._api),yT(x),Xr(v))},v),g&&g.eachComponent(y,function(x){var b=_&&_.get(x.id)!=null;b||S(v[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},v);function S(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,v._api,h)}},ba={prepareAndUpdate:function(v){Do(this),ba.update.call(this,v,v&&{optionChanged:v.newOption!=null})},update:function(v,c){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){T3(h),h.setUpdatePayload(v),y.restoreData(h,v),y.performSeriesTasks(h),g.create(h,d),Yr.trigger("coordsys:aftercreate",h,d),y.performDataProcessorTasks(h,v),t0(this,h),g.update(h,d),n(h),y.performVisualTasks(h,v);var m=h.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),n0(this,h,d,v,c),Yr.trigger("afterupdate",h,d)}},updateTransform:function(v){var c=this,h=c._model,d=c._api;if(h){h.setUpdatePayload(v);var p=[];h.eachComponent(function(y,m){if(y!==En){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,v);S&&S.update&&p.push(_)}else p.push(_)}});var g=K();h.eachSeries(function(y){var m=c._chartsMap[y.__viewId],_=y.pipelineContext;if(m.updateTransform&&!_.progressiveRender){var S=m.updateTransform(y,h,d,v);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),c._scheduler.performVisualTasks(h,v,{setDirty:!0,dirtyMap:g}),bh(c,h,d,v,{},g),Yr.trigger("afterupdate",h,d)}},updateView:function(v){var c=this._model;c&&(c.setUpdatePayload(v),Fe.markUpdateMethod(v,"updateView"),n(c),this._scheduler.performVisualTasks(c,v,{setDirty:!0}),n0(this,c,this._api,v,{}),Yr.trigger("afterupdate",c,this._api))},updateVisual:function(v){var c=this,h=this._model;h&&(h.setUpdatePayload(v),h.eachSeries(function(d){d.getData().clearAllVisual()}),Fe.markUpdateMethod(v,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,v,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,c._api,v)}}),h.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,h,c._api,v)}),Yr.trigger("afterupdate",h,this._api))},updateLayout:function(v){ba.update.call(this,v)}};function t(v,c,h,d,p){if(v._disposed){dr(v.id);return}for(var g=v._model,y=v._coordSysMgr.getCoordinateSystems(),m,_=Is(g,h),S=0;S<y.length;S++){var x=y[S];if(x[c]&&(m=x[c](g,_,d,p))!=null)return m}et("No coordinate system that supports "+c+" found by the given finder.")}xh=t,t0=function(v,c){var h=v._chartsMap,d=v._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},r0=function(v,c){var h=this,d=this.getModel(),p=v.type,g=v.escapeConnect,y=Th[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&Mn(m[0]);this[wt]=!0,vl(this);var x=[v],b=!1;v.batch&&(b=!0,x=U(v.batch,function(R){return R=ue(G({},R),v),R.batch=null,R}));var w=[],C,T=[],M=y.nonRefinedEventType,D=Oy(v),L=_T(v);if(L&&gT(this._api),A(x,function(R){var O=y.action(R,d,h._api);if(y.refineEvent?T.push(O):C=O,C=C||G({},R),C.type=M,w.push(C),L){var k=Jg(v),V=k.queryOptionMap,z=k.mainTypeSpecified,F=z?V.keys()[0]:"series";Sh(h,_,R,F),Xr(h)}else D?(Sh(h,_,R,"series"),Xr(h)):S&&Sh(h,_,R,S.main,S.sub)}),_!=="none"&&!L&&!D&&!S)try{this[Bt]?(Do(this),ba.update.call(this,v),this[Bt]=null):ba[_].call(this,v)}catch(R){throw this[wt]=!1,R}if(b?C={type:M,escapeConnect:g,batch:w}:C=w[0],this[wt]=!1,!c){var I=void 0;if(y.refineEvent){var P=y.refineEvent(T,v,d,this._api).eventContent;W(ie(P)),I=ue({type:y.refinedEventType},P),I.fromAction=v.type,I.fromActionPayload=v,I.escapeConnect=!0}var E=this._messageCenter;E.trigger(C.type,C),I&&E.trigger(I.type,I)}},ul=function(v){for(var c=this._pendingActions;c.length;){var h=c.shift();r0.call(this,h,v)}},fl=function(v){!v&&this.trigger("updated")},EM=function(v,c){v.on("rendered",function(h){c.trigger("rendered",h),v.animation.isFinished()&&!c[Bt]&&!c._scheduler.unfinished&&!c._pendingActions.length?c.trigger("finished"):v.refresh()})},kM=function(v,c){v.on("mouseover",function(h){var d=h.target,p=To(d,Ja);p&&(g5(p,h,c._api),Xr(c))}).on("mouseout",function(h){var d=h.target,p=To(d,Ja);p&&(y5(p,h,c._api),Xr(c))}).on("click",function(h){var d=h.target,p=To(d,function(m){return ve(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ve(p);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(v){v.clearColorPalette(),v.eachSeries(function(c){c.clearColorPalette()})}function a(v){var c=[],h=[],d=!1;if(v.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?h:c).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:b})}),d){var p=c.concat(h),g,y;Pv(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(p,function(m){var _=v.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}n0=function(v,c,h,d,p){a(c),OM(v,c,h,d,p),A(v._chartsViews,function(g){g.__alive=!1}),bh(v,c,h,d,p),A(v._chartsViews,function(g){g.__alive||g.remove(c,h)})},OM=function(v,c,h,d,p,g){A(g||v._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,h,d),l(m,y),f(m,y)})},bh=function(v,c,h,d,p,g){var y=v._scheduler;p=G(p||{},{updatedSeries:c.getSeries()}),Yr.trigger("series:beforeupdate",c,h,p);var m=!1;c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),yT(_)}),y.unfinished=m||y.unfinished,Yr.trigger("series:layoutlabels",c,h,p),Yr.trigger("series:transition",c,h,p),c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(v,c),Yr.trigger("series:afterupdate",c,h,p)},Xr=function(v){v[Jm]=!0,v.getZr().wakeUp()},vl=function(v){v[_h]=(v[_h]+1)%1e6},VM=function(v){v[Jm]&&(v.getZr().storage.traverse(function(c){Hs(c)||i(c)}),v[Jm]=!1)};function i(v){for(var c=[],h=v.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}v.selected&&v.states.select&&c.push("select"),v.hoverState===wc&&v.states.emphasis?c.push("emphasis"):v.hoverState===Iu&&v.states.blur&&c.push("blur"),v.useStates(c)}function o(v,c){var h=v._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(y){y.isGroup||p++});var g=p>Q(c.get("hoverLayerThreshold"),RC.hoverLayerThreshold)&&!Ie.node&&!Ie.worker;(v._usingTHL||g)&&(c.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=v._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Ws&&(S.hoverLayer=g?GT:zT)})}}),v._usingTHL=g)}}function s(v,c){var h=v.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(v,c){if(!v.preventAutoZ){var h=lo(v);c.eachRendered(function(d){return zc(d,h.z,h.zlevel),!0})}}function u(v,c){c.eachRendered(function(h){if(!Hs(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(v,c){var h=v.getModel("stateAnimation"),d=v.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Hs(y))return;if(y instanceof Me&&T5(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}NM=function(v){return new((function(c){N(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return v._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){ya(d,p),Xr(v)},h.prototype.leaveEmphasis=function(d,p){ma(d,p),Xr(v)},h.prototype.enterBlur=function(d){cT(d),Xr(v)},h.prototype.leaveBlur=function(d){Ly(d),Xr(v)},h.prototype.enterSelect=function(d){hT(d),Xr(v)},h.prototype.leaveSelect=function(d){dT(d),Xr(v)},h.prototype.getModel=function(){return v.getModel()},h.prototype.getViewOfComponentModel=function(d){return v.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return v.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return v[_h]},h.prototype.usingTHL=function(){return v._usingTHL},h})(tT))(v)},BM=function(v){function c(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[Qm]=d}}A(Ch,function(h,d){v._messageCenter.on(d,function(p){if(Mh[v.group]&&v[Qm]!==MM){if(p&&p.escapeConnect)return;var g=v.makeActionFromEvent(p),y=[];A(Io,function(m){m!==v&&m.group===v.group&&y.push(m)}),c(y,MM),A(y,function(m){m[Qm]!==cH&&m.dispatchAction(g)}),c(y,hH)}})})}})(),e})(Rr),a0=wh.prototype;a0.on=DM("on"),a0.off=DM("off"),a0.one=function(r,e,t){var n=this;an("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var dH=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function dr(r){et("Instance "+r+" has been disposed")}var Th={},Ch={},i0={},o0=[],s0=[],Ah=[],zM={},l0={},Io={},Mh={},pH=+new Date-0,gH=+new Date-0,u0="_echarts_instance_";function yH(r,e,t){var n=!(t&&t.ssr);if(n){if(!r)throw new Error("Initialize failed: invalid dom.");var a=f0(r);if(a)return et("There is a chart instance already initialized on the dom."),a;Oa(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!t||t.width==null)||!r.clientHeight&&(!t||t.height==null))&&et("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new wh(r,e,t);return i.id="ec_"+pH++,Io[i.id]=i,n&&gw(r,u0,i.id),BM(i),Yr.trigger("afterinit",i),i}function mH(r){if(H(r)){var e=r;r=null,A(e,function(t){t.group!=null&&(r=t.group)}),r=r||"g_"+gH++,A(e,function(t){t.group=r})}return Mh[r]=!0,r}function GM(r){Mh[r]=!1}var _H=GM;function SH(r){$(r)?r=Io[r]:r instanceof wh||(r=f0(r)),r instanceof wh&&!r.isDisposed()&&r.dispose()}function f0(r){return Io[iz(r,u0)]}function xH(r){return Io[r]}function v0(r,e){zM[r]=e}function c0(r){ge(s0,r)<0&&s0.push(r)}function h0(r,e){d0(o0,r,e,oH)}function FM(r){Dh("afterinit",r)}function HM(r){Dh("afterupdate",r)}function Dh(r,e){Yr.on(r,e)}function fn(r,e,t){var n,a,i,o,s;ne(e)&&(t=e,e=""),ie(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(n=r,a=e);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;Th[n]||(W(AM.test(n)&&AM.test(a)),i&&W(a!==n),Th[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:t,refineEvent:i},i0[a]=1,i&&s&&(i0[u]=1),Ch[u]&&Le(u+' must not be shared; use "refineEvent" if you intend to share an event name.'),Ch[u]=n)}function WM(r,e){ho.register(r,e)}function bH(r){var e=ho.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function wH(r,e){rM(r,e)}function UM(r,e){d0(Ah,r,e,bM,"layout",!0)}function ai(r,e){d0(Ah,r,e,wM,"visual",!0)}var YM=[];function d0(r,e,t,n,a,i){if((ne(e)||ie(e))&&(t=e,e=n),isNaN(e)||e==null)throw new Error("Illegal priority");if(A(r,function(s){W(s.__raw!==t)}),!(ge(YM,t)>=0)){YM.push(t);var o=UA.wrapStageHandler(t,a);o.__prio=e,o.__raw=t,r.push(o),i&&W(!o.dirtyOnOverallProgress,"dirtyOnOverallProgress is not allowed in "+a+" stage; otherwise progressive rendering is disabled on all series.")}}function p0(r,e){l0[r]=e}function TH(r){an("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),Nx({createCanvas:r})}function XM(r,e,t){var n=eM("registerMap");n&&n(r,e,t)}function CH(r){var e=eM("getMap");return e&&e(r)}var ZM=RF;ai(jm,a3),ai(mh,i3),ai(mh,o3),ai(jm,m3),ai(mh,_3),ai(TM,j3),c0(KC),h0(nH,fF),p0("default",s3),fn({type:Qi,event:Qi,update:Qi},at),fn({type:Tc,event:Tc,update:Tc},at),fn({type:Cc,event:My,update:Cc,action:at,refineEvent:g0,publishNonRefinedEvent:!0}),fn({type:Ay,event:My,update:Ay,action:at,refineEvent:g0,publishNonRefinedEvent:!0}),fn({type:Ac,event:My,update:Ac,action:at,refineEvent:g0,publishNonRefinedEvent:!0});function g0(r,e,t,n){return{eventContent:{selected:_5(t),isFromClick:e.isFromClick||!1}}}v0("default",{}),v0("dark",KA);var AH={},$M=[],MH={registerPreprocessor:c0,registerProcessor:h0,registerPostInit:FM,registerPostUpdate:HM,registerUpdateLifecycle:Dh,registerAction:fn,registerCoordinateSystem:WM,registerLayout:UM,registerVisual:ai,registerTransform:ZM,registerLoading:p0,registerMap:XM,registerImpl:x3,PRIORITY:CM,ComponentModel:we,ComponentView:Xe,SeriesModel:We,ChartView:Fe,registerComponentModel:function(r){we.registerClass(r)},registerComponentView:function(r){Xe.registerClass(r)},registerSeriesModel:function(r){We.registerClass(r)},registerChartView:function(r){Fe.registerClass(r)},registerCustomSeries:function(r,e){rM(r,e)},registerSubTypeDefaulter:function(r,e){we.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){Kb(r,e)}};function xe(r){if(H(r)){A(r,function(e){xe(e)});return}ge($M,r)>=0||($M.push(r),ne(r)&&(r={install:r}),r.install(MH))}function of(r){return r==null?0:r.length||1}function qM(r){return r}var wa=(function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||qM,this._newKeyGetter=a||qM,this.context=i,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,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=of(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],v=of(u),c=of(f);if(v>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(v===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(v===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(v>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(v>1)for(var h=0;h<v;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=of(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var l=t[s],u=of(l);u===0?(t[s]=o,i&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),DH=(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 IH(r,e){var t={},n=t.encode={},a=K(),i=[],o=[],s={};A(r.dimensions,function(c){var h=r.getDimensionInfo(c),d=h.coordDim;if(d){W(wy.get(d)==null);var p=h.coordDimIndex;y0(n,d)[p]=c,h.isExtraCoord||(a.set(d,1),LH(h.type)&&(i[0]=c),y0(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(c)}wy.each(function(g,y){var m=y0(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};a.each(function(c,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=U(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var v=n.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new DH(s,e),t}function y0(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Ih(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function LH(r){return!(r==="ordinal"||r==="time")}var Lh=(function(){function r(e){this.otherDims={},e!=null&&G(this,e)}return r})(),PH=Se(),RH={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},KM=(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=JM(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Q(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=eA(this.source),n=!QM(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=t?v.name:null,u=v.type,f=v.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!v||!v.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=RH[u]||"f",f&&(a+=f.uid),a+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;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 jM(r){return r instanceof KM}function m0(r){for(var e=K(),t=0;t<(r||[]).length;t++){var n=r[t],a=ie(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function JM(r){var e=PH(r);return e.dimNameMap||(e.dimNameMap=m0(r.dimensionsDefine))}function QM(r){return r>30}var sf=ie,ii=U,EH=typeof Int32Array>"u"?Array:Int32Array,kH="e\0\0",eD=-1,OH=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],NH=["_approximateExtent"],tD,Ph,lf,cl,_0,uf,S0,Jt=(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 n,a=!1;jM(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var v=n[f],c=$(v)?new Lh({name:v}):v instanceof Lh?v:new Lh(v),h=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=h,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(h),i[h]=c,u[h]!=null&&(l=!0),c.createInvertedIndices&&(s[h]=[]),W(a||c.storeDimIndex>=0),a&&(c.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=c.storeDimIndex),d.itemId===0&&(this._idDimIdx=c.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=K();A(o,function(g){p.set(i[g].storeDimIndex,g)})}}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 n=this._dimIdxToName.get(t);if(n!=null)return n;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 n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Re(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);if(t==null)throw new Error("Unknown dimension "+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(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof zm&&(i=e),!i){var o=this.dimensions,s=Em(e)||Vt(e)?new nA(e,o.length):e;i=new zm;var l=ii(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=IH(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 n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=t[l],o&&S0(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==pa&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Tr;if(l&&!a.pure)for(var u=[],f=e;f<t;f++){var v=a.getItem(f,u);if(!this.hasItemOption&&XV(v)&&(this.hasItemOption=!0),v){var c=v.name;i[f]==null&&c!=null&&(i[f]=mt(c,null));var h=v.id;o[f]==null&&h!=null&&(o[f]=mt(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)S0(this,f);tD(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){sf(e)?G(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=lf(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return Ph(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.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 n=this,a=this._store;return H(e)?a.getValues(ii(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;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 n=e&&this._invertedIndicesMap[e];if(!n)throw new Error("Do not supported yet");var a=n&&n[t];return a==null||isNaN(a)?eD:a},r.prototype.each=function(e,t,n){ne(e)&&(n=t,t=e,e=[]);var a=n||this,i=ii(cl(e),this._getStoreDimIndex,this);this._store.each(i,a?j(t,a):t)},r.prototype.filterSelf=function(e,t,n){ne(e)&&(n=t,t=e,e=[]);var a=n||this,i=ii(cl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?j(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=Ae(e);return A(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){ne(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=ii(cl(e),this._getStoreDimIndex,this),s=uf(this);return s._store=this._store.map(o,i?j(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=this,o=n||a||this;A(cl(e),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=ii(cl(e),this._getStoreDimIndex,this);this._store.modify(s,o?j(t,o):t)},r.prototype.downSample=function(e,t,n,a){var i=uf(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=uf(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=uf(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new De(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new wa(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Ph(e,n)},function(n){return Ph(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},sf(e)?G(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),H(i)?i=i.slice():sf(i)&&(i=G({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,sf(t)?G(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){sf(e)?G(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,n){this._itemLayouts[e]=n?G(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;by(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:ii(this.dimensions,this._getDimInfo,this),this.hostModel)),_0(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];ne(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(Cv(arguments)))})},r.internalField=(function(){tD=function(e){var t=e._invertedIndicesMap;A(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new EH(o.categories.length);for(var l=0;l<n.length;l++)n[l]=eD;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},lf=function(e,t,n){return mt(e._getCategory(t,n),null)},Ph=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=lf(e,e._idDimIdx,t)),n==null&&(n=kH+t),n},cl=function(e){return H(e)||(e=e!=null?[e]:[]),e},uf=function(e){var t=new r(e._schema?e._schema:ii(e.dimensions,e._getDimInfo,e),e.hostModel);return _0(t,e),t},_0=function(e,t){A(OH.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,A(NH,function(n){e[n]=ae(t[n])}),e._calculationInfo=G({},t._calculationInfo)},S0=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=a[t];if(s==null&&i!=null&&(n[t]=s=lf(e,i,t)),l==null&&o!=null&&(a[t]=l=lf(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})();function BH(r,e){return hl(r,e).dimensions}function hl(r,e){Em(r)||(r=Om(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=K(),i=[],o=VH(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&QM(o),l=n===r.dimensionsDefine,u=l?JM(r):m0(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var v=K(f),c=new yA(o),h=0;h<c.length;h++)c[h]=-1;function d(T){var M=c[T];if(M<0){var D=n[T],L=ie(D)?D:{name:D},I=new Lh,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var E=i.length;return c[T]=E,I.storeDimIndex=T,i.push(I),I}return i[M]}if(!s)for(var h=0;h<o;h++)d(h);v.each(function(T,M){var D=Ue(T).slice();if(D.length===1&&!$(D[0])&&D[0]<0){v.set(M,!1);return}var L=v.set(M,[]);A(D,function(I,P){var E=$(I)?u.get(I):I;E!=null&&E<o&&(L[P]=E,g(d(E),M,P))})});var p=0;A(t,function(T){var M,D,L,I;if($(T))M=T,I={};else{I=T,M=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=G({},I),I.ordinalMeta=P,D=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var E=v.get(M);if(E!==!1){if(E=Ue(E),!E.length)for(var R=0;R<(D&&D.length||1);R++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}A(E,function(O,k){var V=d(O);if(l&&I.type!=null&&(V.type=I.type),g(ue(V,I),M,k),V.name==null&&D){var z=D[k];!ie(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}L&&ue(V.otherDims,L)})}});function g(T,M,D){wy.get(M)!=null?T.otherDims[M]=D:(T.coordDim=M,T.coordDimIndex=D,a.set(M,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(T){T.name==null&&(T.name=T.coordDim)}if(s)A(i,function(T){x(T)}),i.sort(function(T,M){return T.storeDimIndex-M.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),C=w.coordDim;C==null&&(w.coordDim=zH(S,a,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),w.type==null&&(OC(r,b)===Ut.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return cc(i,function(T){return T.name},function(T,M){M>0&&(T.name=T.name+(M-1))}),new KM({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function VH(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return A(e,function(i){var o;ie(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function zH(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var GH=(function(){function r(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return r})();function FH(r){var e=r.get("coordinateSystem"),t=new GH(e),n=HH[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var HH={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",ot).models[0],i=r.getReferringComponents("yAxis",ot).models[0];if(!a)throw new Error('xAxis "'+At(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+At(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found');e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),dl(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),dl(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",ot).models[0];if(!a)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",a),dl(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",ot).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),dl(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),dl(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),dl(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",ot).models[0];if(!a)throw new Error("matrix coordinate system should be specified.");e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function dl(r){return r.get("type")==="category"}function rD(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;WH(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,v,c,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(A(i,function(S,x){$(S)&&(i[x]=S={name:S}),d(S)||(h=!1)}),A(i,function(S,x){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!a||a===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){v="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,y=0;A(i,function(S){S.coordDim===p&&y++});var m={name:v,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:c,coordDim:c,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,g),_.storeDimIndex=s.ensureCalculationDimension(v,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:v}}function WH(r){return!jM(r.schema)}function Ta(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function x0(r,e){return Ta(r,e)?r.getCalculationInfo("stackResultDimension"):e}function UH(r,e){var t=r.get("coordinateSystem"),n=ho.get(t),a;return e&&e.coordSysDims&&(a=U(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Ih(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function YH(r,e,t){var n,a;return t&&A(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function Bn(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;r?(i=!0,a=Om(r)):(a=n.getSource(),i=a.sourceFormat===Tr);var o=FH(e),s=UH(e,o),l=t.useEncodeDefaulter,u=ne(l)?l:l?be(kC,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=hl(a,f),c=YH(v.dimensions,t.createInvertedIndices,o),h=i?null:n.getSharedDataStore(v),d=rD(e,{schema:v,store:h}),p=new Jt(v,e);p.setCalculationInfo(d);var g=c!=null&&XH(a)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function XH(r){if(r.sourceFormat===Tr){var e=ZH(r.data||[]);return!H(Ms(e))}}function ZH(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var vn=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();hc(vn);var $H=0,ff=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++$H,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&U(n,qH);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,n=this._needCollect;if(!$(e)&&!n)return e;if(n&&!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&&(n?(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=K(this.categories))},r})();function qH(r){return ie(r)&&r.value!=null?r.value:r+""}var pr=0,vf=1,KH={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},nD=Ae(KH),Ca=2,aD=3;function b0(r,e,t){var n;r=r||{};var a=vt();if(a){var i=a.createBreakScaleMapper(e,t);i.hasBreaks()&&(A(nD,function(o){i[o]&&(r[o]=j(i[o],i))}),n=i)}return n==null&&C0(r,t),{brk:n,mapper:r}}function w0(r,e){A(nD,function(t){r[t]=e[t]})}function T0(r,e){r.freeze=at,r.freeze=function(){e.freeze()}}function cf(r){return r.getExtentUnsafe(pr,Ca)}function hf(r,e){return r.getExtentUnsafe(vf,e)||r.getExtentUnsafe(pr,e)}function jH(r){var e=hf(r,aD);return e[1]-e[0]}function Rh(r){var e=r.getExtentUnsafe(pr,aD);return e[1]-e[0]}function C0(r,e){var t=r||{},n=[];return t._extents=n,n[pr]=e?e.slice():Ft(),G(t,JH),t}var JH={needTransform:function(){return!1},normalize:function(r){var e=this._extents[vf]||this._extents[pr];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[vf]||this._extents[pr];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=hf(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[pr].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){W(!this._frozen),iD(this._extents,pr,r,e)},setExtent2:function(r,e,t){W(!this._frozen);var n=this._extents;n[r]||(n[r]=n[pr].slice()),iD(n,r,e,t)},freeze:function(){this._frozen=!0}};function iD(r,e,t,n){Hi(t,n)?(r[e][0]=t,r[e][1]=n):t!=null&&n!=null&&t<=n&&Le("Invalid setExtent call - start: "+t+", end: "+n)}function oD(r){return Eh(r)||pl(r)}function Eh(r){return r.type==="interval"}function df(r){return r.type==="time"}function pl(r){return r.type==="log"}function Qt(r){return r.type==="ordinal"}function QH(r){var e=oc(r),t=Ni(10,e),n=rn(r/t);return n?n===2?n=3:n===3?n=5:n*=2:n=1,Ee(n*t,-e)}function Lo(r){return nn(r)+2}function kh(r,e){return Bi(r)/Bi(e)}function A0(r,e,t){var n=t&&t.lookup;if(n){for(var a=0;a<n.from.length;a++)if(r===n.from[a])return n.to[a]}return Ni(e,r)}function sD(r,e,t){var n=r.slice();if(n[0]===n[1]){var a=t&&t.ctnShp;if(n[0]!==0){var i=rt(n[0]);e[1]||(n[1]+=i/2),n[0]-=i/2}else a&&(n[0]=-1),n[1]=1}return(!ca(n[0])||!ca(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function e4(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function Oh(r,e){return r=r||e,rn(Te(r,1))}function lD(r,e,t){var n=cf(r),a=n[0],i=r.count(),o=Math.max((e||0)+1,1);a!==0&&o>1&&i/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==n[0]&&l(n[0],!0,!0);for(var s=a;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,v){t({value:u,offInterval:f},v)}}var pf=(function(r){N(e,r);function e(t){var n=r.call(this)||this;n.type="ordinal",n.parse=e.parse,w0(n,e.decoratedMethods);var a=t.ordinalMeta;a||(a=new ff({})),H(a)&&(a=new ff({categories:U(a,function(o){return ie(o)?o.value:o})})),n._ordinalMeta=a;var i=b0(null,null,t.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,T0(n,i.mapper),n}return e.parse=function(t){return t==null?t=NaN:$(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=rn(t),t},e.prototype.getTicks=function(){var t=[];return lD(this,0,function(n){t.push(n)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Ge(s,n.length);o<l;++o){var u=a[o]=n[o];i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a[o]=f,i[f]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){var t=cf(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(rn(this._mapper.scale(t)))},transformIn:function(t,n){return this._mapper.transformIn(this._getTickNumber(t),n)},transformOut:function(t,n){return this.getRawOrdinalNumber(this._mapper.transformOut(t,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,n){return this._mapper.getExtentUnsafe(t,n)},setExtent:function(t,n){return this._mapper.setExtent(t,n)},setExtent2:function(t,n,a){return this._mapper.setExtent2(t,n,a)}},e})(vn);vn.registerClass(pf);function M0(r,e,t,n){for(var a=r.getTicks({expandToNicedExtent:!0}),i=[],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,v=[],c=l.value-u.value,h=c/e,d=Lo(h);f<e-1;){var p=Ee(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&v.push(p),f++}var g=vt();g&&g.pruneTicksByBreak("auto",v,t,function(y){return y},n,o),i.push(v)}}return i}var Vn=(function(r){N(e,r);function e(t){var n=r.call(this)||this;n.type="interval",n.parse=e.parse,t=t||{};var a=oC(n,t),i=b0(n,a,null);return n.brk=i.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}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 n=cf(this);W(t.interval!=null),t.intervalCount!=null&&W(t.intervalCount>=-1&&t.intervalPrecision!=null&&!vo(this)),t.niceExtent!=null&&(W(isFinite(t.niceExtent[0])&&isFinite(t.niceExtent[1])),W(n[0]<=t.niceExtent[0]&&t.niceExtent[1]<=n[1]),W(Ee(t.niceExtent[0]-t.niceExtent[1],nn(t.interval))<=t.interval)),this._cfg=t=ae(t),t.niceExtent==null&&(t.niceExtent=n.slice()),t.intervalPrecision==null&&(t.intervalPrecision=Lo(t.interval))},e.prototype.getTicks=function(t){t=t||{};var n=this._cfg,a=n.interval,i=cf(this),o=n.niceExtent,s=n.intervalPrecision,l=vt(),u=this.brk,f=l&&u,v=[];if(!a)return v;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(v,u.breaks,i),v;W(o!=null);var c=3e3;i[0]<o[0]&&v.push({value:t.expandToNicedExtent?Ee(o[0]-a,s):i[0]});for(var h=function(_,S){return rn((S-_)/a)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=Ge(p,o[1]),g===d&&(p=o[1])}if(v.push({value:p}),p=Ee(p+a,s),u){var y=u.calcNiceTickMultiple(p,h);y>=0&&(p=Ee(p+y*a,s))}if(v.length>0&&p===v[v.length-1].value)break;if(v.length>c)return et('Exceed safe limit in IntervalScale["getTicks"].'),[]}var m=v.length?v[v.length-1].value:o[1];return i[1]>m&&v.push({value:t.expandToNicedExtent?Ee(m+a,s):i[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,v,u.breaks,function(_){return _.value},n.interval,i),f&&t.breakTicks!=="none"&&l.addBreaksToTicks(v,u.breaks,i),v},e.prototype.getMinorTicks=function(t){return M0(this,t,Yc(this),this._cfg.interval)},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=nn(t.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var i=Ee(t.value,a,!0);return gm(i)},e.type="interval",e})(vn);vn.registerClass(Vn);var t4=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},uD=(function(r){N(e,r);function e(t){var n=r.call(this)||this;n.type="time",n.parse=e.parse,n._locale=t.locale,n._useUTC=t.useUTC,n._interval=0;var a=oC(n,t),i=b0(n,a,null);return n.brk=i.brk,n}return e.prototype.getLabel=function(t){return Uu(t.value,lC[CG(Wu(this._minLevelUnit))]||lC.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,n,a){return AG(t,n,a,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var n=this._interval,a=cf(this),i=vt(),o=this.brk,s=i&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return vt().addBreaksToTicks(l,o.breaks,a),l;l=l4(this._minLevelUnit,this._approxInterval,u,a,Rh(this),o);var f=Mr.length-1,v=0;return A(l,function(c){c.time&&(f=Math.min(f,ge(Mr,c.time.upperTimeUnit)),v=Math.max(v,c.time.level))}),s&&vt().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(c){return c.value},this._approxInterval,a),s&&t.breakTicks!=="none"&&vt().addBreaksToTicks(l,o.breaks,a,function(c){for(var h=Math.max(ge(Mr,Ks(c.vmin,u)),ge(Mr,Ks(c.vmax,u))),d=0,p=0;p<Mr.length;p++)if(!fD(Mr[p],c.vmin,c.vmax,u)){d=p;break}var g=Math.min(d,f),y=Math.max(g,h);return{level:v,lowerTimeUnit:Mr[y],upperTimeUnit:Mr[g]}}),l},e.prototype.getMinorTicks=function(t){return M0(this,t,Yc(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 Re(t)?Math.round(t):+Tn(t)},e.type="time",e})(vn),Nh=[["second",lm],["minute",um],["hour",Hu],["quarter-day",Hu*6],["half-day",Hu*12],["day",Hr*1.2],["half-week",Hr*3.5],["week",Hr*7],["month",Hr*31],["quarter",Hr*95],["half-year",sC/2],["year",sC]];function fD(r,e,t,n){return $c(new Date(e),r,n).getTime()===$c(new Date(t),r,n).getTime()}function r4(r,e){return r/=Hr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function n4(r){var e=30*Hr;return r/=e,r>6?6:r>3?3:r>2?2:1}function a4(r){return r/=Hu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function vD(r,e){return r/=e?um:lm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function i4(r){return Te(sc(r,!0),1)}function o4(r,e,t){var n=Math.max(0,ge(Mr,e)-1);return $c(new Date(r),Mr[n],t).getTime()}function s4(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function l4(r,e,t,n,a,i){var o=3e3,s=xG,l=0;function u(R,O,k,V,z,F,Y){for(var Z=s4(z,R),X=O,ee=new Date(X);X<k&&X<=n[1];){if(Y.push({value:X}),l++>o){et('Exceed safe limit in TimeScale["getTicks"].');break}if(ee[z](ee[V]()+R),X=ee.getTime(),i){var ye=i.calcNiceTickMultiple(X,Z);ye>0&&(ee[z](ee[V]()+ye*R),X=ee.getTime())}}Y.push({value:X,notAdd:X>n[1]})}function f(R,O,k){var V=[],z=!O.length;if(!fD(Wu(R),n[0],n[1],t)){z&&(O=[{value:o4(n[0],R,t)},{value:n[1]}]);for(var F=0;F<O.length-1;F++){var Y=O[F].value,Z=O[F+1].value;if(Y!==Z){var X=void 0,ee=void 0,ye=void 0,Be=!1;switch(R){case"year":X=Math.max(1,Math.round(e/Hr/365)),ee=uC(t),ye=MG(t);break;case"half-year":case"quarter":case"month":X=n4(e),ee=fm(t),ye=fC(t);break;case"week":case"half-week":case"day":X=r4(e),ee=vm(t),ye=vC(t),Be=!0;break;case"half-day":case"quarter-day":case"hour":X=a4(e),ee=cm(t),ye=cC(t);break;case"minute":X=vD(e,!0),ee=hm(t),ye=hC(t);break;case"second":X=vD(e,!1),ee=dm(t),ye=dC(t);break;case"millisecond":X=i4(e),ee=pm(t),ye=pC(t);break}Z>=n[0]&&Y<=n[1]&&u(X,Y,Z,ee,ye,Be,V),R==="year"&&k.length>1&&F===0&&k.unshift({value:k[0].value-X})}}for(var F=0;F<V.length;F++)k.push(V[F])}}for(var v=[],c=[],h=0,d=0,p=0;p<s.length;++p){var g=Wu(s[p]);if(TG(s[p])){f(s[p],v[v.length-1]||[],c);var y=s[p+1]?Wu(s[p+1]):null;if(g!==y){if(c.length){d=h,c.sort(function(R,O){return R.value-O.value});for(var m=[],_=0;_<c.length;++_){var S=c[_].value;(_===0||c[_-1].value!==S)&&(m.push(c[_]),S>=n[0]&&S<=n[1]&&h++)}var x=a/e;if(h>x*1.5&&d>x/1.5||(v.push(m),h>x||r===s[p]))break}c=[]}}}for(var b=Ve(U(v,function(R){return Ve(R,function(O){return O.value>=n[0]&&O.value<=n[1]&&!O.notAdd})}),function(R){return R.length>0}),w=b.length-1,C=[],p=0;p<b.length;++p)for(var T=b[p],M=0;M<T.length;++M){var D=Ks(T[M].value,t);C.push({value:T[M].value,time:{level:w-p,upperTimeUnit:D,lowerTimeUnit:D}})}cc(C,fz,null),C.sort(function(R,O){return R.value-O.value});var L=C[0],I=C[C.length-1],P=Ks(n[0],t),E=Ks(n[1],t);return(!L||L.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!I||I.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:E,lowerTimeUnit:E},notNice:!0}),C}var u4=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=Hr,t[1]+=Hr),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Hr}r.setExtent(t[0],t[1]);var a=Oh(e.splitNumber,10),i=Rh(r)/a,o=e.minInterval,s=e.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=Nh.length,u=Math.min(t4(Nh,i,0,l),l-1),f=Nh[u][1],v=Nh[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:v})};vn.registerClass(uD);var Bh=0,Vh=1,f4=2,zh=(function(r){N(e,r);function e(t){var n=r.call(this)||this;n.type="log",n.parse=Vn.parse,n.base=t.logBase||10;var a=[],i=[],o=n._lookup={from:a,to:i};a[Bh]=a[Vh]=i[Bh]=i[Vh]=NaN,w0(n,e.mapperMethods);var s=vt(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},f4,u),n.powStub=new Vn({breakParsed:u.original}),n.intervalStub=new Vn({breakParsed:u.transformed}),T0(n,n.intervalStub),n}return e.prototype.getTicks=function(t){var n=this.base,a=this.powStub,i=vt(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return U(o.getTicks(t||{}),function(f){var v=f.value,c=A0(v,n,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,f,Yc(a),this._lookup);d&&(h=d.vBreak,c=d.tickVal)}return{value:c,break:h}},this)},e.prototype.getMinorTicks=function(t){return M0(this,t,Yc(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,n){return this.intervalStub.getLabel(t,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(kh(t,this.base))},scale:function(t){return A0(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,n){return t=kh(t,this.base),n&&n.depth===Ca?t:this.intervalStub.transformIn(t,n)},transformOut:function(t,n){var a=n?n.depth:null;return cD.depth=a,hD.lookup=this._lookup,A0(a===Ca?t:this.intervalStub.transformOut(t,cD),this.base,hD)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,n){this.setExtent2(pr,t,n)},setExtent2:function(t,n,a){if(!(!Hi(n,a)||n<=0||a<=0)){var i=dD,o=dD;if(t===pr){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(t,i[Bh]=n,i[Vh]=a);var l=this.base;this.intervalStub.setExtent2(t,o[Bh]=kh(n,l),o[Vh]=kh(a,l))}},getFilter:function(){return{g:0}},sanitize:function(t,n){return Hi(n[0],n[1])&&xr(t)&&t<=0&&(t=n[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,n){return n===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,n)}},e})(vn);vn.registerClass(zh);var cD={},hD={},dD=[],pD={value:1,category:1,time:1,log:1},gD=Se();function gf(r){var e=r.get("type");return(e==null||!J(pD,e)&&!vn.getClass(e))&&(e="value"),e}function gl(r,e,t){var n=vt(),a;switch(n&&(a=yD(r,e,t)),e){case"category":return new pf({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Ft()});case"time":return new uD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:a});case"log":return new zh({logBase:r.get("logBase"),breakOption:a});case"value":return new Vn({breakOption:a});default:return new(vn.getClass(e)||Vn)({})}}function v4(r,e,t){var n=t?hf(r,null):r.getExtentUnsafe(pr,null),a=n[0],i=n[1];return Hi(a,i)?a===e||i===e?h4:a<e&&i>e?c4:D0:D0}var c4=1,h4=2,D0=3;function d4(r){gD(r).noOnMyZero=!0}function p4(r){return gD(r).noOnMyZero}function yf(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=bG(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if($(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(ne(e)){if(r.type==="category")return function(a,i){return e(Gh(r,a),a.value-r.scale.getExtent()[0],null)};var n=vt();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(Gh(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function Gh(r,e){var t=r.scale;return Qt(t)?t.getLabel(e):e.value}function I0(r){var e=r.get("interval");return e??"auto"}function g4(r){return r.type==="category"&&I0(r.getLabelModel())===0}function y4(r,e){var t={};return A(r.mapDimensionsAll(e),function(n){t[x0(r,n)]=!0}),Ae(t)}function yl(r){return r==="middle"||r==="center"}function mf(r){return r.getShallow("show")}function yD(r,e,t){var n=r.get("breaks",!0);if(n!=null){if(!vt()){Le('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!t||!m4(e)){var a=r instanceof we?" "+r.type+"["+r.componentIndex+"]":"";Le("Axis"+a+" does not support break.");return}return n}}function m4(r){return r!=="category"}function mD(r,e,t,n,a,i){var o=pl(r),s=o?r.intervalStub:r;if(s.setExtent(n[0],n[1]),o){var l=r.powStub,u={depth:Ca},f=r.transformOut(n[0],u),v=r.transformOut(n[1],u),c=e4(t,n);e[0]&&!c[0]&&(f=a[0]),e[1]&&!c[1]&&(v=a[1]),l.setExtent(f,v)}s.setConfig(i)}function ml(r,e){return Qt(r)?r.getRawOrdinalNumber(e.value):e.value}function _f(r,e){return Qt(r)&&!!e.get("boundaryGap")}var _l=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})(),_4=Ps(),Sf="|&",Sl=Se(),_D=-2,S4=-1,x4=Se(),oi;oi=function(r){W(r&&r.model&&r.model.uid&&r.model.ecModel)};function Fh(r,e){var t=r.model,n=Sl(al(t.ecModel)).keyed,a=n&&n.get(e);return a&&a.get(t.uid)}function b4(r,e){return W(e!=null),oi(r),xD(Fh(r,e))}function w4(r,e){oi(r);var t=[];return SD(r.model.ecModel,function(n){for(var a=0;a<e.length;a++)e[a]&&n.serByIdx[e[a].seriesIndex]&&t.push(xD(n))}),t}function SD(r,e){var t=Sl(al(r)).keyed;t&&t.each(function(n,a){n.each(function(i,o){e(i,a,o)})})}function xD(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function T4(r,e){oi(r);var t=r.model.ecModel,n=Sl(al(t)).axSer;n&&Hh(t,n.get(r.model.uid),e)}function Po(r,e,t){W(e!=null),oi(r);var n=Fh(r,e);n&&Hh(r.model.ecModel,n.sers,t)}function Hh(r,e,t){if(e)for(var n=0;n<e.length;n++){var a=e[n];r.isSeriesFiltered(a)||t(a)}}function C4(r,e){W(e!=null),oi(r);var t=Fh(r,e);if(!t||!t.sers.length)return 0;var n=0;return Hh(r.model.ecModel,t.sers,function(){n++}),n}function L0(r,e,t){W(e!=null);var n=Sl(al(r)).keyed,a=n&&n.get(e);a&&a.each(function(i){W(i.sers.length>0),t(i.axis)})}function bD(r,e){oi(r);var t=r.model,n=Sl(al(t.ecModel)).keys;n&&A(n.get(t.uid),function(a){var i=Fh(r,a);W(i&&i.sers.length>0),e(a)})}function A4(r){var e=x4(nM(r)),t=e.keyed||(e.keyed=K());SD(r,function(n,a,i){var o=t.get(a)||t.set(a,K()),s=o.get(i)||o.set(i,{});n.metrics.liPosMinGap&&wD.liPosMinGap(r,n,s)})}function M4(r,e){wD[r]=e}var wD={};function Ro(r,e,t){if(r){var n=e.ecModel,a=Sl(al(n)),i=r.model.uid;oi(r);var o=a.axSerPairCheck||(a.axSerPairCheck=K()),s=""+i+Sf+e.uid;W(!o.get(s)),o.set(s,1);var l=a.axSer||(a.axSer=K()),u=l.get(i)||l.set(i,[]),f=u[u.length-1];f&&W(f.seriesIndex<e.seriesIndex),u.push(e);var v=e.subType,c=e.getBaseAxis()===r,h=Wh.get(P0(v,c,t))||Wh.get(P0(v,c,null));if(h){var d=a.keyed||(a.keyed=K()),p=a.keys||(a.keys=K()),g=h.key,y=d.get(g)||d.set(g,K()),m=y.get(i);m||(m=y.set(i,{axis:r,sers:[],serByIdx:[]}),m.metrics=h.getMetrics(r),(p.get(i)||p.set(i,[])).push(g)),m.sers.push(e),m.serByIdx[e.seriesIndex]=e}}}function P0(r,e,t){return r+Sf+Q(e,!0)+Sf+(t||"")}function R0(r,e){var t=P0(e.seriesType,e.baseAxis,e.coordSysType);W(e.seriesType&&e.key&&!E0.get(e.key)&&!Wh.get(t)),E0.set(e.key,1),Wh.set(t,e),_4(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:A4})})}var E0;E0=K();var Wh=K(),D4=Se(),xl=1,TD=2,I4=3,CD=(function(){function r(e,t,n,a,i){var o=Qt(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=n.slice();(Eh(e)||pl(e)||df(e))&&(mw(f,xf(e,t.get("dataMin",!0))),_w(f,xf(e,t.get("dataMax",!0)))),lz(f)||(f[0]=f[1]=NaN);var v=[],c=[!1,!1],h=t.get("min",!0);h==="dataMin"?(v[0]=f[0],c[0]=!0):(v[0]=xf(e,ne(h)?h({min:f[0],max:f[1]}):h),c[0]=v[0]!=null);var d=t.get("max",!0);d==="dataMax"?(v[1]=f[1],c[1]=!0):(v[1]=xf(e,ne(d)?d({min:f[0],max:f[1]}):d),c[1]=v[1]!=null);var p=L4(e,t),g=o?null:f[1]-f[0]||Math.abs(f[0]);v[0]==null&&(v[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),v[1]==null&&(v[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!ca(v[0])&&(v[0]=NaN),!ca(v[1])&&(v[1]=NaN);var y=l||Ct(v[0])||Ct(v[1])||o&&!s,m=Eh(e),_=m&&t.needIncludeZero&&t.needIncludeZero();_&&(v[0]>0&&v[1]>0&&!c[0]&&(v[0]=0),v[0]<0&&v[1]<0&&!c[1]&&(v[1]=0));var S=!1;v[0]>v[1]&&(v.reverse(),S=!0);var x=xf(e,t.get("startValue",!0)),b=x!=null;!xr(x)&&a&&(x=e.getDefaultStartValue?e.getDefaultStartValue():0),xr(x)&&(b||!m||_)&&(x<v[0]&&!c[0]?(v[0]=x,c[0]=!0):x>v[1]&&!c[1]&&(v[1]=x,c[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:v,zoomMM:[],fixMM:c,zoomFixMM:[!1,!1],startValue:x,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i};AD(w,v)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,a=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],i[0]=a[0]=!0),t[1]!=null&&(s[1]=t[1],i[1]=a[1]=!0),AD(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 AD(r,e){var t=r.scale,n=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],n),e[1]=t.sanitize(e[1],n),vc(e))}function xf(r,e){return e==null?null:Ct(e)?NaN:r.parse(e)}function L4(r,e){var t;if(Qt(r))t=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n===!0&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 0.'),n=null),t=H(n)?n:[n,n]}return[MD(t[0]),MD(t[1])]}function MD(r){return wn(typeof r=="boolean"?0:r,1)||0}function DD(r){var e=D4(r.scale);return e.extent||(e.extent=Ft()),e}function P4(r,e){DD(r).dimIdxInCoord=e.get(r.dim)}function Eo(r,e){var t=r.scale,n=r.model,a=r.dim;if(W(t&&n&&a),t.rawExtentInfo){W(t.rawExtentInfo.from!==e||e===TD);return}R4(t,r,a,n,e)}function R4(r,e,t,n,a){var i=DD(e),o=i.extent,s=!1;T4(e,function(f){if(f.boxCoordinateSystem){var v=SC(f).coord,c=i.dimIdxInCoord;if(!(c>=0))Le('Property "series.coord" is not supported on axis '+f.boxCoordinateSystem.type+".");else if(H(v)){var h=v[c];h!=null&&!H(h)&&ry(o,r.parse(h))}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=r.getFilter?r.getFilter():null;A(y4(d,t),function(g){sz(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=k4(r,e,n),u=new CD(r,n,o,s,l);ID(r,u,a),i.extent=null}function E4(r,e){var t=r.scale;W(!t.rawExtentInfo),ID(t,new CD(t,r.model,e,!1,!1),I4)}function ID(r,e,t){r.rawExtentInfo=e,e.from=t}function Uh(r,e){W(!Yh.get(r)),Yh.set(r,e)}var Yh=K();function LD(r,e,t,n,a){W(!a||!r.rawExtentInfo),r.rawExtentInfo||E4({scale:r,model:e},a||Ft());var i=r.rawExtentInfo.makeFinal(),o=i.effMM;return r.setExtent(o[0],o[1]),r.setBlank(i.isBlank),n&&i.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),i}function k4(r,e,t){var n=_f(r,t),a=t.get("containShape",!0);if(a==null&&!n&&(a=!0),!a)return!1;var i=!1;return bD(e,function(o){i=!!Yh.get(o)||i}),i}function O4(r,e,t,n){if(t.ctnShp){var a;if(bD(r,function(s){var l=Yh.get(s);if(l){var u=l(r,n);u&&(a=a||[0,0],mw(a,u[0]),_w(a,u[1]),d4(r))}}),!!a){var i=e.getExtent();if(Qt(e))r.onBand||e.setExtent2(vf,Ge(i[0],i[0]+a[0]),Te(i[1],i[1]+a[1]));else{var o=i.slice();t.zoomFixMM[0]||(o[0]=Ge(o[0],e.transformOut(e.transformIn(o[0],null)+a[0],null))),t.zoomFixMM[1]||(o[1]=Te(o[1],e.transformOut(e.transformIn(o[1],null)+a[1],null))),(o[0]<i[0]||o[1]>i[1])&&e.setExtent2(vf,o[0],o[1])}}}}function PD(r,e){var t=pl(r),n=t?r.intervalStub:r,a=e.fixMinMax||[],i=t?r.getExtent():null,o=n.getExtent(),s=sD(o,a,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=t?B4(n,e):N4(n,e),u=l.intervalPrecision,f=l.interval,v=e.userInterval;v!=null&&(l.interval=v,l.intervalPrecision=Lo(v)),a[0]||(s[0]=Ee(Br(s[0]/f)*f,u)),a[1]||(s[1]=Ee(Oi(s[1]/f)*f,u)),v!=null&&(l.niceExtent=s.slice()),mD(r,a,o,s,i,l)}function N4(r,e){var t=Oh(e.splitNumber,5),n=Rh(r);W(isFinite(n)&&n>0);var a=e.minInterval,i=e.maxInterval,o=sc(n/t,!0);a!=null&&o<a&&(o=a),i!=null&&o>i&&(o=i);var s=Lo(o),l=r.getExtent(),u=[Ee(Oi(l[0]/o)*o,s),Ee(Br(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function B4(r,e){var t=Oh(e.splitNumber,10),n=r.getExtent(),a=Rh(r);W(isFinite(a)&&a>0);var i=Te($g(a),1),o=t/a*i;o<=.5&&(i*=10);var s=Lo(i),l=[Ee(Oi(n[0]/i)*i,s),Ee(Br(n[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function bl(r){var e=r.scale,t=r.model,n=t.axis,a=t.ecModel;W(n&&a),RD(e,t,n,a,null)}function RD(r,e,t,n,a){var i=LD(r,e,n,t,a),o=Eh(r)||df(r);ED(r,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i}),t&&n&&O4(t,r,i,n),r.freeze()}function ED(r,e){V4[r.type](r,e)}var V4={interval:PD,log:PD,time:u4,ordinal:at};function z4(r){return Bn(null,r)}var G4={isDimensionStacked:Ta,enableDataStack:rD,getStackedDimension:x0};function F4(r,e){var t=e;e instanceof De||(t=new De(e));var n=gf(t),a=gl(t,n,!1);return r[1]<r[0]&&(r=r.slice().reverse()),RD(a,t,null,null,r),a}function H4(r){lt(r,_l)}function W4(r,e){return e=e||{},Ye(r,null,null,e.state!=="normal")}var U4=Object.freeze({__proto__:null,createList:z4,getLayoutRect:Je,dataStack:G4,createScale:F4,mixinAxisModelCommonMethods:H4,getECData:ve,createTextStyle:W4,createDimensions:BH,createSymbol:ht,enableHoverEmphasis:ja}),Y4=1e-8;function kD(r,e){return Math.abs(r-e)<Y4}function ko(r,e,t){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=da(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!kD(a[0],s[0])||!kD(a[1],s[1]))&&(n+=da(a[0],a[1],s[0],s[1],e,t)),n!==0}var X4=[];function k0(r,e){for(var t=0;t<r.length;t++)it(r[t],r[t],e)}function OD(r,e,t,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(aa(e,e,i),ia(t,t,i))}}function Z4(r){for(var e=0,t=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;e+=f,t+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var ND=(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})(),BD=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),VD=(function(){function r(e){this.type="linestring",this.points=e}return r})(),zD=(function(r){N(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,a=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return Z4(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?OD(s.exterior,a,i,t):A(s.points,function(l){OD(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new se(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ko(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(ko(u[f],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new se(t,n,a,i),u=o.calculateTransform(l),f=this.geometries,v=0;v<f.length;v++){var c=f[v];c.type==="polygon"?(k0(c.exterior,u),A(c.interiors,function(h){k0(h,u)})):A(c.points,function(h){k0(h,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 n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(ND),$4=(function(r){N(e,r);function e(t,n){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Ci(X4),o=t;o&&!o.isGeoSVGGraphicRoot;)mr(i,o.getLocalTransform(),i),o=o.parent;return _r(i,i),it(a,a,i),a},e})(ND);function q4(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return A(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=GD(s,o,t);break;case"Polygon":O0(s,o,t);break;case"MultiLineString":O0(s,o,t);break;case"MultiPolygon":A(s,function(l,u){return O0(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function O0(r,e,t){for(var n=0;n<r.length;n++)r[n]=GD(r[n],e[n],t)}function GD(r,e,t){for(var n=[],a=e[0],i=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+=i,a=s,i=l,n.push([s/t,l/t])}return n}function N0(r,e){return r=q4(r),U(Ve(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new BD(o[0],o.slice(1)));break;case"MultiPolygon":A(a.coordinates,function(l){l[0]&&i.push(new BD(l[0],l.slice(1)))});break;case"LineString":i.push(new VD([a.coordinates]));break;case"MultiLineString":i.push(new VD(a.coordinates))}var s=new zD(n[e||"name"],i,n.cp);return s.properties=n,s})}var K4=Object.freeze({__proto__:null,linearMap:Ne,round:GV,asc:Et,getPrecision:nn,getPrecisionSafe:tw,getPixelPrecision:FV,getPercentWithPrecision:HV,parsePercent:q,MAX_SAFE_INTEGER:Tu,remRadian:Zg,isRadianAroundZero:zi,parseDate:Tn,quantity:$g,quantityExponent:oc,nice:sc,quantile:lc,reformIntervals:qg,isNumeric:uc,numericToNumber:Cn}),j4=Object.freeze({__proto__:null,parse:Tn,format:Uu,roundTime:$c}),J4=Object.freeze({__proto__:null,extendShape:FT,extendPath:HT,makePath:Us,makeImage:Uy,mergePath:Ar,resizePath:Yy,createIcon:Xs,updateProps:Oe,initProps:Ke,getTransform:oo,clipPointsByRect:Xy,clipRectByRect:YT,registerShape:Fr,getShapeClass:Bu,Group:le,Image:Dt,Text:Pe,Circle:kn,Ellipse:Ru,Sector:Ht,Ring:zs,Polygon:Wt,Polyline:Ot,Rect:Ce,Line:ft,BezierCurve:Gs,Arc:Ou,IncrementalDisplayable:NT,CompoundPath:Nu,LinearGradient:no,RadialGradient:Gy,BoundingRect:se}),Q4=Object.freeze({__proto__:null,addCommas:gm,toCamelCase:ym,normalizeCssArray:js,encodeHTML:Gt,formatTpl:Sm,getTooltipMarker:mC,formatTime:IG,capitalFirst:LG,truncateText:Tz,getTextRect:DG}),eW=Object.freeze({__proto__:null,map:U,each:A,indexOf:ge,inherits:Xp,reduce:Pr,filter:Ve,bind:j,curry:be,isArray:H,isString:$,isObject:ie,isFunction:ne,extend:G,defaults:ue,clone:ae,merge:_e}),tW=Se(),bf=Se(),cn={estimate:1,determine:2};function Xh(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function rW(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=r.scale;return{labels:U(FD(t,n),function(a,i){return{formattedLabel:yf(r)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return r.type==="category"?aW(r,e):oW(r)}function nW(r,e,t){var n=r.scale,a=r.getTickModel().get("customValues");return a?{ticks:FD(a,n)}:r.type==="category"?iW(r,e):{ticks:n.getTicks(t)}}function FD(r,e){var t=e.getExtent(),n=[];return A(r,function(a){a=e.parse(a),a>=t[0]&&a<=t[1]&&n.push(a)}),cc(n,vz,null),Et(n),U(n,function(a){return{value:a}})}function aW(r,e){var t=r.getLabelModel(),n=HD(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function HD(r,e,t){var n=lW(r),a=I0(e),i=t.kind===cn.estimate;if(!i){var o=UD(n,a);if(o)return o}var s,l;ne(a)?s=Zh(r,a,!1):(l=a==="auto"?uW(r,t):a,s=Zh(r,l,!1));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return B0(n,a,u),!0}):B0(n,a,u),u}function iW(r,e){var t=sW(r),n=I0(e),a=UD(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),ne(n))i=Zh(r,n,!0);else if(n==="auto"){var s=HD(r,r.getLabelModel(),Xh(cn.determine));o=s.labelCategoryInterval,i=U(s.labels,function(l){return l.tick})}else o=n,i=Zh(r,o,!0);return B0(t,n,{ticks:i,tickCategoryInterval:o})}function oW(r){var e=r.scale.getTicks(),t=yf(r);return{labels:U(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tick:n}})}}var sW=WD("axisTick"),lW=WD("axisLabel");function WD(r){return function(t){return bf(t)[r]||(bf(t)[r]={list:[]})}}function UD(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function B0(r,e,t){return r.list.push({key:e,value:t}),t}function uW(r,e){if(e.kind===cn.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return bf(r).autoInterval=t,!0}),t}var n=bf(r).autoInterval;return n??(bf(r).autoInterval=r.calculateCategoryInterval(e))}function fW(r,e){var t=e.kind,n=cW(r),a=yf(r),i=(n.axisRotate-n.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 v=s[0],c=r.dataToCoord(v+1)-r.dataToCoord(v),h=Math.abs(c*Math.cos(i)),d=Math.abs(c*Math.sin(i)),p=0,g=0;v<=s[1];v+=u){var y=0,m=0,_=jv(a({value:v}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,x=g/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(S,x)));if(t===cn.estimate)return e.out.noPxChangeTryDetermine.push(j(vW,null,r,b,l)),b;var w=YD(r,b,l);return w??b}function vW(r,e,t){return YD(r,e,t)==null}function YD(r,e,t){var n=tW(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function cW(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 Zh(r,e,t){var n=yf(r),a=r.scale,i=[],o=ne(e);return lD(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}i.push(t?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),i}var hW=.8;function Yt(r,e){e=e||{};var t={w:NaN,w2:NaN},n=r.scale,a=e.fromStat,i=e.min,o=jH(n);xr(o)||(o=NaN);var s=r.getExtent(),l=rt(s[1]-s[0]);return Qt(n)?dW(t,r,o,l):a?pW(t,r,o,l,a):i==null&&W(!1),i!=null&&(t.w=xr(t.w)?Te(i,t.w):i),t}function dW(r,e,t,n){var a=e.onBand,i=t+(a?1:0);i===0&&(i=1),r.w=n/i,!a&&t&&n&&(r.w2=r.w*t/n)}function pW(r,e,t,n,a){W(a);var i=!1,o=-1/0;A(a.key?[b4(e,a.key)]:w4(e,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===_D&&(i=!0))}),xr(t)&&t>0&&xr(o)?(r.w=n/t*o,r.w2=o):i&&(r.w=n*hW,r.w2=r.w*t/n)}var XD=[0,1],Zr=(function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&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 n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Ne(e,XD,ZD(this),t)},r.prototype.coordToData=function(e,t){var n=Ne(e,ZD(this),XD,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=nW(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=U(n.ticks,function(s){return{coord:this.dataToCoord(ml(this.scale,s)),tick:s}},this),i=t.get("alignWithLabel"),o=gW(this,a,i);return U(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(Qt(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=U(n,function(i){return U(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||Xh(cn.determine),rW(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 Yt(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||Xh(cn.determine),fW(this,e)},r})();function ZD(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],n=t/r.scale.count()/2;e[0]+=n,e[1]-=n}return e}function gW(r,e,t){var n=e.length;if(!r.onBand||t||!n)return!1;var a=Yt(r).w;if(!a)return!1;A(e,function(s){s.coord-=a/2});var i=r.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}function yW(r){var e=we.extend(r);return we.registerClass(e),e}function mW(r){var e=Xe.extend(r);return Xe.registerClass(e),e}function _W(r){var e=We.extend(r);return We.registerClass(e),e}function SW(r){var e=Fe.extend(r);return Fe.registerClass(e),e}var wf=Math.PI*2,Oo=Pn.CMD,xW=["top","right","bottom","left"];function bW(r,e,t,n,a){var i=t.width,o=t.height;switch(r){case"top":n.set(t.x+i/2,t.y-e),a.set(0,-1);break;case"bottom":n.set(t.x+i/2,t.y+o+e),a.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":n.set(t.x+i+e,t.y+o/2),a.set(1,0);break}}function wW(r,e,t,n,a,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,v=s*t+e;if(Math.abs(n-a)%wf<1e-4)return l[0]=f,l[1]=v,u-t;if(i){var c=n;n=br(a),a=br(c)}else n=br(n),a=br(a);n>a&&(a+=wf);var h=Math.atan2(s,o);if(h<0&&(h+=wf),h>=n&&h<=a||h+wf>=n&&h+wf<=a)return l[0]=f,l[1]=v,u-t;var d=t*Math.cos(n)+r,p=t*Math.sin(n)+e,g=t*Math.cos(a)+r,y=t*Math.sin(a)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function $h(r,e,t,n,a,i,o,s){var l=a-r,u=i-e,f=t-r,v=n-e,c=Math.sqrt(f*f+v*v);f/=c,v/=c;var h=l*f+u*v,d=h/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=e+d*v;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function $D(r,e,t,n,a,i,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var hn=[];function TW(r,e,t){var n=$D(e.x,e.y,e.width,e.height,r.x,r.y,hn);return t.set(hn[0],hn[1]),n}function CW(r,e,t){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=e.data,v=r.x,c=r.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],a=f[h+1],i=n,o=a);var p=u;switch(d){case Oo.M:i=f[h++],o=f[h++],n=i,a=o;break;case Oo.L:p=$h(n,a,f[h],f[h+1],v,c,hn,!0),n=f[h++],a=f[h++];break;case Oo.C:p=mb(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],v,c,hn),n=f[h++],a=f[h++];break;case Oo.Q:p=Sb(n,a,f[h++],f[h++],f[h],f[h+1],v,c,hn),n=f[h++],a=f[h++];break;case Oo.A:var g=f[h++],y=f[h++],m=f[h++],_=f[h++],S=f[h++],x=f[h++];h+=1;var b=!!(1-f[h++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,h<=1&&(i=s,o=l);var w=(v-g)*_/m+g;p=wW(g,y,_,S,S+x,b,w,c,hn),n=Math.cos(S+x)*m+g,a=Math.sin(S+x)*_+y;break;case Oo.R:i=n=f[h++],o=a=f[h++];var C=f[h++],T=f[h++];p=$D(i,o,C,T,v,c,hn);break;case Oo.Z:p=$h(n,a,i,o,v,c,hn,!0),n=i,a=o;break}p<u&&(u=p,t.set(hn[0],hn[1]))}return u}var dn=new fe,je=new fe,dt=new fe,zn=new fe,Gn=new fe;function qD(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||xW,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),v=f&&_r([],f),c=e.get("length2")||0;u&&dt.copy(u);for(var h=0;h<o.length;h++){var d=o[h];bW(d,0,s,dn,zn),fe.scaleAndAdd(je,dn,zn,c),je.transform(v);var p=r.getBoundingRect(),g=u?u.distance(je):r instanceof Me?CW(je,r.path,dt):TW(je,p,dt);g<l&&(l=g,je.transform(f),dt.transform(f),dt.toArray(i[0]),je.toArray(i[1]),dn.toArray(i[2]))}KD(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var qh=[],or=new fe;function KD(r,e){if(e<=180&&e>0){e=e/180*Math.PI,dn.fromArray(r[0]),je.fromArray(r[1]),dt.fromArray(r[2]),fe.sub(zn,dn,je),fe.sub(Gn,dt,je);var t=zn.len(),n=Gn.len();if(!(t<.001||n<.001)){zn.scale(1/t),Gn.scale(1/n);var a=zn.dot(Gn),i=Math.cos(e);if(i<a){var o=$h(je.x,je.y,dt.x,dt.y,dn.x,dn.y,qh,!1);or.fromArray(qh),or.scaleAndAdd(Gn,o/Math.tan(Math.PI-e));var s=dt.x!==je.x?(or.x-je.x)/(dt.x-je.x):(or.y-je.y)/(dt.y-je.y);if(isNaN(s))return;s<0?fe.copy(or,je):s>1&&fe.copy(or,dt),or.toArray(r[1])}}}}function AW(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,dn.fromArray(r[0]),je.fromArray(r[1]),dt.fromArray(r[2]),fe.sub(zn,je,dn),fe.sub(Gn,dt,je);var n=zn.len(),a=Gn.len();if(!(n<.001||a<.001)){zn.scale(1/n),Gn.scale(1/a);var i=zn.dot(e),o=Math.cos(t);if(i<o){var s=$h(je.x,je.y,dt.x,dt.y,dn.x,dn.y,qh,!1);or.fromArray(qh);var l=Math.PI/2,u=Math.acos(Gn.dot(e)),f=l+u-t;if(f>=l)fe.copy(or,dt);else{or.scaleAndAdd(Gn,s/Math.tan(Math.PI/2-f));var v=dt.x!==je.x?(or.x-je.x)/(dt.x-je.x):(or.y-je.y)/(dt.y-je.y);if(isNaN(v))return;v<0?fe.copy(or,je):v>1&&fe.copy(or,dt)}or.toArray(r[1])}}}}function V0(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function MW(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=na(n[0],n[1]),i=na(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=iu([],n[1],n[0],o/a),l=iu([],n[1],n[2],o/i),u=iu([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function z0(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<Lu.length;l++){var u=Lu[l],f=e[u],v=u==="normal";if(f){var c=f.get("show"),h=v?s:Q(a.states[u]&&a.states[u].ignore,s);if(h||!Q(c,o)){var d=v?n:n&&n.states[u];d&&(d.ignore=!0),n&&V0(n,!0,u,f);continue}n||(n=new Ot,r.setTextGuideLine(n),!v&&(s||!o)&&V0(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),V0(n,!1,u,f)}}if(n){ue(n.style,t),n.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=MW}}function G0(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<nr.length;n++){var a=nr[n];t[a]=r.getModel([a,e])}return t}var jD=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],DW=1,Kh=2,JD=DW|Kh;function jh(r,e,t){t=t||JD,e?r.dirty|=t:r.dirty&=~t}function QD(r,e){return e=e||JD,r.dirty==null||!!(r.dirty&e)}function Fn(r){if(r)return QD(r)&&eI(r,r.label,r),r}function eI(r,e,t){var n=e.getComputedTransform();r.transform=Ky(r.transform,n);var a=r.localRect=Gu(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=$s.textMargin);for(var v=0;v<4;v++)F0[v]=f===$s.minMargin&&l&&l[v]!=null?l[v]:s&&s[v]!=null?s[v]:o?o[v]:0;f===$s.textMargin&&so(a,F0,!1,!1);var c=r.rect=Gu(r.rect,a);return n&&c.applyTransform(n),f===$s.minMargin&&so(c,F0,!1,!1),r.axisAligned=qy(n),(r.label=r.label||{}).ignore=e.ignore,jh(r,!1),jh(r,!0,Kh),r}var F0=[0,0,0,0];function IW(r,e,t){return r.transform=Ky(r.transform,t),r.localRect=Gu(r.localRect,e),r.rect=Gu(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=qy(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function H0(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 n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function W0(r,e){for(var t=0;t<jD.length;t++){var n=jD[t];r[n]==null&&(r[n]=e[n])}return Fn(r)}function tI(r){var e=r.obb;return(!e||QD(r,Kh))&&(r.obb=e=e||new kT,e.fromBoundingRect(r.localRect,r.transform),jh(r,!1,Kh)),e}function U0(r,e,t,n,a){var i=r.length,o=pe[e],s=st[e];if(i<2)return!1;r.sort(function(T,M){return T.rect[o]-M.rect[o]});for(var l=0,u,f=!1,v=0,c=0;c<i;c++){var h=r[c],d=h.rect;u=d[o]-l,u<0&&(d[o]-=u,h.label[o]-=u,f=!0);var p=Math.max(-u,0);v+=p,l=d[o]+d[s]}v>0&&a&&b(-v/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),x(m,_,1),x(_,m,-1),S(),m<0&&C(-m),_<0&&C(_);function S(){m=g.rect[o]-t,_=n-y.rect[o]-y.rect[s]}function x(T,M,D){if(T<0){var L=Math.min(M,-T);if(L>0){b(L*D,0,i);var I=L+T;I<0&&w(-I*D,1)}else w(-T*D,1)}}function b(T,M,D){T!==0&&(f=!0);for(var L=M;L<D;L++){var I=r[L],P=I.rect;P[o]+=T,I.label[o]+=T}}function w(T,M){for(var D=[],L=0,I=1;I<i;I++){var P=r[I-1].rect,E=Math.max(r[I].rect[o]-P[o]-P[s],0);D.push(E),L+=E}if(L){var R=Math.min(Math.abs(T)/L,M);if(T>0)for(var I=0;I<i-1;I++){var O=D[I]*R;b(O,0,I+1)}else for(var I=i-1;I>0;I--){var O=D[I-1]*R;b(-O,I,i)}}}function C(T){var M=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(i-1)),L=0;L<i-1;L++)if(M>0?b(D,0,L+1):b(-D,i-L-1,i),T-=D,T<=0)return}return f}function LW(r){for(var e=0;e<r.length;e++){var t=r[e],n=t.defaultAttr,a=t.labelLine;t.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function rI(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 n=0;n<r.length;n++){var a=Fn(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(Jh(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(a)}}}function Jh(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:tI(r).intersect(tI(e),t,n)}function PW(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function RW(r,e){var t=r.label,n=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:PW(n&&n.shape.points)}}var nI=["align","verticalAlign","width","height","fontSize"],sr=new _n,Y0=Se(),EW=Se();function Qh(r,e,t){for(var n=0;n<t.length;n++){var a=t[n];e[a]!=null&&(r[a]=e[a])}}var ed=["x","y","rotation"],kW=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();se.applyTransform(f,f,u),u?sr.setLocalTransform(u):(sr.x=sr.y=sr.rotation=sr.originX=sr.originY=0,sr.scaleX=sr.scaleY=1),sr.rotation=br(sr.rotation);var v=a.__hostTarget,c;if(v){c=v.getBoundingRect().plain();var h=v.getComputedTransform();se.applyTransform(c,c,h)}var d=c&&v.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:sr.x,y:sr.y,scaleX:sr.scaleX,scaleY:sr.scaleY,rotation:sr.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 n=e.__model,a=n.get("labelLayout");(ne(a)||Ae(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ve(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function a(_,S){return function(){qD(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;ne(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(RW(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*v:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=q(f.x,t),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=q(f.y,n),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),c=!1)}var d=Y0(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<nI.length;p++){var g=nI[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),a=[];A(this._labelList,function(l){l.defaultAttr.ignore||a.push(W0({},l))});var i=Ve(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ve(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});U0(i,0,0,t),U0(o,1,0,n);var s=Ve(a,function(l){return l.layoutOption.hideOverlap});LW(s),rI(s)},r.prototype.processLabelsOverall=function(){var e=this;A(this._chartViewList,function(t){var n=t.__model,a=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Y0(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),a=ve(e),i=a.dataIndex;if(n&&i!=null){var o=t.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var v=s.getModel("labelLine");z0(e,G0(s),l),qD(e,v)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Hs(e))){var i=Y0(n),o=i.oldLayout,s=ve(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=t.getData(s.dataType);if(o){n.attr(o);var c=e.prevStates;c&&(ge(c,"select")>=0&&n.attr(i.oldLayoutSelect),ge(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Oe(n,u,t,l)}else if(n.attr(u),!Zs(n).valueAnimation){var v=Q(n.style.opacity,1);n.style.opacity=0,Ke(n,{style:{opacity:v}},t,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};Qh(h,u,ed),Qh(h,n.states.select,ed)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};Qh(d,u,ed),Qh(d,n.states.emphasis,ed)}rC(n,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var i=EW(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Oe(a,{shape:p},t)):(a.setShape(p),a.style.strokePercent=0,Ke(a,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),X0=Se();function OW(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=X0(t).labelManager;a||(a=X0(t).labelManager=new kW),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=X0(t).labelManager;A(n.updatedSeries,function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var Z0=Math.sin,$0=Math.cos,aI=Math.PI,No=Math.PI*2,NW=180/aI,iI=(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,n,a,i,o){this._add("C",e,t,n,a,i,o)},r.prototype.quadraticCurveTo=function(e,t,n,a){this._add("Q",e,t,n,a)},r.prototype.arc=function(e,t,n,a,i,o){this.ellipse(e,t,n,n,0,a,i,o)},r.prototype.ellipse=function(e,t,n,a,i,o,s,l){var u=s-o,f=!l,v=Math.abs(u),c=Ua(v-No)||(f?u>=No:-u>=No),h=u>0?u%No:u%No+No,d=!1;c?d=!0:Ua(v)?d=!1:d=h>=aI==!!f;var p=e+n*$0(o),g=t+a*Z0(o);this._start&&this._add("M",p,g);var y=Math.round(i*NW);if(c){var m=1/this._p,_=(f?1:-1)*(No-m);this._add("A",n,a,y,1,+f,e+n*$0(o+_),t+a*Z0(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=e+n*$0(s),x=t+a*Z0(s);this._add("A",n,a,y,+d,+f,S,x)}},r.prototype.rect=function(e,t,n,a){this._add("M",e,t),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,a,i,o,s,l,u){for(var f=[],v=this._p,c=1;c<arguments.length;c++){var h=arguments[c];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*v)/v)}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})(),Tf="none",BW=Math.round;function VW(r){var e=r.fill;return e!=null&&e!==Tf}function zW(r){var e=r.stroke;return e!=null&&e!==Tf}var q0=["lineCap","miterLimit","lineJoin"],GW=U(q0,function(r){return"stroke-"+r.toLowerCase()});function FW(r,e,t,n){var a=e.opacity==null?1:e.opacity;if(t instanceof Dt){r("opacity",a);return}if(VW(e)){var i=yu(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;(n||o<1)&&r("fill-opacity",o)}else r("fill",Tf);if(zW(e)){var s=yu(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,v=e.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||v)&&r("paint-order",v?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),e.lineDash){var c=Zm(t),h=c[0],d=c[1];h&&(d=BW(d||0),r("stroke-dasharray",h.join(",")),(d||n)&&r("stroke-dashoffset",d))}else n&&r("stroke-dasharray",Tf);for(var p=0;p<q0.length;p++){var g=q0[p];if(n||e[g]!==xc[g]){var y=e[g]||xc[g];y&&r(GW[p],y)}}}else n&&r("stroke",Tf)}var oI="http://www.w3.org/2000/svg",sI="http://www.w3.org/1999/xlink",HW="http://www.w3.org/2000/xmlns/",WW="http://www.w3.org/XML/1998/namespace",lI="ecmeta_";function uI(r){return document.createElementNS(oI,r)}function Lt(r,e,t,n,a){return{tag:r,attrs:t||{},children:n,text:a,key:e}}function UW(r,e){var t=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function YW(r){return"</"+r+">"}function K0(r,e){e=e||{};var t=e.newline?`
43
+ `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return UW(o,s)+(o!=="style"?Gt(l):l||"")+(i?""+t+U(i,function(u){return n(u)}).join(t)+t:"")+YW(o)}return n(r)}function XW(r,e,t){t=t||{};var n=t.newline?`
44
+ `:"",a=" {"+n,i=n+"}",o=U(Ae(r),function(l){return l+a+U(Ae(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=U(Ae(e),function(l){return"@keyframes "+l+a+U(Ae(e[l]),function(u){return u+a+U(Ae(e[l][u]),function(f){var v=e[l][u][f];return f==="d"&&(v='path("'+v+'")'),f+":"+v+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function j0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function fI(r,e,t,n){return Lt("svg","root",{width:r,height:e,xmlns:oI,"xmlns:xlink":sI,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var ZW=0;function vI(){return ZW++}var cI={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"},Bo="transform-origin";function $W(r,e,t){var n=G({},r.shape);G(n,e),r.buildPath(t,n);var a=new iI;return a.reset(Lb(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function qW(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[Bo]=t+"px "+n+"px")}var KW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function hI(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function jW(r,e,t){var n=r.shape.paths,a={},i,o;if(A(n,function(l){var u=j0(t.zrId);u.animation=!0,td(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,c=Ae(f),h=c.length;if(h){o=c[h-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in v){var m=v[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=hI(a,t);return i.replace(o,s)}}function dI(r){return $(r)?cI[r]?"cubic-bezier("+cI[r]+")":gg(r)?r:"":""}function td(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof Nu){var s=jW(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],v=[f.getMaxTime()/1e3+"s"],c=dI(f.getClip().easing),h=f.getDelay();c?v.push(c):v.push("linear"),h&&v.push(h/1e3+"s"),f.getLoop()&&v.push("infinite");var d=v.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,x={},b={},w={},C="animation-timing-function";function T(ce,te,me){for(var re=ce.getTracks(),he=ce.getMaxTime(),Ze=0;Ze<re.length;Ze++){var ke=re[Ze];if(ke.needsAnimate()){var He=ke.keyframes,$e=ke.propName;if(me&&($e=me($e)),$e)for(var yt=0;yt<He.length;yt++){var Ir=He[yt],gr=Math.round(Ir.time/he*100)+"%",vs=dI(Ir.easing),Kl=Ir.rawValue;($(Kl)||Re(Kl))&&(te[gr]=te[gr]||{},te[gr][$e]=Ir.rawValue,vs&&(te[gr][C]=vs))}}}}for(var M=0;M<S;M++){var D=_[M],L=D.targetName;L?L==="shape"&&T(D,b):!n&&T(D,x)}for(var I in x){var P={};Sn(P,r),G(P,x[I]);var E=Pb(P),R=x[I][C];w[I]=E?{transform:E}:{},qW(w[I],P),R&&(w[I][C]=R)}var O,k=!0;for(var I in b){w[I]=w[I]||{};var V=!O,R=b[I][C];V&&(O=new Pn);var z=O.len();O.reset(),w[I].d=$W(r,b[I],O);var F=O.len();if(!V&&z!==F){k=!1;break}R&&(w[I][C]=R)}if(!k)for(var I in w)delete w[I].d;if(!n)for(var M=0;M<S;M++){var D=_[M],L=D.targetName;L==="style"&&T(D,w,function(re){return KW[re]})}for(var Y=Ae(w),Z=!0,X,M=1;M<Y.length;M++){var ee=Y[M-1],ye=Y[M];if(w[ee][Bo]!==w[ye][Bo]){Z=!1;break}X=w[ee][Bo]}if(Z&&X){for(var I in w)w[I][Bo]&&delete w[I][Bo];e[Bo]=X}if(Ve(Y,function(ce){return Ae(w[ce]).length>0}).length){var Be=hI(w,t);return Be+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+vI();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function JW(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};pI(n,e,t,!0)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){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&&(i=zv(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),pI(n,e,t,!0)}}function pI(r,e,t,n){var a=JSON.stringify(r),i=t.cssStyleCache[a];i||(i=t.zrId+"-cls-"+vI(),t.cssStyleCache[a]=i,t.cssNodes["."+i+(n?":hover":"")]=r),e.class=e.class?e.class+" "+i:i}var Cf=Math.round;function gI(r){return r&&$(r.src)}function yI(r){return r&&ne(r.toDataURL)}function J0(r,e,t,n){FW(function(a,i){var o=a==="fill"||a==="stroke";o&&Ib(i)?wI(e,r,a,n):o&&bg(i)?TI(t,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),iU(t,r,n)}function Q0(r,e){var t=jb(e);t&&(t.each(function(n,a){n!=null&&(r[(lI+a).toLowerCase()]=n+"")}),e.isSilent()&&(r[lI+"silent"]="true"))}function mI(r){return Ua(r[0]-1)&&Ua(r[1])&&Ua(r[2])&&Ua(r[3]-1)}function QW(r){return Ua(r[4])&&Ua(r[5])}function e_(r,e,t){if(e&&!(QW(e)&&mI(e))){var n=t?10:1e4;r.transform=mI(e)?"translate("+Cf(e[4]*n)/n+" "+Cf(e[5]*n)/n+")":QB(e)}}function _I(r,e,t){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(Cf(n[i][0]*t)/t),a.push(Cf(n[i][1]*t)/t);e.points=a.join(" ")}function SI(r){return!r.smooth}function eU(r){var e=U(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(n[o[1]]=Cf(s*a)/a)}}}var tU={circle:[eU(["cx","cy","r"])],polyline:[_I,SI],polygon:[_I,SI]};function rU(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function xI(r,e){var t=r.style,n=r.shape,a=tU[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&Lb(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&rU(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var v=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;v&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var h=c.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new iI),p.reset(u),c.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=p.getStr()}return e_(i,r.transform),J0(i,t,r,e),Q0(i,r),e.animation&&td(r,i,e),e.emphasis&&JW(r,i,e),Lt(s,r.id+"",i)}function nU(r,e){var t=r.style,n=t.image;if(n&&!$(n)&&(gI(n)?n=n.src:yI(n)&&(n=n.toDataURL())),!!n){var a=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),e_(l,r.transform),J0(l,t,r,e),Q0(l,r),e.animation&&td(r,l,e),Lt("image",r.id+"",l)}}function aU(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var a=t.font||ea,i=t.x||0,o=tV(t.y||0,xu(a),t.textBaseline),s=eV[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Zw(t)){var u="",f=t.fontStyle,v=Yw(t.fontSize);if(!parseFloat(v))return;var c=t.fontFamily||Ox,h=t.fontWeight;u+="font-size:"+v+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),e_(l,r.transform),J0(l,t,r,e),Q0(l,r),e.animation&&td(r,l,e),Lt("text",r.id+"",l,void 0,n)}}function bI(r,e){if(r instanceof Me)return xI(r,e);if(r instanceof Dt)return nU(r,e);if(r instanceof Rs)return aU(r,e)}function iU(r,e,t){var n=r.style;if(rV(n)){var a=nV(r),i=t.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,v=n.shadowOffsetY||0,c=n.shadowBlur,h=yu(n.shadowColor),d=h.opacity,p=h.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Lt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Lt("feDropShadow","",{dx:f/l,dy:v/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}e.filter=Hv(o)}}function wI(r,e,t,n){var a=r[t],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Mb(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(Db(a))i="radialGradient",o.cx=Q(a.x,.5),o.cy=Q(a.y,.5),o.r=Q(a.r,.5);else{Lr("Illegal gradient type.");return}for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var v=xg(s[u].offset)*100+"%",c=s[u].color,h=yu(c),d=h.color,p=h.opacity,g={offset:v};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Lt("stop",u+"",g))}var y=Lt(i,"",o,l),m=K0(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=Lt(i,S,o,l)),e[t]=Hv(S)}function TI(r,e,t,n){var a=r.style[t],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",v;if(Ab(a)){var c=a.imageWidth,h=a.imageHeight,d=void 0,p=a.image;if($(p)?d=p:gI(p)?d=p.src:yI(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";W(c,g),W(h,g)}else if(c==null||h==null){var y=function(M,D){if(M){var L=M.elm,I=c||D.width,P=h||D.height;M.tag==="pattern"&&(u?(P=1,I/=i.width):f&&(I=1,P/=i.height)),M.attrs.width=I,M.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},m=iy(d,null,r,function(M){l||y(b,M),y(v,M)});m&&m.width&&m.height&&(c=c||m.width,h=h||m.height)}v=Lt("image","img",{href:d,width:c,height:h}),o.width=c,o.height=h}else a.svgElement&&(v=ae(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(v){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var x=Pb(a);x&&(o.patternTransform=x);var b=Lt("pattern","",o,[v]),w=K0(b),C=n.patternCache,T=C[w];T||(T=n.zrId+"-p"+n.patternIdx++,C[w]=T,o.id=T,b=n.defs[T]=Lt("pattern",T,o,[v])),e[t]=Hv(T)}}function oU(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=Lt("clipPath",i,o,[xI(r,t)])}e["clip-path"]=Hv(i)}function CI(r){return document.createTextNode(r)}function Vo(r,e,t){r.insertBefore(e,t)}function AI(r,e){r.removeChild(e)}function MI(r,e){r.appendChild(e)}function DI(r){return r.parentNode}function II(r){return r.nextSibling}function t_(r,e){r.textContent=e}var LI=58,sU=120,lU=Lt("","");function r_(r){return r===void 0}function Hn(r){return r!==void 0}function uU(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(n[i]!=null&&console.error("Duplicate key "+i),n[i]=a)}return n}function Af(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function Mf(r){var e,t=r.children,n=r.tag;if(Hn(n)){var a=r.elm=uI(n);if(n_(lU,r),H(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&MI(a,Mf(i))}else Hn(r.text)&&!ie(r.text)&&MI(a,CI(r.text))}else r.elm=CI(r.text);return r.elm}function PI(r,e,t,n,a){for(;n<=a;++n){var i=t[n];i!=null&&Vo(r,Mf(i),e)}}function rd(r,e,t,n){for(;t<=n;++t){var a=e[t];if(a!=null)if(Hn(a.tag)){var i=DI(a.elm);AI(i,a.elm)}else AI(r,a.elm)}}function n_(r,e){var t,n=e.elm,a=r&&r.attrs||{},i=e.attrs||{};if(a!==i){for(t in i){var o=i[t],s=a[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==sU?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(HW,t,o):t.charCodeAt(3)===LI?n.setAttributeNS(WW,t,o):t.charCodeAt(5)===LI?n.setAttributeNS(sI,t,o):n.setAttribute(t,o))}for(t in a)t in i||n.removeAttribute(t)}}function fU(r,e,t){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],f=t[l],v,c,h,d;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=t[++a]:f==null?f=t[--l]:Af(o,u)?(wl(o,u),o=e[++n],u=t[++a]):Af(s,f)?(wl(s,f),s=e[--i],f=t[--l]):Af(o,f)?(wl(o,f),Vo(r,o.elm,II(s.elm)),o=e[++n],f=t[--l]):Af(s,u)?(wl(s,u),Vo(r,s.elm,o.elm),s=e[--i],u=t[++a]):(r_(v)&&(v=uU(e,n,i)),c=v[u.key],r_(c)?Vo(r,Mf(u),o.elm):(h=e[c],h.tag!==u.tag?Vo(r,Mf(u),o.elm):(wl(h,u),e[c]=void 0,Vo(r,h.elm,o.elm))),u=t[++a]);(n<=i||a<=l)&&(n>i?(d=t[l+1]==null?null:t[l+1].elm,PI(r,d,t,a,l)):rd(r,e,n,i))}function wl(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(n_(r,e),r_(e.text)?Hn(n)&&Hn(a)?n!==a&&fU(t,n,a):Hn(a)?(Hn(r.text)&&t_(t,""),PI(t,null,a,0,a.length-1)):Hn(n)?rd(t,n,0,n.length-1):Hn(r.text)&&t_(t,""):r.text!==e.text&&(Hn(n)&&rd(t,n,0,n.length-1),t_(t,e.text)))}function vU(r,e){if(Af(r,e))wl(r,e);else{var t=r.elm,n=DI(t);Mf(e),n!==null&&(Vo(n,e.elm,II(t)),rd(n,[r],0,0))}return e}var cU=0,hU=(function(){function r(e,t,n){if(this.type="svg",this.configLayer=dU("configLayer"),this.storage=t,this._opts=n=G({},n),this.root=e,this._id="zr"+cU++,this._oldVNode=fI(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=uI("svg");n_(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.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",vU(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return bI(e,j0(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=j0(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=pU(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=Lt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=U(Ae(i.defs),function(c){return i.defs[c]});if(u.length&&o.push(Lt("defs","defs",{},u)),e.animation){var f=XW(i.cssNodes,i.cssAnims,{newline:!0});if(f){var v=Lt("style","stl",{},[],f);o.push(v)}}return fI(n,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},K0(this.renderToVNode({animation:Q(e.cssAnimation,!0),emphasis:Q(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Q(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,n){for(var a=e.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var v=e[f];if(!v.invisible){var c=v.__clipPaths,h=c&&c.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(c&&l&&c[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<h;y++){var m={};oU(c[y],m,t);var _=Lt("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=c;var S=bI(v,t);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(e,t){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),a&&i&&(i.style.display="none",e=ol(a,0,n),t=ol(a,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(bg(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(),n="data:image/svg+xml;";return e?(t=iV(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r})();function dU(r){return function(){Lr('In SVG mode painter not support method "'+r+'"')}}function pU(r,e,t,n){var a;if(t&&t!=="none")if(a=Lt("rect","bg",{width:r,height:e,x:"0",y:"0"}),Ib(t))wI({fill:t},a.attrs,"fill",n);else if(bg(t))TI({style:{fill:t},dirty:at,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",n);else{var i=yu(t),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function gU(r){r.registerPainter("svg",hU)}function RI(r,e,t){var n=Tt.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}function a_(r){return!r.__cursors.get(OT)}function EI(r){var e=r.__cursors.get(OT);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var kI=(function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=Oc,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var o;a=a||qv,typeof t=="string"?o=RI(t,n,a):ie(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(qp(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.afterBrush=function(){this.__prevIdx=EI(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=RI("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new se(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var x=new se(0,0,0,0);x.copy(S),o.push(x)}else{for(var b=!1,w=1/0,C=0,T=0;T<o.length;++T){var M=o[T];if(M.intersect(S)){var D=new se(0,0,0,0);D.copy(M),D.union(S),o[T]=D,b=!0;break}else if(l){u.copy(S),u.union(M);var L=S.width*S.height,I=M.width*M.height,P=u.width*u.height,E=P-L-I;E<w&&(w=E,C=T)}}if(l&&(o[C].union(S),b=!0),!b){var x=new se(0,0,0,0);x.copy(S),o.push(x)}l||(l=o.length>=s)}}for(var v=EI(this),c=v.startIdx;c<v.endIdx;++c){var h=t[c];if(h){var d=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&fr||!d)?h.getPrevPaintRect():null;p&&f(p);var g=d&&(h.__dirty&fr||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var y=this.__prevIdx,c=y.startIdx;c<y.endIdx;++c){var h=n[c],d=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}var m;do{m=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var _=c+1;_<o.length;)o[c].intersect(o[_])?(m=!0,o[c].union(o[_]),o.splice(_,1)):_++;c++}}while(m);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,v=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/v,l/v));var h=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(Jl(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||Xm(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else Fx(n)&&(n.scaleX=n.scaleX||v,n.scaleY=n.scaleY||v,_=$m(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&A(a,function(p){d(p.x*v,p.y*v,p.width*v,p.height*v)})},e})(Rr),OI=1e5,zo=314159,i_=void 0,yU=1,o_=2;function mU(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function _U(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 NI(r,e,t,n){var a=new kI(r,e,e.dpr);return a.zlevel=t,a.zlevel2=n,a.__builtin__=!0,BI(a),a}function BI(r){r.__cursorStack=[],r.__cursors=K()}function SU(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function xU(r,e){var t=r.__cursors,n=+e;return t.get(n)||(r.__cursorStack.push(n),t.set(n,SU({key:n})))}function nd(r,e){for(var t=r.__cursorStack,n=0;n<t.length;n++)e(r.__cursors.get(t[n]))}function s_(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function er(r,e,t){for(var n=r.layerStack,a=0;a<n.length;a++){var i=n[a].zl,o=n[a].zl2,s=r.layers[i][o];(!t||(!(t&Df)||s.__builtin__)&&(!(t&l_)||!s.__builtin__)&&(!(t&VI)||s!==r.hoverlayer))&&e(s,i,o,a)}}var Df=1,l_=2,VI=4,ad=Df|VI,bU=(function(){function r(e,t,n,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||qv,this._singleCanvas=i,this.root=e;var o=e.style;if(o&&(qp(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],i){var l=e,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var v=NI(l,this,zo,Oc);v.initContext(),this._insertLayer(v,zo,Oc,!0),this._domRoot=e}else{this._width=ol(e,0,n),this._height=ol(e,1,n);var s=this._domRoot=_U(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&&!ie(e)?t={paintAll:!!e}:t=e||{};var n=Q(t.refresh,!0),a=Q(t.refreshHover,!1);if(a&&(this._hoverLayerDirty=o_),!n)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(i,o,this._redrawId);var s=this._backgroundColor;return er(this._i,function(l,u,f,v){l.refresh&&l.refresh(v===0?s:null)},l_),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=i_,n!==i_&&(!t&&n===o_&&(t=this._i.hoverlayer=this._ensureLayer(OI)),!!t)){t.clear();for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){i||(i=t.ctx,i.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Mo(i,l,a),u&&(l.style=f)}}i&&(sl(i,a),i.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(OI)},r.prototype.paintOne=function(e,t){qm(e,t)},r.prototype._paintList=function(e,t,n){if(this._redrawId===n){var a=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),a)er(this._i,function(o){o.afterBrush&&o.afterBrush()},ad),this._paintHoverList(e);else{var i=this;dg(function(){i._paintList(e,t,n)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(zo).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),er(this._i,function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)},Df)},r.prototype._doPaintList=function(e,t){var n=this,a=!0;return er(this._i,function(i){var o=!1;if(nd(i,function(v){(v.drawIdx<v.endIdx||v.notClearIdx>=0)&&(o=!0)}),!(!o&&!i.__dirty)){var s=n._opts.useDirtyRect&&!a_(i)?i.createRepaintRects(e,t,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(i.__dirty){u=!1,i.__dirty=!1;var f=i.zlevel===l.zl&&i.zlevel2===l.zl2?n._backgroundColor:null;i.clear(!1,f,s)}nd(i,function(v){var c=n._paintPerCursor(i,v,e,s,u);a=a&&c})}},ad),Ie.wxa&&er(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),a},r.prototype._paintPerCursor=function(e,t,n,a,i){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,n,u,i),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,n,null,i),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,n,a,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=e.ctx,l=a_(e),u=l&&Tt.getTime(),f=t.drawIdx,v=t.notClearIdx,c=v>=0?Math.min(v,f):f;c<t.endIdx;c++){var h=n[c];if(!(c<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=o_),a!=null){var d=h.getPaintRect();d&&d.intersect(a)&&(Mo(s,h,o),h.setPrevPaintRect(d))}else Mo(s,h,o);if(l){var p=Tt.getTime()-u;if(p>15){c++;break}}}}sl(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,n){t=t||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(e=zo,t=0);var i=s_(this._i,e)[t];return i||(i=NI("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&_e(i,this._layerConfig[e],!0),(n||a&&e!==zo)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,n,a){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if(o[t]&&o[t][n]){Lr("ZLevel "+t+"."+n+" has been used already");return}if(!mU(e)){Lr("Layer of zlevel "+t+" is not valid");return}for(var f=s.length,v=0;v<f&&(s[v].zl<t||s[v].zl===t&&s[v].zl2<n);)v++;if(v>0&&(u=s_(i,s[v-1].zl)[s[v-1].zl2]),s.splice(v,0,{zl:t,zl2:n}),s_(i,t)[n]=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 er(this._i,function(n,a){e.call(t,n,a)})},r.prototype.eachBuiltinLayer=function(e,t){return er(this._i,function(n,a){e.call(t,n,a)},Df)},r.prototype.eachOtherLayer=function(e,t){return er(this._i,function(n,a){e.call(t,n,a)},l_)},r.prototype.getLayers=function(){var e={};return er(this._i,function(t,n,a){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var a=1;a<e.length;a++){var i=e[a];if(i.zlevel!==e[a-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}er(n._i,function(g){g.__dirty=!1,nd(g,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},ad);for(var o,s=null,l=null,u=!1,f=0,v=e.length;f<v;f++){var i=e[f],c=i.zlevel,h=i.incremental,d=void 0;if(o!==c&&(o=c,u=!1),h?(u=!0,d=K5):d=u?q5:Oc,(!s||c!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(c,d),l=null,!s.__builtin__)){Lr("ZLevel "+c+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=xU(s,h),!l.used))if(l.used=!0,!t&&l.first===i.id){var p=f-l.startIdx;l.startIdx=f,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=i.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,i.__dirty&fr&&!i.__inHover&&((!h||!i.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&i.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}er(n._i,function(g){for(var y=g.__cursorStack,m=g.__cursors,_=y.length-1;_>=0;_--){var S=m.get(y[_]);if(!S.used)g.__dirty=!0,m.removeKey(y[_]),y.splice(_,1);else{var x=S.endIdxNew;(a_(g)?x<S.drawIdx:x!==S.endIdx||!x||e[x-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=x?e[x-1].id:NaN}}g.__dirty&&(nd(g,function(b){b.drawIdx=b.startIdx}),n._hoverLayerDirty===i_&&(n._hoverLayerDirty=yU))},ad)},r.prototype.clear=function(){return er(this._i,function(e){e.clear(),BI(e)},Df),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,er(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?_e(n[e],t,!0):n[e]=t,er(this._i,function(a,i){_e(a,n[i],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,a=t.length-1;a>=0;a--){var i=t[a];if(i.zl===e){var o=n[e][i.zl2];if(o.__builtin__)continue;if(t.splice(a,1),n[e][i.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 n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;e!=null&&(a.width=e),t!=null&&(a.height=t),e=ol(i,0,a),t=ol(i,1,a),n.style.display="",(this._width!==e||t!==this._height)&&(n.style.width=e+"px",n.style.height=t+"px",er(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(zo).resize(e,t)}return this},r.prototype.clearLayer=function(e){A(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[zo][0].dom;var t=new kI("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.dom.height;er(this._i,function(v){v.__builtin__?n.drawImage(v.dom,0,0,a,i):v.renderToCanvas&&(n.save(),v.renderToCanvas(n),n.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];Mo(n,f,o)}sl(n,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function wU(r){r.registerPainter("canvas",bU)}var TU=(function(r){N(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){var n=t.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar");return Bn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new le,a=ht("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=ht(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.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=B.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(We);function Tl(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=el(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(el(r,e,t[o]));return i.join(" ")}}function zI(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!H(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var If=(function(r){N(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o,s){this.removeAll();var l=ht(t,-1,-1,2,2,null,s);l.attr({z2:Q(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=CU,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(){ya(this.childAt(0))},e.prototype.downplay=function(){ma(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),f=o!==this._symbolType,v=i&&i.disableAnimation;if(f){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,u,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};v?h.attr(d):Oe(h,d,s,n),Gr(h)}if(this._updateCommon(t,n,l,a,i),f){var h=this.childAt(0);if(!v){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ke(h,d,s,n)}}v&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.hostModel,u,f,v,c,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,v=i.selectItemStyle,c=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=xt(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Co(t.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=t.getItemVisual(n,"style"),w=b.fill;if(s instanceof Dt){var C=s.style;s.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(G({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(n,"liftZ"),M=this._z2;T!=null?M==null&&(this._z2=s.z2,s.z2+=T):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;It(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:w,defaultOpacity:b.opacity});function L(E){return D?t.getName(E):Tl(t,E)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),tt(this,c,h,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=ve(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Qa(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Qa(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return il(t.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(t,n){return t.getItemVisual(n,"z2")},e})(le);function CU(r,e){this.parent.drift(r,e)}function id(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(t))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function GI(r){return r!=null&&!ie(r)&&(r={isIgnore:r}),r||{}}function FI(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:xt(e),cursorStyle:e.get("cursor")}}function HI(r,e,t,n,a,i,o){var s=new r(e,t,n,a);return s.setPosition(i),e.setItemGraphicEl(t,s),o.add(s),s}var Lf=(function(){function r(e){this.group=new le,this._SymbolCtor=e||If}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=GI(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=FI(e),u={disableAnimation:s},f=t.getSymbolPoint||function(v){return e.getItemLayout(v)};i||n.removeAll(),e.diff(i).add(function(v){var c=f(v);id(e,c,v,t)&&HI(o,e,v,l,u,c,n)}).update(function(v,c){var h=i.getItemGraphicEl(c),d=f(v);if(!id(e,d,v,t)){n.remove(h);return}var p=e.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,v,l,u),h.setPosition(d);else{h.updateData(e,v,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Oe(h,y,a)}n.add(h),e.setItemGraphicEl(v,h)}).remove(function(v){var c=i.getItemGraphicEl(v);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,a=t.getStore(),i=0,o=a.count();i<o;i++){var s=t.getItemGraphicEl(i),l=n._getSymbolPoint(i);id(t,l,i,e)?(s=s||HI(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),t.setItemGraphicEl(i,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=FI(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n,a){this._progressiveEls=[],a=GI(a);function i(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Ws)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(id(t,s,o,a)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){ei(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r})();function WI(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=AU(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,v=U(r.dimensions,function(d){return e.mapDimension(d)}),c=!1,h=e.getCalculationInfo("stackResultDimension");return Ta(e,v[0])&&(c=!0,v[0]=h),Ta(e,v[1])&&(c=!0,v[1]=h),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function AU(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:Re(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function UI(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function $r(r,e){return!isFinite(r)||!isFinite(e)}var MU=typeof Float32Array!==ks?Float32Array:void 0,DU=typeof Float64Array!==ks?Float64Array:void 0;function Wn(r){return u_({ctor:MU},r).arr}function u_(r,e){W(e!=null&&isFinite(e)&&e>=0&&r.hasOwnProperty("ctor"));var t=r.arr,n=r.ctor;if(e>Tu&&(e=Tu),!t||r.typed&&t.length<e){var a=void 0;if(n)try{a=new n(e),r.typed=!0,t&&a.set(t)}catch(s){Le(s)}if(!a&&(a=[],r.typed=!1,t))for(var i=0,o=t.length;i<o;i++)a[i]=t[i];r.arr=a}return r}function IU(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function LU(r,e,t,n,a,i,o,s){for(var l=IU(r,e),u=[],f=[],v=[],c=[],h=[],d=[],p=[],g=WI(a,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":b=S.idx*2,w=S.idx1*2;var C=y[b],T=y[b+1],M=m[w],D=m[w+1];(isNaN(C)||isNaN(T))&&(C=M,T=D),u.push(C,T),f.push(M,D),v.push(t[b],t[b+1]),c.push(n[w],n[w+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([e.get(I[0],L),e.get(I[1],L)]);w=L*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var E=UI(g,a,e,L);v.push(E[0],E[1]),c.push(n[w],n[w+1]),p.push(e.getRawIndex(L));break;case"-":x=!1}x&&(h.push(S),d.push(d.length))}d.sort(function(ee,ye){return p[ee]-p[ye]});for(var R=u.length,O=Wn(R),k=Wn(R),V=Wn(R),z=Wn(R),F=[],_=0;_<d.length;_++){var Y=d[_],Z=_*2,X=Y*2;O[Z]=u[X],O[Z+1]=u[X+1],k[Z]=f[X],k[Z+1]=f[X+1],V[Z]=v[X],V[Z+1]=v[X+1],z[Z]=c[X],z[Z+1]=c[X+1],F[_]=h[Y]}return{current:O,next:k,stackedOnCurrent:V,stackedOnNext:z,status:F}}var si=Math.min,li=Math.max;function f_(r,e,t,n,a,i,o,s,l){for(var u,f,v,c,h,d,p=t,g=0;g<n;g++){var y=e[p*2],m=e[p*2+1];if(p>=a||p<0)break;if($r(y,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](y,m),v=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var x=p+i,b=e[x*2],w=e[x*2+1];b===y&&w===m&&g<n;)g++,x+=i,p+=i,b=e[x*2],w=e[x*2+1],y=e[p*2],m=e[p*2+1],_=y-u,S=m-f;var C=g+1;if(l)for(;$r(b,w)&&C<n;)C++,x+=i,b=e[x*2],w=e[x*2+1];var T=.5,M=0,D=0,L=void 0,I=void 0;if(C>=n||$r(b,w))h=y,d=m;else{M=b-u,D=w-f;var P=y-u,E=b-y,R=m-f,O=w-m,k=void 0,V=void 0;if(s==="x"){k=Math.abs(P),V=Math.abs(E);var z=M>0?1:-1;h=y-z*k*o,d=m,L=y+z*V*o,I=m}else if(s==="y"){k=Math.abs(R),V=Math.abs(O);var F=D>0?1:-1;h=y,d=m-F*k*o,L=y,I=m+F*V*o}else k=Math.sqrt(P*P+R*R),V=Math.sqrt(E*E+O*O),T=V/(V+k),h=y-M*o*(1-T),d=m-D*o*(1-T),L=y+M*o*T,I=m+D*o*T,L=si(L,li(b,y)),I=si(I,li(w,m)),L=li(L,si(b,y)),I=li(I,si(w,m)),M=L-y,D=I-m,h=y-M*k/V,d=m-D*k/V,h=si(h,li(u,y)),d=si(d,li(f,m)),h=li(h,si(u,y)),d=li(d,si(f,m)),M=y-h,D=m-d,L=y+M*V/k,I=m+D*V/k}r.bezierCurveTo(v,c,h,d,y,m),v=L,c=I}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var YI=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),PU=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new YI},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&$r(a[o*2-2],a[o*2-1]);o--);for(;i<o&&$r(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=f_(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Pn.CMD,s,l,u=n==="x",f=[],v=0;v<i.length;){var c=i[v++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=i[v++],l=i[v++];break;case o.L:if(h=i[v++],d=i[v++],_=u?(t-s)/(h-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=d;break;case o.C:h=i[v++],d=i[v++],p=i[v++],g=i[v++],y=i[v++],m=i[v++];var x=u?Ov(s,h,p,y,t,f):Ov(l,d,g,m,t,f);if(x>0)for(var b=0;b<x;b++){var w=f[b];if(w<=1&&w>=0){var S=u?Mt(l,d,g,m,w):Mt(s,h,p,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e})(Me),RU=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(YI),XI=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new RU},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&$r(a[s*2-2],a[s*2-1]);s--);for(;o<s&&$r(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=f_(t,a,o,s,s,1,n.smooth,l,n.connectNulls);f_(t,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e})(Me);function ZI(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.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 v=new Ce({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),h=c.isHorizontal(),d=c.inverse;h?(d&&(v.shape.x+=l),v.shape.width=0):(d||(v.shape.y+=u),v.shape.height=0);var p=ne(a)?function(g){a(g,v)}:null;Ke(v,{shape:{width:l,height:u,x:o,y:s}},t,null,n,p)}return v}function $I(r,e,t){var n=r.getArea(),a=Ee(n.r0,1),i=Ee(n.r,1),o=new Ht({shape:{cx:Ee(r.cx,1),cy:Ee(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Ke(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function Go(r,e,t,n,a){if(r){if(r.type==="polar")return $I(r,e,t);if(r.type==="cartesian2d")return ZI(r,e,t,n,a)}else return null;return null}var Pf=0,Rf=1,Ef=2;function Cl(r,e,t){r?(W(t),e.setClipPath(t)):e.removeClipPath()}function qI(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Fo(r,e){return r.type===e}function KI(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}var jI={};function JI(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||J(r,"text")))}function QI(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},J(n,"text")&&(o.text=n.text),J(n,"rich")&&(o.rich=n.rich),J(n,"textFill")&&(o.fill=n.textFill),J(n,"textStroke")&&(o.stroke=n.textStroke),J(n,"fontFamily")&&(o.fontFamily=n.fontFamily),J(n,"fontSize")&&(o.fontSize=n.fontSize),J(n,"fontStyle")&&(o.fontStyle=n.fontStyle),J(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=J(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),J(n,"textPosition")&&(a.position=n.textPosition),J(n,"textOffset")&&(a.offset=n.textOffset),J(n,"textRotation")&&(a.rotation=n.textRotation),J(n,"textDistance")&&(a.distance=n.textDistance)}return eL(o,r),A(o.rich,function(l){eL(l,l)}),{textConfig:a,textContent:i}}function eL(r,e){e&&(e.font=e.textFont||e.font,J(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),J(e,"textAlign")&&(r.align=e.textAlign),J(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),J(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),J(e,"textWidth")&&(r.width=e.textWidth),J(e,"textHeight")&&(r.height=e.textHeight),J(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),J(e,"textPadding")&&(r.padding=e.textPadding),J(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),J(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),J(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),J(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),J(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),J(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),J(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function tL(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||B.color.neutral99;rL(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||B.color.neutral00,!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||B.color.neutral00),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,A(e.rich,function(s){rL(s,s)}),n}function rL(r,e){e&&(J(e,"fill")&&(r.textFill=e.fill),J(e,"stroke")&&(r.textStroke=e.fill),J(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),J(e,"font")&&(r.font=e.font),J(e,"fontStyle")&&(r.fontStyle=e.fontStyle),J(e,"fontWeight")&&(r.fontWeight=e.fontWeight),J(e,"fontSize")&&(r.fontSize=e.fontSize),J(e,"fontFamily")&&(r.fontFamily=e.fontFamily),J(e,"align")&&(r.textAlign=e.align),J(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),J(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),J(e,"width")&&(r.textWidth=e.width),J(e,"height")&&(r.textHeight=e.height),J(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),J(e,"padding")&&(r.textPadding=e.padding),J(e,"borderColor")&&(r.textBorderColor=e.borderColor),J(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),J(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),J(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),J(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),J(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),J(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),J(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),J(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),J(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),J(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function v_(r,e){var t=r+"^_^"+e;jI[t]||(console.warn('[ECharts] DEPRECATED: "'+r+'" has been deprecated. '+e),jI[t]=!0)}function nL(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function aL(r){for(var e=Ft(),t=Ft(),n=0;n<r.length;){var a=r[n++],i=r[n++];$r(a,i)||(ry(e,a),ry(t,i))}return[e,t]}function iL(r,e){var t=aL(r),n=t[0],a=t[1],i=aL(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(a[1]-s[1]))}function oL(r){return Re(r)?r:r?.5:0}function EU(r,e,t){if(t.valueDim==null)return[];for(var n=e.count(),a=Wn(n*2),i=0;i<n;i++){var o=UI(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function ui(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],v=[],c=[];if(a){for(l=0;l<r.length;l+=2){var h=e||r;$r(h[l],h[l+1])||c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(v[0]=r[l+2],v[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=v[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+v[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=v[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=v[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function kU(r,e){var t=[],n=r.length,a,i;function o(f,v,c){var h=f.coord,d=(c-h)/(v.coord-h),p=Sg(d,[f.color,v.color]);return{coord:c,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){i?t.push(o(i,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),i=l}return t}function OU(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(e.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!i){console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(a),u=U(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,v=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),v.reverse());var c=kU(u,a==="x"?t.getWidth():t.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?v[1]?v[1]:u[f-1].color:v[0]?v[0]:u[0].color;var d=10,p=c[0].coord-d,g=c[h-1].coord+d,y=g-p;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:h?c[h-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:v[0]||"transparent"});var m=new no(0,0,0,0,c,!0);return m[a]=p,m[a+"2"]=g,m}}function NU(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&BU(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){l.tick.offInterval||(s[ml(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function BU(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(If.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function VU(r){for(var e=r.length/2;e>0&&$r(r[e*2-2],r[e*2-1]);e--);return e-1}function sL(r,e){return[r[e*2],r[e*2+1]]}function zU(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!$r(o,r[u*2+1-a])){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function lL(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<nr.length;e++)if(r.get([nr[e],"endLabel","show"]))return!0;return!1}function c_(r,e,t,n){if(Fo(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=lL(n)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=ZI(e,t,n,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var v=f.shape,c=Math.max(v.width,v.height);u?(v.y-=c,v.height+=c*2):(v.x-=c,v.width+=c*2)}return l&&l(1,f),f}else return n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),$I(e,t,n)}function GU(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var FU=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new le,n=new Lf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=j(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],v=i.type==="polar",c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&t.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=WI(i,s,_),x=m&&EU(i,s,S),b=t.get("showSymbol"),w=t.get("connectNulls"),C=b&&!v&&NU(t,s,i),T=this._data;T&&T.eachItemGraphicEl(function(te,me){te.__temp&&(o.remove(te),T.setItemGraphicEl(me,null))}),b||h.remove(),o.add(g);var M=v?!1:t.get("step"),D;i&&i.getArea&&t.get("clip",!0)&&(D=i.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=OU(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===i.type&&M===this._step))b&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,D),M&&(x&&(x=ui(x,f,i,M,w)),f=ui(f,null,i,M,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,x):p&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,co(L)),g.setClipPath(c_(this,i,!0,t));else{m&&!p?p=this._newPolygon(f,x):p&&!m&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,co(L));var I=g.getClipPath();if(I){var P=c_(this,i,!1,t);Ke(I,{shape:P.shape},t)}else g.setClipPath(c_(this,i,!0,t));b&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),(!nL(this._stackedOnPoints,x)||!nL(this._points,f))&&(y?this._doUpdateAnimation(s,x,i,a,M,_,w):(M&&(x&&(x=ui(x,f,i,M,w)),f=ui(f,null,i,M,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:x})))}var E=t.getModel("emphasis"),R=E.get("focus"),O=E.get("blurScope"),k=E.get("disabled");if(d.useStyle(ue(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),St(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var V=d.getState("emphasis").style;V.lineWidth=+d.style.lineWidth+1}ve(d).seriesIndex=t.seriesIndex,tt(d,R,O,k);var z=oL(t.get("smooth")),F=t.get("smoothMonotone");if(d.setShape({smooth:z,smoothMonotone:F,connectNulls:w}),p){var Y=s.getCalculationInfo("stackedOnSeries"),Z=0;p.useStyle(ue(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(Z=oL(Y.get("smooth"))),p.setShape({smooth:z,stackedOnSmooth:Z,smoothMonotone:F,connectNulls:w}),St(p,t,"areaStyle"),ve(p).seriesIndex=t.seriesIndex,tt(p,R,O,k)}var X=this._changePolyState;s.eachItemGraphicEl(function(te){te&&(te.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=_;var ee=t.get("triggerEvent"),ye=t.get("triggerLineEvent");ye&&v_("triggerLineEvent","Use the `triggerEvent` option instead.");var Be=ye===!0||ee===!0||ee==="line",ce=ye===!0||ee===!0||ee==="area";this.packEventData(t,d,Be),p&&this.packEventData(t,p,ce)},e.prototype.packEventData=function(t,n,a){ve(n).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=Fi(o,i);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],v=l[s*2+1];if($r(f,v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var c=t.get("zlevel")||0,h=t.get("z")||0;u=new If(o,s),u.x=f,u.y=v,u.setZ(c,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Fe.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=Fi(o,i);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 Fe.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;Dc(this._polyline,t),n&&Dc(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new PU({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new XI({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");ne(f)&&(f=f(null));var v=u.get("animationDelay")||0,c=ne(v)?v(null):v;t.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,x=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=a;i?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var C=ne(v)?v(d):f*w+c,T=p.getSymbolPath(),M=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(lL(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 Pe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=VU(l);f>=0&&(It(s,xt(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(v,c,h){return h!=null?zI(o,h):Tl(o,v)},enableTextSetter:!0},GU(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",C=zU(v,S,w),T=C.range,M=T[1]-T[0],D=void 0;if(M>=1){if(M>1&&!h){var L=sL(v,T[0]);u.attr({x:L[0]+x,y:L[1]+b}),o&&(D=c.getRawValue(T[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+x,y:L[1]+b});var I=c.getRawValue(T[0]),P=c.getRawValue(T[1]);o&&(D=yw(a,d,I,P,C.t))}i.lastFrameIndex=T[0]}else{var E=t===1||i.lastFrameIndex>0?T[0]:0,L=sL(v,E);o&&(D=c.getRawValue(E)),u.attr({x:L[0]+x,y:L[1]+b})}if(o){var R=Zs(u);typeof R.setLabelText=="function"&&R.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,v=t.hostModel,c=LU(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(d=ui(c.stackedOnCurrent,c.current,a,o,l),h=ui(c.current,null,a,o,l),g=ui(c.stackedOnNext,c.next,a,o,l),p=ui(c.next,null,a,o,l)),iL(h,p)>3e3||f&&iL(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=h;var y={shape:{points:p}};c.current!==h&&(y.shape.__points=c.next),u.stopAnimation(),Oe(u,y,v),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Oe(f,{shape:{stackedOnPoints:g}},v),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var b=t.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,C=0;C<m.length;C++){var T=m[C].el,M=m[C].ptIdx*2;T.x=w[M],T.y=w[M+1],T.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Fe);function kf(r,e){return{seriesType:r,plan:wo(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(a){var s=U(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ta(n,s[0])&&(s[0]=u),Ta(n,s[1])&&(s[1]=u);var f=n.getStore(),v=n.getDimensionIndex(s[0]),c=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&Wn(p*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var b=f.get(v,_);x=a.dataToPoint(b,null,m)}else y[0]=f.get(v,_),y[1]=f.get(c,_),x=a.dataToPoint(y,null,m);o?(g[S++]=x[0],g[S++]=x[1]):d.setItemLayout(_,x.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var HU={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],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]}},WU=function(r){return Math.round(r.length/2)};function uL(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),v=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(v||1),h=Math.round(s/c);if(isFinite(h)&&h>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/h));var d=void 0;$(i)?d=HU[i]:ne(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,d,WU))}}}}}function UU(r){r.registerChartView(FU),r.registerSeriesModel(TU),r.registerLayout(kf("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,uL("line"))}var h_=(function(r){N(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"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 n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(Zr),d_=null;function YU(r){d_||(d_=r)}function Of(){return d_}var od="expandAxisBreak",fL="collapseAxisBreak",vL="toggleAxisBreak",p_="axisbreakchanged",XU={type:od,event:p_,update:"update",refineEvent:g_},ZU={type:fL,event:p_,update:"update",refineEvent:g_},$U={type:vL,event:p_,update:"update",refineEvent:g_};function g_(r,e,t,n){var a=[];return A(r,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function qU(r){r.registerAction(XU,e),r.registerAction(ZU,e),r.registerAction($U,e);function e(t,n){var a=[],i=Is(n,t);function o(s,l){A(i[s],function(u){var f=u.updateAxisBreaks(t);A(f.breaks,function(v){var c;a.push(ue((c={},c[l]=u.componentIndex,c),v))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var fi=Math.PI,KU=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],jU=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ho=Se(),cL=Se(),hL=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r})();function JU(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,l=m_(r.axisName)&&yl(r.nameLocation);A(n,function(d){var p=Fn(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?_r(Nf,g.transform):Ci(Nf),p.transform&&mr(Nf,Nf,p.transform),se.copy(sd,p.localRect),sd.applyTransform(Nf),s?s.union(sd):se.copy(s=new se(0,0,0,0),sd))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var v=a.getExtent(),c=Math.min(v[0],v[1]),h=Math.max(v[0],v[1])-c;s.union(new se(c,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Nf=Qe(),sd=new se(0,0,0,0),dL=function(r,e,t,n,a,i){if(yl(r.nameLocation)){var o=i.stOccupiedRect;o&&pL(IW({},o,i.transGroup.transform),n,a)}else gL(i.labelInfoList,i.dirVec,n,a)};function pL(r,e,t){var n=new fe;Jh(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&H0(e,n)}function gL(r,e,t,n){for(var a=fe.dot(n,e)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||pL(s,t,n)}}var lr=(function(){function r(e,t,n,a){this.group=new le,this._axisModel=e,this._api=t,this._local={},this._shared=a||new hL(dL),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){var t=this._shared.ensureRecord(this._axisModel).ready;W(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1;var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},a=Q(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=Q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Q(e.nameDirection,1),tickDirection:Q(e.tickDirection,1),labelDirection:Q(e.labelDirection,1),labelOffset:Q(e.labelOffset,0),silent:Q(e.silent,!0),axisName:a,nameLocation:$t(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:m_(a)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};W(o.position!=null),W(o.rotation!=null),this._cfg=o;var s=new le({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 fe(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(QU,function(a){e[a]&&eY[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var a=Zg(t-e),i,o;return zi(a)?(o=n>0?"top":"bottom",i="center"):zi(a-fi)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<fi?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,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})(),QU=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],eY={axisLine:function(r,e,t,n,a,i,o){var s=t.ensureRecord(n).ready;W(!s.axisLine),s.axisLine=!0;var l=n.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var u=n.axis.getExtent(),f=i.transform,v=[u[0],0],c=[u[1],0],h=v[0]>c[0];f&&(it(v,v,f),it(c,c,f));var d=G({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&vo(n.axis.scale))Of().buildAxisBreakLine(n,a,i,p);else{var g=new ft(G({shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]}},p));Ys(g.shape,g.style.lineWidth),g.anid="line",a.add(g)}var y=n.get(["axisLine","symbol"]);if(y!=null){var m=n.get(["axisLine","symbolSize"]);$(y)&&(y=[y,y]),($(m)||Re(m))&&(m=[m,m]);var _=Co(n.get(["axisLine","symbolOffset"])||0,m),S=m[0],x=m[1];A([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((v[0]-c[0])*(v[0]-c[0])+(v[1]-c[1])*(v[1]-c[1]))}],function(b,w){if(y[w]!=="none"&&y[w]!=null){var C=ht(y[w],-S/2,-x/2,S,x,d.stroke,!0),T=b.r+b.offset,M=h?c:v;C.attr({rotation:b.rotate,x:M[0]+T*Math.cos(r.rotation),y:M[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),a.add(C)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){var l=t.ensureRecord(n).ready;W(!l.axisTickLabelDetermine),l.axisTickLabelEstimate=!0;var u=_L(e,a,s);u&&yL(r,e,t,n,a,i,o,cn.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){var l=t.ensureRecord(n).ready;l.axisTickLabelDetermine=!0;var u=_L(e,a,s);u&&yL(r,e,t,n,a,i,o,cn.determine);var f=aY(r,a,i,n);nY(r,e.labelLayoutList,f),iY(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var l=t.ensureRecord(n),u=l.ready;W(u.axisTickLabelEstimate||u.axisTickLabelDetermine),u.axisName=!0,e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=r.axisName;if(m_(f)){var v=r.nameLocation,c=r.nameDirection,h=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,p=n.axis.getExtent(),g=n.axis.inverse?-1:1,y=new fe(0,0),m=new fe(0,0);v==="start"?(y.x=p[0]-g*d,m.x=-g):v==="end"?(y.x=p[1]+g*d,m.x=g):(y.x=(p[0]+p[1])/2,y.y=r.labelOffset+c*d,m.y=c);var _=Qe();m.transform(sa(_,_,r.rotation));var S=n.get("nameRotate");S!=null&&(S=S*fi/180);var x,b;yl(v)?x=lr.innerTextLayout(r.rotation,S??r.rotation,c):(x=tY(r.rotation,v,S||0,p),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(x.rotation)),!isFinite(b)&&(b=null)));var w=h.getFont(),C=n.get("nameTruncate",!0)||{},T=C.ellipsis,M=At(r.raw.nameTruncateMaxWidth,C.maxWidth,b),D=s.nameMarginLevel||0,L=new Pe({x:y.x,y:y.y,rotation:x.rotation,silent:lr.isLabelSilent(n),style:Ye(h,{text:f,font:w,overflow:"truncate",width:M,ellipsis:T,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||x.textAlign,verticalAlign:h.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(Sa({el:L,componentModel:n,itemName:f}),L.__fullText=f,L.anid="name",n.get("triggerEvent")){var I=lr.makeAxisEventDataBase(n);I.targetType="axisName",I.name=f,ve(L).eventData=I}i.add(L),L.updateTransform(),e.nameEl=L;var P=l.nameLayout=Fn({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:yl(v)?KU[D]:jU[D]});if(l.nameLocation=v,a.add(L),L.decomposeTransform(),r.shouldNameMoveOverlap&&P){var E=t.ensureRecord(n);W(E.labelInfoList),t.resolveAxisNameOverlap(r,t,n,P,m,E)}}}};function yL(r,e,t,n,a,i,o,s){SL(e)||oY(r,e,a,s,n,o);var l=e.labelLayoutList;sY(r,n,l,i),fY(n,r.rotation,l);var u=r.optionHideOverlap;rY(n,l,u),u&&rI(Ve(l,function(f){return f&&!f.label.ignore})),JU(r,t,n,l)}function tY(r,e,t,n){var a=Zg(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return zi(a-fi/2)?(o=l?"bottom":"top",i="center"):zi(a-fi*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<fi*1.5&&a>fi/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function rY(r,e,t){var n=r.axis,a=r.get(["axisLabel","customValues"]);if(g4(n))return;function i(u,f,v){var c=Fn(e[f]),h=Fn(e[v]),d=n.scale;if(!(!c||!h)){if(u==null){if(!t&&a)return;var p=Ho(c.label).labelInfo.tick;if(df(d)&&p.notNice||Qt(d)&&p.offInterval){Al(c.label);return}}if(u===!1||c.suggestIgnore){Al(c.label);return}if(h.suggestIgnore){Al(h.label);return}var g=.1;if(!t){var y=[0,0,0,0];c=W0({marginForce:y},c),h=W0({marginForce:y},h)}Jh(c,h,null,{touchThreshold:g})&&Al(u?h.label:c.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;i(o,0,1),i(s,l-1,l-2)}function nY(r,e,t){r.showMinorTicks||A(e,function(n){if(n&&n.label.ignore)for(var a=0;a<t.length;a++){var i=t[a],o=cL(i),s=Ho(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Al(i);return}}})}function Al(r){r&&(r.ignore=!0)}function mL(r,e,t,n,a){for(var i=[],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&&(it(o,o,e),it(s,s,e));var f=new ft({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ys(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f);var v=cL(f);v.onBand=!!r[l].onBand,v.tickValue=r[l].tickValue}return i}function aY(r,e,t,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),f=mL(u,t.transform,l,ue(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<f.length;v++)e.add(f[v]);return f}function iY(r,e,t,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=ue(l.getLineStyle(),ue(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),v=0;v<s.length;v++)for(var c=mL(s[v],t.transform,u,f,"minorticks_"+v),h=0;h<c.length;h++)e.add(c[h])}}function _L(r,e,t){if(SL(r)){var n=r.axisLabelsCreationContext;W(r.labelGroup&&n);var a=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(r.labelGroup),y_(r,null,null,null))}return!0}function oY(r,e,t,n,a,i){var o=a.axis,s=At(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new le;t.add(l);var u=Xh(n);if(!s||o.scale.isBlank()){y_(e,[],l,u);return}var f=a.getModel("axisLabel"),v=o.getViewLabels(u),c=(At(r.raw.labelRotate,f.get("rotate"))||0)*fi/180,h=lr.innerTextLayout(r.rotation,c,r.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),y=1/0,m=-1/0;A(v,function(S,x){var b,w=S.tick,C=S.formattedLabel,T=S.rawLabel,M=f,D=ml(o.scale,w);if(d&&d[D]){var L=d[D];ie(L)&&L.textStyle&&(M=new De(L.textStyle,f,a.ecModel))}var I=M.getTextColor()||a.get(["axisLine","lineStyle","color"]),P=M.getShallow("align",!0)||h.textAlign,E=Q(M.getShallow("alignMinLabel",!0),P),R=Q(M.getShallow("alignMaxLabel",!0),P),O=M.getShallow("verticalAlign",!0)||M.getShallow("baseline",!0)||h.textVerticalAlign,k=Q(M.getShallow("verticalAlignMinLabel",!0),O),V=Q(M.getShallow("verticalAlignMaxLabel",!0),O),z=10+(((b=w.time)===null||b===void 0?void 0:b.level)||0);y=Math.min(y,z),m=Math.max(m,z);var F=new Pe({x:0,y:0,rotation:0,silent:lr.isLabelSilent(a),z2:z,style:Ye(M,{text:C,align:x===0?E:x===v.length-1?R:P,verticalAlign:x===0?k:x===v.length-1?V:O,fill:ne(I)?I(o.type==="category"?T:o.type==="value"?D+"":D,x):I})});F.anid="label_"+D;var Y=Ho(F);if(Y.labelInfo=S,Y.layoutRotation=h.rotation,Sa({el:F,componentModel:a,itemName:C,formatterParamsExtra:{isTruncated:function(){return F.isTruncated},value:T,tickIndex:x}}),g){var Z=lr.makeAxisEventDataBase(a);Z.targetType="axisLabel",Z.value=T,Z.tickIndex=x;var X=S.tick.break;if(X){var ee=X.parsedBreak;Z.break={start:ee.vmin,end:ee.vmax}}o.type==="category"&&(Z.dataIndex=D),ve(F).eventData=Z,X&&uY(a,i,F,X)}p.push(F),l.add(F)});var _=U(p,function(S){return{label:S,priority:Ho(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});y_(e,_,l,u)}function SL(r){return!!r.labelLayoutList}function y_(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function sY(r,e,t,n){var a=e.get(["axisLabel","margin"]);A(t,function(i,o){var s=Fn(i);if(s){var l=s.label,u=Ho(l);s.suggestIgnore=l.ignore,l.ignore=!1,Sn(Aa,lY);var f=e.axis;Aa.x=f.dataToCoord(ml(f.scale,u.labelInfo.tick)),Aa.y=r.labelOffset+r.labelDirection*a,Aa.rotation=u.layoutRotation,n.add(Aa),Aa.updateTransform(),n.remove(Aa),Aa.decomposeTransform(),Sn(l,Aa),l.markRedraw(),jh(s,!0),Fn(s)}})}var Aa=new Ce,lY=new Ce;function m_(r){return!!r}function uY(r,e,t,n){t.on("click",function(a){var i={type:od,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function fY(r,e,t){var n=vt();if(n){var a=n.retrieveAxisBreakPairs(t,function(o){return o&&Ho(o.label).labelInfo.tick.break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&A(a,function(o){Of().adjustBreakLabelPair(r.axis.inverse,e,[Fn(t[o[0]]),Fn(t[o[1]])])})}}function ld(r,e,t){t=t||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.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},v=e.get("offset")||0,c=l==="x"?[u[2]-v,u[3]+v]:[u[0]-v,u[1]+v];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));c[f.onZero]=Math.max(Math.min(h,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 d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?c[f[o]]-c[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),At(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function vY(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function cY(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,ot).models[0];if(!i)throw new Error(a+' "'+$t(r.get(a+"Index"),r.get(a+"Id"),0)+'" not found');e[n]=i}),e}function hY(r,e,t,n,a,i){for(var o=ld(r,t),s=!1,l=!1,u=0;u<e.length;u++)oD(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=i,new lr(t,n,o,a)}function dY(r,e,t){var n=ld(e,t),a=r.__getRawCfg();A(Ae(n),function(i){i!=="position"&&i!=="labelOffset"&&W(n[i]===a[i])}),r.updateCfg(n)}function pY(r){return r.dim+"_"+r.index}function gY(){M4("liPosMinGap",yY)}function yY(r,e,t){var n=K(),a=t.serUids,i=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,v=dA(f);function c(_){Hh(r,e.sers,function(S){var x=S.getRawData(),b=x.getDimensionIndex(x.mapDimension(s.dim));b>=0&&_(b,S,x.getStore())})}var h=0;if(c(function(_,S,x){n.set(S.uid,1),(!a||!a.hasKey(S.uid))&&(o=!0),h+=x.count()}),(!a||a.keys().length!==n.keys().length)&&(o=!0),!o&&i!=null){e.liPosMinGap=i;return}u_(Wo,h);var d=0;c(function(_,S,x){for(var b=0,w=x.count();b<w;++b){var C=x.get(_,b);isFinite(C)&&(!f||pA(v,C))&&(u&&(C=l.transformIn(C,null)),Wo.arr[d++]=C)}});var p=Wo.typed?Wo.arr.subarray(0,d):(Wo.arr.length=d,Wo.arr);Wo.typed?p.sort():Et(p);for(var g=1/0,y=1;y<d;++y){var m=p[y]-p[y-1];m>0&&m<g&&(g=m)}t.liPosMinGap=e.liPosMinGap=xr(g)?g:d>0?_D:S4,t.serUids=n}var Wo=u_({ctor:DU},50);function ud(r){return function(e,t){var n=Yt(e,{fromStat:{key:r}});if(xr(n.w2))return[-n.w2/2,n.w2/2]}}function Uo(r){return r+Sf}function Yo(r,e){return r+Sf+e}function __(r){return gY(),{liPosMinGap:!Qt(r.scale)}}var Un="bar",Bf="pictorialBar";function xL(r,e,t,n){R0(r,{key:e,seriesType:t,coordSysType:n,getMetrics:__})}function bL(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return W(xr(e)),e}var wL={left:0,right:0,top:0,bottom:0},fd=["25%","25%"],pn="cartesian2d",mY=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,n){var a=yo(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&Nn(t.outerBounds,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Nn(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:wL,outerBoundsContain:"all",outerBoundsClampWidth:fd[0],outerBoundsClampHeight:fd[1],backgroundColor:B.color.transparent,borderWidth:1,borderColor:B.color.neutral30},e})(we),_Y=Ps(),S_="__ec_stack_";function TL(r){return r.get("stack")||S_+r.seriesIndex}function SY(r){if(Qt(r.axis.scale)){for(var e=Yt(r.axis),t=[],n=0;n<r.count;n++)t.push(ue({stackId:S_+n},r));for(var a=CL({bandWidthResult:e,seriesInfo:t}),i=[],n=0;n<r.count;n++){var o=a[S_+n];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}function xY(r,e){var t=bY(r,e);return t.columnMap=CL(t),t}function bY(r,e){var t=Yo(e,pn),n=[],a=Yt(r,{fromStat:{key:t},min:1});return Po(r,t,function(i){n.push({barWidth:q(i.get("barWidth"),a.w),barMaxWidth:q(i.get("barMaxWidth"),a.w),barMinWidth:q(i.get("barMinWidth")||(DL(i)?.5:1),a.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:TL(i)})}),{bandWidthResult:a,seriesInfo:n}}function CL(r){var e=r.bandWidthResult.w,t=e,n=0,a,i,o=[],s={};A(r.seriesInfo,function(p,g){g||(i=p.defaultBarGap||0);var y=p.stackId;J(s,y)||n++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},o.push(y));var _=p.barWidth;_&&!m.width&&(m.width=_,_=Ge(t,_),t-=_);var S=p.barMaxWidth;S&&(m.maxWidth=S);var x=p.barMinWidth;x&&(m.minWidth=x);var b=p.barGap;b!=null&&(i=b);var w=p.barCategoryGap;w!=null&&(a=w)}),a==null&&(a=Te(35-o.length*4,15)+"%");var l=q(a,e),u=q(i,1),f=(t-l)/(n+(n-1)*u);f=Te(f,0),A(o,function(p){var g=s[p],y=g.maxWidth,m=g.minWidth;if(g.width){var _=g.width;y&&(_=Ge(_,y)),m&&(_=Te(_,m)),g.width=_,t-=_+u*_,n--}else{var _=f;y&&y<_&&(_=Ge(y,t)),m&&m>_&&(_=m),_!==f&&(g.width=_,t-=_+u*_,n--)}}),f=(t-l)/(n+(n-1)*u),f=Te(f,0);var v=0,c;A(o,function(p){var g=s[p];g.width||(g.width=f),c=g,v+=g.width*(1+u)}),c&&(v-=c.width*u);var h={},d=-v/2;return A(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:e,offset:d,width:g.width},d+=g.width*(1+u)}),h}function AL(r){return{seriesType:r,overallReset:function(e){var t=Yo(r,pn);L0(e,t,function(n){W(n instanceof h_);var a=xY(n,r);Po(n,t,function(i){var o=a.columnMap[TL(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function ML(r){return{seriesType:r,plan:wo(),reset:function(e){if(vY(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),v=Ta(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(bL(i))),d=DL(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=d&&Wn(x*3),w=d&&l&&Wn(x*3),C=d&&Wn(x),T=n.master.getRect(),M=c?T.width:T.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(v?g:o,D),E=L.get(s,D),R=h,O=void 0;v&&(O=+P-L.get(o,D));var k=void 0,V=void 0,z=void 0,F=void 0;if(c){var Y=n.dataToPoint([P,E]);v&&(R=n.dataToPoint([O,E])[0]),k=R,V=Y[1]+m,z=Y[0]-R,F=y,rt(z)<p&&(z=(z<0?-1:1)*p)}else{var Y=n.dataToPoint([E,P]);v&&(R=n.dataToPoint([E,O])[1]),k=Y[0]+m,V=R,z=y,F=Y[1]-R,rt(F)<p&&(F=(F<=0?-1:1)*p)}d?(b[I]=k,b[I+1]=V,b[I+2]=c?z:F,w&&(w[I]=c?T.x:k,w[I+1]=c?V:T.y,w[I+2]=M),C[D]=D):S.setItemLayout(D,{x:k,y:V,width:z,height:F}),I+=3}d&&S.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:c})}}}}}}function DL(r){return r.pipelineContext&&r.pipelineContext.large}function wY(r){return ud(Yo(r,pn))}function IL(r){_Y(r,function(){function e(t){var n=Yo(t,pn);xL(r,n,t,pn),Uh(n,wY(t))}e("bar"),e("pictorialBar")})}var Vf=(function(r){N(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,n){return Bn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)A(i.getAxes(),function(c,h){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),p=c.getTickModel().get("alignWithLabel"),g=o[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;x<d.length;x++){var b=d[x].coord,w=x===d.length-1?d[x-1].tickValue+S:d[x].tickValue;if(w===g){_=b;break}else if(w<g)m=b;else if(m!=null&&w>g){_=(b+m)/2;break}x===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=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})(We);We.registerClass(Vf);var TY=(function(r){N(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 Bn(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,n){var a=Sw(this,t,n);return a.progressiveRender&&(a.large=!0),a},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series."+Un,e.dependencies=["grid","polar"],e.defaultOption=ti(Vf.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:B.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Vf),CY=(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})(),vd=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new CY},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,v=n.endAngle,c=n.clockwise,h=Math.PI*2,d=c?v-f<h:f-v<h;d||(f=v-(c?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(v),m=Math.sin(v);d?(t.moveTo(p*o+a,g*o+i),t.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!c)):t.moveTo(p*s+a,g*s+i),t.arc(a,i,s,f,v,!c),t.arc(y*u+a,m*u+i,l,v-Math.PI*2,v-Math.PI,!c),o!==0&&t.arc(a,i,o,v,f,c)},e})(Me);function AY(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Jv(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,v=u.cy,c=u.r,h=u.r0,d=(c+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=t?Math.abs(c-h)/2:0,_=Math.cos,S=Math.sin,x=f+c*_(p),b=v+c*S(p),w="left",C="top";switch(s){case"startArc":x=f+(h-l)*_(y),b=v+(h-l)*S(y),w="center",C="top";break;case"insideStartArc":x=f+(h+l)*_(y),b=v+(h+l)*S(y),w="center",C="bottom";break;case"startAngle":x=f+d*_(p)+cd(p,l+m,!1),b=v+d*S(p)+hd(p,l+m,!1),w="right",C="middle";break;case"insideStartAngle":x=f+d*_(p)+cd(p,-l+m,!1),b=v+d*S(p)+hd(p,-l+m,!1),w="left",C="middle";break;case"middle":x=f+d*_(y),b=v+d*S(y),w="center",C="middle";break;case"endArc":x=f+(c+l)*_(y),b=v+(c+l)*S(y),w="center",C="bottom";break;case"insideEndArc":x=f+(c-l)*_(y),b=v+(c-l)*S(y),w="center",C="top";break;case"endAngle":x=f+d*_(g)+cd(g,l+m,!0),b=v+d*S(g)+hd(g,l+m,!0),w="left",C="middle";break;case"insideEndAngle":x=f+d*_(g)+cd(g,-l+m,!0),b=v+d*S(g)+hd(g,-l+m,!0),w="right",C="middle";break;default:return Jv(n,a,i)}return n=n||{},n.x=x,n.y=b,n.align=w,n.verticalAlign=C,n}}function MY(r,e,t,n){if(Re(n)){r.setTextConfig({rotation:n});return}else if(H(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+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=i;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 cd(r,e,t){return e*Math.sin(r)*(t?-1:1)}function hd(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Yn(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;H(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(n,function(i){return wn(i,a)})}}var x_=Math.max,b_=Math.min,DY=(function(r){N(e,r);function e(){var t=r.call(this)||this;return t.type=Un,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){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,n,a):this._renderNormal(t,n,a,i)):et("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){ei(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),v;u.type==="cartesian2d"?v=f.isHorizontal():u.type==="polar"&&(v=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,h=IY(t,u);h&&this._enableRealtimeSort(h,s,a);var d=t.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,b=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function C(D){var L=dd[u.type](s,D);if(!L)return null;var I=NY(u,v,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[D]=I,I}s.diff(l).add(function(D){var L=s.getItemModel(D),I=dd[u.type](s,D,L);if(I&&(y&&C(D),!(!s.hasValue(D)||!kL[u.type](I)))){var P=!1;d&&(P=LL[u.type](p,I));var E=PL[u.type](t,s,D,I,v,c,f.model,!1,g);h&&(E.forceLabelAnimation=!0),NL(E,s,D,L,I,t,v,u.type==="polar"),b?E.attr({shape:I}):h?RL(h,c,E,I,D,v,!1,!1):Ke(E,{shape:I},t,D),s.setItemGraphicEl(D,E),o.add(E),E.ignore=P}}).update(function(D,L){var I=s.getItemModel(D),P=dd[u.type](s,D,I);if(P){if(y){var E=void 0;x.length===0?E=C(L):(E=x[L],E.useStyle(m.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[D]=E);var R=dd[u.type](s,D),O=GL(v,R,u);Oe(E,{shape:O},c,D)}var k=l.getItemGraphicEl(L);if(!s.hasValue(D)||!kL[u.type](P)){o.remove(k);return}var V=!1;d&&(V=LL[u.type](p,P),V&&o.remove(k));var z=k&&(k.type==="sector"&&g||k.type==="sausage"&&!g);if(z&&(k&&_a(k,t,L),k=null),k?Gr(k):k=PL[u.type](t,s,D,P,v,c,f.model,!0,g),h&&(k.forceLabelAnimation=!0),w){var F=k.getTextContent();if(F){var Y=Zs(F);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else NL(k,s,D,I,P,t,v,u.type==="polar");b?k.attr({shape:P}):h?RL(h,c,k,P,D,v,!0,w):Oe(k,{shape:P},t,D,null),s.setItemGraphicEl(D,k),k.ignore=V,o.add(k)}}).remove(function(D){var L=l.getItemGraphicEl(D);L&&_a(L,t,D)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new le);T.removeAll();for(var M=0;M<S.length;++M)T.add(S[M]);o.add(T),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),VL(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),VL(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&Go(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(v>s)return!0;s=v}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){_a(i,t,ve(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Un,e})(Fe),LL={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=x_(e.x,r.x),s=b_(e.x+e.width,a),l=x_(e.y,r.y),u=b_(e.y+e.height,i),f=s<o,v=u<l;return e.x=f&&o>a?s:o,e.y=v&&l>i?u:l,e.width=f?0:s-o,e.height=v?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||v},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=b_(e.r,r.r),i=x_(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},PL={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new Ce({shape:G({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,v=a?"height":"width";f[v]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?vd:Ht,f=new u({shape:n,z2:1});f.name="item";var v=OL(a);if(f.calculateTextPosition=AY(v,{isRoundCap:u===vd}),i){var c=f.shape,h=a?"r":"endAngle",d={};c[h]=a?n.r0:n.startAngle,d[h]=n[h],(s?Oe:Ke)(f,{shape:d},i)}return f}};function IY(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&(n.type!=="category"&&et("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&et("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function RL(r,e,t,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Oe:Ke)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?Oe:Ke)(t,{shape:u},f,a)}function EL(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var LY=["x","y","width","height"],PY=["cx","cy","r","startAngle","endAngle"],kL={cartesian2d:function(r){return!EL(r,LY)},polar:function(r){return!EL(r,PY)}},dd={cartesian2d:function(r,e,t){var n=r.getItemLayout(e);if(!n)return null;var a=t?EY(t,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function RY(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function OL(r){return(function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}})(r)}function NL(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,v=Yn(n.getModel("itemStyle"),f,!0);G(f,v),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?BY(a,i.coordinateSystem):VY(a,i.coordinateSystem),d=xt(n);It(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:Tl(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,MY(r,g==="outside"?h:g,OL(o),n.get(["label","rotate"]))}tC(p,d,i.getRawValue(t),function(m){return zI(e,m)});var y=n.getModel(["emphasis"]);tt(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),St(r,n),RY(a)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function EY(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var kY=(function(){function r(){}return r})(),BL=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new kY},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(Me);function VL(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=n?An(r):0;if(u){var v=new BL({shape:{points:u},incremental:f,silent:!0,z2:0});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,v.useStyle(l.getItemStyle()),e.add(v),t&&t.push(v)}var c=new BL({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),c.style.stroke=null,ve(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",zL),c.on("mousemove",zL)),t&&t.push(c)}var zL=uh(function(r){var e=this,t=OY(e,r.offsetX,r.offsetY);ve(e).dataIndex=t>=0?t:null},30,!1);function OY(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,v=i.length/3;f<v;f++){var c=f*3;if(l[n]=u,l[a]=i[c+2],s[n]=i[c+n],s[a]=i[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 GL(r,e,t){if(Fo(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function NY(r,e,t){var n=r.type==="polar"?Ht:Ce;return new n({shape:GL(e,t,r),silent:!0,z2:0})}function BY(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function VY(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}function zY(r){r.registerChartView(DY),r.registerSeriesModel(TY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,AL(Un)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ML(Un)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,uL(Un)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})}),IL(r)}function zf(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function Ml(r,e,t){e=H(e)&&{coordDimensions:e}||G({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=hl(n,e).dimensions,i=new Jt(a,r);return i.initData(n,t),i}var Dl=(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 n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r})(),vi="pie",GY=Se(),FL=(function(r){N(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 Dl(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ml(this,{coordDimensions:["value"],encodeDefaulter:be(Tm,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=GY(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=rw(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Gi(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series."+vi,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})(We);EG({fullType:FL.type,getCoord2:function(r){return r.getShallow("center")}});var FY=Math.PI/180;function HL(r,e,t,n,a,i,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-t),x=n+_.len,b=x*x,w=Math.sqrt(Math.abs((1-S*S/y)*b)),C=e+(w+_.len2)*a,T=C-_.label.x,M=_.targetTextWidth-T*a;WL(_,M,!0),_.label.x=C}}function v(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>t?y:g,x=Math.abs(_.label.y-t);if(x>=S.maxY){var b=_.label.x-e-_.len2*a,w=n+_.len,C=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;S.rB=C,S.maxY=x}S.list.push(_)}f(g),f(y)}for(var c=r.length,h=0;h<c;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var d=r[h].label.x-u;r[h].linePoints[1][0]+=d,r[h].label.x=u}U0(r,1,l,l+o)&&v(r)}function HY(r,e,t,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,v=-Number.MAX_VALUE,c=0;c<r.length;c++){var h=r[c].label;w_(r[c])||(h.x<e?(f=Math.min(f,h.x),l.push(r[c])):(v=Math.max(v,h.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!w_(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?g=f-o-d.bleedMargin:g=o+a-v-d.bleedMargin:h.x<e?g=h.x-o-d.bleedMargin:g=o+a-h.x-d.bleedMargin,d.targetTextWidth=g,WL(d,g,!1)}}HL(u,e,t,n,1,a,i,o,s,v),HL(l,e,t,n,-1,a,i,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!w_(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,S=h.style.backgroundColor?0:_,x=d.rect.width+S,b=p[1][0]-p[2][0];y?h.x<e?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+a-d.edgeDistance-x-d.labelDistance:(h.x<e?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=h.y}}}function WL(r,e,t){if(r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var c=e-l,h=e<f?c:t?c>r.unconstrainedWidth?null:c:null;n.setStyle("width",h)}UL(i,n)}}}function UL(r,e){YL.rect=r,eI(YL,e,WY)}var WY={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},YL={};function w_(r){return r.position==="center"}function UY(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*FY,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,v=s.y,c=s.height;function h(b){b.ignore=!0}function d(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),C=w.shape,T=w.getTextContent(),M=w.getTextGuideLine(),D=e.getItemModel(b),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),E=L.get("alignTo"),R=q(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,c)>200?10:2);var k=D.getModel("labelLine"),V=k.get("length");V=q(V,u);var z=k.get("length2");if(z=q(z,u),Math.abs(C.endAngle-C.startAngle)<o){A(T.states,h),T.ignore=!0,M&&(A(M.states,h),M.ignore=!0);return}if(d(T)){var F=(C.startAngle+C.endAngle)/2,Y=Math.cos(F),Z=Math.sin(F),X,ee,ye,Be;n=C.cx,a=C.cy;var ce=I==="inside"||I==="inner";if(I==="center")X=C.cx,ee=C.cy,Be="center";else{var te=(ce?(C.r+C.r0)/2*Y:C.r*Y)+n,me=(ce?(C.r+C.r0)/2*Z:C.r*Z)+a;if(X=te+Y*3,ee=me+Z*3,!ce){var re=te+Y*(V+l-C.r),he=me+Z*(V+l-C.r),Ze=re+(Y<0?-1:1)*z,ke=he;E==="edge"?X=Y<0?f+R:f+u-R:X=Ze+(Y<0?-P:P),ee=ke,ye=[[te,me],[re,he],[Ze,ke]]}Be=ce?"center":E==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var He=Math.PI,$e=0,yt=L.get("rotate");if(Re(yt))$e=yt*(He/180);else if(I==="center")$e=0;else if(yt==="radial"||yt===!0){var Ir=Y<0?-F+He:-F;$e=Ir}else if(yt==="tangential"||yt==="tangential-noflip"&&I!=="outside"&&I!=="outer"){var gr=Math.atan2(Y,Z);gr<0&&(gr=He*2+gr);var vs=Z>0;vs&&yt!=="tangential-noflip"&&(gr=He+gr),$e=gr-He}if(i=!!$e,T.x=X,T.y=ee,T.rotation=$e,T.setStyle({verticalAlign:"middle"}),ce){T.setStyle({align:Be});var kx=T.states.select;kx&&(kx.x+=T.x,kx.y+=T.y)}else{var Kl=new se(0,0,0,0);UL(Kl,T),t.push({label:T,labelLine:M,position:I,len:V,len2:z,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new fe(Y,Z),linePoints:ye,textAlign:Be,labelDistance:P,labelAlignTo:E,edgeDistance:R,bleedMargin:O,rect:Kl,unconstrainedWidth:Kl.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:ce})}}),!i&&r.get("avoidLabelOverlap")&&HY(t,n,a,l,u,c,f,v);for(var p=0;p<t.length;p++){var g=t[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(A(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(A(m.states,h),m.ignore=!0):(KD(x,g.minTurnAngle),AW(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new fe(x[0][0],x[0][1])})}}}var XL=Math.PI*2,pd=Math.PI/180,YY=_t(vi,XY);function XY(r,e){r.eachSeriesByType(vi,function(t){var n=t.getData(),a=n.mapDimension("value"),i=AC(t,e),o=i.cx,s=i.cy,l=i.r,u=i.r0,f=i.viewRect,v=-t.get("startAngle")*pd,c=t.get("endAngle"),h=t.get("padAngle")*pd;c=c==="auto"?v-XL:-c*pd;var d=t.get("minAngle")*pd,p=d+h,g=0;n.each(a,function(R){!isNaN(R)&&g++});var y=n.getSum(a),m=Math.PI/(y||g)*2,_=t.get("clockwise"),S=t.get("roseType"),x=t.get("stillShowZeroSum"),b=n.getDataExtent(a);b[0]=0;var w=_?1:-1,C=[v,c],T=w*h/2;Sc(C,!_),v=C[0],c=C[1];var M=ZL(t);M.startAngle=v,M.endAngle=c,M.clockwise=_,M.cx=o,M.cy=s,M.r=l,M.r0=u;var D=Math.abs(c-v),L=D,I=0,P=v;if(n.setLayout({viewRect:f,r:l}),n.each(a,function(R,O){var k;if(isNaN(R)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?k=y===0&&x?m:R*m:k=D/g,k<p?(k=p,L-=p):I+=R;var V=P+w*k,z=0,F=0;h>k?(z=P+w*k/2,F=z):(z=P+T,F=V-T),n.setItemLayout(O,{angle:k,startAngle:z,endAngle:F,clockwise:_,cx:o,cy:s,r0:u,r:S?Ne(R,b,[u,l]):l}),P=V}),L<XL&&g)if(L<=.001){var E=D/g;n.each(a,function(R,O){if(!isNaN(R)){var k=n.getItemLayout(O);k.angle=E;var V=0,z=0;E<h?(V=v+w*(O+1/2)*E,z=V):(V=v+w*O*E+T,z=v+w*(O+1)*E-T),k.startAngle=V,k.endAngle=z}})}else m=L/I,P=v,n.each(a,function(R,O){if(!isNaN(R)){var k=n.getItemLayout(O),V=k.angle===p?p:R*m,z=0,F=0;V<h?(z=P+w*V/2,F=z):(z=P+T,F=P+w*V-T),k.startAngle=z,k.endAngle=F,P+=w*V}})})}var ZL=Se(),ZY=(function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new Pe;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),v=G(Yn(l.getModel("itemStyle"),f,!0),f);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var c=s.getShallow("animationType");s.ecModel.ssr?(Ke(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):c==="scale"?(o.shape.r=f.r0,Ke(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ke(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Oe(o,{shape:{endAngle:f.endAngle}},s,n))}else Gr(o),Oe(o,{shape:v},s,n);o.useStyle(t.getItemVisual(n,"style")),St(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=G({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Yn(u.getModel("itemStyle"),f)),G(o.ensureState("select"),{x:p,y:g,shape:Yn(l.getModel(["select","itemStyle"]),f)}),G(o.ensureState("blur"),{shape:Yn(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&G(m.ensureState("select"),{x:p,y:g}),G(_.ensureState("select"),{x:p,y:g}),tt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;It(i,xt(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var c=o.get(["label","position"]);if(c!=="outside"&&c!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ot,this.setTextGuideLine(h)),z0(this,G0(o),{stroke:u,opacity:$t(s.get(["lineStyle","opacity"]),f,1)})}},e})(Ht),$Y=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=vi,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),v=1;isNaN(f&&f.startAngle)&&v<o.count();++v)f=o.getItemLayout(v);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var c=ZL(t),h=new Ht({shape:ae(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new ZY(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);_a(p,t,d)}).execute(),UY(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=vi,e})(Fe);function qY(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Re(o)&&!isNaN(o)&&o<0)})}}}function KY(r){r.registerChartView($Y),r.registerSeriesModel(FL),QA(vi,r.registerAction),r.registerLayout(YY),r.registerProcessor(zf(vi)),r.registerProcessor(qY(vi))}var jY=(function(r){N(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,n){return Bn(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,n,a){return a.point(n.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:B.color.primary}},universalTransition:{divideShape:"clone"}},e})(We),$L=4,JY=(function(){function r(){}return r})(),QY=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new JY},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,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<$L,f=this.softClipShape,v;if(u){this._ctx=l;return}for(this._ctx=null,v=this._off;v<a.length;){var c=a[v++],h=a[v++];isNaN(c)||isNaN(h)||f&&!f.contain(c,h)||(s.x=c-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.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,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,v=i[f]-s/2,c=i[f+1]-l/2;if(t>=v&&n>=c&&t<=v+s&&n<=c+l)return u}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,v=-1/0,c=0;c<a.length;){var h=a[c++],d=a[c++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),v=Math.max(d,v)}t=this._rect=new se(l-o/2,u-s/2,f-l+o,v-u+s)}return t},e})(Me),e8=(function(){function r(){this.group=new le}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var i=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}a.setShape("points",n),a.reset(),a.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n,a){var i=this._newAdded[0],o=t.getLayout("points"),s=i&&i.shape.points;if(xw(t.getLayout("pointsRange"),e),s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=e.end,i.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new QY({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=ht(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<$L;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=ve(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var v=e.hoverDataIdx;v>=0&&(u.dataIndex=v+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),t8=(function(r){N(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,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,T_(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),An(n),T_(n)),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),this._finished){var o=kf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(T_(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new e8:new Lf,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(Fe);function T_(r){return{clipShape:qI(r)}}var C_=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ot).models[0]},e.type="cartesian2dAxis",e})(we);lt(C_,_l);var qL={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:B.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:B.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:B.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[B.color.backgroundTint,B.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:B.color.neutral00,borderColor:B.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},r8=_e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},qL),A_=_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:B.color.axisMinorSplitLine,width:1}}},qL),n8=_e({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},A_),a8=ue({logBase:10},A_),KL={category:r8,value:A_,time:n8,log:a8};function Il(r,e,t,n){A(pD,function(a,i){var o=_e(_e({},KL[i],!0),n,!0),s=(function(l){N(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,v){var c=Zu(this),h=c?yo(f):{},d=v.getTheme();_e(f,d.get(i+"Axis")),_e(f,this.getDefaultOption()),f.type=jL(f),c&&Nn(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=ff.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if(v.type==="category")return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var v=Of();return v?v.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",jL)}function jL(r){return r.type||(r.data?"category":"value")}var i8=(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(),Ve(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})(),gd=["x","y"];function JL(r){return(r.type==="interval"||r.type==="time")&&!vo(r)}var o8=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=pn,t.dimensions=gd,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!JL(t)||!JL(n))){var a=hf(t,null),i=hf(n,null),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,v=(s[1]-o[1])/u,c=o[0]-a[0]*f,h=o[1]-i[0]*v,d=this._transform=[f,0,0,v,c,h];this._invTransform=_r([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.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,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new se(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return it(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n,a){if(a=a||[],this._invTransform)return it(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,l=Math.max(a[0],a[1])-o+t;return new se(i,o,s,l)},e})(i8);function QL(r,e){var t=r.scale,n=r.model;W(t&&n&&(t instanceof Vn||t instanceof zh)&&(e instanceof Vn||e instanceof zh));var a=LD(t,n,n.ecModel,r,null),i=pl(t),o=pl(e)?e.intervalStub:e,s=i?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),v=u.length-1;W(!vo(e)&&!vo(t)),W(v>0),W(f.length===u.length),W(u[0].value<=u[v].value),W(f[0].value<=u[0].value&&u[v].value<=f[v].value),v>=2&&(W(f[1].value===u[1].value),W(f[v-1].value===u[v-1].value));var c,h,d;if(v===1)c=h=0,d=1;else if(v===2){var p=rt(u[0].value-u[1].value),g=rt(u[1].value-u[2].value);c=h=0,p===g?d=2:(d=1,p<g?c=p/g:h=g/p)}else{var y=o.getConfig().interval;c=(1-(u[0].value-f[0].value)/y)%1,h=(1-(f[v].value-u[v].value)/y)%1,d=v-(c?1:0)-(h?1:0)}W(d>=1);var m=a.zoomFixMM,_=m[0]||m[1],S=[a.fixMM[0]||_,a.fixMM[1]||_],x=t.getExtent(),b=s.getExtent(),w=sD(b,S),C,T,M,D,L,I;function P(Y){for(var Z=50,X=0;X<Z&&!Y();X++)M=i?M*Te(l,2):QH(M),D=Lo(M);X>=Z&&et("incorrect impl in `scaleCalcAlign`.")}function E(){C=Ee(I-M*c,D)}function R(){T=Ee(L+M*h,D)}function O(){I=c?Ee(C+M*c,D):C}function k(){L=h?Ee(T-M*h,D):T}if(S[0]&&S[1]){C=w[0],T=w[1],M=(T-C)/(d+c+h);var V=r.getExtent(),z=rt(V[1]-V[0]);D=Xg([T,C],z,.5/d),O(),k(),xr(D)&&(M=Ee(M,D))}else{var F=w[1]-w[0];M=i?Te($g(F),1):sc(F/d,nw),D=Lo(M),S[0]?(C=w[0],P(function(){if(O(),L=Ee(I+M*d,D),R(),T>=w[1])return!0})):S[1]?(T=w[1],P(function(){if(k(),I=Ee(L-M*d,D),E(),C<=w[0])return!0})):P(function(){I=Ee(Oi(w[0]/M)*M,D),L=Ee(Br(w[1]/M)*M,D);var Y=rn((L-I)/M);if(Y<=d){var Z=d-Y,X=void 0,ee=a.incl0||i;if(ee&&w[0]===0)X=[0,Z];else if(ee&&w[1]===0)X=[Z,0];else{var ye=Br(Z/2);X=Z%2===0?[ye,ye]:C+T<w[0]+w[1]?[ye,ye+1]:[ye+1,ye]}if(I=Ee(I-M*X[0],D),L=Ee(L+M*X[1],D),E(),R(),C<=w[0]&&T>=w[1])return!0}})}mD(t,S,b,[C,T],x,{interval:M,intervalCount:d,intervalPrecision:D,niceExtent:[I,L]}),t.freeze()}var e2=[[3,1],[0,2]],s8=(function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gd,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;A(this._axesList,function(o){Eo(o,xl);var s=o.scale;Qt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=Ae(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):bl(f)}A(l,function(v){u8(v,v.__alignTo)?bl(v):QL(v,v.__alignTo.scale)})}a(n.x),a(n.y);var i={};A(n.x,function(o){t2(n,"y",o,i)}),A(n.y,function(o){t2(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=bt(e,t),i=this._rect=Je(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(M_(o,i),!n){var u=c8(i,s,o,l,t),f=void 0;if(l)D_?(D_(this._axesList,i),M_(o,i)):(sw("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=i2(i.clone(),"axisLabel",null,i,o,u,a));else{var v=h8(e,i,a),c=v.outerBoundsRect,h=v.parsedOuterBoundsContain,d=v.outerBoundsClamp;c&&(f=i2(c,h,d,i,o,u,a))}o2(i,o,cn.determine,null,f,a),A(this._coordsList,function(p){p.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}ie(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",ot).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",ot).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,ge(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.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,n){var a=this,i=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,A(s.x,function(f,v){A(s.y,function(c,h){var d="x"+v+"y"+h,p=new o8(d);p.master=a,p.model=e,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(c)})}),n2(s.x),n2(s.y);function u(f){return function(v,c){if(l8(v,e)){var h=v.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=gf(v),p=new h_(f,gl(v,d,!0),[0,0],d,h);p.onBand=_f(p.scale,v),p.inverse=v.get("inverse"),v.axis=p,p.model=v,p.grid=i,p.index=c,i._axesList.push(p),s[f][c]=p,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return A(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);ge(t,i)<0&&t.push(i),ge(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o),A(o._axesList,function(s){P4(s,r.dimIdxMap)})}),e.eachSeries(function(a){var i,o;Yu({targetModel:a,coordSysType:pn,coordSysProvider:s});function s(){var l=cY(a),u=l.xAxisModel,f=l.yAxisModel;i=u.axis,o=f.axis;var v=u.getCoordSysModel();if(!v)throw new Error('Grid "'+$t(u.get("gridIndex"),u.get("gridId"),0)+'" not found');if(u.getCoordSysModel()!==f.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid");var c=v.coordinateSystem;return c.getCartesian(u.componentIndex,f.componentIndex)}i&&o&&(Ro(i,a,pn),Ro(o,a,pn))},this),n},r.dimensions=gd,r.dimIdxMap=m0(gd),r})();function l8(r,e){return r.getCoordSysModel()===e}function t2(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)r2(s,a[l])&&(i=a[l]);else for(var u in a)if(J(a,u)&&r2(s,a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(v){return v.dim+"_"+v.index}}function r2(r,e){if(!e)return!1;var t=e.scale,n=v4(t,0,!1),a=e&&e.type!=="category"&&e.type!=="time"&&n!==D0;return a&&r==="auto"&&p4(e)&&(a=!1),a}function n2(r){for(var e=Ae(r),t,n=[],a=e.length-1;a>=0;a--){var i=r[+e[a]];oD(i.scale)&&yD(i.model,i.type,!0)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?n.push(i):t=i)}t||(t=n.pop()),t&&A(n,function(o){o.__alignTo=t})}function u8(r,e){return vo(r.scale)||vo(e.scale)||e.scale.getTicks().length<2}function f8(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}function M_(r,e){A(r.x,function(t){return a2(t,e.x,e.width)}),A(r.y,function(t){return a2(t,e.y,e.height)})}function a2(r,e,t){var n=[0,t],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),f8(r,e)}var D_;function v8(r){D_=r}function i2(r,e,t,n,a,i,o){W(e==="all"||e==="axisLabel"),o2(n,a,cn.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=ta(s,function(c){return c>0})==null;return so(n,s,!0,!0,t),M_(a,n),l;function u(c){A(a[pe[c]],function(h){if(mf(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=h.scale.normalize(ml(h.scale,Ho(y.label).labelInfo.tick));m=c===1?1-m:m,f(y.rect,c,m),f(y.rect,1-c,NaN)}var _=d.nameLayout;if(_){var m=yl(d.nameLocation)?.5:NaN;f(_.rect,c,m),f(_.rect,1-c,NaN)}}})}function f(c,h,d){var p=r[pe[h]]-c[pe[h]],g=c[st[h]]+c[pe[h]]-(r[st[h]]+r[pe[h]]);p=v(p,1-d),g=v(g,d);var y=e2[h][0],m=e2[h][1];s[y]=Te(s[y],p),s[m]=Te(s[m],g)}function v(c,h){return c>0&&!Ct(h)&&h>1e-4&&(c/=h),c}}function c8(r,e,t,n,a){var i=new hL(d8);return A(t,function(o){return A(o,function(s){if(mf(s.model)){var l=!n;s.axisBuilder=hY(r,e,s.model,a,i,l)}})}),i}function o2(r,e,t,n,a,i){var o=t===cn.determine;A(e,function(u){return A(u,function(f){mf(f.model)&&(dY(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[pe[1-u]]=r[st[u]]<=i.refContainer[st[u]]*.5?0:1-u===1?2:1}A(e,function(u,f){return A(u,function(v){mf(v.model)&&((n==="all"||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&v.axisBuilder.build({axisLine:!0}))})})}function h8(r,e,t){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=e.clone():a==null||a==="auto"?n=Je(r.get("outerBounds",!0)||wL,t.refContainer):a!=="none"&&Le("Invalid grid["+r.componentIndex+"].outerBoundsMode.");var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"?o="all":ge(["all","axisLabel"],i)<0?(Le("Invalid grid["+r.componentIndex+"].outerBoundsContain."),o="all"):o=i;var s=[ic(Q(r.get("outerBoundsClampWidth",!0),fd[0]),e.width),ic(Q(r.get("outerBoundsClampHeight",!0),fd[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var d8=function(r,e,t,n,a,i){var o=t.axis.dim==="x"?"y":"x";dL(r,e,t,n,a,i),yl(r.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&gL(s.labelInfoList,s.dirVec,n,a)})};function p8(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return g8(t,r,e),t.seriesInvolved&&m8(t,r),t}function g8(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];A(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Gf(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,v=f.getModel("tooltip",n);if(A(s.getAxes(),be(p,!1,null)),s.getTooltipAxes&&n&&v.get("show")){var c=v.get("trigger")==="axis",h=v.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(v.get(["axisPointer","axis"]));(c||h)&&A(d.baseAxes,be(p,h?"cross":!0,c)),h&&A(d.otherAxes,be(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!P_(_))){y==null&&(y=_.get("triggerTooltip")),_=g?y8(m,v,a,e,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=Gf(m.model),C=y||x||m.type==="category",T=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:C,snap:x,useHandle:P_(_),seriesModels:[],linkGroup:null};u[w]=T,r.seriesInvolved=r.seriesInvolved||C;var M=_8(i,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=T,D.mapper=i[M].mapper,T.linkGroup=D}}}})}function y8(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=ae(o.get(c))}),l.snap=r.type!=="category"&&!!i,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,!i){var v=l.lineStyle=o.get("crossStyle");v&&ue(u,v.textStyle)}}return r.model.getModel("axisPointer",new De(l,t,n))}function m8(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[Gf(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function _8(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(I_(i[n+"AxisId"],t.id)||I_(i[n+"AxisIndex"],t.componentIndex)||I_(i[n+"AxisName"],t.name))return a}}function I_(r,e){return r==="all"||H(r)&&ge(r,e)>=0||r===e}function S8(r){var e=L_(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=P_(t);i==null&&(a.status=s?"show":"hide");var l=n.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 L_(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Gf(r)]}function x8(r){var e=L_(r);return e&&e.axisPointerModel}function P_(r){return!!r.get(["handle","show"])}function Gf(r){return r.type+"||"+r.id}var R_={},Xo=(function(r){N(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,n,a,i){this.axisPointerClass&&S8(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=x8(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){if(R_[t])throw new Error("axisPointer "+t+" exists");R_[t]=n},e.getAxisPointerClass=function(t){return t&&R_[t]},e.type="axis",e})(Xe),E_=Se();function s2(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,v=E_(r).splitAreaColors,c=K(),h=0;if(v)for(var d=0;d<u.length;d++){var p=v.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=H(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,b=void 0;a.isHorizontal()?(_=g,S=l.y,x=m-_,b=l.height,g=_+x):(_=l.x,S=g,x=l.width,b=m-S,g=S+b);var w=u[d-1].tickValue;w!=null&&c.set(w,h),e.add(new Ce({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:ue({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}E_(r).splitAreaColors=c}}}function l2(r){E_(r).splitAreaColors=null}var b8=["splitArea","splitLine","minorSplitLine","breakArea"],u2=(function(r){N(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,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new le,this.group.add(this._axisGroup),!!mf(t)){this._axisGroup.add(t.axis.axisBuilder.group),A(b8,function(l){t.get([l,"show"])&&w8[l](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Vu(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){l2(this)},e.type="cartesianAxis",e})(Xo),w8={splitLine:function(r,e,t,n,a){var i=t.axis;if(!i.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=H(l)?l:[l];for(var v=n.coordinateSystem.getRect(),c=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;c?(p[0]=_,p[1]=v.y,g[0]=_,g[1]=v.y+v.height):(p[0]=v.x,p[1]=_,g[0]=v.x+v.width,g[1]=_);var x=h++%l.length,b=new ft({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:ue({stroke:l[x]},y),silent:!0});Ys(b.shape,y.lineWidth),e.add(b)}}}},minorSplitLine:function(r,e,t,n,a){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var v=[],c=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var y=new ft({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:h,silent:!0});Ys(y.shape,h.lineWidth),e.add(y)}},splitArea:function(r,e,t,n,a){s2(r,e,t,n)},breakArea:function(r,e,t,n,a){var i=Of(),o=t.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,t,n.coordinateSystem.getRect(),a)}},f2=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(u2),T8=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=f2.type,t}return e.type="yAxis",e})(u2),C8=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new Ce({shape:t.coordinateSystem.getRect(),style:ue({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Xe),v2={offset:0};function c2(r){r.registerComponentView(C8),r.registerComponentModel(mY),r.registerCoordinateSystem("cartesian2d",s8),Il(r,"x",C_,v2),Il(r,"y",C_,v2),r.registerComponentView(f2),r.registerComponentView(T8),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var yd="single",A8="singleAxis",k_="singleAxis",md=(function(r){N(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=k_,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})(we);lt(md,_l.prototype);function M8(r,e){var t=r.coordinateSystem,n=t&&t.type,a=t&&t.getBaseAxis&&t.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n===pn&&i==="ordinal"||n===yd,s=e.model.get("jitter")>0;return o&&s}var D8=Se();function h2(r,e,t,n){if(r instanceof h_){var a=r.scale.type;if(a!=="ordinal")return t}var i=r.model,o=i.get("jitter");if(!(o>0))return t;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=Qt(r.scale)?Yt(r).w:null;return s?d2(t,o,u,n):I8(r,e,t,n,o,l)}function d2(r,e,t,n){if(t===null)return r+(Math.random()-.5)*e;var a=t-n*2,i=Math.min(Math.max(0,e),a);return r+(Math.random()-.5)*i}function I8(r,e,t,n,a,i){var o=D8(r);o.items||(o.items=[]);var s=o.items,l=p2(s,e,t,n,a,i,1),u=p2(s,e,t,n,a,i,-1),f=Math.abs(l-t)<Math.abs(u-t)?l:u,v=Qt(r.scale)?Yt(r).w:null,c=Math.abs(f-t);return c>a/2||v&&c>v/2-n?d2(t,a,v,n):(s.push({fixedCoord:e,floatCoord:f,r:n}),f)}function p2(r,e,t,n,a,i,o){for(var s=t,l=0;l<r.length;l++){var u=r[l],f=e-u.fixedCoord,v=s-u.floatCoord,c=f*f+v*v,h=n+u.r+i;if(c<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-t)>a/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function L8(){return{seriesType:"scatter",plan:wo(),reset:function(r){var e=r.coordinateSystem;if(!(!e||e.type!==pn&&e.type!==yd)){var t=e.getBaseAxis&&e.getBaseAxis(),n=t&&M8(r,t);if(n){var a=t.dim,i=t.orient,o=i==="horizontal"&&t.type!=="category"||i==="vertical"&&t.type==="category",s=a==="y"||a==="single"&&o,l=a==="x"||a==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){var v=f.getLayout("points"),c=!!v;c&&xw(f.getLayout("pointsRange"),u);for(var h=u.start;h<u.end;h++){var d=c?(h-u.start)*2:-1,p=c?[v[d],v[d+1]]:f.getItemLayout(h);if(p){var g=f.getItemVisual(h,"symbolSize"),y=g instanceof Array?(g[1]+g[0])/2:g;if(s){var m=h2(t,p[0],p[1],y/2);c?v[d+1]=m:p[1]=m}else if(l){var m=h2(t,p[1],p[0],y/2);c?v[d]=m:p[0]=m}}}}}}}}}}function P8(r){xe(c2),r.registerSeriesModel(jY),r.registerChartView(t8),r.registerLayout(kf("scatter"))}function R8(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,L8())}function E8(r){var e=r.polar;if(e){H(e)||(e=[e]);var t=[];A(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],H(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}A(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Ff="radar",k8=(function(r){N(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 Dl(j(this.getData,this),j(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return Ml(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=LA(this,t);return gt("section",{header:u,sortBlocks:!0,blocks:U(s,function(v){var c=i.get(i.mapDimension(v.dim),t);return gt("nameValue",{markerType:"subItem",markerColor:f,name:v.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(U(a.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series."+Ff,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})(We),O8=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ff,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,h){var d=c.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=il(c.getItemVisual(h,"symbolSize")),g=ht(d,-1,-1,2,2),y=c.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),uo[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},t,g)):_.setPosition(h[m]),d.add(_))}}function v(c){return U(c,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(c){var h=s.getItemLayout(c);if(h){var d=new Wt,p=new Ot,g={shape:{points:h}};d.shape.points=v(h),p.shape.points=v(h),Ke(d,g,t,c),Ke(p,g,t,c);var y=new le,m=new le;y.add(p),y.add(d),y.add(m),f(p.shape.points,h,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(c)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,c,!1),Gr(g),Gr(p),Oe(p,m,t),Oe(g,m,t),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,h){var d=s.getItemModel(h),p=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(c),p.useStyle(ue(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),St(p,d,"lineStyle"),St(g,d,"areaStyle");var S=d.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,A(["emphasis","select","blur"],function(w){var C=d.getModel([w,"areaStyle"]),T=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(w).ignore=T&&x;var M=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=M;var D=C.getAreaStyle();g.ensureState(w).style=D;var L=d.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(I){I.ensureState(w).style=ae(L)})}),g.useStyle(ue(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=d.getModel("emphasis");y.eachChild(function(w){if(w instanceof Dt){var C=w.style;w.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var T=s.getStore().get(s.getDimensionIndex(w.__dimIdx),h);(T==null||isNaN(T))&&(T=""),It(w,xt(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:w.__dimIdx,defaultText:T,inheritColor:_,defaultOpacity:m.opacity})}),tt(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=Ff,e})(Fe),Hf=KL.value,Wf="radar",g2=Wf,N8=Wf,y2=5;function _d(r,e){return ue({show:e},r)}var B8=(function(r){N(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"),n=this.get("splitNumber"),a=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),v=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),d=U(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=ue({color:p.color},u));var y=_e(ae(p),{boundaryGap:t,splitNumber:n,clockwise:a,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:h},!1);if($(v)){var m=y.name;y.name=v.replace("{value}",m??"")}else ne(v)&&(y.name=v(y.name,y));var _=new De(y,null,this.ecModel);return lt(_,_l.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=fo("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=g2,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:B.color.axisLabel},boundaryGap:[0,0],splitNumber:y2,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_e({lineStyle:{color:B.color.neutral20}},Hf.axisLine),axisLabel:_d(Hf.axisLabel,!1),axisTick:_d(Hf.axisTick,!1),splitLine:_d(Hf.splitLine,!0),splitArea:_d(Hf.splitArea,!0),indicator:[]},e})(we),V8=(function(r){N(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,n,a){var i=this.group;i.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,n){var a=t.coordinateSystem,i=a.getIndicatorAxes(),o=U(i,function(s){var l=s.model.get("showName")?s.name:"",u=new lr(s.model,n,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),v=s.get("show"),c=l.get("color"),h=u.get("color"),d=H(c)?c:[c],p=H(h)?h:[h],g=[],y=[];function m(E,R,O){var k=O%R.length;return E[k]=E[k]||[],k}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,x=n.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new kn({shape:{cx:S,cy:x,r:_[b].coord}}))}if(v&&b<_.length-1){var w=m(y,p,b);y[w].push(new zs({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var C,T=U(a,function(E,R){var O=E.getTicksCoords();return C=C==null?O.length-1:Math.min(O.length-1,C),U(O,function(k){return n.coordToPoint(k.coord,R)})}),M=[],b=0;b<=C;b++){for(var D=[],L=0;L<a.length;L++)D.push(T[L][b]);if(D[0]?D.push(D[0].slice()):console.error("Can't draw value axis "+b),f){var w=m(g,d,b);g[w].push(new Ot({shape:{points:D}}))}if(v&&M){var w=m(y,p,b-1);y[w].push(new Wt({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();A(y,function(E,R){this.group.add(Ar(E,{style:ue({stroke:"none",fill:p[R%p.length]},P),silent:!0}))},this),A(g,function(E,R){this.group.add(Ar(E,{style:ue({fill:"none",stroke:d[R%d.length]},I),silent:!0}))},this)},e.type="radar",e})(Xe),z8=(function(r){N(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e})(Zr),G8=(function(){function r(e,t,n){this.type=Wf,this.dimensions=[],this._model=e,this._indicatorAxes=U(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new z8(o,new Vn);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],v=Math.abs(i-f.angle);v<o&&(s=f,l=u,o=v)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=bt(e,t).refContainer,a=e.get("center"),i=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=q(a[0],n.width)+n.x,this.cy=q(a[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");($(s)||Re(s))&&(s=[0,s]),this.r0=q(s[0],o),this.r=q(s[1],o);var l=i?-1:1;A(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var v=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),u.angle=v},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model,i=Oh(a.get("splitNumber"),y2),o=new Vn;o.setExtent(0,i),o.setConfig({interval:1}),A(n,function(s){Eo(s,xl),QL(s,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent(g2,function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType(N8,function(a){if(a.get("coordinateSystem")===Wf){var i=a.coordinateSystem=n[a.get("radarIndex")||0];i&&A(i.getIndicatorAxes(),function(o){Ro(o,a,Wf)})}}),n},r.dimensions=[],r})();function F8(r){r.registerCoordinateSystem("radar",G8),r.registerComponentModel(B8),r.registerComponentView(V8),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var H8=_t(Ff,W8);function W8(r){r.eachSeriesByType(Ff,function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();A(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=m2(f)?f:_2(a)})}),t.each(function(o){var s=ta(n[o],function(l){return m2(l)})||_2(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function m2(r){return!isNaN(r[0])&&!isNaN(r[1])}function _2(r){return[r.cx,r.cy]}function U8(r){xe(F8),r.registerChartView(O8),r.registerSeriesModel(k8),r.registerLayout(H8),r.registerProcessor(zf("radar")),r.registerPreprocessor(E8)}var O_=Se();function Y8(r,e,t){O_(r)[e]=t}function X8(r,e,t){var n=O_(r),a=n[e];a===t&&(n[e]=null)}function S2(r,e){return!!O_(r)[e]}fn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},at);var Z8={axisPointer:1,tooltip:1,brush:1};function x2(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||Z8.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===t)return!1;var i=lo(n),o=lo(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var Zo=(function(r){N(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=j(n._mousedownHandler,n),i=j(n._mousemoveHandler,n),o=j(n._mouseupHandler,n),s=j(n._mousewheelHandler,n),l=j(n._pinchHandler,n);return n.enable=function(u,f){var v=f.zInfo,c=lo(v.component),h=c.z,d=c.zlevel,p={component:v.component,z:h,zlevel:d,z2:Q(v.z2,-1/0)},g=G({},f.triggerInfo);this._opt=ue(G({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(Yf(t,"mousedown",a,p),Yf(t,"mousemove",i,p),Yf(t,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Yf(t,"mousewheel",s,p),Yf(t,"pinch",l,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,Xf(t,"mousedown",a),Xf(t,"mousemove",i),Xf(t,"mouseup",o),Xf(t,"mousewheel",s),Xf(t,"pinch",l))},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,n,a){var i=this._opt,o=i.zInfoParsed;if(x2(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,n,a)),u&&s.isInClip&&!s.isInClip(t,n,a)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,n,a,i){var o=t.target;if(!o&&this._checkPointer(t,n,a))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(qx(t)||Uf(t))){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this._checkPointer(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var n=this._zr;if(!(t.gestureEvent==="pinch"||S2(n,"globalPan")||Uf(t))){var a=t.offsetX,i=t.offsetY;if(!this._dragging||!xd("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=a-s,f=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&oa(t.event),t.__ecRoamConsumed=!0,b2(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Uf(t)){var n=this._zr;if(!qx(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&n.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!Uf(t)){var n=xd("zoomOnMouseWheel",t,this._opt),a=xd("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var v=Math.abs(i),c=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(S2(this._zr,"globalPan")||Uf(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,a,i,o){t._checkPointer(i,o.originX,o.originY)&&(oa(i.event),i.__ecRoamConsumed=!0,b2(t,n,a,i,o))},e})(Rr);function Uf(r){return r.__ecRoamConsumed}var $8=Se();function Sd(r){var e=$8(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Yf(r,e,t,n){for(var a=Sd(r),i=a.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:n}),q8(r,e)}function Xf(r,e,t){for(var n=Sd(r),a=n.roam[e]||[],i=0;i<a.length;i++)if(a[i].listener===t){a.splice(i,1),a.length||K8(r,e);return}}function q8(r,e){var t=Sd(r);t.uniform[e]||r.on(e,t.uniform[e]=function(n){var a=t.roam[e];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function K8(r,e){var t=Sd(r),n=t.uniform;n[e]&&(r.off(e,n[e]),n[e]=null)}function b2(r,e,t,n,a){a.isAvailableBehavior=j(xd,null,t,n),r.trigger(e,a)}function xd(r,e,t){var n=t[r];return!r||n&&(!$(n)||e.event[n+"Key"])}function w2(r){if($(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 N_,bd={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"},T2=Ae(bd),wd={"alignment-baseline":"textBaseline","stop-color":"stopColor"},C2=Ae(wd),j8=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=w2(e);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var a=new le;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Dr(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;e6(this._defs,this._defsUsePending),this._defsUsePending=[];var f,v;if(o){var c=Td(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&&(v=E2(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new le,a.add(h),h.scaleX=h.scaleY=v.scale,h.x=v.x,h.y=v.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Ce({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:v,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=N_[s];if(f&&J(N_,s)){l=f.call(this,e,t);var v=e.getAttribute("name");if(v){var c={name:v,namedFrom:null,svgNodeTagLower:s,el:l};n.push(c),s==="g"&&(u=c)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=A2[s];if(h&&J(A2,s)){var d=h.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var n=new Rs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});qr(t,n),Dr(e,n,this._defsUsePending,!1,!1),J8(n,t);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/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=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=(function(){N_={g:function(e,t){var n=new le;return qr(t,n),Dr(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Ce;return qr(t,n),Dr(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(e,t){var n=new kn;return qr(t,n),Dr(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new ft;return qr(t,n),Dr(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(e,t){var n=new Ru;return qr(t,n),Dr(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),a;n&&(a=I2(n));var i=new Wt({shape:{points:a||[]},silent:!0});return qr(t,i),Dr(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=I2(n));var i=new Ot({shape:{points:a||[]},silent:!0});return qr(t,i),Dr(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Dt;return qr(t,n),Dr(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new le;return qr(t,s),Dr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new le;return qr(t,s),Dr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=DT(n);return qr(t,a),Dr(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}})(),r})(),A2={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new no(e,t,n,a);return M2(r,i),D2(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new Gy(e,t,n);return M2(r,a),D2(r,a),a}};function M2(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function D2(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};R2(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=qt(o),u=l&&l[3];u&&(l[3]*=la(s),o=Nr(l,"rgba"))}e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function qr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),ue(e.__inheritedStyle,r.__inheritedStyle))}function I2(r){for(var e=Td(r),t=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);t.push([a,i])}return t}function Dr(r,e,t,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(n6(r,e),R2(r,o,s),n||a6(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=L2(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=L2(i,"stroke",o.stroke,t)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=U(Td(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function J8(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Q8=/^url\(\s*#(.*?)\)/;function L2(r,e,t,n){var a=t&&t.match(Q8);if(a){var i=yr(a[1]);n.push([r,e,i]);return}return t==="none"&&(t=null),t}function e6(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var t6=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Td(r){return r.match(t6)||[]}var r6=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,B_=Math.PI/180;function n6(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],a=null;t.replace(r6,function(v,c,h){return n.push(c,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=Td(o);switch(a=a||Qe(),s){case"translate":Qr(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Iv(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":sa(a,a,-parseFloat(l[0])*B_,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*B_);mr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*B_);mr(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 P2=/([^\s:;]+)\s*:\s*([^:;]+)/g;function R2(r,e,t){var n=r.getAttribute("style");if(n){P2.lastIndex=0;for(var a;(a=P2.exec(n))!=null;){var i=a[1],o=J(bd,i)?bd[i]:null;o&&(e[o]=a[2]);var s=J(wd,i)?wd[i]:null;s&&(t[s]=a[2])}}}function a6(r,e,t){for(var n=0;n<T2.length;n++){var a=T2[n],i=r.getAttribute(a);i!=null&&(e[bd[a]]=i)}for(var n=0;n<C2.length;n++){var a=C2[n],i=r.getAttribute(a);i!=null&&(t[wd[a]]=i)}}function E2(r,e){var t=e.width/r.width,n=e.height/r.height,a=Math.min(t,n);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 i6(r,e){var t=new j8;return t.parse(r,e)}var o6=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),s6=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=e,this._parsedXML=w2(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=u6(e.named),n=t.regions,a=t.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&i6(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,W(n!=null)}catch(g){throw new Error(`Invalid svg format
45
+ `+g.message)}var a=new le;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,v=void 0,c=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var h=n.getBoundingRect();u==null&&(u=h.x,v=h.width),f==null&&(f=h.y,c=h.height)}l=this._boundingRect=new se(u,f,v,c)}if(s){var d=E2(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new Ce({shape:l.plain()}));var p=[];return A(t.named,function(g){o6.get(g.svgNodeTagLower)!=null&&(p.push(g),l6(g.el))}),{root:a,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r})();function l6(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function u6(r){var e=[],t=K();return A(r,function(n){if(n.namedFrom==null){var a=new $4(n.name,n.el);e.push(a),t.set(n.name,a)}}),{regions:e,regionsMap:t}}for(var V_=[126,25],k2="\u5357\u6D77\u8BF8\u5C9B",$o=[[[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]]],qo=0;qo<$o.length;qo++)for(var Ll=0;Ll<$o[qo].length;Ll++)$o[qo][Ll][0]/=10.5,$o[qo][Ll][1]/=-10.5/.75,$o[qo][Ll][0]+=V_[0],$o[qo][Ll][1]+=V_[1];function f6(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===k2)return;e.push(new zD(k2,U($o,function(n){return{type:"polygon",exterior:n}}),V_))}}var v6={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function c6(r,e){if(r==="china"){var t=v6[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var h6=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function d6(r,e){r==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:h6[0]})}var p6="name",g6=(function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=K(),this._mapName=e,this._specialAreas=n,this._geoJSON=m6(t)}return r.prototype.load=function(e,t){t=t||p6;var n=this._parsedMap.get(t);if(!n){var a=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:a,boundingRect:y6(a)})}var i=K(),o=[];return A(n.regions,function(s){var l=s.name;e&&J(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new se(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,a;try{a=n?N0(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
46
+ `+i.message)}return f6(t,a),A(a,function(i){var o=i.name;c6(t,i),d6(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.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 y6(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function m6(r){return $(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Zf=K(),Ma={registerMap:function(r,e,t){if(e.svg){var n=new s6(r,e.svg);Zf.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new g6(r,a,t);Zf.set(r,n)}},getGeoResource:function(r){return Zf.get(r)},getMapForUser:function(r){var e=Zf.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=Zf.get(r);if(!n){console.error("Map "+r+" not exists. The GeoJSON of the map must be provided.");return}return n.load(e,t)}},Ko=0,jo=1,Xn=2;function Bte(r){return r}var _6="view",Cd=(function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;i.type=_6,i.dimensions=["x","y"];var o=i;o.invertY=t,o.lgCt=n,o.lgGeo=a;var s=o.trans=[];return s[Ko]=Ts(),s[jo]=Ts(),s[Xn]=Ts(),o.mtRaw=Qe(),o.mtRawInv=Qe(),o.mtOverall=Qe(),o.mtOverallInv=Qe(),o.zoom=1,i}return e.prototype.getBoundingRect=function(){return O2(null,this)},e.prototype.getViewRect=function(){return z_(null,this)},e.prototype.getRoamTransform=function(){return Ya(this.trans[jo])},e.prototype.dataToPoint=function(t,n,a){var i=n?this.mtRaw:this.mtOverall;return a=a||[],i?it(a,t,i):zt(a,t)},e.prototype.pointToData=function(t,n,a){a=a||[];var i=this.mtOverallInv;return i?it(a,t,i):zt(a,t)},e.prototype.convertToPixel=function(t,n,a){var i=F2(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=F2(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){var n=this;return ys(Ad,n.dataRect),eb(Ad,Ad,n.mtOverall),DB(Ad,t[0],t[1])},e.dimensions=["x","y"],e})(_n),Ad=Lv();function Md(r,e){return za(r||[],e.mtOverall)}function S6(r){return r.zoom}function O2(r,e){return ys(r||Lv(),e.dataRect)}function z_(r,e){return ys(r||Lv(),e.viewRect)}function $f(r,e,t){return Sn(r||Ts(),e.trans[t])}function Dd(r){return!!(r.dataRect&&r.viewRect)}function x6(r,e,t,n){n===jo?z2(r,e.trans[Ko],t):Sn(r,t)}function N2(r,e,t){Ya(t,Id),mr(Id,Id,e.mtRawInv),Gc(r,Id)}var Id=Qe();function G_(r,e){var t=r;t.centerOption=e.getShallow("center");var n=t.zoomLimit=e.getShallow("scaleLimit"),a=e.getShallow("zoom");t.zoom=Y_(a||1,n)||1,Dd(t)&&F_(t)}function Ld(r,e,t,n,a){var i=r;i.dataRect=new se(e,t,n,a),Dd(i)&&F_(i)}function Pd(r,e,t,n,a){var i=r;i.viewRect=new se(e,t,n,a),Dd(i)&&F_(i)}function F_(r){b6(r),T6(r),C6(r)}function b6(r){var e=r.dataRect,t=r.viewRect,n=r.trans[Ko],a=r.invertY;a&&(e=ys(w6,e),e.y=-e.y-e.height),Qx(B2,e,t),Gc(n,B2),a&&(n.scaleY=-n.scaleY);var i=Ya(n,r.mtRaw);_r(r.mtRawInv,i)}var B2=Qe(),w6=Lv();function T6(r){var e=H2(r),t=D6(H_,r,r.centerOption)?it(H_,H_,r.mtRaw):e,n=r.zoom,a=r.trans[jo];a.x=e[0]-n*t[0],a.y=e[1]-n*t[1],a.scaleX=a.scaleY=n}var H_=[];function C6(r){var e=r.trans,t=e[jo],n=e[Ko],a=e[Xn];z2(a,n,t);var i=Ya(a,r.mtOverall),o=_r(r.mtOverallInv,i);V2(r,a,i,o),V2(r.lgGeo,a,i,o)}function V2(r,e,t,n){r&&(Sn(r,e),za(r.transform||(r.transform=[]),t),za(r.invTransform||(r.invTransform=[]),n))}function z2(r,e,t){Ya(e,G2),Ya(t,Rd),mr(Rd,Rd,G2),Gc(r,Rd)}var G2=Qe(),Rd=Qe();function F2(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function H2(r){var e=r.viewRect;return W_[0]=e.x+e.width/2,W_[1]=e.y+e.height/2,W_}var W_=[];function W2(r){return r&&r.type==="view"}function ci(r,e,t,n){var a=t;a.syncBackEl=r,a.syncBackType=e,n?Oe(r,$f(null,t,e),n):($f(r,t,e),r.dirty())}function A6(r,e,t,n){var a=r,i=a.syncBackEl;i?(W(a.syncBackType!=null),i.stopAnimation(),x6(hi,a,i,a.syncBackType)):Sn(hi,a.trans[Xn]),N2(U_,a,hi),n?M6(hi,U_,a,n):Sn(hi,U_),N2(hi,a,hi),L6(a,e,t,hi)}var hi=Ts(),U_=Ts();function U2(r,e,t){var n=Ed(e);n&&(A6(n,e,t,r),G_(n,e))}function Ed(r){return r.__ownRoamView?r.__ownRoamView():null}function Y2(r,e,t,n){t.setUpdatePayload(jy(r));var a=rT(n,e);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(r,e,n)}function M6(r,e,t,n){n.dx!=null&&n.dy!=null&&(r.x+=n.dx,r.y+=n.dy);var a=n.zoom;if(a!=null){var i=X2(e),o=Y_(i*a,t.zoomLimit),s=o/i;r.x-=(n.originX-r.x)*(s-1),r.y-=(n.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function X2(r){return W(rt(r.scaleX-r.scaleY)<1e-5),r.scaleX}function D6(r,e,t){W(Dd(e));var n=e.dataRect;if(!t)return!1;var a=e.lgCt;return a?ra(r,q(t[0],a.w),q(t[1],a.h)):n&&ra(r,q(t[0],n.width,n.x),q(t[1],n.height,n.y)),!0}function I6(r,e){var t=r.centerOption,n=r.dataRect;return W(e&&n),!t||r.lgCt?e.slice():[Z2(0,e,t,n),Z2(1,e,t,n)]}function Z2(r,e,t,n){return t&&n&&n[st[r]]&&zV(t[r])?(e[r]-n[pe[r]])/n[st[r]]*100+"%":e[r]}function $2(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function L6(r,e,t,n){var a=H2(r),i=X2(n),o=rt(i)>1e-6;qf[0]=o?(a[0]-n.x)/i:a[0],qf[1]=o?(a[1]-n.y)/i:a[1],it(qf,qf,r.mtRawInv);var s=I6(r,qf);q2(e,s,i),A(t,function(l){l!==e&&q2(l,s.slice(),i)})}var qf=[];function q2(r,e,t){var n=r.option;n.center=e,n.zoom=t}function Y_(r,e){if(e){var t=e.min||0,n=e.max||1/0;r=Math.max(Math.min(n,r),t)}return r}function K2(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,n=r;return((n.zoom-1)*t+1)/(n.trans[Xn].scaleX||1)}function kd(r,e,t,n,a,i,o,s){var l=Ed(r);if(!l){t.disable();return}t.enable(Q(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:n,isInClip:function(f,v,c){return!a||a.contain(v,c)}}});function u(f){var v=r.mainType,c=jy(ue({type:J2(v,r.subType,eT)},f));s&&(c.componentType=v),c[v+"Id"]=r.id,e.dispatchAction(c)}t.off("pan").off("zoom").on("pan",function(f){i&&i("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){i&&i("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function j2(r){return function(e,t,n){return X_.copy(r.getBoundingRect()),X_.applyTransform(r.getComputedTransform()),X_.contain(t,n)}}var X_=new se(0,0,0,0);function Z_(r,e,t){var n=J2(e,t,eT);r.registerAction({type:n,event:n,update:"none"},function(a,i,o){i.eachComponent(Qg(a,e,t),function(s){U2(a,s),Y2(a,s,i,o)})})}function J2(r,e,t){return(r!==En?r:e==="map"?"geo":e)+t}function Q2(r){return r.zoom!=null}function $_(r,e,t,n,a,i,o){var s=new Cd(null,$2(r.ecModel,e));return Ld(s,t,n,a,i),o?Pd(s,o.x,o.y,o.width,o.height):Pd(s,t,n,a,i),G_(s,r),s}var q_=["rect","circle","line","ellipse","polygon","polyline","path"],P6=K(q_),R6=K(q_.concat(["g"])),E6=K(q_.concat(["g"])),eP=Se();function Od(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function tP(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var rP=(function(){function r(e){var t=this.group=new le,n=this._transformGroup=new le;t.add(n),this.uid=fo("ec_map_draw"),this._controller=new Zo(e.getZr()),n.add(this._regionsGroup=new le),n.add(this._svgGroup=new le)}return r.prototype.draw=function(e,t,n,a,i){var o=this,s=e.getData&&e.getData();Pl(e)&&t.eachComponent({mainType:"series",subType:"map"},function(p){!s&&p.getHostGeoModel()===e&&(s=p.getData())});var l=e.coordinateSystem,u=l.view,f=this._regionsGroup,v=this._transformGroup,c=!f.childAt(0)||i,h;l.shouldClip()?(h=z_(null,u),this.group.setClipPath(new Ce({shape:h.clone()}))):this.group.removeClipPath(),ci(v,jo,u,c?null:e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,n,l,e,s,d):l.resourceType==="geoSVG"&&this._buildSVG(u,n,l,e,s,d),kd(e,n,this._controller,function(p,g,y){return e.coordinateSystem.containPoint([g,y])},h,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,f,n,a)},r.prototype.__updateOnOwnRoam=function(e){ci(this._transformGroup,jo,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,n,a,i,o){var s=this._regionsGroupByName=K(),l=K(),u=this._regionsGroup,f=n.projection,v=f&&f.stream,c=Ya($f(null,e,Ko));function h(g,y){return y&&(g=y(g)),g&&it([],g,c)}function d(g){for(var y=[],m=!v&&f&&f.project,_=0;_<g.length;++_){var S=h(g[_],m);S&&y.push(S)}return y}function p(g){return{shape:{points:d(g)}}}u.removeAll(),A(n.regions,function(g){var y=g.name,m=s.get(y),_=l.get(y)||{},S=_.dataIdx,x=_.regionModel;if(!m){m=s.set(y,new le),u.add(m),S=i?i.indexOfName(y):null,x=Pl(a)?a.getRegionModel(y):i?i.getItemModel(S):null;var b=x.get("silent",!0);b!=null&&(m.silent=b),l.set(y,{dataIdx:S,regionModel:x})}var w=[],C=[];A(g.geometries,function(D){if(D.type==="polygon"){var L=[D.exterior].concat(D.interiors||[]);v&&(L=lP(L,v)),A(L,function(P){w.push(new Wt(p(P)))})}else{var I=D.points;v&&(I=lP(I,v,!0)),A(I,function(P){C.push(new Ot(p(P)))})}});var T=h(g.getCenter(),f&&f.project);function M(D,L){if(D.length){var I=new Nu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:D}});m.add(I),nP(t,i,o,I,S,x),aP(a,i,I,y,x,S,T),L&&(tP(I),A(I.states,tP))}}M(w),M(C,!0)}),s.each(function(g,y){var m=l.get(y),_=m.dataIdx,S=m.regionModel;iP(a,i,g,y,S,_),oP(a,i,g,y,S),sP(a,g,y,S)},this)},r.prototype._buildSVG=function(e,t,n,a,i,o){var s=n.map;$f(this._svgGroup,e,Ko),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=K(),u=!1;A(this._svgGraphicRecord.named,function(f){var v=f.name,c=f.svgNodeTagLower,h=f.el,d=i?i.indexOfName(v):null,p=a.getRegionModel(v);P6.get(c)!=null&&h instanceof Vr&&nP(t,i,o,h,d,p),h instanceof Vr&&(h.culling=!0);var g=p.get("silent",!0);if(g!=null&&(h.silent=g),h.z2EmphasisLift=0,!f.namedFrom&&(E6.get(c)!=null&&aP(a,i,h,v,p,d,null),iP(a,i,h,v,p,d),oP(a,i,h,v,p),R6.get(c)!=null)){var y=sP(a,h,v,p);y==="self"&&(u=!0);var m=l.get(v)||l.set(v,[]);m.push(h)}},this),this._enableBlurEntireSVG(u,a)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&Pl(t)){var n=t.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){eo(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.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 n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.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=Ma.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ma.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=eP(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function nP(r,e,t,n,a,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),f=Od(o),v=Od(s),c=Od(u),h=Od(l);if(e){var d=e.getItemVisual(a,"style"),p=e.getItemVisual(a,"decal");t&&d.fill&&(f.fill=d.fill),p&&(f.decal=ll(p,r))}n.setStyle(f),n.style.strokeNoScale=!0,n.ensureState("emphasis").style=v,n.ensureState("select").style=c,n.ensureState("blur").style=h,eo(n)}function aP(r,e,t,n,a,i,o){var s=e&&isNaN(e.get(e.mapDimension("value"),i)),l=e&&e.getItemLayout(i);if(Pl(r)||s||l&&l.showLabel){var u=Pl(r)?n:i,f=void 0;(!e||i>=0)&&(f=r);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;It(t,xt(a),{labelFetcher:f,labelDataIndex:u,defaultText:n},v);var c=t.getTextContent();if(c&&(eP(c).ignore=c.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+"%",(o[1]-h.y)/h.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function iP(r,e,t,n,a,i){e?e.setItemGraphicEl(i,t):ve(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:a&&a.option||{}}}function oP(r,e,t,n,a){e||Sa({el:t,componentModel:r,itemName:n,itemTooltipOption:a.get("tooltip")})}function sP(r,e,t,n){e.highDownSilentOnTouch=!!r.get("selectedMode");var a=n.getModel("emphasis"),i=a.get("focus");return tt(e,i,a.get("blurScope"),a.get("disabled")),Pl(r)&&b5(e,r,t),i}function lP(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(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(),n}function Pl(r){return r.mainType==="geo"}var Jo="map",k6=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=Ml(this,{coordDimensions:["value"],encodeDefaulter:be(Tm,this)}),a=K(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=Ma.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return A(u.regions,function(f){var v=f.name,c=a.get(v),h=f.properties&&f.properties.echartsStyle,d;c==null?(d={name:v},i.push(d)):d=n.getRawDataItem(c),h&&_e(d,h)}),n.appendData(i),n},e.prototype.getHostGeoModel=function(){if(bC(this).kind!==xC)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 n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=[];return A(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),v=i.mapDimension("value");isNaN(u.originalData.get(v,f))||l.push(u.name)}),gt("section",{header:l.join(", "),noHeader:!l.length,blocks:[gt("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=ht(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=B.color.neutral00,a.style.lineWidth=2),a},e.prototype.__ownRoamView=function(){return Nd(this)?this.coordinateSystem.view:null},e.type="series."+Jo,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:B.color.tertiary},itemStyle:{borderWidth:.5,borderColor:B.color.border,areaColor:B.color.background},emphasis:{label:{show:!0,color:B.color.primary},itemStyle:{areaColor:B.color.highlight}},select:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},nameProperty:"name"},e})(We);function uP(r){return r.indexOf("i")===0}function Nd(r){return Kf(r.seriesGroup)===r&&!r.getHostGeoModel()}function Kf(r){return r.f[0]}function K_(r,e){var t={};return r.eachRawSeriesByType(Jo,function(n){var a=n.getHostGeoModel(),i=a?"o"+a.id:"i"+n.getMapType(),o=t[i]=t[i]||{f:[],r:[]};!r.isSeriesFiltered(n)&&!e&&o.f.push(n),o.r.push(n)}),t}var O6=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Jo,t}return e.prototype.render=function(t,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){var s=this._mapDraw;s&&i&&i.type==="geoRoam"&&s.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id?s&&o.add(s.group):Nd(t)?(s=s||(this._mapDraw=new rP(a)),o.add(s.group),s.draw(t,n,a,this,i)):this._clearMapDraw(),t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t)}}},e.prototype.__updateOnOwnRoam=function(t,n,a){var i=this._mapDraw;Nd(n)&&i&&i.__updateOnOwnRoam(n)},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 n=t.originalData,a=this.group;n.each(n.mapDimension("value"),function(i,o){if(!isNaN(i)){var s=n.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,f=new kn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:Os+1)});if(!u){var v=Kf(t.seriesGroup).getData(),c=n.getName(o),h=v.indexOfName(c),d=n.getItemModel(o),p=d.getModel("label"),g=v.getItemGraphicEl(h);It(f,xt(d),{labelFetcher:{getFormattedLabel:function(y,m){return t.getFormattedLabel(h,m)}},defaultText:c}),f.disableLabelAnimation=!0,p.get("position")||f.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(y){Dc(f,y)}}a.add(f)}}})},e.type=Jo,e})(Fe),N6={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},fP=["lng","lat"],vP=(function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;i.dimensions=fP,i.type="geo",i._nameCoordMap=K(),i.name=t;var o=a.projection,s=Ma.load(n,a.nameMap,a.nameProperty),l=Ma.getGeoResource(n),u=i.resourceType=l?l.type:null,f=i.regions=s.regions,v=N6[l.type];i._clip=a.clip;var c=o?!1:v.invertLongitute;i.view=new Cd(c,$2(a.ecModel,a.api),i),i.map=n,i._regionsMap=s.regionsMap,i.regions=s.regions,o&&(u==="geoSVG"&&(et("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(et("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var h;if(o)for(var d=0;d<f.length;d++){var p=f[d].getBoundingRect(o);h=h||p.clone(),h.union(p)}else h=s.boundingRect;return Ld(i.view,h.x,h.y,h.width,h.height),i.aspectScale=o?1:Q(a.aspectScale,v.aspectScale),i}return e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if($(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.view.dataToPoint(t,n,a)}},e.prototype.pointToData=function(t,n,a){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.view.pointToData(t,a)},e.prototype.convertToPixel=function(t,n,a){var i=cP(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=cP(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var n=z_(null,this.view);return n.x-=t,n.y-=t,n.width+=2*t,n.height+=2*t,n},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})(_n);function cP(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",ot).models[0]||{}).coordinateSystem:null}function hP(r,e){var t=this.view,n=r.get("boundingCoords");if(n!=null){var a=n[0],i=n[1];if(!(isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])))console.error("Invalid boundingCoords");else{var o=this.projection;if(o){var s=a[0],l=a[1],u=i[0],f=i[1];a=[1/0,1/0],i=[-1/0,-1/0];var v=function(b,w,C,T){for(var M=C-b,D=T-w,L=0;L<=100;L++){var I=L/100,P=o.project([b+M*I,w+D*I]);aa(a,a,P),ia(i,i,P)}};v(s,l,u,l),v(u,l,u,f),v(u,f,s,f),v(s,f,u,l)}Ld(t,a[0],a[1],i[0]-a[0],i[1]-a[1])}}var c=t.getBoundingRect(),h=r.get("layoutCenter"),d=r.get("layoutSize"),p=bt(r,e).refContainer,g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&d&&(m=[q(h[0],p.width)+p.x,q(h[1],p.height)+p.y],_=q(d,Math.min(p.width,p.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)?y=!0:console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var x=r.getBoxLayoutParams();x.aspect=g,S=Je(x,p),S=MC(r,S,g)}Pd(t,S.x,S.y,S.width,S.height),G_(t,r)}function B6(r,e){A(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var V6=(function(){function r(){this.dimensions=fP}return r.prototype.create=function(e,t){var n=[];function a(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return e.eachComponent("geo",function(i,o){var s=i.get("map"),l=new vP(s+o,s,G({nameMap:i.get("nameMap"),api:t,ecModel:e},a(i)));n.push(l),i.coordinateSystem=l,l.model=i,l.resize=hP,l.resize(i,t)}),e.eachSeries(function(i){Yu({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===Jo?i.getHostGeoModel():i.getReferringComponents("geo",ot).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),A(K_(e,!0),function(i,o){if(uP(o)){var s=i.r[0],l=[];A(i.r,function(c){l.push(c.get("nameMap")),c.seriesGroup=null});var u=o.slice(1),f=new vP(u,u,G({nameMap:Tv(l),api:t,ecModel:e},a(s))),v;A(i.r,function(c){v=Q(v,c.get("scaleLimit"))}),n.push(f),f.resize=hP,f.resize(s,t),A(i.r,function(c){c.coordinateSystem=f,B6(f,c)})}}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=K(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Ma.load(t,n,a);return A(l.regions,function(u){var f=u.name,v=o.get(f),c=u.properties&&u.properties.echartsStyle;v||(v={name:f},i.push(v)),c&&_e(v,c)}),i},r})(),dP=new V6,z6=(function(r){N(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,n,a){this.mergeDefaultAndTheme(t,a);var i=Ma.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||B.color.backgroundTint)}Gi(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=dP.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=Pr(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new De(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},K()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new De(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(ne(i))return o.status=n,i(o);if($(i))return i.replace("{a}",t??"")},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[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:B.color.tertiary},itemStyle:{borderWidth:.5,borderColor:B.color.border},emphasis:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},select:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},regions:[]},e})(we),G6=(function(r){N(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,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new rP(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype.__updateOnOwnRoam=function(t,n,a){var i=this._mapDraw;i&&i.__updateOnOwnRoam(n)},e.prototype._handleRegionClick=function(t){var n;To(t.target,function(a){return(n=ve(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=ve(o).eventData;if(s)return i._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})(Xe);function F6(r,e,t){Ma.registerMap(r,e,t)}function pP(r){r.registerCoordinateSystem("geo",dP),r.registerComponentModel(z6),r.registerComponentView(G6),r.registerImpl("registerMap",F6),r.registerImpl("getMap",function(t){return Ma.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;A(u.regions,function(v){o[v.name]=l.isSelected(v.name)||!1});var f=[];A(o,function(v,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,n,a){var i=t.componentType||(t.geoId!=null||t.geoName!=null||t.geoIndex!=null?"geo":En),o=i===En;if(!(i!=="geo"&&!o)){var s=o?"map":null;n.eachComponent(Qg(t,i,s),function(l){o&&!Nd(l)||(U2(t,l,o?l.seriesGroup.r:null),Y2(t,l,n,a))})}})}var H6=_t(Jo,W6);function W6(r){A(K_(r),function(e,t){if(!(!Kf(e)||!uP(t))){var n={};A(e.f,function(i){var o=i.coordinateSystem,s=i.originalData;i.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),v=o.getRegion(f);if(!(!v||isNaN(l))){var c=n[f]||0,h=o.dataToPoint(v.getCenter());n[f]=c+1,s.setItemLayout(u,{point:h,offset:c})}})});var a=Kf(e).getData();a.each(function(i){var o=a.getName(i),s=a.getItemLayout(i)||{};s.showLabel=!n[o],a.setItemLayout(i,s)})}})}function U6(r,e){var t={};return A(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];var v;return e==="min"?v=s:e==="max"?v=l:e==="average"?v=o/u:v=o,u===0?NaN:v})}var Y6=_t(Jo,X6);function X6(r){A(K_(r),function(e){var t=Kf(e);if(t){var n=U6(U(e.f,function(a){return a.getData()}),t.get("mapValueCalculation"));A(e.f,function(a){a.seriesGroup=e,a.originalData=a.getData(),a.setData(n.cloneShallow())})}})}function Z6(r){xe(pP),r.registerChartView(O6),r.registerSeriesModel(k6),r.registerLayout(H6),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Y6),QA("map",r.registerAction)}function $6(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],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-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 q6(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){j6(r);var i=(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-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=J6(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function K6(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function gP(r){return arguments.length?r:t7}function jf(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function j6(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function J6(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,v=s.hierNode.modifier;s=j_(s),i=J_(i),s&&i;){a=j_(a),o=J_(o),a.hierNode.ancestor=r;var c=s.hierNode.prelim+v-i.hierNode.prelim-u+n(s,i);c>0&&(e7(Q6(s,r,t),r,c),u+=c,l+=c),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!j_(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=v-l),i&&!J_(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function j_(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function J_(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function Q6(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function e7(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function t7(r,e){return r.parentNode===e.parentNode?1:2}var Kr=Se();function yP(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,mP(e,t,r),A(t,function(n){A(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,be(r7,r))})}),e.wrapMethod("cloneShallow",be(a7,r)),A(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,be(n7,r))}),W(t[e.dataType]===e)}function r7(r,e){if(s7(this)){var t=G({},Kr(this).datas);t[this.dataType]=e,mP(e,t,r)}else Q_(e,this.dataType,Kr(this).mainData,r);return e}function n7(r,e){return r.struct&&r.struct.update(),e}function a7(r,e){return A(Kr(e).datas,function(t,n){t!==e&&Q_(t.cloneShallow(),n,e,r)}),e}function i7(r){var e=Kr(this).mainData;return r==null||e==null?e:Kr(e).datas[r]}function o7(){var r=Kr(this).mainData;return r==null?[{data:r}]:U(Ae(Kr(r).datas),function(e){return{type:e,data:Kr(r).datas[e]}})}function s7(r){return Kr(r).mainData===r}function mP(r,e,t){Kr(r).datas={},A(e,function(n,a){Q_(n,a,r,t)})}function Q_(r,e,t,n){Kr(t).datas[e]=r,Kr(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=i7,r.getLinkedDataAll=o7}var l7=(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,n){ne(e)&&(n=t,t=e,e=null),e=e||{},$(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];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,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.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,n=t.data.getItemModel(this.dataIndex);return n.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})(),e1=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},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,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(f,v){var c=f.value;o=Math.max(o,H(c)?c.length:1),i.push(f);var h=new l7(mt(f.name,""),a);v?u7(h,v):a.root=h,a._nodes.push(h);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],h)}a.root.updateDepthAndHeight(0);var l=hl(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Jt(l,t);return u.initData(i),n&&n(u),yP({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r})();function u7(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function Jf(r,e,t){if(r&&ge(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if($(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function _P(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function t1(r,e){var t=_P(r);return ge(t,e)>=0}function Bd(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var Qo="tree",f7=(function(r){N(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 n={name:t.name,children:t.data},a=t.leaves||{},i=new De(a,this,this.ecModel),o=e1.createTree(n,this,s);function s(v){v.wrapMethod("getItemModel",function(c,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(c.parentModel=i),c})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var c=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=c&&c.collapsed!=null?!c.collapsed:v.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,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return gt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Bd(a,this),n.collapsed=!a.isExpand,n},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Qo,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:B.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(We),v7=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),c7=(function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new v7},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,v=1-f,c=q(n.forkPosition,1),h=[];h[f]=o[f],h[v]=o[v]+(l[v]-o[v])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[f]=s[f],t.lineTo(h[0],h[1]),h[f]=l[f],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];t.moveTo(p[0],p[1]),h[f]=p[f],t.lineTo(h[0],h[1])}},e})(Me),h7=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Qo,t._mainGroup=new le,t}return e.prototype.init=function(t,n){this._controller=new Zo(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,n,a){var i=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),kd(t,a,this._controller,j2(this.group),null);var u=this._data;i.diff(u).add(function(f){SP(i,f)&&xP(i,f,null,s,t)}).update(function(f,v){var c=u.getItemGraphicEl(v);if(!SP(i,f)){c&&TP(u,v,c,s,t);return}xP(i,f,c,s,t)}).remove(function(f){var v=u.getItemGraphicEl(f);v&&TP(u,f,v,s,t)}).execute(),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,v){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:v})})}),this._data=i,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,n,a){ci(this.group,Xn,n.coordinateSystem,null),Q2(t)&&this._updateNodeAndLinkScale(n)},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(v){var c=a.getItemLayout(v);c&&!isNaN(c.x)&&!isNaN(c.y)&&i.push([+c.x,+c.y])});var o=[],s=[];_c(i,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=$_(t,n,o[0],o[1],s[0]-o[0],s[1]-o[1]);ci(this.group,Xn,f,this._firstRender?null:t),this._min=o,this._max=s},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=K2(t.coordinateSystem,t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=Qo,e})(Fe);function SP(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function xP(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:B.color.neutral00,f=r.tree.root,v=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(v.dataIndex),h=v.getLayout(),d=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,p=o.getLayout();i?(t=new If(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=p.rawX,t.__radialRawY=p.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Oe(t,{x:p.x,y:p.y},a);var g=t.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(b.y-m.y,b.x-m.x),S<0&&(S=Math.PI*2+S),x=b.x<m.x,x&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<m.x,x&&(S=S-Math.PI)):(x=p.x>m.x,x||(S=S-Math.PI));var w=x?"left":"right",C=s.getModel("label"),T=C.get("rotate"),M=T*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:C.get("position")||w,rotation:T==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?ds(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(ve(t).focus=I),d7(a,o,f,t,d,h,p,n),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var E=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===Iu||Dc(t.__edge,P)}})}function d7(r,e,t,n,a,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),v=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=n.__edge=new Gs({shape:r1(f,v,c,a,a)})),Oe(p,{shape:r1(f,v,c,i,o)},r));else if(u==="polyline")if(f==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new c7({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:h}})),Oe(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}}else throw new Error("The polyline edgeShape can only be used in orthogonal layout");p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(ue({strokeNoScale:!0,fill:null},d)),St(p,l,"lineStyle"),eo(p),s.add(p))}function bP(r,e,t,n,a){var i=e.tree.root,o=wP(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),v=f.__edge,c=u.__edge||(s.isExpand===!1||s.children.length===1?v:void 0),h=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);c&&(h==="curve"?Qa(c,{shape:r1(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){t.remove(c)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&Qa(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(c)},removeOpt:a}))}}function wP(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function TP(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=wP(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Qa(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),A(i.children,function(u){bP(u,r,n,a,l)}),bP(i,r,n,a,l)}function r1(r,e,t,n,a){var i,o,s,l,u,f,v,c;if(r==="radial"){u=n.rawX,v=n.rawY,f=a.rawX,c=a.rawY;var h=jf(u,v),d=jf(u,v+(c-v)*t),p=jf(f,c+(v-c)*t),g=jf(f,c);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,v=n.y,f=a.x,c=a.y,(e==="LR"||e==="RL")&&(i=u+(f-u)*t,o=v,s=f+(u-f)*t,l=c),(e==="TB"||e==="BT")&&(i=u,o=v+(c-v)*t,s=f,l=c+(v-c)*t);return{x1:u,y1:v,x2:f,y2:c,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}function p7(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function Qf(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function g7(r,e){r.eachSeriesByType("tree",function(t){y7(t,e)})}function y7(r,e){var t=bt(r,e).refContainer,n=Je(r.getBoxLayoutParams(),t);r.layoutInfo=n;var a=r.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=gP(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=gP());var l=r.getData().tree.root,u=l.children[0];if(u){$6(l),p7(u,q6,s),l.hierNode.modifier=-u.hierNode.prelim,Qf(u,K6);var f=u,v=u,c=u;Qf(u,function(S){var x=S.getLayout().x;x<f.getLayout().x&&(f=S),x>v.getLayout().x&&(v=S),S.depth>c.depth&&(c=S)});var h=f===v?1:s(f,v)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(a==="radial")p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),Qf(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var x=jf(y,m);S.setLayout({x:x.x,y:x.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(v.getLayout().x+h+d),p=i/(c.depth-1||1),Qf(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),Qf(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function m7(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:En,subType:Qo,query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),Z_(r,En,Qo)}var _7=_t(Qo,S7);function S7(r){r.eachSeriesByType(Qo,function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");G(s,o)})})}function x7(r){r.registerChartView(h7),r.registerSeriesModel(f7),r.registerLayout(g7),r.registerVisual(_7),m7(r)}var CP=["treemapZoomToNode","treemapRender","treemapMove"];function b7(r){for(var e=0;e<CP.length;e++)r.registerAction({type:CP[e],update:"updateView"},at);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Jf(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=t1(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function AP(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=Dm(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var w7=(function(r){N(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,n){var a={name:t.name,children:t.data};MP(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new De({itemStyle:o},this,n);i=t.levels=T7(i,n);var l=U(i||[],function(v){return new De(v,s,n)},this),u=e1.createTree(a,this,f);function f(v){v.wrapMethod("getItemModel",function(c,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return c.parentModel=p||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return gt("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Bd(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},G(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=K(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.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 n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){AP(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:B.size.l,top:B.size.xxxl,right:B.size.l,bottom:B.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:B.size.m,emptyItemWidth:25,itemStyle:{color:B.color.backgroundShade,textStyle:{color:B.color.secondary}},emphasis:{itemStyle:{color:B.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:B.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:B.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})(We);function MP(r){var e=0;A(r.children,function(n){MP(n);var a=n.value;H(a)&&(a=a[0]),e+=a});var t=r.value;H(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),H(r.value)?r.value[0]=t:r.value=t}function T7(r,e){var t=Ue(e.get("color")),n=Ue(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;A(r,function(s){var l=new De(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")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}var C7=8,DP=8,n1=5,A7=(function(){function r(e){this.group=new le,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),v=bt(e,t).refContainer,c={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=Je(c,v);this._prepare(n,h,u),this._renderContent(e,h,d,s,l,u,f,a),Qc(o,c,v)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=mt(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+C7*2,t.emptyItemWidth);t.totalWidth+=s+DP,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s,l){for(var u=0,f=t.emptyItemWidth,v=e.get(["breadcrumb","height"]),c=t.totalWidth,h=t.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;c>n.width&&(c-=m-f,m=f,_=null);var S=new Wt({shape:{points:M7(u,0,m,v,p===h.length-1,p===0)},style:ue(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Pe({style:Ye(o,{text:_})}),textConfig:{position:"inside"},z2:Os*1e4,onclick:be(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ye(s,{text:_}),S.ensureState("emphasis").style=d,tt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),D7(S,e,y),u+=m+DP}},r.prototype.remove=function(){this.group.removeAll()},r})();function M7(r,e,t,n,a,i){var o=[[a?r:r-n1,e],[r+t,e],[r+t,e+n],[a?r:r-n1,e+n]];return!i&&o.splice(2,0,[r+t+n1,e+n/2]),!a&&o.push([r,e+n/2]),o}function D7(r,e,t){ve(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&&Bd(t,e)}}var I7=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r})();function L7(){return new I7}var ev=Math.max,Vd=Math.min,a1=A,IP=["itemStyle","borderWidth"],P7=["itemStyle","gapWidth"],R7=["upperLabel","show"],E7=["upperLabel","height"],k7={seriesType:"treemap",reset:function(r,e,t,n){var a=r.option,i=bt(r,t).refContainer,o=Je(r.getBoxLayoutParams(),i),s=n&&n.type,l=["treemapZoomToNode","treemapRootToNode"],u=Jf(n,l,r),f=s==="treemapRender"||s==="treemapMove"?n.rootRect:null,v=r.getViewRoot(),c=_P(v);if(s!=="treemapMove"){var h=!1,d=s==="treemapZoomToNode"?(h=!0,G7(r,u,v,o)):f?(h=!0,G({},f)):G({},o);if(h){var p=kP(o,d);p=OP(p,r),d.width=o.width*p,d.height=o.height*p}var g=a.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var y={squareRatio:a.squareRatio,sort:g,leafDepth:a.leafDepth};v.hostTree.clearLayouts();var m={x:0,y:0,width:d.width,height:d.height,area:d.width*d.height};v.setLayout(m),LP(v,y,!1,0),m=v.getLayout(),a1(c,function(S,x){var b=(c[x+1]||v).getValue();S.setLayout(G({dataExtent:[b,b],borderWidth:0,upperHeight:0},m))})}var _=r.getData().tree.root;_.setLayout(F7(o,f,u),!0),r.setLayoutInfo(o),RP(_,new se(-o.x,-o.y,t.getWidth(),t.getHeight()),c,v,0)}};function LP(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(IP),u=s.get(P7)/2,f=EP(s),v=Math.max(l,f),c=l-u,h=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:f},!0),a=ev(a-2*c,0),i=ev(i-c-h,0);var d=a*i,p=O7(r,s,d,e,t,n);if(p.length){var g={x:c,y:h,width:a,height:i},y=Vd(a,i),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S<x;){var b=p[S];_.push(b),_.area+=b.getLayout().area;var w=z7(_,y,e.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,PP(_,y,g,u,!1),y=Vd(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&PP(_,y,g,u,!0),!t){var C=s.get("childrenVisibleMin");C!=null&&d<C&&(t=!0)}for(var S=0,x=p.length;S<x;S++)LP(p[S],e,t,n+1)}}}function O7(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=Ve(o,function(h){return!h.isRemoved()}),B7(o,s);var u=V7(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=N7(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,v=o.length;f<v;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 N7(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function B7(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function V7(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=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=Ft(),a1(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function z7(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=e*e*t;return l?ev(u*n/l,l/(u*a)):1/0}function PP(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var v=0,c=r.length;v<c;v++){var h=r[v],d={},p=f?h.getLayout().area/f:0,g=d[l[o]]=ev(f-2*n,0),y=t[s[i]]+t[l[i]]-u,m=v===c-1||y<p?y:p,_=d[l[i]]=ev(m-2*n,0);d[s[o]]=t[s[o]]+Vd(n,g/2),d[s[i]]=u+Vd(n,_/2),u+=m,h.setLayout(d,!0)}t[s[o]]+=f,t[l[o]]-=f}function G7(r,e,t,n){var a=(e||{}).node,i=n.width,o=n.height,s=G({},n);if(!a||a===t)return s;for(var l,u=i*o,f=u*r.option.zoomToNodeRatio;l=a.parentNode;){for(var v=0,c=l.children,h=0,d=c.length;h<d;h++)v+=c[h].getValue();var p=a.getValue();if(p===0)return s;f*=v/p;var g=l.getModel(),y=g.get(IP),m=Math.max(y,EP(g));f+=4*y*y+(3*y+m)*Math.pow(f,.5),f>Tu&&(f=Tu),a=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}function F7(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.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 RP(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new se(e.x-i.x,e.y-i.y,e.width,e.height);a1(r.viewChildren||[],function(u){RP(u,l,t,n,a+1)})}}function EP(r){return r.get(R7)?r.get(E7):0}function kP(r,e){return e.width/r.width||e.height/r.height||1}function OP(r,e){return Y_(r,e.get("scaleLimit",!0))}var i1=le,NP=Ce,BP=3,VP="label",zP="upperLabel",H7=Os*10,W7=Os*2,U7=Os*3,es=Ui([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),GP=function(r){var e=es(r);return e.stroke=e.fill=e.lineWidth=null,e},zd=Se(),Y7=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=tv(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(ge(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Jf(i,s,t),u=i&&i.type,f=t.layoutInfo,v=!this._oldTree,c=this._storage,h=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=t.get("animation"),g=this._doRender(d,t,h);p&&!v&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new i1,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=tv(),l=tv(),u=this._storage,f=[];function v(g,y,m,_){return X7(n,l,u,a,s,f,g,y,m,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var c=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:p};function h(g,y,m,_,S){_?(y=g,A(g,function(w,C){!w.isRemoved()&&b(C,C)})):new wa(y,g,x,x).add(b).update(b).remove(be(b,null)).execute();function x(w){return w.getId()}function b(w,C){var T=w!=null?g[w]:null,M=C!=null?y[C]:null,D=v(T,M,m,S);D&&h(T&&T.viewChildren||[],M&&M.viewChildren||[],D,_,S+1)}}function d(g){var y=tv();return g&&A(g,function(m,_){var S=y[_];A(m,function(x){x&&(S.push(x),zd(x).willDelete=!0)})}),y}function p(){A(c,function(g){A(g,function(y){y.parent&&y.parent.remove(y)})}),A(f,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ne(o)?0:o)||0,u=(ne(s)?null:s)||"cubicOut",f=L7();A(n.willDeleteEls,function(v,c){A(v,function(h,d){if(!h.invisible){var p=h.parent,g,y=zd(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=c==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(h,g,l,0,u)}})}),A(this._storage,function(v,c){A(v,function(h,d){var p=n.lastsForAnimation[c][d],g={};p&&(h instanceof le?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=G({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),f.add(h,g,l,0,u))})},this),this._state="animating",f.finished(j(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this,a=this.seriesModel,i=this._controller;i||(i=this._controller=new Zo(t.getZr()),i.on("pan",j(this._onPan,this)),i.on("zoom",j(this._onZoom,this))),i.enable(a.get("roam"),{api:t,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(o,s,l){var u=n._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)>BP||Math.abs(t.dy)>BP)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.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 n=t.originX,a=t.originY,i=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 se(l.x,l.y,l.width,l.height),f=o.layoutInfo,v=kP(f,l),c=v*i;c=OP(c,o);var h=c/v;n-=f.x,a-=f.y;var d=Qe();Qr(d,d,[-n,-a]),Iv(d,d,[h,h]),Qr(d,d,[n,a]),u.applyTransform(d),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 n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&qc(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new A7(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(t1(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=tv(),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,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,n),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})(Fe);function tv(){return{nodeGroup:[],background:[],content:[]}}function X7(r,e,t,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),v=r.getData(),c=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,b=c.getModel("itemStyle"),w=c.getModel(["emphasis","itemStyle"]),C=c.getModel(["blur","itemStyle"]),T=c.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,D=ee("nodeGroup",i1);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),zd(D).nodeWidth=h,zd(D).nodeHeight=d,f.isAboveViewRoot)return D;var L=ee("background",NP,u,W7);L&&z(D,L,x&&f.upperLabelHeight);var I=c.getModel("emphasis"),P=I.get("focus"),E=I.get("blurScope"),R=I.get("disabled"),O=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)Ja(D)&&to(D,!1),L&&(to(L,!R),v.setItemGraphicEl(o.dataIndex,L),ky(L,O,E));else{var k=ee("content",NP,u,U7);k&&F(D,k),L.disableMorphing=!0,L&&Ja(L)&&to(L,!1),to(D,!R),v.setItemGraphicEl(o.dataIndex,D);var V=c.getShallow("cursor");V&&k.attr("cursor",V),ky(D,O,E)}return D;function z(ce,te,me){var re=ve(te);if(re.dataIndex=o.dataIndex,re.seriesIndex=r.seriesIndex,te.setShape({x:0,y:0,width:h,height:d,r:M}),g)Y(te);else{te.invisible=!1;var he=o.getVisual("style"),Ze=he.stroke,ke=GP(b);ke.fill=Ze;var He=es(w);He.fill=w.get("borderColor");var $e=es(C);$e.fill=C.get("borderColor");var yt=es(T);if(yt.fill=T.get("borderColor"),me){var Ir=h-2*p;Z(te,Ze,he.opacity,{x:p,y:0,width:Ir,height:S})}else te.removeTextContent();te.setStyle(ke),te.ensureState("emphasis").style=He,te.ensureState("blur").style=$e,te.ensureState("select").style=yt,eo(te)}ce.add(te)}function F(ce,te){var me=ve(te);me.dataIndex=o.dataIndex,me.seriesIndex=r.seriesIndex;var re=Math.max(h-2*p,0),he=Math.max(d-2*p,0);if(te.culling=!0,te.setShape({x:p,y:p,width:re,height:he,r:M}),g)Y(te);else{te.invisible=!1;var Ze=o.getVisual("style"),ke=Ze.fill,He=GP(b);He.fill=ke,He.decal=Ze.decal;var $e=es(w),yt=es(C),Ir=es(T);Z(te,ke,Ze.opacity,null),te.setStyle(He),te.ensureState("emphasis").style=$e,te.ensureState("blur").style=yt,te.ensureState("select").style=Ir,eo(te)}ce.add(te)}function Y(ce){!ce.invisible&&i.push(ce)}function Z(ce,te,me,re){var he=c.getModel(re?zP:VP),Ze=mt(c.get("name"),null),ke=he.getShallow("show");It(ce,xt(c,re?zP:VP),{defaultText:ke?Ze:null,inheritColor:te,defaultOpacity:me,labelFetcher:r,labelDataIndex:o.dataIndex});var He=ce.getTextContent();if(He){var $e=He.style,yt=Ql($e.padding||0);re&&(ce.setTextConfig({layoutRect:re}),He.disableLabelLayout=!0),He.beforeUpdate=function(){var gr=Math.max((re?re.width:ce.shape.width)-yt[1]-yt[3],0),vs=Math.max((re?re.height:ce.shape.height)-yt[0]-yt[2],0);($e.width!==gr||$e.height!==vs)&&He.setStyle({width:gr,height:vs})},$e.truncateMinChar=2,$e.lineOverflow="truncate",X($e,re,f);var Ir=He.getState("emphasis");X(Ir?Ir.style:null,re,f)}}function X(ce,te,me){var re=ce?ce.text:null;if(!te&&me.isLeafRoot&&re!=null){var he=r.get("drillDownIcon",!0);ce.text=he?he+" "+re:re}}function ee(ce,te,me,re){var he=m!=null&&t[ce][m],Ze=a[ce];return he?(t[ce][m]=null,ye(Ze,he)):g||(he=new te,he instanceof Vr&&(he.z2=Z7(me,re)),Be(Ze,he)),e[ce][y]=he}function ye(ce,te){var me=ce[y]={};te instanceof i1?(me.oldX=te.x,me.oldY=te.y):me.oldShape=G({},te.shape)}function Be(ce,te){var me=ce[y]={},re=o.parentNode,he=te instanceof le;if(re&&(!n||n.direction==="drillDown")){var Ze=0,ke=0,He=a.background[re.getRawIndex()];!n&&He&&He.oldShape&&(Ze=He.oldShape.width,ke=He.oldShape.height),he?(me.oldX=0,me.oldY=ke):me.oldShape={x:Ze,y:ke,width:0,height:0}}me.fadein=!he}}function Z7(r,e){return r*H7+e}var rv=A,$7=ie,Gd=-1,Pt=(function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=ae(e);this.type=n,this.mappingMethod=t,this._normalizeData=j7[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(o1(a),q7(a)):t==="category"?a.categories?K7(a):o1(a,!0):(W(t!=="linear"||a.dataExtent),o1(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return j(this._normalizeData,this)},r.listVisualTypes=function(){return Ae(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){ie(e)?A(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=H(e)?[]:ie(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&rv(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(H(e))e=e.slice();else if($7(e)){var t=[];rv(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.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,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||$(l)&&l===e+"")return o;n&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,v=u.close;if(f){if(f[0]===-1/0){if(Hd(v[1],e,f[1]))return o}else if(f[1]===1/0){if(Hd(v[0],f[0],e))return o}else if(Hd(v[0],f[0],e)&&Hd(v[1],e,f[1]))return o;n&&c(f[0],o),n&&c(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function c(h,d){var p=Math.abs(h-e);p<i&&(i=p,a=d)}},r.visualHandlers={color:{applyVisual:nv("color"),getColorMapper:function(){var e=this.option;return j(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),av.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=du(t,e.parsedVisual,a),i?a:Nr(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Nr(du(e,this.option.parsedVisual),"rgba")},category:av,piecewise:function(e,t){var n=l1.call(this,t);return n==null&&(n=Nr(du(e,this.option.parsedVisual),"rgba")),n},fixed:ts}},colorHue:Fd(function(e,t){return ua(e,t)}),colorSaturation:Fd(function(e,t){return ua(e,null,t)}),colorLightness:Fd(function(e,t){return ua(e,null,null,t)}),colorAlpha:Fd(function(e,t){return pu(e,t)}),decal:{applyVisual:nv("decal"),_normalizedToVisual:{linear:null,category:av,piecewise:null,fixed:null}},opacity:{applyVisual:nv("opacity"),_normalizedToVisual:s1([0,1])},liftZ:{applyVisual:nv("liftZ"),_normalizedToVisual:{linear:ts,category:ts,piecewise:ts,fixed:ts}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:FP,category:av,piecewise:function(e,t){var n=l1.call(this,t);return n==null&&(n=FP.call(this,e)),n},fixed:ts}},symbolSize:{applyVisual:nv("symbolSize"),_normalizedToVisual:s1([0,1])}},r})();function q7(r){var e=r.pieceList;r.hasSpecialVisual=!1,A(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function K7(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(rv(e,function(o,s){t[o]=s}),!H(n)){var a=[];ie(n)?rv(n,function(o,s){var l=t[s];a[l??Gd]=o}):a[Gd]=n,n=HP(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function o1(r,e){var t=r.visual,n=[];ie(t)?rv(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),HP(r,n)}function Fd(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:s1([0,1])}}function FP(r){var e=this.option.visual;return e[Math.round(Ne(r,[0,1],[0,e.length-1],!0))]||{}}function nv(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function av(r){var e=this.option.visual;return e[this.option.loop&&r!==Gd?r%e.length:r]}function ts(){return this.option.visual[0]}function s1(r){return{linear:function(e){return Ne(e,r,this.option.visual,!0)},category:av,piecewise:function(e,t){var n=l1.call(this,t);return n==null&&(n=Ne(e,r,this.option.visual,!0)),n},fixed:ts}}function l1(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=Pt.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function HP(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=U(e,function(t){var n=qt(t);return n||et("'"+t+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var j7={linear:function(r){return Ne(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Pt.findPieceIndex(r,e,!0);if(t!=null)return Ne(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??Gd},fixed:at};function Hd(r,e,t){return r?e<=t:e<t}var J7="itemStyle",WP=Se(),Q7={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||UP(t,{},r.getViewRoot().getAncestors(),r)}};function UP(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(J7),l=eX(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),v=s.get("borderColorSaturation"),c;v!=null&&(c=YP(l),f=tX(v,c)),u.stroke=f;var h=r.viewChildren;if(!h||!h.length)c=YP(l),u.fill=c;else{var d=rX(r,a,i,s,l,h);A(h,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var y=nX(a,l,p,g,d,n);UP(p,y,t,n)}})}}}function eX(r,e,t){var n=G({},e),a=t.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function YP(r){var e=u1(r,"color");if(e){var t=u1(r,"colorAlpha"),n=u1(r,"colorSaturation");return n&&(e=ua(e,null,null,n)),t&&(e=pu(e,t)),e}}function tX(r,e){return e!=null?ua(e,null,null,r):null}function u1(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function rX(r,e,t,n,a,i){if(!(!i||!i.length)){var o=f1(e,"color")||a.color!=null&&a.color!=="none"&&(f1(e,"colorAlpha")||f1(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"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(f==="index"||f==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var c=new Pt(v);return WP(c).drColorMappingBy=f,c}}}function f1(r,e){var t=r.get(e);return H(t)&&t.length?{name:e,range:t}:null}function nX(r,e,t,n,a,i){var o=G({},e);if(a){var s=a.type,l=s==="color"&&WP(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function aX(r){r.registerSeriesModel(w7),r.registerChartView(Y7),r.registerVisual(Q7),r.registerLayout(k7),b7(r)}function Rl(r){return"_EC_"+r}var iX=(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 n=this._nodesMap;if(n[Rl(e)]){console.error("Graph nodes have duplicate name or id");return}var a=new rs(e,t);return a.hostGraph=this,this.nodes.push(a),n[Rl(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[Rl(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(Re(e)&&(e=this.nodes[e]),Re(t)&&(t=this.nodes[t]),e instanceof rs||(e=a[Rl(e)]),t instanceof rs||(t=a[Rl(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new XP(e,t,n);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),i[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 rs&&(e=e.id),t instanceof rs&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof rs||(t=this._nodesMap[Rl(t)]),!!t){for(var i=n==="out"?"outEdges":n==="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[i],o=0;o<u.length;o++){var f=u[o],v=f.node1===l?f.node2:f.node1;if(!v.__visited){if(e.call(a,v,l))return;s.push(v),v.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),rs=(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,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=K(),t=K(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,v=0,c=f.length,h=void 0,d=void 0;v<c;v++)h=f[v],d=h.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),o.push(h.node1))}for(l=0;l<s.length;){var p=s[l];l++,t.set(p.dataIndex,!0);for(var g=p.outEdges,v=0,y=g.length,m=void 0,_=void 0;v<y;v++)m=g[v],_=m.dataIndex,_>=0&&!e.hasKey(_)&&(e.set(_,!0),s.push(m.node2))}}}return{edge:e.keys(),node:t.keys()}},r})(),XP=(function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=K(),t=K();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,v=void 0;l<u;l++)f=o.inEdges[l],v=f.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),n.push(f.node1))}for(i=0;i<a.length;){var c=a[i];i++,t.set(c.dataIndex,!0);for(var h=c.outEdges,l=0,u=h.length,d=void 0,p=void 0;l<u;l++)d=c.outEdges[l],p=d.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(d.node2))}return{edge:e.keys(),node:t.keys()}},r})();function ZP(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},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)}}}lt(rs,ZP("hostGraph","data")),lt(XP,ZP("hostGraph","edgeData"));function v1(r,e,t,n,a){for(var i=new iX(n),o=0;o<r.length;o++)i.addNode(At(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],v=f.source,c=f.target;i.addEdge(v,c,u)&&(l.push(f),s.push(At(mt(f.id,null),v+" > "+c)),u++)}var h=t.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=Bn(r,t);else{var p=ho.get(h),g=p?p.dimensions||[]:[];ge(g,"value")<0&&g.concat(["value"]);var y=hl(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new Jt(y,t),d.initData(r)}var m=new Jt(["value"],t);return m.initData(l,s),a&&a(d,m),yP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var c1="-->",Wd=function(r){return r.get("autoCurveness")||null},$P=function(r,e){var t=Wd(r),n=20,a=[];if(Re(t))n=t;else if(H(t)){r.__curvenessList=t;return}e>n&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},iv=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(c1)},qP=function(r){var e=r.split(c1);return[e[0],e[2],e[1]].join(c1)},oX=function(r,e){var t=iv(r.node1,r.node2,e);return e.__edgeMap[t]},sX=function(r,e){var t=h1(iv(r.node1,r.node2,e),e),n=h1(iv(r.node2,r.node1,e),e);return t+n},h1=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function lX(r){Wd(r)&&(r.__curvenessList=[],r.__edgeMap={},$P(r))}function uX(r,e,t,n){if(Wd(t)){var a=iv(r,e,t),i=t.__edgeMap,o=i[qP(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function d1(r,e,t,n){var a=Wd(e),i=H(a);if(!a)return null;var o=oX(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=sX(r,e);$P(e,u),r.lineStyle=r.lineStyle||{};var f=iv(r.node1,r.node2,e),v=e.__curvenessList,c=i||u%2?0:1;if(o.isForward)return v[c+s];var h=qP(f),d=h1(h,e),p=v[s+d+c];return n?i?a&&a[0]===0?(d+c)%2?p:-p:((d%2?0:1)+c)%2?p:-p:(d+c)%2?p:-p:v[s+d+c]}var ur="graph",fX=(function(r){N(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 n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Dl(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,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){lX(this);var s=v1(i,a,this,!0,l);return A(s.edges,function(u){uX(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var v=De.prototype.getModel;function c(d,p){var g=v.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=c,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},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,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),gt("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var v=RA({series:this,dataIndex:t,multipleSeries:n});return v},e.prototype._updateCategoriesData=function(){var t=U(this.option.categories||[],function(a){return a.value!=null?a:G({value:0},a)}),n=new Jt(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.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 W2(t)&&t},e.type="series."+ur,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:B.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},e})(We);function Ud(r){return r instanceof Array||(r=[r,r]),r}var vX=_t(ur,cX);function cX(r){r.eachSeriesByType(ur,function(e){var t=e.getGraph(),n=e.getEdgeData(),a=Ud(e.get("edgeSymbol")),i=Ud(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=Ud(s.getShallow("symbol",!0)),f=Ud(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),c=n.ensureUniqueItemVisual(o,"style");switch(G(c,v),c.stroke){case"source":{var h=l.node1.getVisual("style");c.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");c.stroke=h&&h.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 KP(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),p1(t,r)}}function p1(r,e){r.eachEdge(function(t,n){var a=$t(t.getModel().get(["lineStyle","curveness"]),-d1(t,e,n,!0),0),i=yn(t.node1.getLayout()),o=yn(t.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),t.setLayout(s)})}var hX=_t(ur,dX);function dX(r,e){r.eachSeriesByType(ur,function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];A(a.dimensions,function(c){o=o.concat(i.mapDimensionsAll(c))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var v=i.get(o[f],s);isNaN(v)||(u=!0),l.push(v)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}p1(i.graph,t)}else(!n||n==="none")&&KP(t)})}function ov(r){var e=r.coordinateSystem;return W2(e)?K2(e,r):1}function sv(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var jP=Math.PI,g1=[];function y1(r,e,t,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,v=o.count();if(o.setLayout({cx:l,cy:u}),!!v){if(t){var c=a.pointToData(n),h=c[0],d=c[1],p=[h-l,d-u];Ti(p,p),au(p,p,f),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);JP(t,g,l,u)}pX[e](r,s,o,f,l,u,v),s.eachEdge(function(y,m){var _=$t(y.getModel().get(["lineStyle","curveness"]),d1(y,r,m),0),S=yn(y.node1.getLayout()),x=yn(y.node2.getLayout()),b,w=(S[0]+x[0])/2,C=(S[1]+x[1])/2;+_&&(_*=3,b=[l*_+w*(1-_),u*_+C*(1-_)]),y.setLayout([S,x,b])})}}}var pX={value:function(r,e,t,n,a,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var v=f.getValue("value"),c=u*(l?v:1)/2;s+=c,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=c})},symbolSize:function(r,e,t,n,a,i,o){var s=0;g1.length=o;var l=ov(r);e.eachNode(function(v){var c=sv(v);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var h=Math.asin(c/2/n);isNaN(h)&&(h=jP/2),g1[v.dataIndex]=h,s+=h*2});var u=(2*jP-s)/o/2,f=0;e.eachNode(function(v){var c=u+g1[v.dataIndex];f+=c,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=c})}};function JP(r,e,t,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var v=f?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var c=s.ensureState("emphasis");G(c.textConfig||(c.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var gX=_t(ur,yX);function yX(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&y1(e,"symbolSize")})}var El=Av;function mX(r,e,t){for(var n=r,a=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<n.length;f++){var v=n[f];v.p||(v.p=Na(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=yn(v.p),v.edges=null}var c=t.friction==null?.6:t.friction,h=c,d,p;return{warmUp:function(){h=c*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var x=S.n1,b=S.n2;Ba(y,b.p,x.p);var w=nu(y)-S.d,C=b.w/(x.w+b.w);isNaN(C)&&(C=0),Ti(y,y),!x.fixed&&El(x.p,x.p,y,C*w*h),!b.fixed&&El(b.p,b.p,y,-(1-C)*w*h)}}for(var _=0;_<m;_++){var T=n[_];T.fixed||(Ba(y,l,T.p),El(T.p,T.p,y,u*h))}for(var _=0;_<m;_++)for(var x=n[_],M=_+1;M<m;M++){var b=n[M];Ba(y,b.p,x.p);var w=nu(y);w===0&&(ra(y,Math.random()-.5,Math.random()-.5),w=1);var D=(x.rep+b.rep)/w/w;!x.fixed&&El(x.pp,x.pp,y,D),!b.fixed&&El(b.pp,b.pp,y,-D)}for(var L=[],_=0;_<m;_++){var T=n[_];T.fixed||(Ba(L,T.p,T.pp),El(T.p,T.p,L,h),zt(T.pp,T.p))}h=h*.992;var I=h<.01;p&&p(n,a,I),g&&g(I)}}}var _X=_t(ur,SX);function SX(r){r.eachSeriesByType(ur,function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?KP(e):l==="circular"&&y1(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),v=s.get("repulsion"),c=s.get("edgeLength"),h=H(v)?v:[v,v],d=H(c)?c:[c,c];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),b=Ne(_,u,h);return isNaN(b)&&(b=(h[0]+h[1])/2),{w:b,rep:b,fixed:i.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=a.getEdgeByIndex(S),b=Ne(_,f,d);isNaN(b)&&(b=(d[0]+d[1])/2);var w=x.getModel(),C=$t(x.getModel().get(["lineStyle","curveness"]),-d1(x,e,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:b,curveness:C,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=mX(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var x=0,b=_.length;x<b;x++)_[x].fixed&&zt(_[x].p,a.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var b=0,w=_.length;b<w;b++)_[b].fixed||a.getNodeByIndex(b).setLayout(_[b].p),n[i.getId(b)]=_[b].p;for(var b=0,w=S.length;b<w;b++){var C=S[b],T=a.getEdgeByIndex(b),M=C.n1.p,D=C.n2.p,L=T.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],zt(L[0],M),zt(L[1],D),+C.curveness&&(L[2]=[(M[0]+D[0])/2-(M[1]-D[1])*C.curveness,(M[1]+D[1])/2-(D[0]-M[0])*C.curveness]),T.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null})}function xX(r,e,t){var n=bt(r,e),a=G(r.getBoxLayoutParams(),{aspect:t}),i=Je(a,n.refContainer);return MC(r,i,t)}function bX(r,e){var t=[];return r.eachSeriesByType("graph",function(n){Yu({targetModel:n,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var i=n.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];_c(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=xX(n,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var v=l[0]-s[0],c=l[1]-s[1],h=$_(n,e,s[0],s[1],v,c,f);return t.push(h),h}}),t}var QP=ft.prototype,m1=Gs.prototype,eR=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Vte=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(eR);function _1(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var tR=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new eR},e.prototype.buildPath=function(t,n){_1(n)?QP.buildPath.call(this,t,n):m1.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return _1(this.shape)?QP.pointAt.call(this,t):m1.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=_1(n)?[n.x2-n.x1,n.y2-n.y1]:m1.tangentAt.call(this,t);return Ti(a,a)},e})(Me),S1=["fromSymbol","toSymbol"];function rR(r){return"_"+r+"Type"}function nR(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=il(a),u=Co(o||0,l);return n+l+u+(i||"")+(s||"")}function aR(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=il(a),u=Co(o||0,l),f=ht(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function wX(r){var e=new tR({name:"line",subPixelOptimize:!0});return x1(e.shape,r),e}function x1(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 b1=(function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=t.getItemVisual(n,"z2"),l=wX(o);l.shape.percent=0,Ke(l,{z2:Q(s,0),shape:{percent:1}},i,n),this.add(l),A(S1,function(u){var f=aR(u,t,n);this.add(f),this[rR(u)]=nR(u,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};x1(l.shape,s),Oe(o,l,i,n),A(S1,function(u){var f=nR(u,t,n),v=rR(u);if(this[v]!==f){this.remove(this.childOfName(u));var c=aR(u,t,n);this.add(c)}this[v]=f},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,v=a&&a.emphasisDisabled,c=a&&a.focus,h=a&&a.blurScope;if(!a||t.hasItemOption){var d=t.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),v=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),f=xt(d)}var g=t.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A(S1,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var C=0;C<nr.length;C++){var T=nr[C],M=o.getState(T);if(M){var D=M.style||{},L=w.ensureState(T),I=L.style||(L.style={});D.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(I.opacity=D.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);It(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,w,t.dataType)}},inheritColor:y||B.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?t.getName(n):isFinite(m)?Ee(m,10):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");H(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),tt(this,c,h,v)},e.prototype.highlight=function(){ya(this)},e.prototype.downplay=function(){ma(this)},e.prototype.updateLayout=function(t,n){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");x1(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.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),v=l.pointAt(u),c=Ba([],v,f);Ti(c,c);function h(M,D){var L=M.__specifiedRotation;if(L==null){var I=l.tangentAt(D);M.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else M.attr("rotation",L)}if(n&&(n.setPosition(f),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(v),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],b=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(S[1],S[0]);v[0]<f[0]&&(C=Math.PI+C),i.rotation=C}var T=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=m,p="top";break;default:T=0,p="middle"}switch(i.__position){case"end":i.x=c[0]*y+v[0],i.y=c[1]*m+v[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*y+f[0],i.y=-c[1]*m+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+T,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+T,d="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+v[0],i.y=v[1]+T,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e})(le),w1=(function(){function r(e){this.group=new le,this._LineCtor=e||b1}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=iR(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=iR(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function a(l){!l.isGroup&&!TX(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=Ws)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(T1(o)){var s=new this._LineCtor(t,i,this._seriesScope);s.traverse(a),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){ei(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(T1(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!T1(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r})();function TX(r){return r.animators&&r.animators.length>0}function iR(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:xt(e)}}function oR(r){return isNaN(r[0])||isNaN(r[1])}function T1(r){return r&&!oR(r[0])&&!oR(r[1])}var C1=[],A1=[],M1=[],kl=Rt,D1=Va,sR=Math.abs;function lR(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){C1[0]=kl(n[0],a[0],i[0],f),C1[1]=kl(n[1],a[1],i[1],f);var v=sR(D1(C1,e)-l);v<o&&(o=v,s=f)}for(var c=0;c<32;c++){var h=s+u;A1[0]=kl(n[0],a[0],i[0],s),A1[1]=kl(n[1],a[1],i[1],s),M1[0]=kl(n[0],a[0],i[0],h),M1[1]=kl(n[1],a[1],i[1],h);var v=D1(A1,e)-l;if(sR(v)<.01)break;var d=D1(M1,e)-l;u/=2,v<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function I1(r,e){var t=[],n=cu,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[yn(u[0]),yn(u[1])],u[2]&&u.__original.push(yn(u[2])));var c=u.__original;if(u[2]!=null){if(zt(a[0],c[0]),zt(a[1],c[2]),zt(a[2],c[1]),f&&f!=="none"){var h=sv(s.node1),d=lR(a,c[0],h*e);n(a[0][0],a[1][0],a[2][0],d,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],d,t),a[0][1]=t[3],a[1][1]=t[4]}if(v&&v!=="none"){var h=sv(s.node2),d=lR(a,c[1],h*e);n(a[0][0],a[1][0],a[2][0],d,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],d,t),a[1][1]=t[1],a[2][1]=t[2]}zt(u[0],a[0]),zt(u[1],a[2]),zt(u[2],a[1])}else{if(zt(i[0],c[0]),zt(i[1],c[1]),Ba(o,i[1],i[0]),Ti(o,o),f&&f!=="none"){var h=sv(s.node1);Av(i[0],i[0],o,h*e)}if(v&&v!=="none"){var h=sv(s.node2);Av(i[1],i[1],o,-h*e)}zt(u[0],i[0]),zt(u[1],i[1])}})}var uR=Se();function CX(r){if(r)return uR(r).bridge}function fR(r,e){r&&(uR(r).bridge=e)}var AX=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ur,t}return e.prototype.init=function(t,n){var a=new Lf,i=new w1,o=this.group,s=new le;this._controller=new Zo(n.getZr()),s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=Ed(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,v=this._lineDraw;o&&ci(l,Xn,o,this._firstRender?null:t),I1(t.getGraph(),ov(t));var c=t.getData();f.updateData(c);var h=t.getEdgeData();v.updateData(h),this._updateNodeAndLinkScale(),o&&kd(t,a,this._controller,function(S,x,b){return t.coordinateSystem.containPoint([x,b])},null),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,a,p));var g=t.get("layout");c.graph.eachNode(function(S){var x=S.dataIndex,b=S.getGraphicEl(),w=S.getModel();if(b){b.off("drag").off("dragend");var C=w.get("draggable");C&&b.on("drag",function(M){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,a,p),d.setFixed(x),c.setItemLayout(x,[b.x,b.y]);break;case"circular":c.setItemLayout(x,[b.x,b.y]),S.setLayout({fixed:!0},!0),y1(t,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(t);break;default:c.setItemLayout(x,[b.x,b.y]),p1(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),b.setDraggable(C,!!w.get("cursor"));var T=w.get(["emphasis","focus"]);T==="adjacency"&&(ve(b).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var x=S.getGraphicEl(),b=S.getModel().get(["emphasis","focus"]);x&&b==="adjacency"&&(ve(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(S){JP(S,y,m,_)}),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,n,a){var i=this,o=!1;(function s(){t.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype.__updateOnOwnRoam=function(t,n,a){var i=Ed(n);!this._active||!i||(ci(this._mainGroup,Xn,i,null),Q2(t)&&(this._updateNodeAndLinkScale(),I1(n.getGraph(),ov(n)),this._lineDraw.updateLayout(),a.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=ov(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){this._active&&(I1(t.getGraph(),ov(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,n=t.coordinateSystem;if(n.type==="view"){var a=CX(t);if(a)return{bridge:a,coordSys:n}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(Md(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new le,l=a.group.children(),u=i.group.children(),f=new le,v=new le;s.add(v),s.add(f);for(var c=0;c<l.length;c++){var h=l[c],d=h.children()[0],p=h.x,g=h.y,y=ae(d.shape),m=G(y,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),_=ae(d.style),S=new d.constructor({shape:m,style:_,z2:151});v.add(S)}for(var c=0;c<u.length;c++){var h=u[c],x=h.children()[0],_=ae(x.style),m=ae(x.shape),b=new tR({style:_,shape:m,z2:151});f.add(b)}o.bridge.renderContent({api:n,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:Md(null,o.coordSys)})}},e.type=ur,e})(Fe),MX=_t(ur,DX);function DX(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType(ur,function(t){var n=t.getCategoriesData(),a=t.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Re(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}var IX=_t(ur,LX);function LX(r){var e={};r.eachSeriesByType(ur,function(t){var n=t.getCategoriesData(),a=t.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++){var c=l.getShallow(f[v],!0);c!=null&&n.setItemVisual(o,f[v],c)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){$(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");G(f,u);for(var v=["symbol","symbolSize","symbolKeepAspect"],c=0;c<v.length;c++)a.setItemVisual(o,v[c],n.getItemVisual(l,v[c]))}})})}function PX(r){r.registerChartView(AX),r.registerSeriesModel(fX),r.registerProcessor(MX),r.registerVisual(IX),r.registerVisual(vX),r.registerLayout(hX),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,gX),r.registerLayout(_X),r.registerCoordinateSystem("graphView",{dimensions:Cd.dimensions,create:bX}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},at),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},at),Z_(r,En,ur)}var lv="chord",RX=(function(r){N(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 Dl(j(this.getData,this),j(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,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&a){var o=v1(i,a,this,!0,s);return o.data}function s(l,u){var f=De.prototype.getModel;function v(h,d){var p=f.call(this,h,d);return p.resolveParentPath=c,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=c,h.getModel=v,h});function c(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){var i=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),gt("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return gt("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(t);if(a.name==null&&(a.name=i.getName(t)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},e.type="series."+lv,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})(We),vR=(function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;ve(i).dataType="node",i.z2=2;var o=new Pe;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.graph.getNodeByIndex(n),l=t.hostModel,u=s.getModel(),f=u.getModel("emphasis"),v=t.getItemLayout(n),c=G(Yn(u.getModel("itemStyle"),v,!0),v),h=this;if(isNaN(c.startAngle)){h.setShape(c);return}i?h.setShape(c):Oe(h,{shape:c},l,n);var d=G(Yn(u.getModel("itemStyle"),v,!0),v);o.setShape(d),o.useStyle(t.getItemVisual(n,"style")),St(o,u),this._updateLabel(l,u,s),t.setItemGraphicEl(n,h),St(h,u,"itemStyle");var p=f.get("focus");tt(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=n.getModel("label");i.ignore=!f.get("show");var v=xt(n),c=a.getVisual("style");It(i,v,{labelFetcher:{getFormattedLabel:function(m,_,S,x,b,w){return t.getFormattedLabel(m,_,"node",x,$t(b,v.normal&&v.normal.get("formatter"),n.get("name")),w)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},e})(Ht),EX=(function(r){N(e,r);function e(t,n,a,i){var o=r.call(this)||this;return ve(o).dataType="edge",o.updateData(t,n,a,i,!0),o}return e.prototype.buildPath=function(t,n){t.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;t.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),t.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),t.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),t.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),t.closePath()},e.prototype.updateData=function(t,n,a,i,o){var s=t.hostModel,l=n.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),v=n.getItemModel(l.dataIndex),c=v.getModel("lineStyle"),h=v.getModel("emphasis"),d=h.get("focus"),p=G(Yn(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),cR(g,l,t,c)):(Gr(g),cR(g,l,t,c),Oe(g,{shape:p},s,a)),tt(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),St(g,v,"lineStyle"),n.setItemGraphicEl(l.dataIndex,g)},e})(Me);function cR(r,e,t,n){var a=e.node1,i=e.node2,o=r.style;r.setStyle(n.getLineStyle());var s=n.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(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(a.dataIndex,"style").fill,u=t.getItemVisual(i.dataIndex,"style").fill;if($(l)&&$(u)){var f=r.shape,v=(f.s1[0]+f.s2[0])/2,c=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new no(v,c,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var kX=Math.PI/180,OX=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=lv,t}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*kX;if(i.diff(o).add(function(f){var v=i.getItemLayout(f);if(v){var c=new vR(i,f,l);ve(c).dataIndex=f,s.add(c)}}).update(function(f,v){var c=o.getItemGraphicEl(v),h=i.getItemLayout(f);if(!h){c&&_a(c,t,v);return}c?c.updateData(i,f,l):c=new vR(i,f,l),s.add(c)}).remove(function(f){var v=o.getItemGraphicEl(f);v&&_a(v,t,f)}).execute(),!o){var u=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=q(u[0],a.getWidth()),this.group.originY=q(u[1],a.getHeight()),Ke(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,n){var a=t.getData(),i=t.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new EX(a,i,l,n);ve(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,i,l,n),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&_a(u,t,l)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type=lv,e})(Fe),L1=Math.PI/180,NX=_t(lv,BX);function BX(r,e){r.eachSeriesByType(lv,function(t){VX(t,e)})}function VX(r,e){var t=r.getData(),n=t.graph,a=r.getEdgeData(),i=a.count();if(i){var o=AC(r,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=Math.max((r.get("padAngle")||0)*L1,0),c=Math.max((r.get("minAngle")||0)*L1,0),h=-r.get("startAngle")*L1,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Sc(y,!p);var m=y[0],_=y[1],S=_-m,x=t.getSum("value")===0&&a.getSum("value")===0,b=[],w=0;n.eachEdge(function(k){var V=x?1:k.getValue("value");x&&(V>0||c)&&(w+=2);var z=k.node1.dataIndex,F=k.node2.dataIndex;b[z]=(b[z]||0)+V,b[F]=(b[F]||0)+V});var C=0;if(n.eachNode(function(k){var V=k.getValue("value");isNaN(V)||(b[k.dataIndex]=Math.max(V,b[k.dataIndex]||0)),!x&&(b[k.dataIndex]>0||c)&&w++,C+=b[k.dataIndex]||0}),!(w===0||C===0)){v*w>=Math.abs(S)&&(v=Math.max(0,(Math.abs(S)-c*w)/w)),(v+c)*w>=Math.abs(S)&&(c=(Math.abs(S)-v*w)/w);var T=(S-v*w*g)/C,M=0,D=0,L=0;n.eachNode(function(k){var V=b[k.dataIndex]||0,z=T*(C?V:1)*g;Math.abs(z)<c?M+=c-Math.abs(z):(D+=Math.abs(z)-c,L+=Math.abs(z)),k.setLayout({angle:z,value:V})});var I=!1;if(M>D){var P=M/D;n.eachNode(function(k){var V=k.getLayout().angle;Math.abs(V)>=c?k.setLayout({angle:V*P,ratio:P},!0):k.setLayout({angle:c,ratio:c===0?1:V/c},!0)})}else n.eachNode(function(k){if(!I){var V=k.getLayout().angle,z=Math.min(V/L,1),F=z*M;V-F<c&&(I=!0)}});var E=M;n.eachNode(function(k){if(!(E<=0)){var V=k.getLayout().angle;if(V>c&&c>0){var z=I?1:Math.min(V/L,1),F=V-c,Y=Math.min(F,Math.min(E,M*z));E-=Y,k.setLayout({angle:V-Y,ratio:(V-Y)/V},!0)}else c>0&&k.setLayout({angle:c,ratio:V===0?1:c/V},!0)}});var R=m,O=[];n.eachNode(function(k){var V=Math.max(k.getLayout().angle,c);k.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:R,endAngle:R+V*g,clockwise:p},!0),O[k.dataIndex]=R,R+=(V+v)*g}),n.eachEdge(function(k){var V=x?1:k.getValue("value"),z=T*(C?V:1)*g,F=k.node1.dataIndex,Y=O[F]||0,Z=Math.abs((k.node1.getLayout().ratio||1)*z),X=Y+Z*g,ee=[s+f*Math.cos(Y),l+f*Math.sin(Y)],ye=[s+f*Math.cos(X),l+f*Math.sin(X)],Be=k.node2.dataIndex,ce=O[Be]||0,te=Math.abs((k.node2.getLayout().ratio||1)*z),me=ce+te*g,re=[s+f*Math.cos(ce),l+f*Math.sin(ce)],he=[s+f*Math.cos(me),l+f*Math.sin(me)];k.setLayout({s1:ee,s2:ye,sStartAngle:Y,sEndAngle:X,t1:re,t2:he,tStartAngle:ce,tEndAngle:me,cx:s,cy:l,r:f,value:V,clockwise:p}),O[F]=X,O[Be]=me})}}}function zX(r){r.registerChartView(OX),r.registerSeriesModel(RX),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,NX),r.registerProcessor(zf("chord"))}var GX=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),FX=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new GX},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(n.x+a(l)*s,n.y+i(l)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(l)*s,n.y-i(l)*s),t.lineTo(u,f)},e})(Me);function HX(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=q(t[0],e.getWidth()),s=q(t[1],e.getHeight()),l=q(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Yd(r,e){var t=r==null?"":r+"";return e&&($(e)?t=e.replace("{value}",t):ne(e)&&(t=e(r))),t}var WX=(function(r){N(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,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=HX(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,v=t.getModel("axisLine"),c=v.get("roundCap"),h=c?vd:Ht,d=v.get("show"),p=v.getModel("lineStyle"),g=p.get("width"),y=[u,f];Sc(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x<i.length;x++){var b=Math.min(Math.max(i[x][0],0),1);f=u+m*b;var w=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[x][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),A(S,function(T){return s.add(T)});var C=function(T){if(T<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=T&&(M===0?0:i[M-1][0])<T)return i[M][1];return i[M-1][1]};this._renderTicks(t,n,a,C,o,u,f,l,g),this._renderTitleAndDetail(t,n,a,C,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,C,o,u,f,l,g)},e.prototype._renderTicks=function(t,n,a,i,o,s,l,u,f){for(var v=this.group,c=o.cx,h=o.cy,d=o.r,p=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),x=m.get("splitNumber"),b=q(y.get("length"),d),w=q(m.get("length"),d),C=s,T=(l-s)/S,M=T/x,D=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,E,R=0;R<=S;R++){if(P=Math.cos(C),E=Math.sin(C),y.get("show")){var O=I?I+f:f,k=new ft({shape:{x1:P*(d-O)+c,y1:E*(d-O)+h,x2:P*(d-b-O)+c,y2:E*(d-b-O)+h},style:D,silent:!0});D.stroke==="auto"&&k.setStyle({stroke:i(R/S)}),v.add(k)}if(_.get("show")){var O=_.get("distance")+I,V=Yd(Ee(R*(g-p)/S+p,OV),_.get("formatter")),z=i(R/S),F=P*(d-b-O)+c,Y=E*(d-b-O)+h,Z=_.get("rotate"),X=0;Z==="radial"?(X=-C+2*Math.PI,X>Math.PI/2&&(X+=Math.PI)):Z==="tangential"?X=-C-Math.PI/2:Re(Z)&&(X=Z*Math.PI/180),X===0?v.add(new Pe({style:Ye(_,{text:V,x:F,y:Y,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:z}),silent:!0})):v.add(new Pe({style:Ye(_,{text:V,x:F,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:F,originY:Y,rotation:X}))}if(m.get("show")&&R!==S){var O=m.get("distance");O=O?O+f:f;for(var ee=0;ee<=x;ee++){P=Math.cos(C),E=Math.sin(C);var ye=new ft({shape:{x1:P*(d-O)+c,y1:E*(d-O)+h,x2:P*(d-w-O)+c,y2:E*(d-w-O)+h},silent:!0,style:L});L.stroke==="auto"&&ye.setStyle({stroke:i((R+ee/x)/S)}),v.add(ye),C+=M}C-=M}else C+=T}},e.prototype._renderPointer=function(t,n,a,i,o,s,l,u,f){var v=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),x=+t.get("max"),b=[S,x],w=[s,l];function C(M,D){var L=m.getItemModel(M),I=L.getModel("pointer"),P=q(I.get("width"),o.r),E=q(I.get("length"),o.r),R=t.get(["pointer","icon"]),O=I.get("offsetCenter"),k=q(O[0],o.r),V=q(O[1],o.r),z=I.get("keepAspect"),F;return R?F=ht(R,k-P/2,V-E,P,E,null,z):F=new FX({shape:{angle:-Math.PI/2,width:P,r:E,x:k,y:V}}),F.rotation=-(D+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function T(M,D){var L=g.get("roundCap"),I=L?vd:Ht,P=g.get("overlap"),E=P?g.get("width"):f/m.count(),R=P?o.r-E:o.r-(M+1)*E,O=P?o.r:o.r-M*E,k=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:O}});return P&&(k.z2=Ne(m.get(_,M),[S,x],[100,0],!0)),k}(y||p)&&(m.diff(c).add(function(M){var D=m.get(_,M);if(p){var L=C(M,s);Ke(L,{rotation:-((isNaN(+D)?w[0]:Ne(D,b,w,!0))+Math.PI/2)},t),v.add(L),m.setItemGraphicEl(M,L)}if(y){var I=T(M,s),P=g.get("clip");Ke(I,{shape:{endAngle:Ne(D,b,w,P)}},t),v.add(I),by(t.seriesIndex,m.dataType,M,I),d[M]=I}}).update(function(M,D){var L=m.get(_,M);if(p){var I=c.getItemGraphicEl(D),P=I?I.rotation:s,E=C(M,P);E.rotation=P,Oe(E,{rotation:-((isNaN(+L)?w[0]:Ne(L,b,w,!0))+Math.PI/2)},t),v.add(E),m.setItemGraphicEl(M,E)}if(y){var R=h[D],O=R?R.shape.endAngle:s,k=T(M,O),V=g.get("clip");Oe(k,{shape:{endAngle:Ne(L,b,w,V)}},t),v.add(k),by(t.seriesIndex,m.dataType,M,k),d[M]=k}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),E=L.get("disabled"),R=i(Ne(m.get(_,M),b,[0,1],!0));if(p){var O=m.getItemGraphicEl(M),k=m.getItemVisual(M,"style"),V=k.fill;if(O instanceof Dt){var z=O.style;O.useStyle(G({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},k))}else O.useStyle(k),O.type!=="pointer"&&O.setColor(V);O.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",R),O.z2EmphasisLift=0,St(O,D),tt(O,I,P,E)}if(y){var F=d[M];F.useStyle(m.getItemVisual(M,"style")),F.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",R),F.z2EmphasisLift=0,St(F,D),tt(F,I,P,E)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=ht(s,n.cx-o/2+q(l[0],n.r),n.cy-o/2+q(l[1],n.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,n,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),v=+t.get("max"),c=new le,h=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Pe({silent:!0}),d[y]=new Pe({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new le,x=i(Ne(_,[f,v],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+q(w[0],o.r),T=o.cy+q(w[1],o.r),M=h[y];M.attr({z2:g?0:2,style:Ye(b,{x:C,y:T,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+q(L[0],o.r),P=o.cy+q(L[1],o.r),E=q(D.get("width"),o.r),R=q(D.get("height"),o.r),O=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,M=d[y],k=D.get("formatter");M.attr({z2:g?0:2,style:Ye(D,{x:I,y:P,text:Yd(_,k),width:isNaN(E)?null:E,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:O})}),tC(M,{normal:D},_,function(z){return Yd(z,k)}),p&&rC(M,y,l,t,{getFormattedLabel:function(z,F,Y,Z,X,ee){return Yd(ee?ee.interpolatedValue:_,k)}}),S.add(M)}c.add(S)}),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(Fe),UX=(function(r){N(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,n){return Ml(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,B.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:B.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:B.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:B.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:B.color.neutral00,borderWidth:0,borderColor:B.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:B.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:B.color.transparent,borderWidth:0,borderColor:B.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:B.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(We);function YX(r){r.registerChartView(WX),r.registerSeriesModel(UX)}var Ol="funnel",XX=(function(r){N(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 Dl(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return Ml(this,{coordDimensions:["value"],encodeDefaulter:be(Tm,this)})},e.prototype._defaultLabelLine=function(t){Gi(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series."+Ol,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:B.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},e})(We),ZX=["itemStyle","opacity"],$X=(function(r){N(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new Ot,s=new Pe;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(ZX);f=f??1,a||Gr(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Ke(i,{style:{opacity:f}},o,n)):Oe(i,{style:{opacity:f},shape:{points:l.points}},o,n),St(i,s),this._updateLabel(t,n),tt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),f=u.label,v=t.getItemVisual(n,"style"),c=v.fill;It(o,xt(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:v.opacity,defaultText:t.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?c:null;a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),a.textGuideLineConfig={anchor:g?new fe(g[0][0],g[0][1]):null},Oe(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),z0(a,G0(l),{stroke:c})},e})(Wt),qX=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ol,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new $X(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);_a(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Ol,e})(Fe);function KX(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return ne(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function jX(r){var e=r.hostModel,t=hR(e);r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",v,c,h,d;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,v="left"):o==="insideRight"?(c=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,v="right"):(c=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,v="center"),d=[[c,h],[c,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");$(o)&&(!t&&ge(["top","bottom"],o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t&&ge(["left","right"],o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,c=y-5,v="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,c=y+5,v="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,v="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,v="center"):o==="rightTop"?(p=t?u[3][0]:u[1][0],g=t?u[3][1]:u[1][1],t?(m=g-_,h=m-5,v="center"):(y=p+_,c=y+5,v="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],t?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="bottom")):o==="leftTop"?(p=u[0][0],g=t?u[0][1]:u[1][1],t?(m=g-_,h=m-5,v="center"):(y=p-_,c=y-5,v="right")):o==="leftBottom"?(p=t?u[1][0]:u[3][0],g=t?u[1][1]:u[2][1],t?(m=g+_,h=m+5,v="center"):(y=p-_,c=y-5,v="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="left")),t?(y=p,c=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:c,y:h,verticalAlign:"middle",textAlign:v,inside:f}})}var JX=_t(Ol,QX);function QX(r,e){r.eachSeriesByType(Ol,function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=bt(t,e),s=Je(t.getBoxLayoutParams(),o.refContainer),l=hR(t),u=s.width,f=s.height,v=KX(n,i),c=s.x,h=s.y,d=l?[q(t.get("minSize"),f),q(t.get("maxSize"),f)]:[q(t.get("minSize"),u),q(t.get("maxSize"),u)],p=n.getDataExtent(a),g=t.get("min"),y=t.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=t.get("funnelAlign"),_=t.get("gap"),S=l?u:f,x=(S-_*(n.count()-1))/n.count(),b=function(E,R){if(l){var O=n.get(a,E)||0,k=Ne(O,[g,y],d,!0),V=void 0;switch(m){case"top":V=h;break;case"center":V=h+(f-k)/2;break;case"bottom":V=h+(f-k);break}return[[R,V],[R,V+k]]}var z=n.get(a,E)||0,F=Ne(z,[g,y],d,!0),Y;switch(m){case"left":Y=c;break;case"center":Y=c+(u-F)/2;break;case"right":Y=c+u-F;break}return[[Y,R],[Y+F,R]]};i==="ascending"&&(x=-x,_=-_,l?c+=u:h+=f,v=v.reverse());for(var w=0;w<v.length;w++){var C=v[w],T=v[w+1],M=n.getItemModel(C);if(l){var D=M.get(["itemStyle","width"]);D==null?D=x:(D=q(D,u),i==="ascending"&&(D=-D));var L=b(C,c),I=b(T,c+D);c+=D+_,n.setItemLayout(C,{points:L.concat(I.slice().reverse())})}else{var P=M.get(["itemStyle","height"]);P==null?P=x:(P=q(P,f),i==="ascending"&&(P=-P));var L=b(C,h),I=b(T,h+P);h+=P+_,n.setItemLayout(C,{points:L.concat(I.slice().reverse())})}}jX(n)})}function hR(r){return r.get("orient")==="horizontal"}function e9(r){r.registerChartView(qX),r.registerSeriesModel(XX),r.registerLayout(JX),r.registerProcessor(zf(Ol))}var t9=.3,r9=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new le,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,v=gR(t);s.diff(l).add(c).update(h).remove(d).execute();function c(g){var y=pR(s,o,g,f,u);P1(y,s,g,v)}function h(g,y){var m=l.getItemGraphicEl(y);o.add(m);var _=dR(s,g,f,u);s.setItemGraphicEl(g,m),Oe(m,{shape:{points:_}},t,g),Gr(m),P1(m,s,g,v)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=n9(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=pR(i,this._dataGroup,l,o.dimensions,o);u.incremental=An(n),P1(u,i,l,gR(n)),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(Fe);function n9(r,e,t){var n=r.model,a=r.getRect(),i=new Ce({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Ke(i,{shape:{width:a.width,height:a.height}},e,t),i}function dR(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);a9(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function pR(r,e,t,n,a){var i=dR(r,t,n,a),o=new Ot({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function gR(r){var e=r.get("smooth",!0);return e===!0&&(e=t9),e=Cn(e),Ct(e)&&(e=0),{smooth:e}}function P1(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");St(r,a,"lineStyle"),tt(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function a9(r,e){return e==="category"?r==null:r==null||isNaN(r)}var i9=(function(r){N(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,n){return Bn(null,this,{useEncodeDefaulter:j(o9,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.getRawIndex(s))}),i},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})(We);function o9(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return A(e.dimensions,function(n){var a=s9(n);t[n]=a}),t}}function s9(r){return+r.replace("dim","")}var l9=["lineStyle","opacity"],u9={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(l9,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};function f9(r){v9(r),c9(r)}function v9(r){if(!r.parallel){var e=!1;A(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function c9(r){var e=Ue(r.parallelAxis);A(e,function(t){if(ie(t)){var n=t.parallelIndex||0,a=Ue(r.parallel)[n];a&&a.parallelAxisDefault&&_e(t,a.parallelAxisDefault,!1)}})}var h9=5,d9=(function(r){N(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,n,a){this._model=t,this._api=a,this._handlers||(this._handlers={},A(p9,function(i,o){a.getZr().on(o,this._handlers[o]=j(i,this))},this)),rl(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){ef(this,"_throttledDispatchExpand"),A(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(G({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Xe),p9={mousedown:function(r){R1(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(R1(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>h9)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||!R1(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function R1(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var Xd="parallel",E1=Xd,g9=(function(r){N(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 n=this.option;t&&_e(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=Ve(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type=E1,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})(we),y9=(function(r){N(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(Zr);function di(r,e,t,n,a,i){r=r||0;var o=Vi(t[1],-t[0]);if(a!=null&&(a=Nl(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(Vi(e[1],-e[0]));s=Nl(s,[0,o]),a=i=Nl(s,[a,i]),n=0}e[0]=Nl(e[0],t),e[1]=Nl(e[1],t);var l=k1(e,n);e[n]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]=Vi(f[0],u):f[1]=Vi(f[1],-u),e[n]=Nl(e[n],f);var v;return v=k1(e,n),a!=null&&(v.sign!==l.sign||v.span<a)&&(e[1-n]=Vi(e[n],l.sign*a)),v=k1(e,n),i!=null&&v.span>i&&(e[1-n]=Vi(e[n],v.sign*i)),e}function k1(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 Nl(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var m9=(function(){function r(e,t,n){this.type=Xd,this._axesMap=K(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;A(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=gf(u),v=this._axesMap.set(o,new y9(o,gl(u,f,!1),[0,0],f,l));v.onBand=_f(v.scale,u),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){A(this.dimensions,function(n){var a=this._axesMap.get(n);Eo(a,xl),bl(a)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var n=bt(e,t).refContainer;this._rect=Je(e.getBoxLayoutParams(),n),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=Zd(e.get("axisExpandWidth"),l),v=Zd(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>v&&v>1&&f>0&&s>0,h=e.get("axisExpandWindow"),d;if(h)d=Zd(h[1]-h[0],l),h[1]=h[0]+d;else{d=Zd(f*(v-1),l);var p=e.get("axisExpandCenter")||Br(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-v);g<3&&(g=0);var y=[Br(Ee(h[0]/f,1))+1,Oi(Ee(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),A(n,function(o,s){var l=(a.axisExpandable?S9:_9)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:ac/2,vertical:0},v=[u[i].x+e.x,u[i].y+e.y],c=f[i],h=Qe();sa(h,h,c),Qr(h,h,v),this._axesLayout[o]={position:v,rotation:c,transform:h,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,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var v=void 0;if(!u)v="normal";else{v="active";for(var c=e.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(c[h]);if(p==="inactive"){v="inactive";break}}}t(v,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return un([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return ae(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),c=v[0]!=null;if(f)c&&f&&s<i*v[0]?(u="jump",l=s-i*v[2]):c&&f&&s>i*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?di(l,a,o,"all"):u="none";else{var h=a[1]-a[0],d=o[1]*s/h;a=[Te(0,d-h/2)],a[1]=Ge(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},r})();function Zd(r,e){return Ge(Te(r,e[0]),e[1])}function _9(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function S9(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function x9(r,e){var t=[];return r.eachComponent(E1,function(n,a){var i=new m9(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===Xd){var a=n.getReferringComponents(E1,ot).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&A(i.dimensions,function(o){Ro(i.getAxis(o),n,Xd)})}}),t}var b9={create:x9},O1=(function(r){N(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 Ui([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=ae(t);if(n)for(var a=n.length-1;a>=0;a--)Et(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e})(we);lt(O1,_l);var ns=!0,uv=Math.min,Bl=Math.max,w9=Math.pow,T9=1e4,C9=6,A9=6,yR="globalPan",M9={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},D9={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},mR={brushStyle:{lineWidth:2,stroke:B.color.backgroundTint,fill:B.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},I9=0,N1=(function(r){N(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},W(t),n._zr=t,n.group=new le,n._uid="brushController_"+I9++,A(N9,function(a,i){this._handlers[i]=j(a,this)},n),n}return e.prototype.enableBrush=function(t){return W(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||Y8(n,yR,this._uid),A(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=_e(ae(mR),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;X8(t,yR,this._uid),A(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};A(t,function(a){n[a.panelId]=ae(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._mounted=!0,this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){W(this._mounted),t=U(t,function(c){return _e(ae(mR),c,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new wa(a,t,u,l).add(f).update(f).remove(v).execute(),this;function l(c,h){return(c.id!=null?c.id:n+h)+"-"+c.brushType}function u(c,h){return l(c.__brushOption,h)}function f(c,h){var d=t[c];if(h!=null&&a[h]===s)i[c]=a[h];else{var p=i[c]=h!=null?(a[h].__brushOption=d,a[h]):SR(o,_R(o,d));B1(o,p)}}function v(c){a[c]!==s&&o.group.remove(a[c])}},e.prototype.unmount=function(){if(this._mounted)return this.enableBrush(!1),G1(this),this._zr.remove(this.group),this._mounted=!1,this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Rr);function _R(r,e){var t=$d[e.brushType].createCover(r,e);return t.__brushOption=e,bR(t,e),r.group.add(t),t}function SR(r,e){var t=V1(e);return t.endCreating&&(t.endCreating(r,e),bR(e,e.__brushOption)),e}function xR(r,e){var t=e.__brushOption;V1(e).updateCoverShape(r,e,t.range,t)}function bR(r,e){var t=e.z;t==null&&(t=T9),r.traverse(function(n){n.z=t,n.z2=t})}function B1(r,e){V1(e).updateCommon(r,e),xR(r,e)}function V1(r){return $d[r.__brushOption.brushType]}function z1(r,e,t){var n=r._panels;if(!n)return ns;var a,i=r._transform;return A(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function wR(r,e){var t=r._panels;if(!t)return ns;var n=e.__brushOption.panelId;return n!=null?t[n]:ns}function G1(r){var e=r._covers,t=e.length;return A(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function as(r,e){var t=U(r._covers,function(n){var a=n.__brushOption,i=ae(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function L9(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=w9(a*a+i*i,.5);return o>C9}function TR(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function CR(r,e,t,n){var a=new le;return a.add(new Ce({name:"main",style:H1(t),silent:!0,draggable:!0,cursor:"move",drift:be(DR,r,e,a,["n","s","w","e"]),ondragend:be(as,e,{isEnd:!0})})),A(n,function(i){a.add(new Ce({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:be(DR,r,e,a,i),ondragend:be(as,e,{isEnd:!0})}))}),a}function AR(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=Bl(a,A9),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],v=t[1][1],c=f-i+a/2,h=v-i+a/2,d=f-o,p=v-s,g=d+a,y=p+a;Da(r,e,"main",o,s,d,p),n.transformable&&(Da(r,e,"w",l,u,i,y),Da(r,e,"e",c,u,i,y),Da(r,e,"n",l,u,g,i),Da(r,e,"s",l,h,g,i),Da(r,e,"nw",l,u,i,i),Da(r,e,"ne",c,u,i,i),Da(r,e,"sw",l,h,i,i),Da(r,e,"se",c,h,i,i))}function F1(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(H1(t)),a.attr({silent:!n,cursor:n?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?W1(r,i[0]):R9(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?D9[s]+"-resize":null})})}function Da(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(k9(U1(r,e,[[n,a],[n+i,a+o]])))}function H1(r){return ue({strokeNoScale:!0},r.brushStyle)}function MR(r,e,t,n){var a=[uv(r,t),uv(e,n)],i=[Bl(r,t),Bl(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function P9(r){return oo(r.group)}function W1(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Bc(t[e],P9(r));return n[a]}function R9(r,e){var t=[W1(r,e[0]),W1(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function DR(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=IR(e,a,i);A(n,function(u){var f=M9[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(MR(s[0][0],s[1][0],s[0][1],s[1][1])),B1(e,t),as(e,{isEnd:!1})}function E9(r,e,t,n){var a=e.__brushOption.range,i=IR(r,t,n);A(a,function(o){o[0]+=i[0],o[1]+=i[1]}),B1(r,e),as(r,{isEnd:!1})}function IR(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function U1(r,e,t){var n=wR(r,e);return n&&n!==ns?n.clipPath(t,r._transform):ae(t)}function k9(r){var e=uv(r[0][0],r[1][0]),t=uv(r[0][1],r[1][1]),n=Bl(r[0][0],r[1][0]),a=Bl(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function O9(r,e,t){if(!(!r._brushType||B9(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=z1(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===ns||s.panelId===i.panelId)&&$d[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function Y1(r){var e=r.event;e.preventDefault&&e.preventDefault()}function X1(r,e,t){return r.childOfName("main").contain(e,t)}function LR(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),L9(r)||a){if(i&&!a){o.brushMode==="single"&&G1(r);var l=ae(o);l.brushType=PR(l.brushType,i),l.panelId=i===ns?null:i.panelId,a=r._creatingCover=_R(r,l),r._covers.push(a)}if(a){var u=$d[PR(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(U1(r,a,r._track)),n&&(SR(r,a),u.updateCommon(r,a)),xR(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&z1(r,e,t)&&G1(r)&&(s={isEnd:n,removeOnClick:!0});return s}function PR(r,e){return r==="auto"?(W(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):r}var N9={mousedown:function(r){if(this._dragging)RR(this,r);else if(!r.target||!r.target.draggable){Y1(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=z1(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(O9(this,r,n),this._dragging){Y1(r);var a=LR(this,r,n,!1);a&&as(this,a)}},mouseup:function(r){RR(this,r)}};function RR(r,e){if(r._dragging){Y1(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=LR(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&as(r,i)}}function B9(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var $d={lineX:ER(0),lineY:ER(1),rect:{createCover:function(r,e){function t(n){return n}return CR({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=TR(r);return MR(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){AR(r,e,t,n)},updateCommon:F1,contain:X1},polygon:{createCover:function(r,e){var t=new le;return t.add(new Ot({name:"main",style:H1(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Wt({name:"main",draggable:!0,drift:be(E9,r,e),ondragend:be(as,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:U1(r,e,t)})},updateCommon:F1,contain:X1}};function ER(r){return{createCover:function(e,t){return CR({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=TR(e),n=uv(t[0][r],t[1][r]),a=Bl(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=wR(e,t);if(o!==ns&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),AR(e,t,l,a)},updateCommon:F1,contain:X1}}function kR(r){return r=Z1(r),function(e){return Xy(e,r)}}function OR(r,e){return r=Z1(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function NR(r,e,t){var n=Z1(r);return function(a,i){return n.contain(i[0],i[1])&&!x2(a,e,t)}}function Z1(r){return se.create(r)}var V9=(function(r){N(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,n){r.prototype.init.apply(this,arguments),(this._brushController=new N1(n.getZr())).on("brush",j(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!z9(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new le,this.group.add(this._axisGroup),!!t.get("show")){var s=F9(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,v=t.axis.dim,c=l.getAxisLayout(v),h=G({strokeContainThreshold:f},c),d=new lr(t,a,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,t,s,f,a),Vu(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),v=se.create({x:l[0],y:-o/2,width:u,height:o});v.x-=f,v.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:kR(v),isTargetByCursor:NR(v,s,i),getLinearBrushOtherExtent:OR(v,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(G9(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=U(n,function(s){return[i.coordToData(s.range[0],!0),i.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})(Xe);function z9(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function G9(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 F9(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var H9={type:"axisAreaSelect",event:"axisAreaSelected"};function W9(r){r.registerAction(H9,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var U9={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function BR(r){r.registerComponentView(d9),r.registerComponentModel(g9),r.registerCoordinateSystem("parallel",b9),r.registerPreprocessor(f9),r.registerComponentModel(O1),r.registerComponentView(V9),Il(r,"parallel",O1,U9),W9(r)}function Y9(r){xe(BR),r.registerChartView(r9),r.registerSeriesModel(i9),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,u9)}var Ia="sankey",X9=(function(r){N(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,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new De(o[l],this,n);else throw new Error("levels[i].depth is mandatory and should be natural number");var u=v1(i,a,this,!0,f);return u.data;function f(v,c){v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return gt("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),v=f.getLayout().value,c=this.getDataParams(t,a).data.name;return gt("nameValue",{name:c!=null?c+"":null,value:v,noValue:i(v)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Ia,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:B.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:B.color.primary}},animationEasing:"linear",animationDuration:1e3},e})(We),Z9=(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})(),$9=(function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Z9},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){ya(this)},e.prototype.downplay=function(){ma(this)},e})(Me),q9=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ia,t._mainGroup=new le,t}return e.prototype.init=function(t,n){this._controller=new Zo(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,n,a){var i=t.getGraph(),o=this._mainGroup,s=t.layoutInfo,l=s.width,u=s.height,f=t.getData(),v=t.getData("edge"),c=t.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(t,a),kd(t,a,this._controller,j2(o),null),i.eachEdge(function(h){var d=new $9,p=ve(d);p.dataIndex=h.dataIndex,p.seriesIndex=t.seriesIndex,p.dataType="edge";var g=h.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),_=h.node1.getLayout(),S=h.node1.getModel(),x=S.get("localX"),b=S.get("localY"),w=h.node2.getLayout(),C=h.node2.getModel(),T=C.get("localX"),M=C.get("localY"),D=h.getLayout(),L,I,P,E,R,O,k,V;d.shape.extent=Math.max(1,D.dy),d.shape.orient=c,c==="vertical"?(L=(x!=null?x*l:_.x)+D.sy,I=(b!=null?b*u:_.y)+_.dy,P=(T!=null?T*l:w.x)+D.ty,E=M!=null?M*u:w.y,R=L,O=I*(1-m)+E*m,k=P,V=I*m+E*(1-m)):(L=(x!=null?x*l:_.x)+_.dx,I=(b!=null?b*u:_.y)+D.sy,P=T!=null?T*l:w.x,E=(M!=null?M*u:w.y)+D.ty,R=L*(1-m)+P*m,O=I,k=L*m+P*(1-m),V=E),d.setShape({x1:L,y1:I,x2:P,y2:E,cpx1:R,cpy1:O,cpx2:k,cpy2:V}),d.useStyle(y.getItemStyle()),VR(d.style,c,h);var z=""+g.get("value"),F=xt(g,"edgeLabel");It(d,F,{labelFetcher:{getFormattedLabel:function(X,ee,ye,Be,ce,te){return t.getFormattedLabel(X,ee,"edge",Be,$t(ce,F.normal&&F.normal.get("formatter"),z),te)}},labelDataIndex:h.dataIndex,defaultText:z}),d.setTextConfig({position:"inside"});var Y=g.getModel("emphasis");St(d,g,"lineStyle",function(X){var ee=X.getItemStyle();return VR(ee,c,h),ee}),o.add(d),v.setItemGraphicEl(h.dataIndex,d);var Z=Y.get("focus");tt(d,Z==="adjacency"?h.getAdjacentDataIndices():Z==="trajectory"?h.getTrajectoryDataIndices():Z,Y.get("blurScope"),Y.get("disabled"))}),i.eachNode(function(h){var d=h.getLayout(),p=h.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),_=p.get(["itemStyle","borderRadius"])||0,S=new Ce({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:_},style:p.getModel("itemStyle").getItemStyle(),z2:10});It(S,xt(p),{labelFetcher:{getFormattedLabel:function(b,w){return t.getFormattedLabel(b,w,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),S.disableLabelAnimation=!0,S.setStyle("fill",h.getVisual("color")),S.setStyle("decal",h.getVisual("style").decal),St(S,p),o.add(S),f.setItemGraphicEl(h.dataIndex,S),ve(S).dataType="node";var x=m.get("focus");tt(S,x==="adjacency"?h.getAdjacentDataIndices():x==="trajectory"?h.getTrajectoryDataIndices():x,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(h,d){var p=f.getItemModel(d);p.get("draggable")&&(h.drift=function(g,y){this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},h.draggable=!0,h.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(K9(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,n,a){ci(this.group,Xn,n.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,n){var a=t.layoutInfo,i=t.coordinateSystem=$_(t,n,a.x,a.y,a.width,a.height);ci(this.group,Xn,i,this._firstRender?null:t)},e.type=Ia,e})(Fe);function VR(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 n=t.node1.getVisual("color"),a=t.node2.getVisual("color");$(n)&&$(a)&&(r.fill=new no(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function K9(r,e,t){var n=new Ce({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ke(n,{shape:{width:r.width+20}},e,t),n}var j9=_t(Ia,J9);function J9(r,e){r.eachSeriesByType(Ia,function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=bt(t,e).refContainer,o=Je(t.getBoxLayoutParams(),i);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),f=u.nodes,v=u.edges;eZ(f);var c=Ve(f,function(g){return g.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");Q9(f,v,n,a,s,l,h,d,p)})}function Q9(r,e,t,n,a,i,o,s,l){tZ(r,e,t,a,i,s,l),iZ(r,e,i,a,n,o,s),dZ(r,s)}function eZ(r){A(r,function(e){var t=gi(e.outEdges,qd),n=gi(e.inEdges,qd),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function tZ(r,e,t,n,a,i,o){for(var s=[],l=[],u=[],f=[],v=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 h=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:v},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=ge(e,_);s[S]=0;var x=_.node2,b=ge(r,x);--l[b]===0&&ge(f,x)<0&&f.push(x)}}++v,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=h>v-1?h:v-1;o&&o!=="left"&&rZ(r,o,i,w);var C=i==="vertical"?(a-t)/w:(n-t)/w;aZ(r,C,i)}function zR(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function rZ(r,e,t,n){if(e==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];ge(a,f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}A(r,function(v){zR(v)||v.setLayout({depth:Math.max(0,n-v.getLayout().skNodeHeight)},!0)})}else e==="justify"&&nZ(r,n)}function nZ(r,e){A(r,function(t){!zR(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function aZ(r,e,t){A(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function iZ(r,e,t,n,a,i,o){var s=oZ(r,o);sZ(s,e,t,n,a,o),$1(s,a,t,n,o);for(var l=1;i>0;i--)l*=.99,lZ(s,l,o),$1(s,a,t,n,o),hZ(s,l,o),$1(s,a,t,n,o)}function oZ(r,e){var t=[],n=e==="vertical"?"y":"x",a=ey(r,function(i){return i.getLayout()[n]});return Et(a.keys),A(a.keys,function(i){t.push(a.buckets.get(i))}),t}function sZ(r,e,t,n,a,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(v){u+=v.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(t-(l-1)*a)/u;f<o&&(o=f)}),A(r,function(s){A(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),A(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function $1(r,e,t,n,a){var i=a==="vertical"?"x":"y";A(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,v=o.length,c=a==="vertical"?"dx":"dy",h=0;h<v;h++)l=o[h],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[c]+e;var d=a==="vertical"?n:t;if(u=f-e-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=v-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function lZ(r,e,t){A(r.slice().reverse(),function(n){A(n,function(a){if(a.outEdges.length){var i=gi(a.outEdges,uZ,t)/gi(a.outEdges,qd);if(isNaN(i)){var o=a.outEdges.length;i=o?gi(a.outEdges,fZ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-pi(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-pi(a,t))*e;a.setLayout({y:l},!0)}}})})}function uZ(r,e){return pi(r.node2,e)*r.getValue()}function fZ(r,e){return pi(r.node2,e)}function vZ(r,e){return pi(r.node1,e)*r.getValue()}function cZ(r,e){return pi(r.node1,e)}function pi(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function qd(r){return r.getValue()}function gi(r,e,t){for(var n=0,a=r.length,i=-1;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function hZ(r,e,t){A(r,function(n){A(n,function(a){if(a.inEdges.length){var i=gi(a.inEdges,vZ,t)/gi(a.inEdges,qd);if(isNaN(i)){var o=a.inEdges.length;i=o?gi(a.inEdges,cZ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-pi(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-pi(a,t))*e;a.setLayout({y:l},!0)}}})})}function dZ(r,e){var t=e==="vertical"?"x":"y";A(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),A(r,function(n){var a=0,i=0;A(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),A(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}var pZ=_t(Ia,gZ);function gZ(r){r.eachSeriesByType(Ia,function(e){var t=e.getGraph(),n=t.nodes,a=t.edges;if(n.length){var i=1/0,o=-1/0;A(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),A(n,function(s){var l=new Pt({type:"color",mappingMethod:"linear",dataExtent:[i,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&&A(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function yZ(r){r.registerChartView(q9),r.registerSeriesModel(X9),r.registerLayout(j9),r.registerVisual(pZ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:En,subType:Ia,query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),Z_(r,En,Ia)}var GR=(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 n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l,u=e.layout;o==="category"?(u="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var f=["x","y"],v=u==="horizontal"?0:1,c=this._baseAxisDim=f[v],h=f[1-v],d=[a,i],p=d[v].get("type"),g=d[1-v].get("type"),y=e.data;if(y&&l){var m=[];A(y,function(x,b){var w;H(x)?(w=x.slice(),x.unshift(b)):H(x.value)?(w=G({},x),w.value=w.value.slice(),x.value.unshift(b)):w=x,m.push(w)}),e.data=m}var _=this.defaultValueDimensions,S=[{name:c,type:Ih(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Ih(g),dimsDef:_.slice()}];return Ml(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:be(kC,S,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 Kd(r,e){for(var t=e.ends.length,n=0,a=0;a<t;a++)r.contain(e.ends[a][0],e.ends[a][1])&&n++;return n?n<t?Rf:Pf:Ef}var Zn="boxplot",FR=(function(r){N(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."+Zn,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:B.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}},animationDuration:800},e})(We);lt(FR,GR,!0);var mZ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Zn,t}return e.prototype.render=function(t,n,a){var i=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,v=f.getArea&&f.getArea(),c=u&&Go(f,!1,t);i.diff(s).add(function(h){if(i.hasValue(h)){var d=i.getItemLayout(h),p=u?Kd(v,d):Pf;if(p===Ef)return;var g=HR(d,i,h,l,!0);Cl(p===Rf,g,c),i.setItemGraphicEl(h,g),o.add(g)}}).update(function(h,d){var p=s.getItemGraphicEl(d);if(!i.hasValue(h)){o.remove(p);return}var g=i.getItemLayout(h),y=u?Kd(v,g):Pf;if(y===Ef){o.remove(p);return}p?(Gr(p),WR(g,p,i,h)):p=HR(g,i,h,l),Cl(y===Rf,p,c),o.add(p),i.setItemGraphicEl(h,p)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&o.remove(d)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type=Zn,e})(Fe),_Z=(function(){function r(){}return r})(),SZ=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new _Z},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e})(Me);function HR(r,e,t,n,a){var i=r.ends,o=new SZ({shape:{points:a?xZ(i,n,r):i}});return WR(r,o,e,t,a),o}function WR(r,e,t,n,a){var i=t.hostModel,o=uo[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");St(e,s),tt(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function xZ(r,e,t){return U(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}var bZ=Ps(),wZ=_t(Zn,TZ);function TZ(r){var e=Uo(Zn);L0(r,e,function(t){var n=C4(t,e);if(n){var a=CZ(t,n);Po(t,e,function(i){var o=i.seriesIndex;AZ(i,a.boxOffsetList[o],a.boxWidthList[o])})}})}function CZ(r,e){var t=[],n=[],a=[],i=Yt(r,{fromStat:{key:Uo(Zn)},min:1}).w;Po(r,Uo(Zn),function(f){var v=f.get("boxWidth");H(v)||(v=[v,v]),a[f.seriesIndex]=[q(v[0],i)||0,q(v[1],i)||0]});var o=i*.8-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return Po(r,Uo(Zn),function(f){var v=f.seriesIndex;n[v]=u,u+=s+l,t[v]=Ge(Te(l,a[v][0]),a[v][1])}),{boxOffsetList:n,boxWidthList:t}}function AZ(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=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 v=0;v<a.count();v++){var c=a.get(u,v),h=_(c,f[2],v),d=_(c,f[0],v),p=_(c,f[1],v),g=_(c,f[3],v),y=_(c,f[4],v),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),x(m,d),x(m,y),x(m,h),a.setItemLayout(v,{initBaseline:h[s],ends:m})}function _(b,w,C){var T=a.get(w,C),M=[];M[o]=b,M[s]=T;var D;return isNaN(b)||isNaN(T)?D=[NaN,NaN]:(D=n.dataToPoint(M),D[o]+=e),D}function S(b,w,C){var T=w.slice(),M=w.slice();T[o]+=i,M[o]-=i,C?b.push(T,M):b.push(M,T)}function x(b,w){var C=w.slice(),T=w.slice();C[o]-=i,T[o]+=i,b.push(C,T)}}function MZ(r){bZ(r,function(){var e=Uo(Zn);R0(r,{key:e,seriesType:Zn,getMetrics:__}),Uh(e,ud(e))})}function DZ(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=Et(r[o].slice()),l=lc(s,.25),u=lc(s,.5),f=lc(s,.75),v=s[0],c=s[s.length-1],h=(a??1.5)*(f-l),d=i?v:Math.max(v,l-h),p=i?c:Math.min(c,f+h),g=e.itemNameFormatter,y=ne(g)?g({value:o}):$(g)?g.replace("{value}",o+""):o+"";t.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:t,outliers:n}}var IZ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==kt){var n="";n=tr("source data is not applicable for this boxplot transform. Expect number[][]."),ze(n)}var a=DZ(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function LZ(r){r.registerSeriesModel(FR),r.registerChartView(mZ),r.registerLayout(wZ),r.registerTransform(IZ),MZ(r)}var yi="candlestick",UR=(function(r){N(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,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series."+yi,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})(We);lt(UR,GR,!0);var PZ=["itemStyle","borderColor"],RZ=["itemStyle","borderColor0"],EZ=["itemStyle","borderColorDoji"],kZ=["itemStyle","color"],OZ=["itemStyle","color0"];function q1(r,e){return e.get(r>0?kZ:OZ)}function K1(r,e){return e.get(r===0?EZ:r>0?PZ:RZ)}var NZ={seriesType:yi,plan:wo(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=q1(s,o),l.stroke=K1(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");G(u,l)}}}}}},BZ=["color","borderColor"],VZ=(function(r){N(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,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){ei(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&Go(l,!1,t);this._data||i.removeAll();var v=YR(t);n.diff(a).add(function(c){if(n.hasValue(c)){var h=n.getItemLayout(c),d=s?Kd(u,h):Pf;if(d===Ef)return;var p=j1(h,c,v,!0);Ke(p,{shape:{points:h.ends}},t,c),Cl(d===Rf,p,f),J1(p,n,c,o),i.add(p),n.setItemGraphicEl(c,p)}}).update(function(c,h){var d=a.getItemGraphicEl(h);if(!n.hasValue(c)){i.remove(d);return}var p=n.getItemLayout(c),g=s?Kd(u,p):Pf;if(g===Ef){i.remove(d);return}d?(Oe(d,{shape:{points:p.ends}},t,c),Gr(d)):d=j1(p,c,v),J1(d,n,c,o),Cl(g===Rf,d,f),i.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&i.remove(h)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),XR(t,this.group);var n=t.get("clip",!0)?Go(t.coordinateSystem,!1,t):null;Cl(!!n,this.group,n)},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o=YR(n),s;(s=t.next())!=null;){var l=a.getItemLayout(s),u=j1(l,s,o);J1(u,a,s,i),u.incremental=An(n),this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,n){XR(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),Cl(!1,this.group,null),this._data=null},e.type=yi,e})(Fe),zZ=(function(){function r(){}return r})(),GZ=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new zZ},e.prototype.buildPath=function(t,n){var a=n.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})(Me);function j1(r,e,t,n){var a=r.ends;return new GZ({shape:{points:n?FZ(a,t,r):a},z2:100})}function J1(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0;var i=a.getShallow("cursor");i&&r.attr("cursor",i),r.__simpleBox=n,St(r,a);var o=e.getItemLayout(t).sign;A(r.states,function(l,u){var f=a.getModel(u),v=q1(o,f),c=K1(o,f)||v,h=l.style||(l.style={});v&&(h.fill=v),c&&(h.stroke=c)});var s=a.getModel("emphasis");tt(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function FZ(r,e,t){return U(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}function YR(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}var HZ=(function(){function r(){}return r})(),Q1=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new HZ},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e})(Me);function XR(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new Q1({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Q1({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Q1({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),eS(1,o,r),eS(-1,s,r),eS(0,l,r),n&&(o.incremental=An(r),s.incremental=An(r),l.incremental=An(r)),t&&t.push(o,s,l)}function eS(r,e,t,n){var a=K1(r,t)||q1(r,t),i=t.getModel("itemStyle").getItemStyle(BZ);e.useStyle(i),e.style.fill=null,e.style.stroke=a;var o=t.get("cursor");o&&e.attr("cursor",o)}function WZ(r){!r||!H(r.series)||A(r.series,function(e){ie(e)&&e.type==="k"&&(e.type=yi)})}var UZ=Ps(),YZ={seriesType:yi,plan:wo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=XZ(r),a=r.getWhiskerBoxesLayout()==="horizontal"?0:1,i=1-a,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=U(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],v=l[2],c=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:h};function h(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),x=m.get(f,y),b=m.get(v,y),w=m.get(c,y),C=Ge(S,x),T=Te(S,x),M=O(C,_),D=O(T,_),L=O(b,_),I=O(w,_),P=[];k(P,D,0),k(P,M,1),P.push(z(I),z(D),z(L),z(M));var E=g.getItemModel(y),R=!!E.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:ZR(m,y,S,x,f,R),initBaseline:S>x?D[i]:M[i],ends:P,brushRect:V(b,w,_)})}function O(F,Y){var Z=[];return Z[a]=Y,Z[i]=F,isNaN(Y)||isNaN(F)?[NaN,NaN]:e.dataToPoint(Z)}function k(F,Y,Z){var X=Y.slice(),ee=Y.slice();X[a]=Nc(X[a]+n/2,1,!1),ee[a]=Nc(ee[a]-n/2,1,!0),Z?F.push(X,ee):F.push(ee,X)}function V(F,Y,Z){var X=O(F,Z),ee=O(Y,Z);return X[a]-=n/2,ee[a]-=n/2,{x:X[0],y:X[1],width:i?n:ee[0]-X[0],height:i?ee[1]-X[1]:n}}function z(F){return F[a]=Nc(F[a],1),F}}function d(p,g){for(var y=Wn(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var T=w.get(s,b),M=w.get(u,b),D=w.get(f,b),L=w.get(v,b),I=w.get(c,b);if(isNaN(T)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=ZR(w,b,M,D,f,C),S[a]=T,S[i]=L,_=e.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=e.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function ZR(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function XZ(r,e){var t=r.getBaseAxis(),n=Yt(t,{fromStat:{key:Uo(yi)},min:1}).w,a=q(Q(r.get("barMaxWidth"),n),n),i=q(Q(r.get("barMinWidth"),1),n),o=r.get("barWidth");return o!=null?q(o,n):Te(Ge(n/2,a),i)}function ZZ(r){UZ(r,function(){var e=Uo(yi);R0(r,{key:e,seriesType:yi,getMetrics:__}),Uh(e,ud(e))})}function $Z(r){r.registerChartView(VZ),r.registerSeriesModel(UR),r.registerPreprocessor(WZ),r.registerVisual(NZ),r.registerLayout(YZ),ZZ(r)}function $R(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var qZ=(function(r){N(e,r);function e(t,n){var a=r.call(this)||this,i=new If(t,n),o=new le;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=ht(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*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)}$R(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}$R(a,t)},e.prototype.highlight=function(){ya(this)},e.prototype.downplay=function(){ma(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=il(t.getItemVisual(n,"symbolSize")),f=t.getItemVisual(n,"style"),v=f&&f.fill,c=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",v)});var h=Co(t.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var d=t.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=v,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,tt(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(le),KZ=(function(r){N(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 Lf(qZ)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,qR(t)),this.group.add(o.group)},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=kf("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(qR(t))},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=jx(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(Fe);function qR(r){return{clipShape:qI(r)}}var jZ=(function(r){N(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,n){return Bn(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,a){return a.point(n.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})(We);function JZ(r){r.registerChartView(KZ),r.registerSeriesModel(jZ),r.registerLayout(kf("effectScatter"))}var KR=(function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new b1(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");H(o)||(o=[o,o]);var l=t.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=ht(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(i){var o=t.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),v=At(n.get("delay"),function(h){return h/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var c=void 0;ne(v)?c=v(a):c=v,i.__t>0&&(c=-s*i.__t),this._animateSymbol(i,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,l=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return na(t.__p1,t.__cp1)+na(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<=1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Rt,f=pg;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var v=t.__t<=1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),c=t.__t<=1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(c,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=na(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*na(n,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,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e})(le),jR=(function(r){N(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new Ot({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};Oe(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var v=o.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),f=v.get("disabled"),l=v.get("focus"),u=v.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=s,tt(this,l,u,f)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.stopAnimation(),a.setShape("points",t.getItemLayout(n))},e})(le),QZ=(function(r){N(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,n,a){return new jR(t,n,a)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=na(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<=1?t.__t:2-t.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),v=a[l],c=a[l+1];t.x=v[0]*(1-f)+f*c[0],t.y=v[1]*(1-f)+f*c[1];var h=t.__t<=1?c[0]-v[0]:v[0]-c[0],d=t.__t<=1?c[1]-v[1]:v[1]-c[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e})(KR),e$=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),t$=(function(r){N(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}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:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new e$},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.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++],v=a[o++],c=a[o++];if(t.moveTo(u,f),i>0){var h=(u+v)/2-(f-c)*i,d=(f+c)/2-(v-u)*i;t.quadraticCurveTo(h,d,v,c)}else t.lineTo(v,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var v=i[u++],c=i[u++],h=1;h<f;h++){var d=i[u++],p=i[u++];if(qa(v,c,d,p,s,t,n))return l}l++}else for(var l=0,u=0;u<i.length;){var v=i[u++],c=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(v+d)/2-(c-p)*o,y=(c+p)/2-(d-v)*o;if(Vw(v,c,g,y,d,p,s,t,n))return l}else if(qa(v,c,d,p,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],v=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(v,o),l=Math.max(v,l)}t=this._rect=new se(i,o,s,l)}return t},e})(Me),r$=(function(){function r(){this.group=new le}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,n){var a=this._newAdded[0],i=t.getLayout("linesPoints"),o=a&&a.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=n,u.setShape({segs:i}),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 t$({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){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 i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=ve(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})(),JR={seriesType:"lines",plan:wo(),reset:function(r){var e=r.coordinateSystem;if(!e){Le("The lines series must have a coordinate system.");return}var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){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 v=0,c=[],f=a.start;f<a.end;f++){var h=r.getLineCoords(f,o);t&&(s[v++]=h);for(var d=0;d<h;d++)c=e.dataToPoint(o[d],!1,c),s[v++]=c[0],s[v++]=c[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),h=r.getLineCoords(f,o),g=[];if(t)for(var y=0;y<h;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}},n$=(function(r){N(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,n,a){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.getZr(),f=!!Jy(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)}):console.warn("SVG render mode doesn't support lines with trail effect")),o.updateData(i);var v=t.get("clip",!0)&&Go(t.coordinateSystem,!1,t);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData(),An(n)),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=JR.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return i&&l&&console.warn("Large lines not support effect"),(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new r$:new w1(o?i?QZ:jR:i?KR:b1),this._hasEffet=i,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 n=Jy(t);n&&this._lastZlevel!=null&&n.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e})(Fe),a$=typeof Uint32Array>"u"?Array:Uint32Array,i$=typeof Float64Array>"u"?Array:Float64Array;function QR(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),r.data=U(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),Tv([a,t[0],t[1]])}))}var o$=(function(r){N(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||[],QR(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(QR(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=ds(this._flatCoords,n.flatCoords),this._flatCoordsOffset=ds(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");if(!(a instanceof Array&&a.length>0&&a[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(a)+". Lines must have 2d coords array in data item.");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Re(t[0])){for(var a=t.length,i=new a$(a),o=new i$(a),s=0,l=0,u=0,f=0;f<a;){u++;var v=t[f++];i[l++]=s+n,i[l++]=v;for(var c=0;c<v;c++){var h=t[f++],d=t[f++];if(o[s++]=h,o[s++]=d,f>a)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,n){var a=ho.get(t.coordinateSystem);if(!a)throw new Error("Unknown coordinate system "+t.coordinateSystem);var i=new Jt(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),i},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getItemModel(t),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),v=[];u!=null&&v.push(u),f!=null&&v.push(f),l=v.join(" > ")}return gt("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"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},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})(We);function jd(r){return r instanceof Array||(r=[r,r]),r}var s$={seriesType:"lines",reset:function(r){var e=jd(r.get("symbol")),t=jd(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=jd(s.getShallow("symbol",!0)),u=jd(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function l$(r){r.registerChartView(n$),r.registerSeriesModel(o$),r.registerLayout(JR),r.registerVisual(s$)}var u$=256,f$=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Tt.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,v=this.canvas,c=v.getContext("2d"),h=e.length;v.width=t,v.height=n;for(var d=0;d<h;++d){var p=e[d],g=p[0],y=p[1],m=p[2],_=a(m);c.globalAlpha=_,c.drawImage(s,g-f,y-f)}if(!v.width||!v.height)return v;for(var S=c.getImageData(0,0,v.width,v.height),x=S.data,b=0,w=x.length,C=this.minOpacity,T=this.maxOpacity,M=T-C;b<w;){var _=x[b+3]/256,D=Math.floor(_*(u$-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*M+C),x[b++]=L[D],x[b++]=L[D+1],x[b++]=L[D+2],x[b++]=L[D+3]*_*256}else b+=4}return c.putImageData(S,0,0),v},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Tt.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=B.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 n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r})();function v$(r,e,t){var n=r[1]-r[0];e=U(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function c$(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}var h$=(function(r){N(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,n,a){var i;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),!i)throw new Error("Heatmap must use with visualMap");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()):KI(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(KI(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ei(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,n,a,i,o){var s=t.coordinateSystem,l=Fo(s,"cartesian2d"),u=Fo(s,"matrix"),f,v,c,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");if(!(d.type==="category"&&p.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(d.onBand&&p.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true");f=Yt(d).w+.5,v=Yt(p).w+.5,c=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),b=xt(t),w=t.getModel("emphasis"),C=w.get("focus"),T=w.get("blurScope"),M=w.get("disabled"),D=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],L=a;L<i;L++){var I=void 0,P=y.getItemVisual(L,"style");if(l){var E=y.get(D[0],L),R=y.get(D[1],L);if(isNaN(y.get(D[2],L))||isNaN(E)||isNaN(R)||E<c[0]||E>c[1]||R<h[0]||R>h[1])continue;var O=s.dataToPoint([E,R]);I=new Ce({shape:{x:O[0]-f/2,y:O[1]-v/2,width:f,height:v},style:P})}else if(u){var k=s.dataToLayout([y.get(D[0],L),y.get(D[1],L)]).rect;if(Ct(k.x))continue;I=new Ce({z2:1,shape:k,style:P})}else{if(isNaN(y.get(D[1],L)))continue;var V=s.dataToLayout([y.get(D[0],L)]),k=V.contentRect||V.rect;if(Ct(k.x)||Ct(k.y))continue;I=new Ce({z2:1,shape:k,style:P})}if(y.hasItemOption){var z=y.getItemModel(L),F=z.getModel("emphasis");m=F.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),x=z.get(["itemStyle","borderRadius"]),C=F.get("focus"),T=F.get("blurScope"),M=F.get("disabled"),b=xt(z)}I.shape.r=x;var Y=t.getRawValue(L),Z="-";Y&&Y[2]!=null&&(Z=Y[2]+""),It(I,b,{labelFetcher:t,labelDataIndex:L,defaultOpacity:P.opacity,defaultText:Z}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=_,I.ensureState("select").style=S,tt(I,C,T,M),I.incremental=An(t,o),o&&(I.states.emphasis.hoverLayer=Ws),g.add(I),y.setItemGraphicEl(L,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new f$;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=t.getViewRect().clone(),v=t.getRoamTransform();f.applyTransform(v);var c=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-c,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,C,T){var M=t.dataToPoint([w,C]);return M[0]-=c,M[1]-=h,M.push(T),M}),S=a.getExtent(),x=a.type==="visualMap.continuous"?c$(S,a.option.range):v$(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new Dt({style:{width:g,height:y,x:c,y:h,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e})(Fe),d$=(function(r){N(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,n){return Bn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=ho.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:B.color.primary}}},e})(We);function p$(r){r.registerChartView(h$),r.registerSeriesModel(d$)}var g$=["itemStyle","borderWidth"],eE=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],tS=new kn,y$=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Bf,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),v=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:eE[+f],categoryDim:eE[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=sE(o,d),g=tE(o,d,p,c),y=lE(o,c,g);o.setItemGraphicEl(d,y),i.add(y),vE(y,c,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=sE(o,d),m=tE(o,d,y,c),_=fE(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?T$(g,c,m):g=lE(o,c,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),vE(g,c,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&uE(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=t.get("clip",!0)?Go(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){uE(i,ve(o).dataIndex,t,o)}):a.removeAll()},e.type=Bf,e})(Fe);function tE(r,e,t,n){var a=r.getItemLayout(e),i=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,v=t.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:v?t:null,hoverScale:v&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};m$(t,i,a,n,c),_$(r,e,a,i,o,c.boundingLength,c.pxSign,f,n,c),S$(t,c.symbolScale,u,n,c);var h=c.symbolSize,d=Co(t.get("symbolOffset"),h);return x$(t,h,a,i,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function m$(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(H(o)){var v=[rS(s,o[0])-l,rS(s,o[1])-l];v[1]<v[0]&&v.reverse(),f=v[u]}else o!=null?f=rS(s,o)-l:e?f=n.coordSysExtent[i.index][u]-l:f=t[i.wh];a.boundingLength=f,e&&(a.repeatCutLength=t[i.wh]);var c=i.xy==="x",h=s.inverse;a.pxSign=c&&!h||!c&&h?f>=0?1:-1:f>0?1:-1}function rS(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function _$(r,e,t,n,a,i,o,s,l,u){var f=l.valueDim,v=l.categoryDim,c=Math.abs(t[v.wh]),h=r.getItemVisual(e,"symbolSize"),d;H(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[v.index]=q(d[v.index],c),d[f.index]=q(d[f.index],n?c:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function S$(r,e,t,n,a){var i=r.get(g$)||0;i&&(tS.attr({scaleX:e[0],scaleY:e[1],rotation:t}),tS.updateTransform(),i/=tS.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function x$(r,e,t,n,a,i,o,s,l,u,f,v){var c=f.categoryDim,h=f.valueDim,d=v.pxSign,p=Math.max(e[h.index]+s,0),g=p;if(n){var y=Math.abs(l),m=At(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=q(m,e[h.index]),x=Math.max(p+S*2,0),b=_?0:S*2,w=uc(n),C=w?n:cE((y+b)/x),T=y-C*p;S=T/2/(_?C:Math.max(C-1,1)),x=p+S*2,b=_?0:S*2,!w&&n!=="fixed"&&(C=u?cE((Math.abs(u)+b)/x):0),g=C*x-b,v.repeatTimes=C,v.symbolMargin=S}var M=d*(g/2),D=v.pathPosition=[];D[c.index]=t[c.wh]/2,D[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var L=v.bundlePosition=[];L[c.index]=t[c.xy],L[h.index]=t[h.xy];var I=v.barRectShape=G({},t);I[h.wh]=d*Math.max(Math.abs(t[h.wh]),Math.abs(D[h.index]+M)),I[c.wh]=t[c.wh];var P=v.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}function rE(r){var e=r.symbolPatternSize,t=ht(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function nE(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,v=i[e.valueDim.index]+o+t.symbolMargin*2;for(nS(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?Vl(p,null,d(f),t,n):Vl(p,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(p)}),f++});f<u;f++){var c=rE(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,a.add(c);var h=d(f);Vl(c,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},t,n)}function d(p){var g=s.slice(),y=t.pxSign,m=p;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=v*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function aE(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Vl(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=rE(t),a.add(i),Vl(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function iE(r,e,t){var n=G({},e.barRectShape),a=r.__pictorialBarRect;a?Vl(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new Ce({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function oE(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=G({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)Oe(a,{shape:i},s,l);else{i[o.wh]=0,a=new Ce({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],uo[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function sE(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=b$,t.isAnimationEnabled=w$,t}function b$(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function w$(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function lE(r,e,t,n){var a=new le,i=new le;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?nE(a,e,t):aE(a,e,t),iE(a,t,n),oE(a,e,t,n),a.__pictorialShapeStr=fE(r,t),a.__pictorialSymbolMeta=t,a}function T$(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;Oe(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?nE(r,e,t,!0):aE(r,e,t,!0),iE(r,t,!0),oE(r,e,t,!0)}function uE(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];nS(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),A(i,function(o){Qa(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function fE(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function nS(r,e,t){A(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function Vl(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&uo[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function vE(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),v=i.get("blurScope"),c=i.get("scale");nS(r,function(p){if(p instanceof Dt){var g=p.style;p.useStyle(G({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,c&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,It(d,xt(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Tl(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),tt(r,f,v,i.get("disabled"))}function cE(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var C$=(function(r){N(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."+Bf,e.dependencies=["grid"],e.defaultOption=ti(Vf.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:B.color.primary}}}),e})(Vf);function A$(r){r.registerChartView(y$),r.registerSeriesModel(C$),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,AL(Bf)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ML(Bf)),IL(r)}var aS=2,zl="themeRiver",M$=(function(r){N(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 Dl(j(this.getData,this),j(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,a={},i=ey(t,function(c){return a.hasOwnProperty(c[0]+"")||(a[c[0]+""]=-1),c[2]}),o=[];i.buckets.each(function(c,h){o.push({name:h,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 v=o[l].dataList[f][0]+"";a[v]=l}for(var v in a)a.hasOwnProperty(v)&&a[v]!==l&&(a[v]=l,t[n]=[v,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",ot).models[0],i=a.get("type"),o=Ve(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=K(),f=0,v=0;v<s.length;++v)l.push(s[v][aS]),u.get(s[v][aS])||(u.set(s[v][aS],f),f++);var c=hl(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Ih(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Jt(c,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=ey(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(v,c){return t.get(o,v)-t.get(o,c)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,a){H(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var v=Number.MAX_VALUE,c=-1,h=o[f].indices.length,d=0;d<h;++d){var p=i.get(t[0],o[f].indices[d]),g=Math.abs(p-n);g<=v&&(u=p,v=g,c=o[f].indices[d])}s.push(c)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return gt("nameValue",{name:o,value:s})},e.type="series."+zl,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})(We),D$=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=zl,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,v=u.boundaryGap;s.x=0,s.y=f.y+v[0];function c(g){return g.name}var h=new wa(this._layersSeries||[],l,c,c),d=[];h.add(j(p,this,"add")).update(j(p,this,"update")).remove(j(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,C=0;C<w.length;C++){var T=i.getItemLayout(w[C]),M=T.x,D=T.y0,L=T.y;S.push(M,D),x.push(M,D+L),b=i.getItemVisual(w[C],"style")}var I,P=i.getItemLayout(w[0]),E=t.getModel("label"),R=E.get("margin"),O=t.getModel("emphasis");if(g==="add"){var k=d[y]=new le;I=new XI({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(I),s.add(k),t.isAnimationEnabled()&&I.setClipPath(I$(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else{var k=_[m];I=k.childAt(0),s.add(k),d[y]=k,Oe(I,{shape:{points:S,stackedOnPoints:x}},t),Gr(I)}It(I,xt(t),{labelDataIndex:w[C-1],defaultText:i.getName(w[C-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var V=I.getTextContent();V&&(V.x=P.x-R,V.y=P.y0+P.y/2),I.useStyle(b),i.setItemGraphicEl(y,I),St(I,t),tt(I,O.get("focus"),O.get("blurScope"),O.get("disabled"))}this._layersSeries=l,this._layers=d},e.type=zl,e})(Fe);function I$(r,e,t){var n=new Ce({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ke(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}var L$=_t(zl,P$);function P$(r,e){r.eachSeriesByType(zl,function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=q(s[0],o.height),s[1]=q(s[1],o.height);var u=o.height-s[0]-s[1];hE(n,t,u)}else{s[0]=q(s[0],o.width),s[1]=q(s[1],o.width);var f=o.width-s[0]-s[1];hE(n,t,f)}n.setLayout("layoutInfo",i)})}function hE(r,e,t){if(r.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=U(a,function(g){return U(g.indices,function(y){var m=n.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=R$(s),u=l.y0,f=t/l.max,v=a.length,c=a[0].indices.length,h,d=0;d<c;++d){h=u[d]*f,r.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:h,y:s[0][d][1]*f});for(var p=1;p<v;++p)h+=s[p-1][d][1]*f,r.setItemLayout(a[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:h,y:s[p][d][1]*f})}}function R$(r){for(var e=r.length,t=r[0].length,n=[],a=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<t;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<t;++f){var v=n[f]+a[f];v>i&&(i=v)}return{y0:a,max:i}}function E$(r){r.registerChartView(D$),r.registerSeriesModel(M$),r.registerLayout(L$),r.registerProcessor(zf(zl))}var k$=2,O$=4,dE=(function(r){N(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=k$,o.textConfig={inside:!0},ve(o).seriesIndex=n.seriesIndex;var s=new Pe({z2:O$,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;ve(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),v=G({},f);v.label=null;var c=n.getVisual("style");c.lineJoin="bevel";var h=n.getVisual("decal");h&&(c.decal=ll(h,o));var d=Yn(l.getModel("itemStyle"),v,!0);G(v,d),A(nr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Yn(S,v);x&&(_.shape=x)}),t?(s.setShape(v),s.shape.r=f.r0,Ke(s,{shape:{r:f.r}},a,n.dataIndex)):(Oe(s,{shape:v},a),Gr(s)),s.useStyle(c),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?ds(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;tt(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=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),v=this,c=v.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);c.ignore=!p,A(Lu,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?c:c.ensureState(y),x=t.getFormattedLabel(h,y);_&&(x=x||n.node.name),S.style=Ye(m,{},null,y!=="normal",!0),x&&(S.style.text=x);var b=m.get("show");b!=null&&!_&&(S.ignore=!b);var w=g(m,"position"),C=_?v:v.states[y],T=C.style.fill;C.textConfig={outsideFill:m.get("color")==="inherit"?T:null,inside:w!=="outside"};var M,D=g(m,"distance")||0,L=g(m,"align"),I=g(m,"rotate"),P=Math.PI*.5,E=Math.PI*1.5,R=br(I==="tangential"?Math.PI/2-l:l),O=R>P&&!zi(R-P)&&R<E;w==="outside"?(M=o.r+D,L=O?"right":"left"):!L||L==="center"?(o.r0===0&&zi(s-2*Math.PI)?M=0:M=(o.r+o.r0)/2,L="center"):L==="left"?(M=o.r0+D,L=O?"right":"left"):L==="right"&&(M=o.r-D,L=O?"left":"right"),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var k=0;I==="radial"?k=br(-l)+(O?Math.PI:0):I==="tangential"?k=br(Math.PI/2-l)+(O?Math.PI:0):Re(I)&&(k=I*Math.PI/180),S.rotation=br(k)});function g(y,m){var _=y.get(m);return _??i.get(m)}c.dirtyStyle()},e})(Ht),is="sunburst",N$=(function(r){N(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,n){var a={name:t.name,children:t.data};pE(a);var i=this._levelModels=U(t.levels||[],function(l){return new De(l,this,n)},this),o=e1.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var v=o.getNodeByDataIndex(f),c=i[v.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Bd(a,this),n},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 n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){AP(this)},e.type="series."+is,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})(We);function pE(r){var e=0;A(r.children,function(n){pE(n);var a=n.value;H(a)&&(a=a[0]),e+=a});var t=r.value;H(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),H(r.value)?r.value[0]=t:r.value=t}var iS="sunburstRootToNode",gE="sunburstHighlight",B$="sunburstUnhighlight";function V$(r){r.registerAction({type:iS,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=Jf(e,[iS],a);if(o){var s=a.getViewRoot();s&&(e.direction=t1(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:gE,update:"none"},function(e,t,n){e=G({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=Jf(e,[gE],i);o&&(e.dataIndex=o.node.dataIndex)}ut("sunburstHighlight","highlight"),n.dispatchAction(G(e,{type:"highlight"}))}),r.registerAction({type:B$,update:"updateView"},function(e,t,n){e=G({},e),ut("sunburstUnhighlight","downplay"),n.dispatchAction(G(e,{type:"downplay"}))})}var z$=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=is,t}return e.prototype.render=function(t,n,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,v=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(m){c.push(m)});var h=this._oldChildren||[];d(c,h),y(l,u),this._initEvents(),this._oldChildren=c;function d(m,_){if(m.length===0&&_.length===0)return;new wa(_,m,S,S).add(x).update(x).remove(be(x,null)).execute();function S(b){return b.getId()}function x(b,w){var C=b==null?null:m[b],T=w==null?null:_[w];p(C,T)}}function p(m,_){if(!v&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new dE(m,t,n,a);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,n,a):(o.virtualPiece=new dE(m,t,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.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(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.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";qc(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:iS,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=is,e})(Fe),G$=_t(is,F$);function F$(r){var e={};function t(n,a,i){if(n.depth===0)return B.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&$(s)&&(s=Vv(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType(is,function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");G(u,l)})})}var yE=Math.PI/180,H$=_t(is,W$);function W$(r,e){r.eachSeriesByType(is,function(t){var n=t.get("center"),a=t.get("radius");H(a)||(a=[0,a]),H(n)||(n=[n,n]);var i=e.getWidth(),o=e.getHeight(),s=Math.min(i,o),l=q(n[0],i),u=q(n[1],o),f=q(a[0],s/2),v=q(a[1],s/2),c=-t.get("startAngle")*yE,h=t.get("minAngle")*yE,d=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,y=t.get("sort");y!=null&&mE(p,y);var m=0;A(p.children,function(E){!isNaN(E.getValue())&&m++});var _=p.getValue(),S=Math.PI/(_||m)*2,x=p.depth>0,b=p.height-(x?-1:1),w=(v-f)/(b||1),C=t.get("clockwise"),T=t.get("stillShowZeroSum"),M=C?1:-1,D=function(E,R){if(E){var O=R;if(E!==d){var k=E.getValue(),V=_===0&&T?S:k*S;V<h&&(V=h),O=R+M*V;var z=E.depth-g-(x?-1:1),F=f+w*z,Y=f+w*(z+1),Z=t.getLevelModel(E);if(Z){var X=Z.get("r0",!0),ee=Z.get("r",!0),ye=Z.get("radius",!0);ye!=null&&(X=ye[0],ee=ye[1]),X!=null&&(F=q(X,s/2)),ee!=null&&(Y=q(ee,s/2))}E.setLayout({angle:V,startAngle:R,endAngle:O,clockwise:C,cx:l,cy:u,r0:F,r:Y})}if(E.children&&E.children.length){var Be=0;A(E.children,function(ce){Be+=D(ce,R+Be)})}return O-R}};if(x){var L=f,I=f+w,P=Math.PI*2;d.setLayout({angle:P,startAngle:c,endAngle:c+P,clockwise:C,cx:l,cy:u,r0:L,r:I})}D(p,c)})}function mE(r,e){var t=r.children||[];r.children=U$(t,e),t.length&&A(r.children,function(n){mE(n,e)})}function U$(r,e){if(ne(e)){var t=U(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(a,i){return e(a.params,i.params)}),U(t,function(a){return r[a.index]})}else{var n=e==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function Y$(r){r.registerChartView(z$),r.registerSeriesModel(N$),r.registerLayout(H$),r.registerVisual(G$),V$(r)}var _E={color:"fill",borderColor:"stroke"},X$={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},La=Se(),Z$=(function(r){N(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,n){return Bn(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=La(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(We);function $$(r,e){return e=e||[0,0],U(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?Yt(a).w:Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function q$(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:j($$,r)}}}function K$(r,e){return e=e||[0,0],U([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function j$(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:S6(e)},api:{coord:function(n){return r.dataToPoint(n)},size:j(K$,r)}}}function J$(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?Yt(t).w:Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function Q$(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:j(J$,r)}}}function eq(r,e){return e=e||[0,0],U(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,l=i.type==="category"?Yt(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function tq(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:j(eq,r)}}}function rq(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(n,a){return r.dataToPoint(n,a)},layout:function(n,a){return r.dataToLayout(n,a)}}}}function nq(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,n){return r.dataToPoint(t,n)},layout:function(t,n){return r.dataToLayout(t,n)}}}}var SE={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},xE=Ae(SE),Jd=Pr(va,function(r,e){return r[e]=1,r},{}),bE=va.join(", "),Qd=["","style","shape","extra"],Gl=Se();function oS(r,e,t,n,a){var i=r+"Animation",o=Fs(r,n,a)||{},s=Gl(e).userDuring;return o.duration>0&&(o.during=s?j(lq,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),G(o,t[i]),o}function ep(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=Gl(r),u=e.style;l.userDuring=e.during;var f={},v={};if(fq(r,e,v),r.type==="compound")for(var c=r.shape.paths,h=e.shape.paths,d=0;d<h.length;d++){var p=h[d];sS("shape",p,c[d])}else sS("shape",e,v),sS("extra",e,v);if(!i&&s&&(uq(r,e,f),TE("shape",r,e,f),TE("extra",r,e,f),vq(r,e,u,f)),v.style=u,aq(r,v,o),oq(r,e),s)if(i){var g={};A(Qd,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),G(m?g[m]:g,_.enterFrom))});var y=oS("enter",r,e,t,a);y.duration>0&&r.animateFrom(g,y)}else iq(r,e,a||0,t,f);wE(r,e),u?r.dirty():r.markRedraw()}function wE(r,e){for(var t=Gl(r).leaveToProps,n=0;n<Qd.length;n++){var a=Qd[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=Gl(r).leaveToProps={}),a&&(t[a]=t[a]||{}),G(a?t[a]:t,i.leaveTo))}}function tp(r,e,t,n){if(r){var a=r.parent,i=Gl(r).leaveToProps;if(i){var o=oS("update",r,e,t,0);o.done=function(){a&&a.remove(r),n&&n()},r.animateTo(i,o)}else a&&a.remove(r),n&&n()}}function os(r){return r==="all"}function aq(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function iq(r,e,t,n,a){if(a){var i=oS("update",r,e,n,t);i.duration>0&&r.animateFrom(a,i)}}function oq(r,e){J(e,"silent")&&(r.silent=e.silent),J(e,"ignore")&&(r.ignore=e.ignore),r instanceof Vr&&J(e,"invisible")&&(r.invisible=e.invisible),r instanceof Me&&J(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var $n={},sq={setTransform:function(r,e){return W(J(Jd,r),"Only "+bE+" available in `setTransform`."),$n.el[r]=e,this},getTransform:function(r){return W(J(Jd,r),"Only "+bE+" available in `getTransform`."),$n.el[r]},setShape:function(r,e){Fl(r);var t=$n.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){Fl(r);var e=$n.el.shape;if(e)return e[r]},setStyle:function(r,e){Fl(r);var t=$n.el,n=t.style;return n&&(Ct(e)&&et("style."+r+" must not be assigned with NaN."),n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){Fl(r);var e=$n.el.style;if(e)return e[r]},setExtra:function(r,e){Fl(r);var t=$n.el.extra||($n.el.extra={});return t[r]=e,this},getExtra:function(r){Fl(r);var e=$n.el.extra;if(e)return e[r]}};function Fl(r){if(r==="transition"||r==="enterFrom"||r==="leaveTo")throw new Error('key must not be "'+r+'"')}function lq(){var r=this,e=r.el;if(e){var t=Gl(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}$n.el=e,n(sq)}}function TE(r,e,t,n){var a=t[r];if(a){var i=e[r],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),os(l))G(o,i);else for(var u=Ue(l),f=0;f<u.length;f++){var v=u[f],c=i[v];o[v]=c}else if(os(s)||ge(s,r)>=0){!o&&(o=n[r]={});for(var h=Ae(i),f=0;f<h.length;f++){var v=h[f],c=i[v];cq(a[v],c)&&(o[v]=c)}}}}}function sS(r,e,t){var n=e[r];if(n)for(var a=t[r]={},i=Ae(n),o=0;o<i.length;o++){var s=i[o];a[s]=mu(n[s])}}function uq(r,e,t){for(var n=e.transition,a=os(n)?va:Ue(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];CE(o,"el.transition"),t[o]=s}}}function fq(r,e,t){for(var n=0;n<xE.length;n++){var a=xE[n],i=SE[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<va.length;n++){var s=va[n];e[s]!=null&&(t[s]=e[s])}}function vq(r,e,t,n){if(t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!os(o)){var l=Ue(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],v=a[f];i[f]=v}}else if(r.getAnimationStyleProps&&(os(s)||os(o)||ge(s,"style")>=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=n.style={});for(var d=Ae(t),u=0;u<d.length;u++){var f=d[u];if(h[f]){var v=a[f];i[f]=v}}}}}}}function cq(r,e){return Vt(r)?r!==e:r!=null&&isFinite(r)}var CE;CE=function(r,e){J(Jd,r)||et("Prop `"+r+"` is not a permitted in `"+e+"`. Only `"+Ae(Jd).join("`, `")+"` are permitted.")};var AE=Se(),hq=["percent","easing","shape","style","extra"];function ME(r){r.stopAnimation("keyframe"),r.attr(AE(r))}function rp(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(H(e)){A(e,function(s){rp(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=Fs("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=AE(r);A(Qd,function(s){if(!(s&&!r[s])){var l,u=!1;n.sort(function(f,v){return f.percent-v.percent}),A(n,function(f){var v=r.animators,c=s?f[s]:f;if(f.percent>=1&&(u=!0),!!c){var h=Ae(c);if(s||(h=Ve(h,function(g){return ge(hq,g)<0})),!!h.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var d=0;d<v.length;d++)v[d]!==l&&v[d].targetName===l.targetName&&v[d].stopTracks(h);s&&(o[s]=o[s]||{});var p=s?o[s]:o;A(h,function(g){p[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(a*f.percent,c,h,f.easing)}}}),l&&(u||et("End frame with percent: 1 is missing in the keyframeAnimation.",!0),l.delay(e.delay||0).duration(a).start(e.easing))}})}}}var Pa="emphasis",mi="normal",lS="blur",uS="select",_i=[mi,Pa,lS,uS],fS={normal:["itemStyle"],emphasis:[Pa,"itemStyle"],blur:[lS,"itemStyle"],select:[uS,"itemStyle"]},vS={normal:["label"],emphasis:[Pa,"label"],blur:[lS,"label"],select:[uS,"label"]},dq=["x","y"],pq="e\0\0",jr={normal:{},emphasis:{},blur:{},select:{}},DE={cartesian2d:q$,geo:j$,single:Q$,polar:tq,calendar:rq,matrix:nq};function np(r){return r instanceof Me}function cS(r){return r instanceof Vr}function gq(r,e){e.copyTransform(r),cS(e)&&cS(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,np(e)&&np(r)&&e.setShape(r.shape))}var yq=(function(r){N(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,n,a,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=LE(t,s,n,a);o||l.removeAll(),s.diff(o).add(function(v){pS(a,null,v,u(v,i),t,l,s)}).remove(function(v){var c=o.getItemGraphicEl(v);c&&tp(c,La(c).option,t)}).update(function(v,c){var h=o.getItemGraphicEl(c);pS(a,h,v,u(v,i),t,l,s)}).execute();var f=t.get("clip",!0)?Go(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),l=LE(n,s,a,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=An(n),h.ensureState("emphasis").hoverLayer=Ws)}for(var v=t.start;v<t.end;v++){var c=pS(null,null,v,l(v,o),n,this.group,s);c&&(c.traverse(f),u.push(c))}},e.prototype.eachRendered=function(t){ei(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,a,i){var o=n.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})(Fe);function hS(r){var e=r.type,t;if(e==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=OE(n);t=Us(i,null,a,n.layout||"center"),La(t).customPathData=i}else if(e==="image")t=new Dt({}),La(t).customImagePath=r.style.image;else if(e==="text")t=new Pe({});else if(e==="group")t=new le;else if(e==="compoundPath"){var n=r.shape;if(!n||!n.paths){var o="";o="shape.paths must be specified in compoundPath",ze(o)}var s=U(n.paths,function(f){if(f.type==="path")return Us(f.shape.pathData,f,null);var v=Bu(f.type);if(!v){var c="";c='graphic type "'+e+'" can not be found.',ze(c)}return new v});t=new Nu({shape:{paths:s}})}else{var l=Bu(e);if(!l){var o="";o='graphic type "'+e+'" can not be found.',ze(o)}t=new l}return La(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function dS(r,e,t,n,a,i,o){ME(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=dq);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;J(u,"textFill")&&(u.fill=u.textFill),J(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,v=np(e)?l.decal:null;r&&v&&(v.dirty=!0,f=ll(v,r)),l.__decalPattern=f}if(cS(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}ep(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),rp(e,n.keyframeAnimation,i)}function IE(r,e,t,n,a){var i=e.isGroup?null:e,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),eo(i)}}function mq(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<_i.length;s++)_q(n,e,_i[s])}}function _q(r,e,t){var n=t===mi,a=n?e:ap(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function LE(r,e,t,n){var a=r.get("renderItem");if(typeof a=="string"){var i=b3(a);i?a=i:console.warn("Custom series renderItem '"+a+`' not found.
47
+ Call 'echarts.registerCustomSeries' to register it.`)}var o=r.coordinateSystem,s={};o&&(W(a,"series.render is required."),W(o.prepareCustoms||DE[o.type],"This coordSys does not support custom series."),s=o.prepareCustoms?o.prepareCustoms(o):DE[o.type](o));for(var l=ue({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:x,style:w,ordinalRawValue:b,styleEmphasis:C,visual:D,barLayout:L,currentSeriesIndices:I,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:Sq(r.getData()),itemPayload:r.get("itemPayload")||{}},f,v,c={},h={},d={},p={},g=0;g<_i.length;g++){var y=_i[g];d[y]=r.getModel(fS[y]),p[y]=r.getModel(vS[y])}function m(E){return E===f?v||(v=e.getItemModel(E)):e.getItemModel(E)}function _(E,R){return e.hasItemOption?E===f?c[R]||(c[R]=m(E).getModel(fS[R])):m(E).getModel(fS[R]):d[R]}function S(E,R){return e.hasItemOption?E===f?h[R]||(h[R]=m(E).getModel(vS[R])):m(E).getModel(vS[R]):p[R]}return function(E,R){return f=E,v=null,c={},h={},a&&a(ue({dataIndexInside:E,dataIndex:e.getRawIndex(E),actionType:R?R.type:null},u),l)};function x(E,R){return R==null&&(R=f),e.getStore().get(e.getDimensionIndex(E||0),R)}function b(E,R){R==null&&(R=f),E=E||0;var O=e.getDimensionInfo(E);if(!O){var k=e.getDimensionIndex(E);return k>=0?e.getStore().get(k,R):void 0}var V=e.get(O.name,R),z=O&&O.ordinalMeta;return z?z.categories[V]:V}function w(E,R){v_("api.style","Please write literal style directly instead."),R==null&&(R=f);var O=e.getItemVisual(R,"style"),k=O&&O.fill,V=O&&O.opacity,z=_(R,mi).getItemStyle();k!=null&&(z.fill=k),V!=null&&(z.opacity=V);var F={inheritColor:$(k)?k:B.color.neutral99},Y=S(R,mi),Z=Ye(Y,null,F,!1,!0);Z.text=Y.getShallow("show")?Q(r.getFormattedLabel(R,mi),Tl(e,R)):null;var X=Hc(Y,F,!1);return M(E,z),z=tL(z,Z,X),E&&T(z,E),z.legacy=!0,z}function C(E,R){v_("api.styleEmphasis","Please write literal style directly instead."),R==null&&(R=f);var O=_(R,Pa).getItemStyle(),k=S(R,Pa),V=Ye(k,null,null,!0,!0);V.text=k.getShallow("show")?$t(r.getFormattedLabel(R,Pa),r.getFormattedLabel(R,mi),Tl(e,R)):null;var z=Hc(k,null,!0);return M(E,O),O=tL(O,V,z),E&&T(O,E),O.legacy=!0,O}function T(E,R){for(var O in R)J(R,O)&&(E[O]=R[O])}function M(E,R){E&&(E.textFill&&(R.textFill=E.textFill),E.textPosition&&(R.textPosition=E.textPosition))}function D(E,R){if(R==null&&(R=f),J(_E,E)){var O=e.getItemVisual(R,"style");return O?O[_E[E]]:null}if(J(X$,E))return e.getItemVisual(R,E)}function L(E){if(o.type==="cartesian2d"){var R=o.getBaseAxis();return SY(ue({axis:R},E))}}function I(){return t.getCurrentSeriesIndices()}function P(E){return em(E,t)}}function Sq(r){var e={};return A(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function pS(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=gS(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&tt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function gS(r,e,t,n,a,i){W(n,"should not have an null/undefined element setting");var o=-1,s=e;e&&PE(e,n,a)&&(o=ge(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=hS(n),s&&gq(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),jr.normal.cfg=jr.normal.conOpt=jr.emphasis.cfg=jr.emphasis.conOpt=jr.blur.cfg=jr.blur.conOpt=jr.select.cfg=jr.select.conOpt=null,jr.isLegacy=!1,bq(u,t,n,a,l,jr),xq(u,t,n,a,l),dS(r,u,t,n,jr,a,l),J(n,"info")&&(La(u).info=n.info);for(var f=0;f<_i.length;f++){var v=_i[f];if(v!==mi){var c=ap(n,v),h=yS(n,c,v);IE(v,u,c,h,jr)}}return mq(u,n,a),n.type==="group"&&wq(r,u,t,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function PE(r,e,t){var n=La(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&Mq(i)&&OE(i)!==n.customPathData||a==="image"&&J(o,"image")&&o.image!==n.customImagePath}function xq(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&PE(o,i,n)&&(o=null),o||(o=hS(i),W(np(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),r.setClipPath(o)),dS(null,o,e,i,null,n,a)}}function bq(r,e,t,n,a,i){if(!(r.isGroup||r.type==="compoundPath")){RE(t,null,i),RE(t,Pa,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=hS(o),r.setTextContent(f)),dS(null,f,e,o,null,n,a);for(var v=o&&o.style,c=0;c<_i.length;c++){var h=_i[c];if(h!==mi){var d=i[h].conOpt;IE(h,f,d,yS(o,d,h),null)}}v?f.dirty():f.markRedraw()}}}}function RE(r,e,t){var n=e?ap(r,e):r,a=e?yS(r,n,Pa):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?ap(s,e):s:null;if(a&&(t.isLegacy||JI(a,i,!!o,!!l))){t.isLegacy=!0;var u=QI(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text"),W(f.type==="text",'textContent.type must be "text"')}var v=e?t[e]:t.normal;v.cfg=o,v.conOpt=l}function ap(r,e){return e?r?r[e]:null:r}function yS(r,e,t){var n=e&&e.style;return n==null&&t===Pa&&r&&(n=r.styleEmphasis),n}function wq(r,e,t,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Cq({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var v=i[f],c=e.childAt(f);v?(v.ignore==null&&(v.ignore=!1),gS(r,c,t,v,a,e)):(W(c,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),c.ignore=!0)}for(var h=e.childCount()-1;h>=f;h--){var d=e.childAt(h);Tq(e,d,a)}}}function Tq(r,e,t){e&&tp(e,La(r).option,t)}function Cq(r){new wa(r.oldChildren,r.newChildren,EE,EE,r).add(kE).update(kE).remove(Aq).execute()}function EE(r,e){var t=r&&r.name;return t??pq+e}function kE(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;gS(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function Aq(r){var e=this.context,t=e.oldChildren[r];t&&tp(t,La(t).option,e.seriesModel)}function OE(r){return r&&(r.pathData||r.d)}function Mq(r){return r&&(J(r,"pathData")||J(r,"d"))}function Dq(r){r.registerChartView(yq),r.registerSeriesModel(Z$)}var ss=Se(),NE=ae,mS=j,_S=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,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,i,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var v=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new le,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var c=be(BE,t,v);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}GE(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&Yt(a).w>s)return!0;if(o){var l=L_(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=ss(e).pointerEl=new uo[i.type](NE(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=ss(e).labelEl=new Pe(NE(t.label));e.add(i),zE(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=ss(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=ss(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),zE(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Xs(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){oa(u.event)},onmousedown:mS(this._onHandleDragMove,this,0,0),drift:mS(this._onHandleDragMove,this),ondragend:mS(this._onHandleDragEnd,this)}),n.add(a)),GE(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");H(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,rl(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){BE(this._axisPointerModel,!t&&this._moveAnimation,this._handle,SS(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(SS(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(SS(a)),ss(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.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(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),ef(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r})();function BE(r,e,t,n){VE(ss(t).lastProp,n)||(ss(t).lastProp=n,e?Oe(t,n,r):(t.stopAnimation(),t.attr(n)))}function VE(r,e){if(ie(r)&&ie(e)){var t=!0;return A(e,function(n,a){t=t&&VE(r[a],n)}),!!t}else return r===e}function zE(r,e){r[e.get(["label","show"])?"show":"hide"]()}function SS(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function GE(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function xS(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function FE(r,e,t,n,a){var i=t.get("value"),o=HE(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=js(s.get("padding")||0),u=s.getFont(),f=jv(o,u),v=a.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=a.align;d==="right"&&(v[0]-=c),d==="center"&&(v[0]-=c/2);var p=a.verticalAlign;p==="bottom"&&(v[1]-=h),p==="middle"&&(v[1]-=h/2),Iq(v,c,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:Ye(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Iq(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function HE(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Gh(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=u&&u.getDataParams(f);v&&s.seriesData.push(v)}),$(o)?i=o.replace("{value}",i):ne(o)&&(i=o(s))}return i}function bS(r,e,t){var n=Qe();return sa(n,n,t.rotation),Qr(n,n,t.position),un([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function WE(r,e,t,n,a,i){var o=lr.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),FE(e,n,a,i,{position:bS(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function wS(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function UE(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function YE(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}function TS(r,e,t){return Yt(r,{fromStat:{sers:U(e,function(n){return t.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function CS(r,e,t){return[Te(Ge(e[0],e[1]),r-t/2),Ge(r+t/2,Te(e[0],e[1]))]}var Lq=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),v=XE(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=xS(i),d=Pq[u](s,c,f,v,i.get("seriesDataIndices"),i.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=ld(l.getRect(),a);WE(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=ld(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=bS(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=XE(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,v=[t.x,t.y];v[f]+=n[f],v[f]=Ge(l[1],v[f]),v[f]=Te(l[0],v[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=v[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(_S);function XE(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var Pq={line:function(r,e,t,n){var a=wS([e,n[0]],[e,n[1]],ZE(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,n,a,i){var o=TS(r,a,i),s=n[1]-n[0],l=CS(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:UE([u,n[0]],[f-u,s],ZE(r))}}};function ZE(r){return r.dim==="x"?0:1}var Rq=(function(r){N(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:B.color.border,width:1,type:"dashed"},shadowStyle:{color:B.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:B.color.neutral00,padding:[5,7,5,7],backgroundColor:B.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:B.color.accent40,throttle:40}},e})(we),Ra=Se(),Eq=A;function $E(r,e,t){if(!Ie.node){var n=e.getZr();Ra(n).records||(Ra(n).records={}),kq(n,e);var a=Ra(n).records[r]||(Ra(n).records[r]={});a.handler=t}}function kq(r,e){if(Ra(r).initialized)return;Ra(r).initialized=!0,t("click",be(AS,"click")),t("mousemove",be(AS,"mousemove")),t("mousewheel",be(AS,"mousewheel")),t("globalout",Nq);function t(n,a){r.on(n,function(i){var o=Bq(e);Eq(Ra(r).records,function(s){s&&a(s,i,o.dispatchAction)}),Oq(o.pendings,e)})}}function Oq(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function Nq(r,e,t){r.handler("leave",null,t)}function AS(r,e,t,n){e.handler(r,t,n)}function Bq(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function MS(r,e){if(!Ie.node){var t=e.getZr(),n=(Ra(t).records||{})[r];n&&(Ra(t).records[r]=null)}}var Vq=(function(r){N(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,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";$E("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,n){MS("axisPointer",n)},e.prototype.dispose=function(t,n){MS("axisPointer",n)},e.type="axisPointer",e})(Xe);function qE(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Fi(i,r);if(o==null||o<0||H(o))return{point:[]};var s=i.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),v=f.dim,c=u.dim,h=v==="x"||v==="radius"?1:0,d=i.mapDimension(c),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(U(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var KE=Se();function zq(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||j(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ip(a)&&(a=qE({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=ip(a),u=i.axesInfo,f=s.axesInfo,v=n==="leave"||ip(a),c={},h={},d={list:[],map:{}},p={showPointer:be(Fq,h),showTooltip:be(Hq,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);A(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=Xq(u,S);if(!v&&_&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(a)),C!=null&&jE(S,C,p,!1,c)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(S,x){var b=h[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,JE(S),JE(y)))),g[y.key]=w}})}),A(g,function(y,m){jE(f[m],y,p,!0,c)}),Wq(h,f,c),Uq(d,a,r,o),Yq(f,o,t),c}}function jE(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Gq(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&G(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Gq(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),v,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);c=h.dataIndices,v=h.nestestValue}else{if(c=l.indicesOfNearest(n,f[0],r,t.type==="category"?.5:null),!c.length)return;v=l.getData().get(f[0],c[0])}if(xr(v)){var d=r-v,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=v,i.length=0),A(c,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function Fq(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function Hq(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Gf(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:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Wq(r,e,t){var n=t.axesInfo=[];A(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Uq(r,e,t,n){if(ip(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({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 Yq(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=KE(n)[a]||{},o=KE(n)[a]={};A(r,function(f,v){var c=f.axisPointerModel.option;c.status==="show"&&f.triggerEmphasis&&A(c.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}A(i,function(f,v){!o[v]&&l.push(u(f))}),A(o,function(f,v){!i[v]&&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 Xq(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function JE(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function ip(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function fv(r){Xo.registerAxisPointerClass("CartesianAxisPointer",Lq),r.registerComponentModel(Rq),r.registerComponentView(Vq),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=p8(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zq)}function Zq(r){xe(c2),xe(fv)}var $q=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,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(),v=s.dataToCoord(n),c=i.get("type");if(c&&c!=="none"){var h=xS(i),d=Kq[c](s,l,v,u,f,i.get("seriesDataIndices"),i.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=qq(n,a,i,l,p);FE(t,a,i,o,g)},e})(_S);function qq(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,v;if(i.dim==="radius"){var c=Qe();sa(c,c,s),Qr(c,c,[n.cx,n.cy]),u=un([o,-a],c);var h=e.getModel("axisLabel").get("rotate")||0,d=lr.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,v=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",v=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:v}}var Kq={line:function(r,e,t,n,a){return r.dim==="angle"?{type:"Line",shape:wS(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,n,a,i,o){var s=Math.PI/180,l=TS(r,i,o),u;if(r.dim==="angle")u=YE(e.cx,e.cy,a[0],a[1],(-t-l/2)*s,(-t+l/2)*s);else{var f=CS(t,n,l),v=f[0],c=f[1];u=YE(e.cx,e.cy,v,c,0,Math.PI*2)}return{type:"Sector",shape:u}}},gn="polar",QE=gn,jq=(function(r){N(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 n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type=gn,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(we),DS=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ot).models[0]},e.type="polarAxis",e})(we);lt(DS,_l);var Jq=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(DS),Qq=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(DS),op=(function(r){N(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e})(Zr);op.prototype.dataToRadius=Zr.prototype.dataToCoord,op.prototype.radiusToData=Zr.prototype.coordToData;var eK=Se(),sp=(function(r){N(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=jv(s==null?"":s+"",n.getFont(),"center","top"),v=Math.max(f.height,7),c=v/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=eK(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},e})(Zr);sp.prototype.dataToAngle=Zr.prototype.dataToCoord,sp.prototype.angleToData=Zr.prototype.coordToData;var ek=["radius","angle"],tK=(function(){function r(e){this.dimensions=ek,this.type=gn,this.cx=0,this.cy=0,this._radiusAxis=new op,this._angleAxis=new sp,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=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),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,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(a[0],t),n[1]=this._angleAxis.angleToData(a[1],t),n},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,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 n=e[0],a=e[1]/180*Math.PI;return t[0]=Math.cos(a)*n+this.cx,t[1]=-Math.sin(a)*n+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,v=u*u+f*f,c=this.r,h=this.r0;return c!==h&&v-o<=c*c&&v+o>=h*h},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},r.prototype.convertToPixel=function(e,t,n){var a=tk(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=tk(t);return a===this?this.pointToData(n):null},r})();function tk(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function rK(r,e,t){var n=e.get("center"),a=bt(e,t).refContainer;r.cx=q(n[0],a.width)+a.x,r.cy=q(n[1],a.height)+a.y;var i=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:H(s)||(s=[0,s]);var l=[q(s[0],o),q(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function nK(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(Eo(n,xl),Eo(a,xl),bl(n),bl(a),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function aK(r){return r.mainType==="angleAxis"}function rk(r,e){var t;if(r.type=gf(e),r.scale=gl(e,r.type,!1),r.onBand=_f(r.scale,e),r.inverse=e.get("inverse"),aK(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,a)}e.axis=r,r.model=e}var iK={dimensions:ek,create:function(r,e){var t=[];return r.eachComponent(QE,function(n,a){var i=new tK(a+"");i.update=nK;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");rk(o,l),rk(s,u),rK(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")===gn){var a=n.getReferringComponents(QE,ot).models[0];if(!a)throw new Error('Polar "'+At(n.get("polarIndex"),n.get("polarId"),0)+'" not found');var i=n.coordinateSystem=a.coordinateSystem;i&&(Ro(i.getRadiusAxis(),n,gn),Ro(i.getAngleAxis(),n,gn))}}),t}},oK=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lp(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function up(r){var e=r.getRadiusAxis();return e.inverse?0:1}function nk(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 sK=(function(r){N(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,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=[];A(a.getViewLabels(),function(f){if(!f.tick.offInterval){f=ae(f);var v=a.scale;f.coord=a.dataToCoord(ml(v,f.tick)),u.push(f)}}),nk(u),nk(s),A(oK,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&lK[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(Xo),lK={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=up(t),v=f?0:1,c,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[v]===0?c=new uo[h]({shape:{cx:t.cx,cy:t.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new zs({shape:{cx:t.cx,cy:t.cy,r:i[f],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[up(t)],u=U(n,function(f){return new ft({shape:lp(t,[l,l+s],f.coord)})});r.add(Ar(u,{style:ue(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[up(t)],f=[],v=0;v<a.length;v++)for(var c=0;c<a[v].length;c++)f.push(new ft({shape:lp(t,[u,u+l],a[v][c].coord)}));r.add(Ar(f,{style:ue(s.getModel("lineStyle").getLineStyle(),ue(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");A(o,function(v,c){var h=l,d=v.tick.value,p=i[up(t)],g=t.coordToPoint([p+u,v.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];ie(x)&&x.textStyle&&(h=new De(x.textStyle,l,l.ecModel))}var b=new Pe({silent:lr.isLabelSilent(e),style:Ye(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),Sa({el:b,componentModel:e,itemName:v.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:v.rawLabel,tickIndex:c}}),f){var w=lr.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=v.rawLabel,ve(b).eventData=w}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=0;v<n.length;v++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new ft({shape:lp(t,i,n[v].coord)}))}for(var v=0;v<f.length;v++)r.add(Ar(f[v],{style:ue({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){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 ft({shape:lp(t,i,a[u][f].coord)}));r.add(Ar(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){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=[],v=Math.PI/180,c=-n[0].coord*v,h=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=e.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Ht({shape:{cx:t.cx,cy:t.cy,r0:h,r:d,startAngle:c,endAngle:-m*v,clockwise:p},silent:!0})),c=-m*v}for(var g=0;g<f.length;g++)r.add(Ar(f[g],{style:ue({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},uK=["splitLine","splitArea","minorSplitLine"],fK=(function(r){N(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,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,o=this._axisGroup=new le;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),v=s.getMinorTicksCoords(),c=u.getExtent()[0],h=s.getExtent(),d=cK(l,t,c),p=new lr(t,a,d);p.build(),o.add(p.group),Vu(i,o,t),A(uK,function(g){t.get([g,"show"])&&!s.scale.isBlank()&&vK[g](this.group,t,l,c,h,f,v)},this)}},e.type="radiusAxis",e})(Xo),vK={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),v=Math.PI/180,c=f.getExtent(),h=Math.abs(c[1]-c[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new uo[h]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[p].coord,0),startAngle:-c[0]*v,endAngle:-c[1]*v,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)r.add(Ar(d[p],{style:ue({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var v=0;v<o[f].length;v++)u.push(new kn({shape:{cx:t.cx,cy:t.cy,r:o[f][v].coord}}));r.add(Ar(u,{style:ue({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,i){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=[],v=i[0].coord,c=1;c<i.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Ht({shape:{cx:t.cx,cy:t.cy,r0:v,r:i[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=i[c].coord}for(var c=0;c<f.length;c++)r.add(Ar(f[c],{style:ue({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function cK(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 hK=Ps();function ak(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var dK=_t(Un,pK);function pK(r){var e=Yo(Un,gn);L0(r,e,function(t){W(t instanceof sp||t instanceof op);var n=yK(t,Un),a={};Po(t,e,function(i){gK(t,i,n,a)})})}function gK(r,e,t,n){var a=e.getData(),i=ak(e),o=t[i],s=o.offset,l=o.width,u=e.coordinateSystem;W(u.type===gn);var f=u.getOtherAxis(r),v=u.cx,c=u.cy,h=e.get("barMinHeight")||0,d=e.get("barMinAngle")||0;n[i]=n[i]||[];for(var p=a.mapDimension(f.dim),g=a.mapDimension(r.dim),y=Ta(a,p),m=r.dim!=="radius"||!e.get("roundCap",!0),_=f.dataToCoord(bL(f)),S=0,x=a.count();S<x;S++){var b=a.get(p,S),w=a.get(g,S),C=b>=0?"p":"n",T=_;y&&(n[i][w]||(n[i][w]={p:_,n:_}),T=n[i][w][C]);var M=void 0,D=void 0,L=void 0,I=void 0;if(f.dim==="radius"){var P=f.dataToCoord(b)-_,E=r.dataToCoord(w);rt(P)<h&&(P=(P<0?-1:1)*h),M=T,D=T+P,L=E-s,I=L-l,y&&(n[i][w][C]=D)}else{var R=f.dataToCoord(b,m)-_,O=r.dataToCoord(w);rt(R)<d&&(R=(R<0?-1:1)*d),M=O+s,D=M+l,L=T,I=T+R,y&&(n[i][w][C]=I)}a.setItemLayout(S,{cx:v,cy:c,r0:M,r:D,startAngle:-L*ac/180,endAngle:-I*ac/180,clockwise:L>=I})}}function yK(r,e){var t=Yo(e,gn),n=Yt(r,{fromStat:{key:t},min:1}).w,a=n,i=0,o="20%",s="30%",l={};Po(r,t,function(g){var y=ak(g);l[y]||i++,l[y]=l[y]||{width:0,maxWidth:0};var m=q(g.get("barWidth"),n),_=q(g.get("barMaxWidth"),n),S=g.get("barGap"),x=g.get("barCategoryGap");m&&!l[y].width&&(m=Ge(a,m),l[y].width=m,a-=m),_&&(l[y].maxWidth=_),S!=null&&(s=S),x!=null&&(o=x)});var u={},f=q(o,n),v=q(s,1),c=(a-f)/(i+(i-1)*v);c=Te(c,0),A(l,function(g,y){var m=g.maxWidth;m&&m<c&&(m=Ge(m,a),g.width&&(m=Ge(m,g.width)),a-=m,g.width=m,i--)}),c=(a-f)/(i+(i-1)*v),c=Te(c,0);var h=0,d;A(l,function(g,y){g.width||(g.width=c),d=g,h+=g.width*(1+v)}),d&&(h-=d.width*v);var p=-h/2;return A(l,function(g,y){u[y]=u[y]||{offset:p,width:g.width},p+=g.width*(1+v)}),u}function mK(r,e){hK(r,function(){var t=Yo(e,gn);xL(r,t,e,gn),Uh(t,ud(t))})}var _K={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},SK={splitNumber:5},xK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(Xe);function bK(r){xe(fv),Xo.registerAxisPointerClass("PolarAxisPointer",$q),r.registerCoordinateSystem("polar",iK),r.registerComponentModel(jq),r.registerComponentView(xK),Il(r,"angle",Jq,_K),Il(r,"radius",Qq,SK),r.registerComponentView(sK),r.registerComponentView(fK),r.registerLayout(dK),mK(r,Un)}function IS(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.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[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var v={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=v[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),At(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var c=r.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-c:c,a.z2=1,a}var wK=["splitArea","splitLine","breakArea"],TK=(function(r){N(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,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new le;var l=IS(t),u=new lr(t,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),A(wK,function(f){t.get([f,"show"])&&CK[f](this,this.group,this._axisGroup,t,a)},this),Vu(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){l2(this)},e.type="singleAxis",e})(Xo),CK={splitLine:function(r,e,t,n,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=n.coordinateSystem.getRect(),v=i.isHorizontal(),c=[],h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);v?(p[0]=m,p[1]=f.y,g[0]=m,g[1]=f.y+f.height):(p[0]=f.x,p[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new ft({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});Ys(_.shape,u);var S=h++%l.length;c[S]=c[S]||[],c[S].push(_)}for(var x=s.getLineStyle(["color"]),y=0;y<c.length;++y)e.add(Ar(c[y],{style:ue({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(r,e,t,n,a){s2(r,t,n,n)},breakArea:function(r,e,t,n,a){var i=Of(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,n,n.coordinateSystem.getRect(),a)}},AK=(function(r){N(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"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,n){return this.coordinateSystem.pointToData(t)[0]},e})(Zr),ik=["single"],MK=(function(){function r(e,t,n){this.type=yd,this.dimension="single",this.dimensions=ik,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=gf(e),o=new AK(a,gl(e,i,!0),[0,0],i,e.get("position"));o.onBand=_f(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 n=this._axis;Eo(n,xl),bl(n)},r.prototype.resize=function(e,t){var n=bt(e,t).refContainer;this._rect=Je(e.getBoxLayoutParams(),n),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?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(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(e[a.orient==="horizontal"?0:1])),n},r.prototype.dataToPoint=function(e,t,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+e)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},r.prototype.convertToPixel=function(e,t,n){var a=ok(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=ok(t);return a===this?this.pointToData(n):null},r})();function ok(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function DK(r,e){var t=[];return r.eachComponent(k_,function(n,a){var i=new MK(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===A8){var a=n.getReferringComponents(k_,ot).models[0],i=n.coordinateSystem=a&&a.coordinateSystem;i&&Ro(i.getAxis(),n,yd)}}),t}var IK={create:DK,dimensions:ik},sk=["x","y"],LK=["width","height"],PK=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=fp(s),f=vp(l,u),v=vp(l,1-u),c=l.dataToPoint(n)[0],h=i.get("type");if(h&&h!=="none"){var d=xS(i),p=RK[h](s,c,f,v,i.get("seriesDataIndices"),i.ecModel);p.style=d,t.graphicKey=p.type,t.pointer=p}var g=IS(a);WE(n,t,g,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=IS(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=bS(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,l=fp(o),u=vp(s,l),f=[t.x,t.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var v=vp(s,1-l),c=(v[1]+v[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e})(_S),RK={line:function(r,e,t,n){var a=wS([e,n[0]],[e,n[1]],fp(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,n,a,i){var o=TS(r,a,i),s=n[1]-n[0],l=CS(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:UE([u,n[0]],[f-u,s],fp(r))}}};function fp(r){return r.isHorizontal()?0:1}function vp(r,e){var t=r.getRect();return[t[sk[e]],t[sk[e]]+t[LK[e]]]}var EK=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(Xe);function kK(r){xe(fv),Xo.registerAxisPointerClass("SingleAxisPointer",PK),r.registerComponentView(EK),r.registerComponentView(TK),r.registerComponentModel(md),Il(r,"single",md,md.defaultOption),r.registerCoordinateSystem("single",IK)}var OK=(function(r){N(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,n,a){var i=yo(t);r.prototype.init.apply(this,arguments),lk(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),lk(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:B.color.axisLine,width:1,type:"solid"}},itemStyle:{color:B.color.neutral00,borderWidth:1,borderColor:B.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:B.size.s,color:B.color.secondary},monthLabel:{show:!0,position:"start",margin:B.size.s,align:"center",formatter:null,color:B.color.secondary},yearLabel:{show:!0,position:null,margin:B.size.xl,formatter:null,color:B.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(we);function lk(r,e){var t=r.cellSize,n;H(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=U([0,1],function(i){return OG(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Nn(r,e,{type:"box",ignoreSize:a})}var NK=(function(r){N(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,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,v=new Ce({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(v)}},e.prototype._renderLines=function(t,n,a,i){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 v=n.start,c=0;v.time<=n.end.time;c++){d(v.formatedDate),c===0&&(v=s.getDateInfo(n.start.y+"-"+n.start.m));var h=v.date;h.setMonth(h.getMonth()+1),v=s.getDateInfo(h)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new Ot({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.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,n){return $(t)&&t?yC(t,n):ne(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,n,a,i){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,v=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],v],right:[u[c][0],v]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Pe({z2:30,style:Ye(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],a,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,a,i){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"),v=[this._tlpoints,this._blpoints];(!s||$(s))&&(s&&(n=om(s)||n),s=n.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<v[c].length-1;g++){var y=v[c][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[h]=(_[h]+v[0][g+1][h])/2}var S=o.get("formatter"),x=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},w=this._formatterLabel(S,b),C=new Pe({z2:30,style:G(Ye(o,{text:w}),this._monthTextPositionControl(y,d,a,u,l)),silent:p});i.add(C)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",l="middle",u=t[0],f=t[1],v=a==="start";return n==="horizontal"?(u=u+i+(v?1:-1)*o[0]/2,s=v?"right":"left"):(f=f+i+(v?1:-1)*o[1]/2,l=v?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),v=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||$(f)){f&&(n=om(f)||n);var h=n.get(["time","dayOfWeekShort"]);f=h||U(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];v=q(v,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,v=-v);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+c)%7);var x=new Pe({z2:30,style:G(Ye(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,v,p)),silent:g});o.add(x)}}},e.type="calendar",e})(Xe),LS=864e5,BK=(function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,n)}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=Tn(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,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 n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];A([0,1],function(v){f(i,v)&&(o[a[v]]=i[v]*s[v])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Je(o,l);A([0,1],function(v){f(i,v)||(i[v]=u[a[v]]/s[v])});function f(v,c){return v[c]!=null&&v[c]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,n){n=n||[],H(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),i=this._rangeInfo,o=a.formatedDate;if(t&&!(a.time>=i.start.time&&a.time<i.end.time+LS))return n[0]=n[1]=NaN,n;var s=a.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+l*this._sh+this._sh/2):(n[0]=this._rect.x+l*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.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,se.copy(i,a),so(i,this._lineWidth/2,!0,!0),n},r.prototype.dataToCalendarLayout=function(e,t){var n=this.dataToPoint(e,t);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=PS(t);return a===this?a.dataToPoint(n):null},r.prototype.convertToLayout=function(e,t,n){var a=PS(t);return a===this?a.dataToLayout(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=PS(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(H(e)&&e.length===1&&(e=e[0]),H(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return Lr("Invalid date range."),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])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/LS)-Math.floor(t[0].time/LS)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),v=n?-f+1:f-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:v,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){Yu({targetModel:i,coordSysType:"calendar",coordSysProvider:wC})}),n},r.dimensions=["time","value"],r})();function PS(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}function VK(r){r.registerComponentModel(OK),r.registerComponentView(NK),r.registerCoordinateSystem("calendar",BK)}var Ea={level:1,leaf:2,nonLeaf:3},ka={none:0,all:1,body:2,corner:3};function RS(r,e,t){var n=e[pe[t]].getCell(r);return!n&&Re(r)&&r<0&&(n=e[pe[1-t]].getUnitLayoutInfo(t,Math.round(r))),n}function uk(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 fk(r,e,t,n,a){vk(r[0],e,a,t,n,0),vk(r[1],e,a,t,n,1)}function vk(r,e,t,n,a,i){r[0]=1/0,r[1]=-1/0;var o=n[i],s=H(o)?o:[o],l=s.length,u=!!t;if(l>=1?(ck(r,e,s,u,a,i,0),l>1&&ck(r,e,s,u,a,i,l-1)):(e&&e.push('Should be like [["x1", "x2"], ["y1", "y2"]], or ["x1", "y1"], rather than empty.'),r[0]=r[1]=NaN),u){var f=-a[pe[1-i]].getLocatorCount(i),v=a[pe[i]].getLocatorCount(i)-1;t===ka.body?f=Te(0,f):t===ka.corner&&(v=Ge(-1,v)),v<f&&(f=v=NaN),Ct(r[0])&&(r[0]=f),Ct(r[1])&&(r[1]=v),r[0]=Te(Ge(r[0],v),f),r[1]=Te(Ge(r[1],v),f)}}function ck(r,e,t,n,a,i,o){var s=RS(t[o],a,i);if(!s){!n&&e&&e.push("Can not find cell by coord["+i+"]["+o+"]."),r[0]=r[1]=NaN;return}var l=s.id[pe[i]],u=l,f=HK(s);f&&(u+=f.span[pe[i]]-1),r[0]=Ge(r[0],l,u),r[1]=Te(r[1],l,u)}function cp(r,e){return Ct(r[e][0])||Ct(r[e][1])}function hk(r,e,t,n){e=e||zK;for(var a=0;a<n;a++)e[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=t[a];!e[a]&&o.cellMergeOwner&&GK(r,o.locatorRange)&&(e[a]=!0,i=!0)}if(!i)break}}var zK=[];function GK(r,e){return!dk(r[0],e[0])||!dk(r[1],e[1])?!1:(r[0][0]=Ge(r[0][0],e[0][0]),r[0][1]=Te(r[0][1],e[0][1]),r[1][0]=Ge(r[1][0],e[1][0]),r[1][1]=Te(r[1][1],e[1][1]),!0)}function dk(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function pk(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 FK(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 gk(r,e,t,n){var a=RS(e[n][0],t,n),i=RS(e[n][1],t,n);r[pe[n]]=r[st[n]]=NaN,a&&i&&(r[pe[n]]=a.xy,r[st[n]]=i.xy+i.wh-a.xy)}function vv(r,e,t,n){return r[pe[e]]=t,r[pe[1-e]]=n,r}function HK(r){return r&&(r.type===Ea.leaf||r.type===Ea.nonLeaf)?r:null}function hp(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var yk=(function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=WK(e);var n=t.get("data",!0),a=t.get("length",!0);if(n!=null&&!H(n)&&(Le("Illegal echarts option - matrix."+this.dim+".data must be an array if specified."),n=[]),n)this._initByDimModelData(n);else if(a!=null){n=Array(a);for(var i=0;i<a;i++)n[i]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,n=t._cells,a=t._levels,i=[],o=0;t._leavesCount=s(e,0,0),l();return;function s(u,f,v){var c=0;return u&&A(u,function(h,d){var p=!1,g;$(h)?g={value:h}:ie(h)?(g=h,h.value!=null&&!$(h.value)&&(p=!0,g={value:null})):(g={value:null},h!=null&&(p=!0)),p&&Le("Illegal echarts option - matrix."+t.dim+".data["+d+"] must be `string | {value: string}`.");var y={type:Ea.nonLeaf,ordinal:NaN,level:v,firstLeafLocator:f,id:new fe,span:vv(new fe,t.dimIdx,1,1),option:g,xy:NaN,wh:NaN,dim:t,rect:hp()};o++,(i[f]||(i[f]=[])).push(y),a[v]||(a[v]={type:Ea.level,xy:NaN,wh:NaN,option:null,id:new fe,dim:t});var m=s(g.children,f,v+1),_=Math.max(1,m);y.span[pe[t.dimIdx]]=_,c+=_,f+=_}),c}function l(){for(var u=[];n.length<o;)for(var f=0;f<i.length;f++){var v=i[f].pop();if(v){v.ordinal=u.length;var c=v.option.value;u.push(c),n.push(v),t._uniqueValueGen.calcDupBase(c)}}t._uniqueValueGen.ensureValueUnique(u,n);var h=t._ordinalMeta=new ff({categories:u,needCollect:!1,deduplication:!1});t._scale=new pf({ordinalMeta:h});for(var d=0;d<t._leavesCount;d++){var p=t._cells[d];p.type=Ea.leaf,p.span[pe[1-t.dimIdx]]=t._levels.length-p.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:Ea.level,xy:NaN,wh:NaN,option:null,id:new fe,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new ff({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=e._cells[a]={type:Ea.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new fe,span:vv(new fe,e.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:e,rect:hp()};e._leavesCount++,e._setCellId(i)}});e._scale=new pf({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;vv(e.id,n,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;A(this._cells,function(n){vv(n.id,t,n.firstLeafLocator,n.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get("levels",!0);n=H(n)?n:[],A(this._levels,function(a,i){vv(a.id,t,0,i-e),a.option=n[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,n,a){if(e=e||new Xa,t===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,e.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,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,n){var a=this.getUnitLayoutInfo(t,n);e[pe[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 Ct(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 WK(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(t))&&(n=Te(n,+l[1]+1))}function i(){return""+e+n++}function o(s,l){for(var u=K(),f=0;f<s.length;f++){var v=s[f];(v==null||u.get(v)!=null)&&(s[f]=v=i(),l[f].option=ue({value:v},l[f].option)),u.set(v,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var mk=(function(){function r(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=K(),n()),t;function n(){var i=[],o=e._model.getShallow("data");o&&!H(o)&&(Le("matrix."+o+".data must be an array if specified."),o=null),A(o,function(d,p){if(!ie(d)||!H(d.coord)){Le("Illegal matrix."+e._kind+".data["+p+"], must be a {coord: [...], ...}");return}var g=uk([]),y=null;if(y=[],fk(g,y,d.coord,e._dims,d.coordClamp?ka[e._kind]:ka.none),cp(g,0)||cp(g,1)){Le("Can not determine cells by option matrix."+e._kind+".data["+p+"]: "+(""+y.join(" ")));return}var m=d&&d.mergeCells,_={id:new fe,span:new fe,locatorRange:g,option:d,cellMergeOwner:m};pk(_,g),i.push(_)});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;hk(f,s,i,l);for(var v=0;v<l;v++)s[v]&&(i[v].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var c=G({},u.option);c.coord=null;var h={id:new fe,span:new fe,locatorRange:f,option:c,cellMergeOwner:!0};pk(h,f),i.push(h)}}}A(i,function(d){var p=a(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=hp(),e._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var y=0;y<d.span.x;y++){var m=a(d.id.x+y,d.id.y+g);m.option=d.option,d.cellMergeOwner&&(m.inSpanOf=p)}})}function a(i,o){var s=_k(i,o),l=t.get(s);return l||(l=t.set(s,{id:new fe(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(e){return this._ensureCellMap().get(_k(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!cp(e,0)&&!cp(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){ES[0]=e[0][0],ES[1]=e[1][0];var t=this.getCell(ES),n=t&&t.inSpanOf;if(n){FK(e,n.locatorRange);return}}var a=this._cellMergeOwnerList;hk(e,null,a,a.length)},r})(),ES=[];function _k(r,e){return r+"|"+e}var kS={show:!0,color:B.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function OS(r){return{color:"none",borderWidth:1,borderColor:r?"none":B.color.borderTint}}var Sk={show:!0,label:kS,itemStyle:OS(!1),silent:void 0,dividerLineStyle:{width:1,color:B.color.border}},UK={label:kS,itemStyle:OS(!1),silent:void 0},YK={label:kS,itemStyle:OS(!0),silent:void 0},XK={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:Sk,y:Sk,body:UK,corner:YK,backgroundStyle:{color:"none",borderColor:B.color.axisLine,borderWidth:1},triggerEvent:!1},ZK=(function(r){N(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 xk(this.get("x",!0)||{}),y:new xk(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var n=t.x.dim=new yk("x",t.x),a=t.y.dim=new yk("y",t.y),i={x:n,y:a};this._body=new mk("body",new De(this.getShallow("body")),i),this._corner=new mk("corner",new De(this.getShallow("corner")),i)},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=XK,e})(we),xk=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e})(De),dp=Math.round,$K=0,qK=99,KK={normal:25,special:100},jK={normal:50,special:125},JK=(function(r){N(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,n){this.group.removeAll();var a=this.group,i=t.coordinateSystem,o=i.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,f=l.dim;QK(a,t,n),ej(a,t,u,f,n);var v=t.getShallow("borderZ2",!0),c=Q(v,qK),h=c-1,d=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=NS(o.clone(),d,$K),y=NS(o.clone(),p,c);g.silent=!0,y.silent=!0,a.add(g),a.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&a.add(wk({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&a.add(wk({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},e.type="matrix",e})(Xe);function QK(r,e,t){n(0),n(1);function n(a){var i=e.getDimensionModel(pe[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=e.getShallow("tooltip",!0),f=[],v=o.resetCellIterator();v.next();){var c=v.item,h={};se.copy(h,c.rect),ra(f,c.id.x,c.id.y),bk(f,e,r,t,c.option,s,l,i,h,c.option.value,jK,u,a===0?"x":"y")}}}function ej(r,e,t,n,a){i("body",e.getBody(),t,n),t.shouldShow()&&n.shouldShow()&&i("corner",e.getCorner(),n,t);function i(o,s,l,u){var f=new De(e.getShallow(o,!0)),v=f.getModel("itemStyle"),c=f.getModel("label"),h=new Xa,d=new Xa,p=[],g=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=d.item;ra(p,y.id.x,m.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?se.copy(S,_.spanRect):(y.dim.getLayout(S,0,p[0]),m.dim.getLayout(S,1,p[1]));var x=_?_.option:null;bk(p,e,r,a,x,v,c,f,S,x?x.value:null,KK,g,o)}}}}function bk(r,e,t,n,a,i,o,s,l,u,f,v,c){var h;pp.option=a?a.itemStyle:null,pp.parentModel=i,Hl.option=a,Hl.parentModel=s;var d=Q(Hl.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),p=v&&v.show,g=NS(l,pp.getItemStyle(),d);t.add(g);var y=Hl.get("cursor");y!=null&&g.attr("cursor",y);var m;if(u!=null){var _=u+"";ls.option=a?a.label:null,ls.parentModel=o,ls.ecModel=n;var S=ls.getShallow("formatter");if(S){var x={componentType:"matrix",componentIndex:e.componentIndex,name:_,value:u,coord:r.slice(),$vars:["name","value","coord"]};if($(S))_=yC(S,x);else if(ne(S)){var b=S(x);b!=null&&(_=b+"")}}if(It(g,{normal:ls},{defaultText:_,autoOverflowArea:!0,layoutRect:ae(g.shape)}),m=g.getTextContent(),m){m.z2=d+1;var w=m.style;if(w&&w.overflow&&w.overflow!=="none"&&w.lineOverflow){var C={};se.copy(C,l),so(C,(((h=g.style)===null||h===void 0?void 0:h.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(gp),_r(gp,gp),se.applyTransform(C,C,gp),m.setClipPath(new Ce({shape:C}))}}Sa({el:g,componentModel:e,itemName:_,itemTooltipOption:v,formatterParamsExtra:{xyLocator:r.slice()}})}var T=e.get("triggerEvent",!0);if(m){var M=ls.get("silent");M==null&&(M=!(T||p)),m.silent=M,m.ignoreHostSilent=!0}var D=Hl.get("silent");if(D==null&&(D=!g.style||g.style.fill==="none"||!g.style.fill),g.silent=D,T&&g){var L={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:c,name:m&&m.style?m.style.text:void 0,value:u,coord:r.slice()};ve(g).eventData=L}ty(Hl),ty(pp),ty(ls)}var Hl=new De,pp=new De,ls=new De,gp=[];function NS(r,e,t){var n=e.lineWidth;if(n){var a=r.x+r.width,i=r.y+r.height;r.x=wr(r.x,n,!0),r.y=wr(r.y,n,!0),r.width=wr(a,n,!0)-r.x,r.height=wr(i,n,!0)-r.y}return new Ce({shape:r,style:e,z2:t})}function wk(r,e,t){var n=e.lineWidth;return n&&(dp(r.x1*2)===dp(r.x2*2)&&(r.x1=r.x2=wr(r.x1,n,!0)),dp(r.y1*2)===dp(r.y2*2)&&(r.y1=r.y2=wr(r.y1,n,!0))),new ft({shape:r,style:e,silent:!0,z2:t})}var tj=(function(){function r(e,t,n){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,n)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var n=[];return e.eachComponent("matrix",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachComponent(function(a,i){Yu({targetModel:i,coordSysType:"matrix",coordSysProvider:wC})}),n},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var n=this._dims,a=this._dimModels,i=this._rect=Je(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});Tk(a,n,i,0),Tk(a,n,i,1),Ck(0,n),Ck(1,n),Ak(this._model.getBody(),n),Ak(this._model.getCorner(),n)},r.prototype.dataToPoint=function(e,t,n){return n=n||[],this.dataToLayout(e,t,cv),n[0]=cv.rect.x+cv.rect.width/2,n[1]=cv.rect.y+cv.rect.height/2,n},r.prototype.dataToLayout=function(e,t,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=uk(n.matrixXYLocatorRange);return H(e)?(fk(o,null,e,a,Q(t&&t.clamp,ka.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==ka.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==ka.body)&&this._model.getCorner().expandRangeByCellMerge(o)),gk(i,o,a,0),gk(i,o,a,1),n):(Le("Input data must be an array in `convertToLayout`, `convertToPixel`"),n)},r.prototype.pointToData=function(e,t,n){var a=this._dims;return Mk(qn,0,a,e,t&&t.clamp),Mk(qn,1,a,e,t&&t.clamp),n=n||[],n[0]=n[1]=NaN,qn.y===Xt.inCorner&&qn.x===Xt.inBody?Dk(qn,n,0,a):qn.x===Xt.inCorner&&qn.y===Xt.inBody?Dk(qn,n,1,a):(Ik(qn,n,0,a),Ik(qn,n,1,a)),n},r.prototype.convertToPixel=function(e,t,n,a){var i=zS(t);return i===this?i.dataToPoint(n,a):void 0},r.prototype.convertToLayout=function(e,t,n,a){var i=zS(t);return i===this?i.dataToLayout(n,a):void 0},r.prototype.convertFromPixel=function(e,t,n,a){var i=zS(t);return i===this?i.pointToData(n,a):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r})(),cv={rect:hp()},yp=new Xa,BS=new Xa;function Tk(r,e,t,n){for(var a=1-n,i=e[pe[n]],o=e[pe[a]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var f=t[st[n]],v=i.getLocatorCount(n)+o.getLocatorCount(n),c=new De,h=o.resetLevelIterator();h.next();)c.option=h.item.option,c.parentModel=r[pe[a]],g(h.item,s?c.get("levelSize"):0);for(var d=new De,p=i.resetCellIterator();p.next();)p.item.type===Ea.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(w,C){var T=rj(C,n,t);Ct(T)||(w.wh=VS(T,f),f=VS(f-w.wh),v--)}var y=v?f/v:0,m=!v&&f>=1,_=t[pe[n]],S=i.getLocatorCount(n)-1,x=new Xa;for(o.resetLayoutIterator(x,n);x.next();)b(x.item);for(i.resetLayoutIterator(x,n);x.next();)b(x.item);function b(w){Ct(w.wh)&&(w.wh=y),w.xy=_,w.id[pe[n]]===S&&!m&&(w.wh=t[pe[n]]+t[st[n]]-w.xy),_+=w.wh}}function Ck(r,e){for(var t=e[pe[r]].resetCellIterator();t.next();){var n=t.item;mp(n.rect,r,n.id,n.span,e),mp(n.rect,1-r,n.id,n.span,e),n.type===Ea.nonLeaf&&(n.xy=n.rect[pe[r]],n.wh=n.rect[st[r]])}}function Ak(r,e){r.travelExistingCells(function(t){var n=t.span;if(n){var a=t.spanRect,i=t.id;mp(a,0,i,n,e),mp(a,1,i,n,e)}})}function mp(r,e,t,n,a){r[st[e]]=0;var i=t[pe[e]],o=i<0?a[pe[1-e]]:a[pe[e]],s=o.getUnitLayoutInfo(e,t[pe[e]]);if(r[pe[e]]=s.xy,r[st[e]]=s.wh,n[pe[e]]>1){var l=o.getUnitLayoutInfo(e,t[pe[e]]+n[pe[e]]-1);r[st[e]]=l.xy+l.wh-s.xy}}function rj(r,e,t){var n=ic(r,t[st[e]]);return VS(n,t[st[e]])}function VS(r,e){return Math.max(Math.min(r,Q(e,1/0)),0)}function zS(r){var e=r.matrixModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}var Xt={inBody:1,inCorner:2,outside:3},qn={x:null,y:null,point:[]};function Mk(r,e,t,n,a){var i=t[pe[e]],o=t[pe[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),l=i.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),f=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,v=r.point[e]=n[e];if(!l&&!f){r[pe[e]]=Xt.outside;return}if(a===ka.body){l?(r[pe[e]]=Xt.inBody,v=Ge(s.xy+s.wh,Te(l.xy,v)),r.point[e]=v):r[pe[e]]=Xt.outside;return}else if(a===ka.corner){f?(r[pe[e]]=Xt.inCorner,v=Ge(f.xy+f.wh,Te(u.xy,v)),r.point[e]=v):r[pe[e]]=Xt.outside;return}var c=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:c,d=s?s.xy+s.wh:c;if(v<h){if(!a){r[pe[e]]=Xt.outside;return}v=h}else if(v>d){if(!a){r[pe[e]]=Xt.outside;return}v=d}r.point[e]=v,r[pe[e]]=c<=v&&v<=d?Xt.inBody:h<=v&&v<=c?Xt.inCorner:Xt.outside}function Dk(r,e,t,n){var a=1-t;if(r[pe[t]]!==Xt.outside)for(n[pe[t]].resetCellIterator(BS);BS.next();){var i=BS.item;if(Lk(r.point[t],i.rect,t)&&Lk(r.point[a],i.rect,a)){e[t]=i.ordinal,e[a]=i.id[pe[a]];return}}}function Ik(r,e,t,n){if(r[pe[t]]!==Xt.outside){var a=r[pe[t]]===Xt.inCorner?n[pe[1-t]]:n[pe[t]];for(a.resetLayoutIterator(yp,t);yp.next();)if(nj(r.point[t],yp.item)){e[t]=yp.item.id[pe[t]];return}}}function nj(r,e){return e.xy<=r&&r<=e.xy+e.wh}function Lk(r,e,t){return e[pe[t]]<=r&&r<=e[pe[t]]+e[st[t]]}function aj(r){r.registerComponentModel(ZK),r.registerComponentView(JK),r.registerCoordinateSystem("matrix",tj)}function ij(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function Pk(r,e){var t;return A(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function oj(r,e,t){var n=G({},t),a=r[e],i=t.$action||"merge";if(i==="merge")if(a){var o=t.type;W(!o||a.type===o,'Please set $action: "replace" to change `type`'),_e(a,n,!0),Nn(a,n,{ignoreSize:!0}),DC(t,a),_p(t,a),_p(t,a,"shape"),_p(t,a,"style"),_p(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=n;else i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var Rk=["transition","enterFrom","leaveTo"],sj=Rk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function _p(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?Rk:sj,a=0;a<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function lj(r,e){if(r&&(r.hv=e.hv=[Pk(e,["left","right"]),Pk(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var uj=(function(r){N(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,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=cw(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(f,v){var c=f.newOption;W(ie(c)||f.existing,"Empty graphic option definition"),c&&(u.push(c),ij(f,c),oj(o,v,c),lj(o[v],c))},this),a.elements=Ve(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,n,a){A(t,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(we),Ek={path:null,compoundPath:null,group:le,image:Dt,text:Pe},Jr=Se(),fj=(function(r){N(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=K()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");A(n,function(l){var u=mt(l.id,null),f=u!=null?a.get(u):null,v=mt(l.parentId,null),c=v!=null?a.get(v):i,h=l.type,d=l.style;h==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&JI(d,h,!!g,!!p)){var y=QI(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=vj(l);f&&W(c===f.parent,"Changing parent is not supported.");var _=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var b=!f,w=f;b?w=kk(u,c,l.type,a):(w&&(Jr(w).isNew=!1),ME(w)),w&&(ep(w,m,t,{isInit:b}),Ok(w,l,o,s))}else if(x){Sp(f,l,a,t);var C=kk(u,c,l.type,a);C&&(ep(C,m,t,{isInit:!0}),Ok(C,l,o,s))}else _==="remove"&&(wE(f,l),Sp(f,l,a,t));var T=a.get(u);if(T&&p)if(S){var M=T.getTextContent();M?M.attr(p):T.setTextContent(new Pe(p))}else x&&T.setTextContent(new Pe(p));if(T){var D=l.clipPath;if(D){var L=D.type,I=void 0,b=!1;if(S){var P=T.getClipPath();b=!P||Jr(P).type!==L,I=b?GS(L):P}else x&&(b=!0,I=GS(L));T.setClipPath(I),ep(I,D,t,{isInit:b}),rp(I,D.keyframeAnimation,t)}var E=Jr(T);T.setTextConfig(g),E.option=l,cj(T,t,l),Sa({el:T,componentModel:t,itemName:T.name,itemTooltipOption:l.tooltip}),rp(T,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var v=a[f],c=mt(v.id,null),h=c!=null?o.get(c):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Jr(h),y=Jr(d);g.width=q(g.option.width,p?s:y.width)||0,g.height=q(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var v=a[f],c=mt(v.id,null),h=c!=null?o.get(c):null;if(h){var d=h.parent,y=Jr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Qc(h,v,m,null,{hv:v.hv,boundingMode:v.bounding},_);if(!Jr(h).isNew&&S){for(var x=v.transition,b={},w=0;w<u.length;w++){var C=u[w],T=_[C];x&&(os(x)||ge(x,C)>=0)?b[C]=T:h[C]=T}Oe(h,b,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){Sp(a,Jr(a).option,n,t._lastGraphicModel)}),this._elMap=K()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Xe);function GS(r){W(r,"graphic type MUST be set");var e=J(Ek,r)?Ek[r]:Bu(r);W(e,"graphic type "+r+" can not be found");var t=new e({});return Jr(t).type=r,t}function kk(r,e,t,n){var a=GS(t);return e.add(a),n.set(r,a),Jr(a).id=r,Jr(a).isNew=!0,a}function Sp(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){Sp(i,e,t,n)}),tp(r,e,n),t.removeKey(Jr(r).id))}function Ok(r,e,t,n){r.isGroup||A([["cursor",Vr.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];J(e,i)?r[i]=Q(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),A(Ae(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=ne(i)?i:null}}),J(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function vj(r){return r=G({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(TC),function(e){delete r[e]}),r}function cj(r,e,t){var n=ve(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ve(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function hj(r){r.registerComponentModel(uj),r.registerComponentView(fj),r.registerPreprocessor(function(e){var t=e.graphic;H(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Nk=["x","y","radius","angle","single"],dj=Se(),pj=["cartesian2d","polar","singleAxis"];function gj(r){var e=r.get("coordinateSystem");return ge(pj,e)>=0}function Si(r){return W(r),r+"Axis"}function yj(r,e){var t=K(),n=[],a=K();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var v=!1;return f.eachTargetAxis(function(c,h){var d=t.get(c);d&&d[h]&&(v=!0)}),v}function u(f){f.eachTargetAxis(function(v,c){(t.get(v)||t.set(v,[]))[c]=!0})}return n}function Bk(r){var e=r.ecModel,t={infoList:[],infoMap:K()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(Si(n),a);if(i){var o=i.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(i)}}}),t}function Vk(r){var e=dj(nM(r));return e.axisProxyMap||(e.axisProxyMap=K())}function xp(r){if(r)return W(r.ecModel),Vk(r.ecModel).get(r.uid)}function mj(r,e){W(r.ecModel),Vk(r.ecModel).set(r.uid,e)}function zk(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?xp(t.model):null}var FS=(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})(),hv=(function(r){N(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,n,a){var i=Gk(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=Gk(t);_e(this.option,t,!0),_e(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=K(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return A(Nk,function(a){var i=this.getReferringComponents(Si(a),az);if(i.specified){n=!0;var o=new FS;A(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var v=u[0];if(v){var c=new FS;if(c.add(v.componentIndex),t.set(f,c),i=!1,f==="x"||f==="y"){var h=v.getReferringComponents("grid",ot).models[0];h&&A(u,function(d){v.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",ot).models[0]&&c.add(d.componentIndex)})}}}i&&A(Nk,function(u){if(i){var f=a.findComponents({mainType:Si(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var v=new FS;v.add(f[0].componentIndex),t.set(u,v),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(Si(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){A(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){return xp(this.getAxisModel(t,n))},e.prototype.getAxisModel=function(t,n){W(t&&n!=null);var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(Si(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;A(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getWindow().value}else return this.getAxisProxy(t,n).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return xp(t);for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],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;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return W(this._orient),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})(we);function Gk(r){var e={};return A(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var _j=(function(r){N(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})(hv),HS=(function(r){N(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,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e})(Xe),Sj=(function(r){N(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})(HS),xj=(function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}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(gj(t)){var n=Si(this._dimName),a=t.getReferringComponents(n,ot).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,n=this.getAxisModel().axis,a=n.scale,i=this._dataZoomModel,o=i.getRangePropMode(),s=[0,100],l=[],u=[],f,v=[!1,!1];A(["start","end"],function(_,S){var x=e[_],b=e[_+"Value"];o[S]==="percent"?(x==null&&(x=s[S]),b=Ne(x,s,t),v[S]=!0):(f=!0,b==null?b=t[S]:(b=a.parse(b),a.sanitize&&(b=a.sanitize(b,t))),x=Ne(b,t,s)),u[S]=b==null||isNaN(b)?t[S]:b,l[S]=x==null||isNaN(x)?s[S]:x}),Et(u),Et(l);var c=this._minMaxSpan;f?h(u,l,t,s,!1):h(l,u,s,t,!0);function h(_,S,x,b,w){var C=w?"Span":"ValueSpan";di(0,_,x,"all",c["min"+C],c["max"+C]);for(var T=0;T<2;T++)S[T]=Ne(_[T],x,b,!0),w&&(S[T]=S[T],v[T]=!0);vc(S)}var d=Qt(a)||df(a),p=n.getExtent(),g=rt(p[1]-p[0]),y=d?0:Xg(u,g,.5);A([[0,Oi],[1,Br]],function(_){var S=_[0],x=_[1];!v[S]||!isFinite(y)||(u[S]=Ee(u[S],y),u[S]=Ge(t[1],Te(t[0],u[S])),l[S]===s[S]&&(u[S]=t[S],d&&(u[S]=x(u[S]))))}),vc(u);var m=[Ne(u[0],t,s,!0),Ne(u[1],t,s,!0)];return vc(m),{value:u,percent:l,percentInverted:m,valuePrecision:y}},r.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;Eo(n,TD);var a=n.scale.rawExtentInfo;this._extent=a.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=ue({start:t[0],end:t[1]},i));var o=this._window=this.calculateDataWindow(i),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 n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._window.value;if(i==="none")return;A(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var v=u.getStore(),c=U(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,p,g,y=0;y<f.length;y++){var m=v.get(c[y],h),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else A(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});A(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;A(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ne(n[0]+o,n,[0,100],!0):i!=null&&(o=Ne(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r})(),bj={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Si(o),s);a(o,s,l,i)})})}var t=[];e(function(a,i,o,s){if(!xp(o)){var l=new xj(a,i,s,r);t.push(l),mj(o,l)}});var n=K();return A(t,function(a){A(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var n=[];t.eachTargetAxis(function(a,i){var o=t.getAxisProxy(a,i),s=zk(t,o);s?n.push([o,s]):o.reset(t,null)}),A(n,function(a){a[0].reset(t,a[1].getWindow().percentInverted)}),t.eachTargetAxis(function(a,i){t.getAxisProxy(a,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getWindow(),i=a.percent,o=a.value;t.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function wj(r){r.registerAction("dataZoom",function(e,t){var n=yj(t,e);A(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Tj=Ps();function WS(r){Tj(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,bj),wj(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function Cj(r){r.registerComponentModel(_j),r.registerComponentView(Sj),WS(r)}var Kn=(function(){function r(){}return r})(),Fk={};function Wl(r,e){Fk[r]=e}function Hk(r){return Fk[r]}var Aj=(function(r){N(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,n,a){var i=a.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=G({},o),i.feature={}),r.prototype.init.call(this,t,n,a),o&&(i.feature=o)},e.prototype.optionUpdated=function(){A(this.option.feature,function(t,n){var a=this._themeFeatureOption,i=Hk(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),a&&a[n]&&(_e(t,a[n]),a[n]=null),_e(t,i.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:B.color.border,borderRadius:0,borderWidth:0,padding:B.size.m,itemSize:15,itemGap:B.size.s,showTitle:!0,iconStyle:{borderColor:B.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:B.color.accent70}},tooltip:{show:!1,position:"bottom"}},e})(we);function Wk(r,e){var t=js(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var a=new Ce({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:n,silent:!0,z2:-1});return a}var Mj=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){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=K()),v=[];A(u,function(m,_){v.push(_)}),new wa(this._featureNames||[],v).add(c).update(c).remove(be(c,null)).execute(),this._featureNames=Ve(v,function(m){return f.hasKey(m)});function c(m,_){var S=m!=null&&_==null,x=m!=null&&_!=null,b=m==null,w=S||x?v[m]:v[_],C=u[w],T=S||x?new De(C,t,n):null,M=T&&T.get("show"),D;if(S){if(!M)return;if(Dj(w))D={onclick:T.option.onclick,featureName:w};else{var L=Hk(w);if(!L)return;D=new L}f.set(w,D)}else D=f.get(w);if(b||!M){Uk(D)&&D.dispose&&D.dispose(n,a),f.removeKey(w);return}i&&i.newTitle!=null&&i.featureName===w&&(C.title=i.newTitle),S&&(D.uid=fo("toolbox-feature")),D.model=T,D.ecModel=n,D.api=a,h(T,D,w),T.setIconStatus=function(I,P){var E=this.option,R=this.iconPaths;E.iconStatus=E.iconStatus||{},E.iconStatus[I]=P,R[I]&&(P==="emphasis"?ya:ma)(R[I])},Uk(D)&&D.render&&D.render(T,n,a,i)}function h(m,_,S){var x=m.getModel("iconStyle"),b=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Kn&&_.getIcons?_.getIcons():m.get("icon"),C=m.get("title")||{},T,M;$(w)?(T={},T[S]=w):T=w,$(C)?(M={},M[S]=C):M=C;var D=m.iconPaths={};A(T,function(L,I){var P=Xs(L,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var E=P.ensureState("emphasis");E.style=b.getItemStyle();var R=new Pe({style:{text:M[I],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:em({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},n)},ignore:!0});P.setTextContent(R),Sa({el:P,componentModel:t,itemName:I,formatterParamsExtra:{title:M[I]}}),P.__title=M[I],P.on("mouseover",function(){var O=b.getItemStyle(),k=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")||O.fill||O.stroke||B.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||k}),R.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",I])!=="emphasis"&&a.leaveEmphasis(this),R.hide()}),(m.get(["iconStatus",I])==="emphasis"?ya:ma)(P),o.add(P),P.on("click",j(_.onclick,_,n,a,I)),D[I]=P})}var d=bt(t,a).refContainer,p=t.getBoxLayoutParams(),g=t.get("padding"),y=Je(p,d,g);go(t.get("orient"),o,t.get("itemGap"),y.width,y.height),Qc(o,p,d,g),o.add(Wk(o.getBoundingRect(),t)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),x=S.textConfig||(S.textConfig={}),b=m.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!ne(w)&&_){var C=w.style||(w.style={}),T=jv(_,Pe.makeFont(C)),M=m.x+o.x,D=m.y+o.y+s,L=!1;D+T.height>a.getHeight()&&(x.position="top",L=!0);var I=L?-5-T.height:s+10;M+T.width/2>a.getWidth()?(x.position=["100%",I],C.align="right"):M-T.width/2<0&&(x.position=[0,I],C.align="left")}})},e.prototype.updateView=function(t,n,a,i){A(this._features,function(o){o&&o instanceof Kn&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.dispose=function(t,n){A(this._features,function(a){a&&a instanceof Kn&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e})(Xe);function Dj(r){return r.indexOf("my")===0}function Uk(r){return r instanceof Kn}var Ij=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||B.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Ie.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=i}},e.getDefaultOption=function(t){var n={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:B.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e})(Kn),Yk="__ec_magicType_stack__",Lj=[["line","bar"],["stack"]],Pj=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return A(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={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 n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Xk[a]){var s={series:[]},l=function(v){var c=v.subType,h=v.id,d=Xk[a](c,h,v,i);d&&(ue(d,v.option),s.series.push(d));var p=v.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=v.getReferringComponents(m,ot).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};A(Lj,function(v){ge(v,a)>=0&&A(v,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=_e({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e})(Kn),Xk={line:function(r,e,t,n){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")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){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")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===Yk;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),_e({id:e,stack:a?"":Yk},n.get(["option","stack"])||{},!0)}};fn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var bp=new Array(60).join("-"),Ul=" ";function Rj(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=pY(o);e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.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:n}}function Ej(r){var e=[];return A(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(U(t.series,function(h){return h.name})),l=[a.model.getCategories()];A(t.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ul)],f=0;f<l[0].length;f++){for(var v=[],c=0;c<l.length;c++)v.push(l[c][f]);u.push(v.join(Ul))}e.push(u.join(`
48
+ `))}),e.join(`
49
+
50
+ `+bp+`
51
+
52
+ `)}function kj(r){return U(r,function(e){var t=e.getRawData(),n=[e.name],a=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Ul:"")+a.join(Ul))}),n.join(`
53
+ `)}).join(`
54
+
55
+ `+bp+`
56
+
57
+ `)}function Oj(r){var e=Rj(r);return{value:Ve([Ej(e.seriesGroupByCategoryAxis),kj(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
58
+
59
+ `+bp+`
60
+
61
+ `),meta:e.meta}}function wp(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nj(r){var e=r.slice(0,r.indexOf(`
62
+ `));if(e.indexOf(Ul)>=0)return!0}var US=new RegExp("["+Ul+"]+","g");function Bj(r){for(var e=r.split(/\n+/g),t=wp(e.shift()).split(US),n=[],a=U(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=wp(e[i]).split(US);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function Vj(r){for(var e=r.split(/\n+/g),t=wp(e.shift()),n=[],a=0;a<e.length;a++){var i=wp(e[a]);if(i){var o=i.split(US),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:t,data:n}}function zj(r,e){var t=r.split(new RegExp(`
63
+ *`+bp+`
64
+ *`,"g")),n={series:[]};return A(t,function(a,i){if(Nj(a)){var o=Bj(a),s=e[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Vj(a);n.series.push(o)}}),n}var Gj=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=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=i.get("backgroundColor")||B.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var v=i.get("optionToContent"),c=i.get("contentToOption"),h=Oj(t);if(ne(v)){var d=v(n.getOption());$(d)?u.innerHTML=d:Oa(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.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",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=h.value,u.appendChild(f)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){a.removeChild(o),x._dom=null}ag(_,"click",b),ag(S,"click",function(){if(c==null&&v!=null||c!=null&&v==null){et("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var w;try{ne(c)?w=c(u,n.getOption()):w=zj(f.value,g)}catch(C){throw b(),new Error("Data view format error "+C)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.dispose=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){var n={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:B.color.background,textColor:B.color.primary,textareaColor:B.color.background,textareaBorderColor:B.color.border,buttonColor:B.color.accent50,buttonTextColor:B.color.neutral00};return n},e})(Kn);function Fj(r,e){return U(r,function(t,n){var a=e&&e[n];if(ie(a)&&!H(a)){var i=ie(t)&&!H(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=ue(t,a),o&&delete t.name,t}else return t})}fn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];A(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(G({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:Fj(n.data,i)})}}),e.mergeOption(ue({series:t},r.newOption))});var Zk=A,$k=Se();function Hj(r,e){var t=YS(r);Zk(e,function(n,a){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[a])break}if(i<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 Wj(r){var e=YS(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return Zk(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function Uj(r){$k(r).snapshots=null}function Yj(r){return YS(r).length}function YS(r){var e=$k(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Xj=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){Uj(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={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 n},e})(Kn);fn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Zj=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],XS=(function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=qk(t,e);A($j,function(o,s){(!n||!n.include||ge(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=$S[n.brushType](0,i,a);n.__rangeOffset={offset:Qk[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){A(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&A(i.coordSyses,function(o){var s=$S[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(n){var a=this.findTargetInfo(n,t);if(W(!a||a===!0||n.coordRange,"coordRange must be specified when coord index specified."),W(!a||a!==!0||n.range,"range must be specified in global brush."),n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=$S[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Qk[n.brushType](i.values,o.offset,qj(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return U(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:kR(a),isTargetByCursor:NR(a,e,n.coordSysModel),getLinearBrushOtherExtent:OR(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&ge(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=qk(t,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Kk.length;l++)if(Kk[l](a,o))return o}return!0},r})();function ZS(r){return r[0]>r[1]&&r.reverse(),r}function qk(r,e){return Is(r,e,{includeMainTypes:Zj})}var $j={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=K(),o={},s={};!t&&!n&&!a||(A(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(v,c){(ge(t,v.getAxis("x").model)>=0||ge(n,v.getAxis("y").model)>=0)&&f.push(v)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:jk.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){A(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:jk.geo})})}},Kk=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],jk={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,e=O2(null,r);return eb(e,e,Md(null,r)),e}},$S={lineX:be(Jk,0),lineY:be(Jk,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[ZS([a[0],i[0]]),ZS([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[Ft(),Ft()],i=U(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);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:i,xyMinMax:a}}};function Jk(r,e,t,n){W(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var a=t.getAxis(["x","y"][r]),i=ZS(U([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Qk={lineX:be(eO,0),lineY:be(eO,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(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function eO(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function qj(r,e){var t=tO(r),n=tO(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function tO(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var qS=A,Kj=QV("toolbox-dataZoom_"),jj={x:"width",y:"height"},Jj=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new N1(a.getZr()),this._brushController.on("brush",j(this._onBrush,this)).mount()),tJ(t,n,this,i,a),eJ(t,n)},e.prototype.onclick=function(t,n,a){Qj[a].call(this)},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new XS(KS(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,v){if(v.type==="cartesian2d"){var c=v.master.getRect().clone(),h=u.brushType;h==="rect"?(s("x",v,c,f[0]),s("y",v,c,f[1])):s({lineX:"x",lineY:"y"}[h],v,c,f)}}),Hj(i,a),this._dispatchZoomAction(a);function s(u,f,v,c){var h=f.getAxis(u),d=h.model,p=l(u,d,i),g=p.findRepresentativeAxisProxy(d).getMinMaxSpan(),y=h.scale.getExtent();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(c=di(0,c.slice(),y,0,g.minValueSpan,g.maxValueSpan));var m=Xg(y,v[jj[u]],.5);p&&(a[p.id]={dataZoomId:p.id,startValue:isFinite(m)?Ee(c[0],m):c[0],endValue:isFinite(m)?Ee(c[1],m):c[1]})}function l(u,f,v){var c;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(c=h)}),c}},e.prototype._dispatchZoomAction=function(t){var n=[];qS(t,function(a,i){n.push(ae(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={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:B.color.backgroundTint}};return n},e})(Kn),Qj={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Wj(this.ecModel))}};function KS(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 eJ(r,e){r.setIconStatus("back",Yj(e)>1?"emphasis":"normal")}function tJ(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new XS(KS(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(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}FG("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=KS(n),o=Is(r,i);qS(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),qS(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var v=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Kj+u+v};c[f]=v,a.push(c)}return a});function rJ(r){r.registerComponentModel(Aj),r.registerComponentView(Mj),Wl("saveAsImage",Ij),Wl("magicType",Pj),Wl("dataView",Gj),Wl("dataZoom",Jj),Wl("restore",Xj),xe(Cj)}var nJ=(function(r){N(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:B.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:B.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:B.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:B.color.tertiary,fontSize:14}},e})(we);function rO(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function nO(r){if(Ie.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var aO=nO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aJ=nO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function iO(r,e){if(!r)return e;e=ym(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function iJ(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var oJ=iO(aJ,"transition"),jS=iO(aO,"transform"),sJ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ie.transform3dSupported?"will-change:transform;":"");function lJ(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function uJ(r,e,t){if(!$(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=co(e);var i=lJ(t),o=Math.max(Math.round(a)*1.5,6),s="",l=jS+":",u;ge(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,v=o+a,c=v*Math.abs(Math.cos(f))+v*Math.abs(Math.sin(f)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-v)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function fJ(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return t&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+n,i+=(i.length?",":"")+(Ie.transformSupported?""+jS+a:",left"+a+",top"+a)),oJ+":"+i}function oO(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Ie.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Ie.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+jS+":"+o+";":[["top",0],["left",0],[aO,o]]}function vJ(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=Q(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function cJ(r,e,t,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),v=r.getModel("textStyle"),c=PA(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+h),e&&i>0&&a.push(fJ(i,t,n)),o&&a.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=ym(p),y=r.get(g);y!=null&&a.push(p+":"+y+(d==="color"?"":"px"))}),a.push(vJ(v)),c!=null&&a.push("padding:"+js(c).join("px ")+"px"),a.join(";")+";"}function sO(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&dB(r,o,t,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var hJ=(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,Ie.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&($(i)?document.querySelector(i):Oa(i)?i:ne(i)&&i(e.getDom()));sO(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Er(f,l,!0),u.dispatch("mousemove",l)}},n.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(),n=iJ(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,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 n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=sJ+cJ(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+oO(i[0],i[1],!0)+("border-color:"+co(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,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if($(i)&&n.get("trigger")==="item"&&!rO(n)&&(s=uJ(n,a,i)),$(e))o.innerHTML=e+s;else if(e){o.innerHTML="",H(e)||(e=[e]);for(var l=0;l<e.length;l++)Oa(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 n=this._styleCoord;if(sO(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=oO(n[0],n[1]);A(i,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",Ie.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(j(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;pB(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},r})(),dJ=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),uO(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,n,a,i){var o=this;ie(e)&&ze("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Pe({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:PA(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),A(["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(),n=lO(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;uO(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=xi(i.borderWidth||0),s=lO(i);n.x=e+o+s.left,n.y=t+o+s.top,n.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(j(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function xi(r){return Math.max(0,r)}function lO(r){var e=xi(r.shadowBlur||0),t=xi(r.shadowOffsetX||0),n=xi(r.shadowOffsetY||0);return{left:xi(e-t),right:xi(e+t),top:xi(e-n),bottom:xi(e+n)}}function uO(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var pJ=new Ce({shape:{x:-1,y:-1,width:2,height:2}}),gJ=(function(r){N(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,n){if(!(Ie.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=oz(a.get("renderMode"));this._tooltipContent=i==="richText"?new dJ(n):new hJ(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,n,a){if(!(Ie.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?rl(this,"_updatePosition",50,"fixRate"):ef(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");$E("itemTooltip",this._api,j(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||Ie.node||!a.getDom())){var o=fO(i,a);this._ticket="";var s=i.dataByCoordSys,l=SJ(i,n,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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=pJ;f.x=i.x,f.y=i.y,f.update(),ve(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,a,i))return;var v=qE(i,n),c=v.point[0],h=v.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(fO(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),v=dv([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){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=ve(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;To(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ve(f).dataIndex!=null?l=f:ve(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=j(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=dv([n.tooltipOption],i),l=this._renderMode,u=[],f=gt("section",{blocks:[],noHeader:!0}),v=[],c=new Hm;A(t,function(m){A(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value,b=S.axis,w=b.scale.parse(x);if(!(!S||x==null)){var C=HE(x,b,a,_.seriesDataIndices,_.valueLabelOpt),T=gt("section",{header:C,noHeader:!yr(C),sortBlocks:!0,blocks:[]});f.blocks.push(T),A(_.seriesDataIndices,function(M){var D=a.getSeriesByIndex(M.seriesIndex),L=M.dataIndexInside,I=D.getDataParams(L);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Gh(S.axis,{value:w}),I.axisValueLabel=C,I.marker=c.makeTooltipMarker("item",co(I.color),l);var P=uA(D.formatTooltip(L,!0,null)),E=P.frag;if(E){var R=dv([D],i).get("valueFormatter");T.blocks.push(R?G({valueFormatter:R},E):E)}P.text&&v.push(P.text),u.push(I)}})}})}),f.blocks.reverse(),v.reverse();var h=n.position,d=s.get("order"),p=DA(f,c,l,d,a.get("useUTC"),s.get("textStyle"));p&&v.unshift(p);var g=l==="richText"?`
65
+
66
+ `:"<br/>",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=ve(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,c=u.getData(v),h=this._renderMode,d=t.positionDefault,p=dv([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,v),m=new Hm;y.marker=m.makeTooltipMarker("item",co(y.color),h);var _=uA(u.formatTooltip(f,!1,v)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?DA(x?G({valueFormatter:x},b):b,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,C,t.offsetX,t.offsetY,t.position,t.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=ve(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if($(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ae(l),l.content=Gt(l.content));var v=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&v.push(c),v.push({formatter:l.content});var h=t.positionDefault,d=dv(v,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new Hm;this._showOrMove(d,function(){var m=ae(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,t.offsetX,t.offsetY,t.position,n,y)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var v=this._tooltipContent;v.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=n,d=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(c)if($(c)){var g=t.ecModel.get("useUTC"),y=H(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=c,m&&(h=Uu(y.axisValue,h,g)),h=Sm(h,a,!0)}else if(ne(c)){var _=j(function(S,x){S===this._ticket&&(v.setContent(x,f,t,p,l),this._updatePosition(t,l,o,s,v,a,u))},this);this._ticket=i,h=c(a,i,_)}else h=c;v.setContent(h,f,t,p,l),v.show(t,p),this._updatePosition(t,l,o,s,v,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||H(n))return{color:i||o};if(!H(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var v=o.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ne(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:v.slice()})),H(n))a=q(n[0],u),i=q(n[1],f);else if(ie(n)){var p=n;p.width=v[0],p.height=v[1];var g=Je(p,{width:u,height:f});a=g.x,i=g.y,c=null,h=null}else if($(n)&&l){var y=_J(n,d,v,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=yJ(a,i,o,u,f,c?null:20,h?null:20);a=y[0],i=y[1]}if(c&&(a-=vO(c)?v[0]/2:c==="right"?v[0]:0),h&&(i-=vO(h)?v[1]/2:h==="bottom"?v[1]:0),rO(t)){var y=mJ(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&A(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&A(u,function(c,h){var d=v[h]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){Ie.node||!n.getDom()||(ef(this,"_updatePosition"),this._tooltipContent.dispose(),MS("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Xe);function dv(r,e,t){var n=e.ecModel,a;t?(a=new De(t,n,n),a=new De(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof De&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(a=new De(o,a,n)))}return a}function fO(r,e){return r.dispatchAction||j(e.dispatchAction,e)}function yJ(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function mJ(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function _J(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+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-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-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-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function vO(r){return r==="center"||r==="middle"}function SJ(r,e,t){var n=Jg(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Ls(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ve(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function xJ(r){xe(fv),r.registerComponentModel(nJ),r.registerComponentView(gJ),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},at),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},at)}var bJ=["rect","polygon","keep","clear"];function wJ(r,e){var t=Ue(r?r.brush:[]);if(t.length){var n=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;H(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),cc(s,function(l){return l+""},null),e&&!s.length&&s.push.apply(s,bJ)}}var cO=A;function hO(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function JS(r,e,t){var n={};return cO(e,function(i){var o=n[i]=a();cO(r[i],function(s,l){if(Pt.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Pt(u),l==="opacity"&&(u=ae(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Pt(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function dO(r,e,t){var n;A(t,function(a){e.hasOwnProperty(a)&&hO(e[a])&&(n=!0)}),n&&A(t,function(a){e.hasOwnProperty(a)&&hO(e[a])?r[a]=ae(e[a]):delete r[a]})}function TJ(r,e,t,n,a,i){var o={};A(r,function(v){var c=Pt.prepareVisualTypes(e[v]);o[v]=c});var s;function l(v){return Ym(t,s,v)}function u(v,c){JA(t,s,v,c)}i==null?t.each(f):t.each([i],f);function f(v,c){s=i==null?v:c;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=n.call(a,v),p=e[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(v,l,u)}}}function CJ(r,e,t,n){var a={};return A(r,function(i){var o=Pt.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return Ym(s,v,x)}function f(x,b){JA(s,v,x,b)}for(var v,c=s.getStore();(v=o.next())!=null;){var h=s.getRawDataItem(v);if(!(h&&h.visualMap===!1))for(var d=n!=null?c.get(l,v):v,p=t(d),g=e[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function AJ(r){var e=r.brushType,t={point:function(n){return pO[e].point(n,t,r)},rect:function(n){return pO[e].rect(n,t,r)}};return t}var pO={lineX:gO(0),lineY:gO(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])&&ko(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(ko(n,a,i)||ko(n,a+o,i)||ko(n,a,i+s)||ko(n,a+o,i+s)||se.create(r).contain(l[0],l[1])||zu(a,i,a+o,i,n)||zu(a,i,a,i+s,n)||zu(a+o,i,a+o,i+s,n)||zu(a,i+s,a+o,i+s,n))return!0}}};function gO(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return pv(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),pv(s[0],o)||pv(s[1],o)||pv(o[0],s)||pv(o[1],s)}}}}function pv(r,e){return e[0]<=r&&r<=e[1]}var yO=["inBrush","outOfBrush"],QS="__ecBrushSelect",ex="__ecInBrushSelectEvent";function mO(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new XS(e.option,r);t.setInputRanges(e.areas,r)})}var MJ=Au(DJ);function DJ(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),mO(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ae(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,v=[],c=[],h=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=U(o.areas,function(x){var b=RJ[x.brushType],w=ue({boundingRect:b?b(x):void 0},x);return w.selectors=AJ(w),w}),g=JS(o.option,yO,function(x){x.mappingMethod="fixed"});H(f)&&A(f,function(x){v[x]=1});function y(x){return f==="all"||!!v[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=h[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;d=d||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(C,T){C==="active"&&(c[T]=1)})}function S(x,b,w){if(!(!x.brushSelector||PJ(o,b))&&(A(p,function(T){o.brushTargetManager.controlSeries(T,x,r)&&w.push(T),d=d||m(w)}),y(b)&&m(w))){var C=x.getData();C.each(function(T){_O(x,w,C,T)&&(c[T]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var C=h[b],T=x.getData(),M=y(b)?function(D){return c[D]?(w.dataIndex.push(T.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return _O(x,C,T,D)?(w.dataIndex.push(T.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(b)?d:m(C))&&TJ(yO,g,T,M)})}),IJ(e,a,i,n,t)}function IJ(r,e,t,n,a){if(a){var i=r.getZr();if(!i[ex]){i[QS]||(i[QS]=LJ);var o=rl(i,QS,t,e);o(r,n)}}}function LJ(r,e){if(!r.isDisposed()){var t=r.getZr();t[ex]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[ex]=!1}}function _O(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function PJ(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(H(t)?ge(t,e)<0:e!==t)}var RJ={rect:function(r){return SO(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[Ft(),Ft()];var i=t[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&SO(e)}};function SO(r){return new se(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var EJ=(function(r){N(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,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new N1(n.getZr())).on("brush",j(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){mO(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$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 n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:ae(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:ae(a),$from:n})},e.type="brush",e})(Xe),kJ=(function(r){N(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,n){var a=this.option;!n&&dO(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){W(H(t)),A(t,function(n){W(n.brushType,"Illegal areas")}),t&&(this.areas=U(t,function(n){return xO(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=xO(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:B.color.backgroundTint,borderColor:B.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:B.color.disabled},e})(we);function xO(r,e){return _e({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new De(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var OJ=["rect","polygon","lineX","lineY","keep","clear"],NJ=(function(r){N(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return A(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:OJ.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 n},e})(Kn);function BJ(r){r.registerComponentView(EJ),r.registerComponentModel(kJ),r.registerPreprocessor(wJ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,MJ),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},at),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},at),Wl("brush",NJ)}var VJ=(function(r){N(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:B.size.m,backgroundColor:B.color.transparent,borderColor:B.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:B.color.primary},subtextStyle:{fontSize:12,color:B.color.quaternary}},e})(we),zJ=(function(r){N(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,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Q(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Pe({style:Ye(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),c=t.get("subtext"),h=new Pe({style:Ye(s,{text:c,fill:s.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){qc(d,"_"+t.get("target"))}),p&&h.on("click",function(){qc(p,"_"+t.get("subtarget"))}),ve(f).eventData=ve(h).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),c&&i.add(h);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=bt(t,a),S=Je(m,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var b=S.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var C=new Ce({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},e.type="title",e})(Xe);function GJ(r){r.registerComponentModel(VJ),r.registerComponentView(zJ)}var bO=(function(r){N(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,n,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 n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-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,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],A(n,function(u,f){var v=mt(Ms(u),""),c;ie(u)?(c=ae(u),c.value=f):c=f,o.push(c),i.push(v)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Jt([{name:"value",type:s}],this);l.initData(o,i)},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:B.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:B.color.secondary},data:[]},e})(we),wO=(function(r){N(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=ti(bO.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:B.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:B.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:B.color.tertiary},itemStyle:{color:B.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:B.color.accent50,borderColor:B.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:B.color.accent50,borderColor:B.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:B.color.accent60},itemStyle:{color:B.color.accent60,borderColor:B.color.accent60},controlStyle:{color:B.color.accent70,borderColor:B.color.accent70}},progress:{lineStyle:{color:B.color.accent30},itemStyle:{color:B.color.accent40}},data:[]}),e})(bO);lt(wO,ih.prototype);var FJ=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(Xe),HJ=(function(r){N(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(Zr),tx=Math.PI,TO=Se(),WJ=(function(r){N(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,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return gt("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,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,n){var a=t.get(["label","position"]),i=t.get("orient"),o=UJ(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":$(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][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:tx/2},v=i==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*tx/180;var m,_,S,x=c.get("position",!0),b=h&&c.get("showPlayBtn",!0),w=h&&c.get("showPrevBtn",!0),C=h&&c.get("showNextBtn",!0),T=0,M=v;x==="left"||x==="bottom"?(b&&(m=[0,0],T+=g),w&&(_=[T,0],T+=g),C&&(S=[M-d,0],M-=g)):(b&&(m=[M-d,0],M-=g),w&&(_=[0,0],T+=g),C&&(S=[M-d,0],M-=g));var D=[T,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Qe(),l=o.x,u=o.y+o.height;Qr(s,s,[-l,-u]),sa(s,s,-tx/2),Qr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),v=m(a.getBoundingRect()),c=m(i.getBoundingRect()),h=[a.x,a.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=t.labelPosOpt;if(p==null||$(p)){var g=p==="+"?0:1;_(h,v,f,1,g),_(d,c,f,1,1-g)}else{var g=p>=0?0:1;_(h,v,f,1,g),d[1]=h[1]+p}a.setPosition(h),i.setPosition(d),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,C){S[w]+=b[w][C]-x[w][C]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType")||n.get("type");i!=="category"&&i!=="time"&&(i="value");var o=gl(n,i,!1);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),ED(o,{fixMinMax:[!0,!0]});var l=new HJ("value",o,t.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new le;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new ft({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:G({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new ft({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ue({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=a.dataToCoord(u.value),v=s.getItemModel(u.value),c=v.getModel("itemStyle"),h=v.getModel(["emphasis","itemStyle"]),d=v.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:j(o._changeTimeline,o,u.value)},g=CO(v,c,n,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),ja(g);var y=ve(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],A(u,function(f){if(!f.tick.offInterval){var v=f.tick.value,c=l.getItemModel(v),h=c.getModel("label"),d=c.getModel(["emphasis","label"]),p=c.getModel(["progress","label"]),g=a.dataToCoord(v),y=new Pe({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:j(o._changeTimeline,o,v),silent:!1,style:Ye(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ye(d),y.ensureState("progress").style=Ye(p),n.add(y),ja(y),TO(y).dataIndex=v,o._tickLabels.push(y)}})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);c(t.nextBtnPosition,"next",j(this._changeTimeline,this,v?"-":"+")),c(t.prevBtnPosition,"prev",j(this._changeTimeline,this,v?"+":"-")),c(t.playPosition,f?"stop":"play",j(this._handlePlayClick,this,!f),!0);function c(h,d,p,g){if(h){var y=wn(Q(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=YJ(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),ja(_)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(v){v.draggable=!0,v.drift=j(u._handlePointerDrag,u),v.ondragend=j(u._handlePointerDragend,u),AO(v,u._progressLine,s,a,i,!0)},onUpdate:function(v){AO(v,u._progressLine,s,a,i)}};this._currentPointer=CO(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,n,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,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=Et(i.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;(n||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 n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return un(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<a&&(a=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",TO(a[i]).dataIndex<=t)},e.type="timeline.slider",e})(FJ);function UJ(r,e){return Je(r.getBoxLayoutParams(),bt(r,e).refContainer,r.get("padding"))}function YJ(r,e,t,n){var a=n.style,i=Xs(r.get(["controlStyle",e]),n||{},new se(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function CO(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=ht(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=_e({rectHover:!0,z2:100},n,!0);var u=il(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Co(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var v=r.get("symbolRotate");return n.rotation=(v||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function AO(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",t));if(i||!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)}}}function XJ(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){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),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),ue({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function ZJ(r){var e=r&&r.timeline;H(e)||(e=e?[e]:[]),A(e,function(t){t&&$J(t)})}function $J(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),MO(r),us(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});us(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!us(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}A(r.data||[],function(a){ie(a)&&!H(a)&&(!us(a,"value")&&us(a,"name")&&(a.value=a.name),MO(a))})}function MO(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};A(n,function(o,s){!i[s]&&!us(a,s)&&(a[s]=o)}),t.label&&!us(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function us(r,e){return r.hasOwnProperty(e)}function qJ(r){r.registerComponentModel(wO),r.registerComponentView(WJ),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),XJ(r),r.registerPreprocessor(ZJ)}function rx(r,e){if(!r)return!1;for(var t=H(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function Tp(r){Gi(r,"label",["show"])}var Cp=Se(),jn=(function(r){N(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,n,a){if(this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ie.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Cp(s)[o];if(!l||!l.data){Cp(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Tp(l),A(l.data,function(f){f instanceof Array?(Tp(f[0]),Tp(f[1])):Tp(f)}),u=this.createMarkerModelFromSeries(l,this,n),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Cp(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return gt("section",{header:this.name,blocks:[gt("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,n){var a=ih.prototype.getDataParams.call(this,t,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},e.getMarkerModelFromSeries=function(t,n){return Cp(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(we);lt(jn,ih.prototype);var KJ=(function(r){N(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,n,a){return new e(t,n,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})(jn);function nx(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function jJ(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Ap(r,e,t,n,a,i,o){var s=[],l=Ta(e,a),u=l?e.getCalculationInfo("stackResultDimension"):a,f=Dp(e,u,r),v=e.hostModel,c=v.indicesOfNearest(t,u,f)[0];s[i]=e.get(n,c),s[o]=e.get(u,c);var h=e.get(a,c),d=nn(e.get(a,c));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var Mp={min:be(Ap,"min"),max:be(Ap,"max"),average:be(Ap,"average"),median:be(Ap,"median")};function gv(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!jJ(e)&&!H(e.coord)&&H(a)){var i=DO(e,t,n,r);if(e=ae(e),e.type&&Mp[e.type]&&i.baseAxis&&i.valueAxis){var o=ge(a,i.baseAxis.dim),s=ge(a,i.valueAxis.dim),l=Mp[e.type](t,i.valueAxis.dim,i.baseDataDim,i.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||!H(a)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&Mp[e.type]){var f=n.getOtherAxis(u);f&&(e.value=Dp(t,t.mapDimension(f.dim),e.type))}}else for(var v=e.coord,c=0;c<2;c++)Mp[v[c]]&&(v[c]=Dp(t,t.mapDimension(a[c]),v[c]));return e}}function DO(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(JJ(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function JJ(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function yv(r,e){return r&&r.containData&&e.coord&&!nx(e)?r.containData(e.coord):!0}function QJ(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!nx(e)&&!nx(t)?r.containZone(e.coord,t.coord):!0}function IO(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return ri(o,e[i])}:function(t,n,a,i){return ri(t.value,e[i])}}function Dp(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var ax=Se(),ix=(function(r){N(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=K()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){ax(s).keep=!1}),n.eachSeries(function(s){var l=jn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!ax(s).keep&&i.group.remove(s.group)}),eQ(n,o,this.type)},e.prototype.markKeep=function(t){ax(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;A(t,function(i){var o=jn.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?cT(l):Ly(l))})}})},e.type="marker",e})(Xe);function eQ(r,e,t){r.eachSeries(function(n){var a=jn.getMarkerModelFromSeries(n,t),i=e.get(n.id);if(a&&i&&i.group){var o=lo(a),s=o.z,l=o.zlevel;zc(i.group,s,l)}})}function LO(r,e,t){var n=e.coordinateSystem,a=t.getWidth(),i=t.getHeight(),o=n&&n.getArea&&n.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:a,v=u?o?o.height:0:i,c=u&&o?o.x:0,h=u&&o?o.y:0,d,p=q(l.get("x"),f)+c,g=q(l.get("y"),v)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(e.getMarkerPosition)d=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(n){var y=r.get(n.dimensions[0],s),m=r.get(n.dimensions[1],s);d=n.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var tQ=(function(r){N(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,n,a){n.eachSeries(function(i){var o=jn.getMarkerModelFromSeries(i,"markPoint");o&&(LO(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Lf),v=rQ(o,t,n);n.setData(v),LO(n.getData(),t,i),v.each(function(c){var h=v.getItemModel(c),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ne(d)||ne(p)||ne(g)||ne(y)){var _=n.getRawValue(c),S=n.getDataParams(c);ne(d)&&(d=d(_,S)),ne(p)&&(p=p(_,S)),ne(g)&&(g=g(_,S)),ne(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),w=af(l,"color");x.fill||(x.fill=w),v.setItemVisual(c,{z2:Q(b,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(c){c.traverse(function(h){ve(h).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e})(ix);function rQ(r,e,t){var n;r?n=U(r&&r.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return G(G({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Jt(n,t),i=U(t.get("data"),be(gv,e));r&&(i=Ve(i,be(yv,r)));var o=IO(!!r,n);return a.initData(i,null,o),a}function nQ(r){r.registerComponentModel(KJ),r.registerComponentView(tQ),r.registerPreprocessor(function(e){rx(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var aQ=(function(r){N(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,n,a){return new e(t,n,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})(jn),Ip=Se(),iQ=function(r,e,t,n){var a=r.getData(),i;if(H(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=At(n.yAxis,n.xAxis);else{var u=DO(n,a,e,r);s=u.valueAxis;var f=x0(a,u.valueDataDim);l=Dp(a,f,o)}var v=s.dim==="x"?0:1,c=1-v,h=ae(n),d={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,d.coord[c]=1/0;var p=t.get("precision");p>=0&&Re(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[v]=d.coord[v]=l,i=[h,d,{type:o,valueIndex:n.valueIndex,value:l}]}else Lr("Invalid markLine data."),i=[]}var g=[gv(r,i[0]),gv(r,i[1]),G({},i[2])];return g[2].type=g[2].type||null,_e(g[2],g[0]),_e(g[2],g[1]),g};function Lp(r){return!isNaN(r)&&!isFinite(r)}function PO(r,e,t,n){var a=1-r,i=n.dimensions[r];return Lp(e[a])&&Lp(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function oQ(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(PO(1,t,n,r)||PO(0,t,n,r)))return!0}return yv(r,e[0])&&yv(r,e[1])}function ox(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=q(o.get("x"),a.getWidth()),u=q(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,v=r.get(f[0],e),c=r.get(f[1],e);s=i.dataToPoint([v,c])}if(Fo(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Lp(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):Lp(r.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var sQ=(function(r){N(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,n,a){n.eachSeries(function(i){var o=jn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Ip(o).from,u=Ip(o).to;l.each(function(f){ox(l,f,!0,i,a),ox(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new w1);this.group.add(f.group);var v=lQ(o,t,n),c=v.from,h=v.to,d=v.line;Ip(n).from=c,Ip(n).to=h,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");H(p)||(p=[p,p]),H(g)||(g=[g,g]),H(y)||(y=[y,y]),H(m)||(m=[m,m]),v.from.each(function(S){_(c,S,!0),_(h,S,!1)}),d.each(function(S){var x=d.getItemModel(S),b=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[c.getItemLayout(S),h.getItemLayout(S)]);var w=x.get("z2");b.stroke==null&&(b.stroke=c.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:Q(w,0),fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol:c.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:b})}),f.updateData(d),v.line.eachItemGraphicEl(function(S){ve(S).dataModel=n,S.traverse(function(x){ve(x).dataModel=n})});function _(S,x,b){var w=S.getItemModel(x);ox(S,x,b,t,i);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=af(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Q(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:Q(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:Q(w.get("symbolSize"),g[b?0:1]),symbol:Q(w.get("symbol",!0),p[b?0:1]),style:C})}this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e})(ix);function lQ(r,e,t){var n;r?n=U(r&&r.dimensions,function(u){var f=e.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},v),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Jt(n,t),i=new Jt(n,t),o=new Jt([],t),s=U(t.get("data"),be(iQ,e,r,t));r&&(s=Ve(s,be(oQ,r)));var l=IO(!!r,n);return a.initData(U(s,function(u){return u[0]}),null,l),i.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:i,line:o}}function uQ(r){r.registerComponentModel(aQ),r.registerComponentView(sQ),r.registerPreprocessor(function(e){rx(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var fQ=(function(r){N(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,n,a){return new e(t,n,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})(jn),Pp=Se(),vQ=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=gv(r,a),s=gv(r,i),l=o.coord,u=s.coord;l[0]=At(l[0],-1/0),l[1]=At(l[1],-1/0),u[0]=At(u[0],1/0),u[1]=At(u[1],1/0);var f=Tv([{},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 Rp(r){return!isNaN(r)&&!isFinite(r)}function RO(r,e,t,n){var a=1-r;return Rp(e[a])&&Rp(t[a])}function cQ(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Fo(r,"cartesian2d")?t&&n&&(RO(1,t,n)||RO(0,t,n))?!0:QJ(r,a,i):yv(r,a)||yv(r,i)}function EO(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=q(o.get(t[0]),a.getWidth()),u=q(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],e),v=r.getValues(["x1","y1"],e),c=i.clampData(f),h=i.clampData(v),d=[];t[0]==="x0"?d[0]=c[0]>h[0]?v[0]:f[0]:d[0]=c[0]>h[0]?f[0]:v[0],t[1]==="y0"?d[1]=c[1]>h[1]?v[1]:f[1]:d[1]=c[1]>h[1]?f[1]:v[1],s=n.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Fo(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);Rp(p)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Rp(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var kO=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],hQ=(function(r){N(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,n,a){n.eachSeries(function(i){var o=jn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=U(kO,function(v){return EO(s,l,v,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new le});this.group.add(f.group),this.markKeep(f);var v=dQ(o,t,n);n.setData(v),v.each(function(c){var h=U(kO,function(M){return EO(v,c,M,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(v.get("x0",c)),d.parse(v.get("x1",c))],_=[p.parse(v.get("y0",c)),p.parse(v.get("y1",c))];Et(m),Et(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;v.setItemLayout(c,{points:h,allClipped:x});var b=v.getItemModel(c),w=b.getModel("itemStyle").getItemStyle(),C=b.get("z2"),T=af(l,"color");w.fill||(w.fill=T,$(w.fill)&&(w.fill=pu(w.fill,.4))),w.stroke||(w.stroke=T),v.setItemVisual(c,"style",w),v.setItemVisual(c,"z2",Q(C,0))}),v.diff(Pp(f).data).add(function(c){var h=v.getItemLayout(c),d=v.getItemVisual(c,"z2");if(!h.allClipped){var p=new Wt({z2:Q(d,0),shape:{points:h.points}});v.setItemGraphicEl(c,p),f.group.add(p)}}).update(function(c,h){var d=Pp(f).data.getItemGraphicEl(h),p=v.getItemLayout(c),g=v.getItemVisual(c,"z2");p.allClipped?d&&f.group.remove(d):(d?Oe(d,{z2:Q(g,0),shape:{points:p.points}},n,c):d=new Wt({shape:{points:p.points}}),v.setItemGraphicEl(c,d),f.group.add(d))}).remove(function(c){var h=Pp(f).data.getItemGraphicEl(c);f.group.remove(h)}).execute(),v.eachItemGraphicEl(function(c,h){var d=v.getItemModel(h),p=v.getItemVisual(h,"style");c.useStyle(v.getItemVisual(h,"style")),It(c,xt(d),{labelFetcher:n,labelDataIndex:h,defaultText:v.getName(h)||"",inheritColor:$(p.fill)?pu(p.fill,1):B.color.neutral99}),St(c,d),tt(c,null,null,d.get(["emphasis","disabled"])),ve(c).dataModel=n}),Pp(f).data=v,f.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e})(ix);function dQ(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=U(r&&r.dimensions,function(u){var f=e.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return G(G({},v),{name:u,ordinalMeta:null})});a=U(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new Jt(a,t)}else a=[{name:"value",type:"float"}],n=new Jt(a,t);var s=U(t.get("data"),be(vQ,e,r,t));r&&(s=Ve(s,be(cQ,r)));var l=r?function(u,f,v,c){var h=u.coord[Math.floor(c/2)][c%2];return ri(h,a[c])}:function(u,f,v,c){return ri(u.value,a[c])};return n.initData(s,null,l),n.hasItemOption=!0,n}function pQ(r){r.registerComponentModel(fQ),r.registerComponentView(hQ),r.registerPreprocessor(function(e){rx(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var gQ=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"])}},sx=(function(r){N(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,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),H(n)&&A(n,function(i,o){$(i)&&(i={type:i}),n[o]=_e(i,gQ(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var v=l.legendVisualProvider,c=v.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&jg(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=K(),s=U(i,function(l){return($(l)||Re(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new De(l,this,this.ecModel))},this);this._data=Ve(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;A(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;A(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;A(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&ge(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:B.size.m,align:"auto",backgroundColor:B.color.transparent,borderColor:B.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:B.color.disabled,inactiveBorderColor:B.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:B.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:B.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:B.color.tertiary,borderWidth:1,borderColor:B.color.border},emphasis:{selectorLabel:{show:!0,color:B.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(we),Yl=be,lx=A,Ep=le,OO=(function(r){N(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 Ep),this.group.add(this._selectorGroup=new Ep),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=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,n,a,l,s,u);var f=bt(t,a).refContainer,v=t.getBoxLayoutParams(),c=t.get("padding"),h=Je(v,f,c),d=this.layoutInner(t,o,h,i,l,u),p=Je(ue({width:d.width,height:d.height},v),f,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Wk(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),f=K(),v=n.get("selectedMode"),c=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),lx(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
67
+ `)){var m=new Ep;m.newline=!0,u.add(m);return}var _=a.getSeriesByName(y)[0];if(!f.get(y)){if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),C=this._createItem(_,y,p,d,n,t,x,w,b,v,i);C.on("click",Yl(NO,y,null,i,h)).on("mouseover",Yl(ux,_.name,null,i,h)).on("mouseout",Yl(fx,_.name,null,i,h)),a.ssr&&C.eachChild(function(T){var M=ve(T);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),c&&C.eachChild(function(T){g.packEventData(T,n,_,p,y)}),f.set(y,!0)}else a.eachRawSeries(function(T){var M=this;if(!f.get(y)&&T.legendVisualProvider){var D=T.legendVisualProvider;if(!D.containName(y))return;var L=D.indexOfName(y),I=D.getItemVisual(L,"style"),P=D.getItemVisual(L,"legendIcon"),E=qt(I.fill);E&&E[3]===0&&(E[3]=.2,I=G(G({},I),{fill:Nr(E,"rgba")}));var R=this._createItem(T,y,p,d,n,t,{},I,P,v,i);R.on("click",Yl(NO,null,y,i,h)).on("mouseover",Yl(ux,null,y,i,h)).on("mouseout",Yl(fx,null,y,i,h)),a.ssr&&R.eachChild(function(O){var k=ve(O);k.seriesIndex=T.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),c&&R.eachChild(function(O){M.packEventData(O,n,T,p,y)}),f.set(y,!0)}},this);f.get(y)||console.warn(y+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,n,i,s,l)},e.prototype.packEventData=function(t,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};ve(t).eventData=s},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();lx(t,function(u){var f=u.type,v=new Pe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(v);var c=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);It(v,{normal:c,emphasis:h},{defaultText:u.title}),ja(v)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,f,v,c){var h=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=yQ(f,i,l,u,h,g,c),x=new Ep,b=i.getModel("textStyle");if(ne(t.getLegendIcon)&&(!_||_==="inherit"))x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;x.add(mQ({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,T=s,M=o.get("formatter"),D=n;$(M)&&M?D=M.replace("{name}",n??""):ne(M)&&(D=M(n));var L=g?b.getTextColor():i.get("inactiveColor");x.add(new Pe({style:Ye(b,{text:D,x:C,y:p/2,fill:L,align:T,verticalAlign:"middle"},{inheritColor:L})}));var I=new Ce({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Sa({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(E){E.silent=!0}),I.silent=!v,this.getContentGroup().add(x),ja(x),x.__legendDataIndex=a,x},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();go(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){go("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:v[p]+=c[g]+d,h[1-p]+=f[y]/2-c[y]/2,u.x=h[0],u.y=h[1],l.x=v[0],l.y=v[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+h[1-p]),_}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Xe);function yQ(r,e,t,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),lx(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?n.decal:ll(v,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function mQ(r){var e=r.icon||"roundRect",t=ht(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=B.color.neutral00,t.style.lineWidth=2),t}function NO(r,e,t,n){fx(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),ux(r,e,t,n)}function ux(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function fx(r,e,t,n){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function mv(r,e,t){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),BO(s,a),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){A(a,function(l,u){s[l?"select":"unSelect"](u)}),BO(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function BO(r,e){var t=e||{};return A(r.getData(),function(n){var a=n.get("name");if(!(a===`
68
+ `||a==="")){var i=r.isSelected(a);J(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function _Q(r){r.registerAction("legendToggleSelect","legendselectchanged",be(mv,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",be(mv,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",be(mv,"inverseSelect")),r.registerAction("legendSelect","legendselected",be(mv,"select")),r.registerAction("legendUnSelect","legendunselected",be(mv,"unSelect"))}var SQ=Au(xQ);function xQ(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function VO(r){r.registerComponentModel(sx),r.registerComponentView(OO),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,SQ),r.registerSubTypeDefaulter("legend",function(){return"plain"}),_Q(r)}var bQ=(function(r){N(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,n,a){var i=yo(t);r.prototype.init.call(this,t,n,a),zO(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),zO(this,this.option,t)},e.type="legend.scroll",e.defaultOption=ti(sx.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:B.color.accent50,pageIconInactiveColor:B.color.accent10,pageIconSize:15,pageTextStyle:{color:B.color.tertiary},animationDurationUpdate:800}),e})(sx);function zO(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,Nn(e,t,{type:"box",ignoreSize:!!a})}var GO=le,vx=["width","height"],cx=["x","y"],wQ=(function(r){N(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 GO),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GO)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,l);var f=this._controllerGroup,v=n.get("pageIconSize",!0),c=H(v)?v:[v,v];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Pe({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Xs(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:j(u._pageGo,u,y,n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=vx[u],v=cx[u],c=vx[1-u],h=cx[1-u];o&&go("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ae(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(t,i,y,u,f,c,h,v);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[v]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,c=this._controllerGroup;go(t.get("orient"),f,t.get("itemGap"),i?a.width:null,i?null:a.height),go("horizontal",c,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=Q(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),v.setPosition(y),c.setPosition(m);var x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),v.__rectSize=a[o],p){var b={x:0,y:0};b[o]=Math.max(a[o]-d[o]-_,0),b[s]=x[s],v.setClipPath(new Ce({shape:b})),v.__rectSize=b[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Oe(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",c=n[v]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=vx[o],l=cx[o],u=this._findTargetItemIndex(n),f=a.children(),v=f[u],c=f.length,h=c?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return d;var p=S(v);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(n=s)}),n??i},e.type="legend.scroll",e})(OO);function TQ(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function CQ(r){xe(VO),r.registerComponentModel(bQ),r.registerComponentView(wQ),TQ(r)}function AQ(r){xe(VO),xe(CQ)}var MQ=(function(r){N(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=ti(hv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(hv),hx=Se();function DQ(r,e,t){hx(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function IQ(r,e){for(var t=hx(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||FO(t,o))}}}function FO(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function LQ(r,e){var t={model:e,containsPoint:be(RQ,e),dispatchAction:be(PQ,r),dataZoomInfoMap:null,controller:null},n=t.controller=new Zo(r.getZr());return A(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!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 PQ(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function RQ(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function EQ(r,e,t){var n,a="type_",i={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,v=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;i[a+v]>i[a+n]&&(n=v),o=o&&f.get("preventDefaultMouseMove",!0),s=Q(f.get("cursorGrab",!0),s),l=Q(f.get("cursorGrabbing",!0),l)}),{controlType:n,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 kQ(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var n=hx(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=K());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Bk(i);A(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,LQ(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){FO(a,i);return}var f=EQ(l,i,t);o.enable(f.controlType,f.opt),rl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var OQ=(function(r){N(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,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),DQ(a,t,{pan:j(dx.pan,this),zoom:j(dx.zoom,this),scrollMove:j(dx.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){IQ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(HS),dx={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=px[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(di(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:HO(function(r,e,t,n,a,i){var o=px[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:HO(function(r,e,t,n,a,i){var o=px[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function HO(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,a);if(di(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var px={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=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=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function WO(r){WS(r),r.registerComponentModel(MQ),r.registerComponentView(OQ),kQ(r)}var NQ=(function(r){N(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=ti(hv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:B.color.accent10,borderRadius:0,backgroundColor:B.color.transparent,dataBackground:{lineStyle:{color:B.color.accent30,width:.5},areaStyle:{color:B.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:B.color.accent40,width:.5},areaStyle:{color:B.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:B.color.neutral00,borderColor:B.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:B.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:B.color.tertiary},brushSelect:!0,brushStyle:{color:B.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:B.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(hv),_v=Ce,BQ=1,gx=30,VQ=7,Sv="horizontal",UO="vertical",zQ=5,GQ=["line","bar","candlestick","scatter"],FQ={easing:"cubicOut",duration:100,delay:0},HQ=(function(r){N(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,n){this.api=n,this._onBrush=j(this._onBrush,this),this._onBrushEnd=j(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),rl(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}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ef(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 n=this._displayables.sliderGroup=new le;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?VQ:0,o=bt(t,n).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Sv?{right:o.width-s.x-s.width,top:o.height-gx-l-i,width:s.width,height:gx}:{right:l,top:s.y,width:gx,height:s.height},f=yo(t.option);A(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var v=Je(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===UO&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Sv&&!o?{scaleY:l?1:-1,scaleX:1}:a===Sv&&o?{scaleY:l?1:-1,scaleX:-1}:a===UO&&!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,v=isNaN(u.y)?0:u.y;t.x=n.x-f,t.y=n.y-v,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new _v({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new _v({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:j(this._onClickPanel,this)}),s=this.api.getZr();i?(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 n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var v=o.getDataExtent(t.thisDim),c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var d=[0,n[1]],p=[0,n[0]],g=[[n[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=n[0]/(v[1]-v[0]),S=t.thisAxis.type==="time",x=-m,b=Math.round(o.count()/n[0]),w;o.each([t.thisDim,l],function(L,I,P){if(b>0&&P%b){S||(x+=m);return}x=S?(+L-v[0])*_:x+m;var E=I==null||isNaN(I)||I==="",R=E?0:Ne(I,c,d,!0);E&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!E&&w&&(g.push([x,0]),y.push([x,0])),E||(g.push([x,R]),y.push([x,R])),w=E}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var C=this.dataZoomModel;function T(L){var I=C.getModel(L?"selectedDataBackground":"dataBackground"),P=new le,E=new Wt({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Ot({shape:{points:f},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(E),P.add(R),P}for(var M=0;M<3;M++){var D=T(M===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!a&&!(n!==!0&&ge(GQ,u.get("type"))<0)){var f=i.getComponent(Si(o),s).axis,v=WQ(o),c,h=u.coordinateSystem;v!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var d=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:d,otherDim:v,otherAxisInverse:c}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),c=n.filler=new _v({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new _v({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:BQ,fill:B.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!dh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,an("handleIcon now needs 'path://' prefix when using a path string"));var x=ht(S,-1,0,2,2,null,!0);x.attr({cursor:UQ(this._orient),draggable:!0,drift:j(this._onDragMove,this,_),ondragend:j(this._onDragEnd,this),onmouseover:j(this._onOverDataInfoTriggerArea,this,!0),onmouseout:j(this._onOverDataInfoTriggerArea,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=q(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ja(x);var C=l.get("handleColor");C!=null&&(x.style.fill=C),o.add(a[_]=x);var T=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;t.add(i[_]=new Pe({silent:!0,invisible:!D,style:Ye(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=c;if(v){var d=q(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Ce({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=ht(l.get("moveHandleIcon"),-g/2,-g/2,g,g,B.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=n.moveZone=new Ce({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:j(this._onActualMoveZoneDrift,this),ondragstart:j(this._onActualMoveZoneDragStart,this),ondragend:j(this._onActualMoveZoneDragEnd,this),onmouseover:j(this._onOverDataInfoTriggerArea,this,!0),onmouseout:j(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ne(t[0],[0,100],n,!0),Ne(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];di(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?Ne(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ne(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Et([Ne(i[0],o,l,!0),Ne(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=Et(a.slice()),o=this._size;A([0,1],function(h){var d=n.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var v=l[f],c=v.getClipPath();c||(c=new Ce,v.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 n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,v;if(t){var c={start:f[0],end:f[1]},h=zk(n,l);if(h){var d=h.calculateDataWindow(c).percentInverted;c={start:d[0],end:d[1]}}v=l.calculateDataWindow(c)}else v=l.getWindow();s=[YO(n,0,v,u),YO(n,1,v,u)]}}var p=Et(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(y){var m=oo(a.handles[y].parent,this.group),_=Bc(y===0?"right":"left",m),S=this._handleWidth/2+zQ,x=un([p[y]+(y===0?-S:S),this._size[1]/2],m);i[y].setStyle({x:x[0],y:x[1],verticalAlign:o===Sv?"middle":_,align:o===Sv?_:"center",text:s[y]})}},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.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,n,a){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,n,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,n,a,i){this._dragging=!0,oa(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=un([n,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 n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new fe(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-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();di(0,l,o,0,u.minSpan!=null?Ne(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ne(u.maxSpan,s,o,!0):null),this._range=Et([Ne(l[0],o,s,!0),Ne(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(oa(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new _v({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?FQ:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=Bk(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(HS);function YO(r,e,t,n){var a=r.get("labelFormatter"),i=r.get("labelPrecision");(i==null||i==="auto")&&(i=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":Qt(n)||df(n)?n.getLabel({value:Math.round(o)}):isFinite(i)?Ee(o,i,!0):o+"";return ne(a)?a(o,s):$(a)?a.replace("{value}",s):s}function WQ(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function UQ(r){return r==="vertical"?"ns-resize":"ew-resize"}function XO(r){r.registerComponentModel(NQ),r.registerComponentView(HQ),WS(r)}function YQ(r){xe(WO),xe(XO)}var ZO={get:function(r,e,t){var n=ae((XQ[r]||{})[e]);return t&&H(n)?n[n.length-1]:n}},XQ={color:{active:["#006edd","#e0ffff"],inactive:[B.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]}},$O=Pt.mapVisual,ZQ=Pt.eachVisual,$Q=H,yx=A,qQ=Et,KQ=Ne,kp=(function(r){N(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,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&dO(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=j(t,this),this.controllerVisuals=JS(this.option.controller,n,t),this.targetVisuals=JS(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,n=this.option.seriesTargets;if(n){var a=[];return yx(n,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 i=this.option.seriesId,o=this.option.seriesIndex;o==null&&i==null&&(o="all");var s=Ls(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return U(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,n){A(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],H(t)&&(t=t.slice(),u=!0);var f=n?t:u?[v(t[0]),v(t[1])]:v(t);if($(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ne(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 v(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=qQ([t.min,t.max]);this._dataExtent=n},e.prototype.getDimension=function(t){var n=this,a=this.option.seriesTargets;if(a){var i=ta(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(t).id});if(i)return i.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var n=t.hostModel.seriesIndex,a=this.getDimension(n);if(a!=null)return t.getDimensionIndex(a);for(var i=t.dimensions,o=i.length-1;o>=0;o--){var s=i[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,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});_e(i,a),_e(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(v){$Q(n.color)&&!v.inRange&&(v.inRange={color:n.color.slice().reverse()}),v.inRange=v.inRange||{color:t.get("gradientColor")}}function u(v,c,h){var d=v[c],p=v[h];d&&!p&&(p=v[h]={},yx(d,function(g,y){if(Pt.isValidType(y)){var m=ZO.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(v){var c=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";yx(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&ae(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ae(h)||(s?m[0]:[m[0],m[0]])),_.symbol=$O(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;ZQ(S,function(b){b>x&&(x=b)}),_.symbolSize=$O(S,function(b){return KQ(b,[0,x],[0,m[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:B.color.transparent,borderColor:B.color.borderTint,contentColor:B.color.theme[0],inactiveColor:B.color.disabled,borderWidth:0,padding:B.size.m,textGap:10,precision:0,textStyle:{color:B.color.secondary}},e})(we),qO=[20,140],jQ=(function(r){N(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,n){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]=qO[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=qO[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):H(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=Et((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent(),i=Q(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=t)&&(i&&n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=KO(this,"outOfRange",this.getExtent()),a=KO(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:t(h,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var v=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(n[l],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ti(kp.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:B.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:B.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}}),e})(kp);function KO(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}var jO=(function(r){N(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,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=js(n.get("padding")||0),i=t.getBoundingRect();t.add(new Ce({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var v=o.controllerVisuals[i||o.getValueState(t)],c=Pt.prepareVisualTypes(v);return A(c,function(h){var d=v[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=v.__alphaForOpacity),Pt.dependsOn(h,n)&&d&&d.applyVisual(t,u,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api,i=bt(n,a).refContainer;Qc(t,n.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e})(Xe),JO=[["left","right","width"],["top","bottom","height"]];function QO(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=JO[o],l=[0,null,10],u={},f=0;f<3;f++)u[JO[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:n[s[f]];var v=[["x","width",3],["y","height",0]][o],c=Je(u,i,n.padding);return s[(c.margin[v[2]]||0)+c[v[0]]+c[v[1]]*.5<i[v[1]]*.5?0:1]}function Op(r,e){return A(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Jn=Ne,JQ=A,eN=Math.min,mx=Math.max,QQ=12,eee=6,tee=(function(r){N(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,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=j(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=j(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";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),v=this._applyTransform(a===0?"bottom":"top",u),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Pe({style:Ye(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(c==="horizontal"?"middle":v),align:h.get("align")||(c==="horizontal"?v:"center"),text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=QO(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new le;u.add(f),f.add(a.outOfRange=tN()),f.add(a.inRange=tN(null,s?nN(this._orient):null,j(this._dragHandle,this,"all",!1),j(this._dragHandle,this,"all",!0))),f.setClipPath(new Ce({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=n.textStyleModel.getTextRect("\u56FD"),c=mx(v.width,v.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,c,o),this._createHandle(n,u,1,i,c,o)),this._createIndicator(n,u,i,c,o),t.add(u)},e.prototype._createHandle=function(t,n,a,i,o,s){var l=j(this._dragHandle,this,a,!1),u=j(this._dragHandle,this,a,!0),f=wn(t.get("handleSize"),i[0]),v=ht(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=nN(this._orient);v.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){oa(y.event)}}),v.x=i[0]/2,v.useStyle(t.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),to(v,!0),n.add(v);var h=this.visualMapModel.textStyleModel,d=new Pe({cursor:c,draggable:!0,drift:l,onmousemove:function(y){oa(y.event)},ondragend:u,style:Ye(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=v,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},e.prototype._createIndicator=function(t,n,a,i,o){var s=wn(t.get("indicatorSize"),a[0]),l=ht(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 Dt){var f=l.style;l.useStyle(G({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var v=this.visualMapModel.textStyleModel,c=new Pe({silent:!0,invisible:!0,style:Ye(v,{x:0,y:0,text:""})});this.group.add(c);var h=[(o==="horizontal"?i/2:eee)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():rN(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Jn(n[0],a,i,!0),Jn(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];di(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[Jn(i[0],o,s,!0),Jn(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,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 no(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new le(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",a.mainGroup);JQ([0,1],function(v){var c=o[v];c.setStyle("fill",n.handlesColor[v]),c.y=t[v];var h=Jn(t[v],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var p=un(a.handleLabelPoints[v],oo(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[v].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=Jn(t,s,u,!0),g=l[0]-d/2,y={x:v.x,y:v.y};v.y=p,v.x=g;var m=un(f.indicatorLabelPoint,oo(v,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:h}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(w,T),_.animateTo(C,T)}else v.attr(w),_.attr(C);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this.api.enterBlur(M[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=eN(mx(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[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,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=eN(mx(o[0],t),o[1]);var l=ree(a,s,o),u=[t-l,t+l],f=Jn(t,o,s,!0),v=[Jn(u[0],o,s,!0),Jn(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),n&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,h=[];(n||rN(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(v));var d=rz(c,h);this._dispatchHighDown("downplay",Op(d[0],a)),this._dispatchHighDown("highlight",Op(d[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(To(t.target,function(l){var u=ve(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.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 n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Op(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,n,a,i){var o=oo(n,i?null:this.group);return H(t)?un(t,o,a):Bc(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(jO);function tN(r,e,t,n){return new Wt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){oa(a.event)},ondragend:n})}function ree(r,e,t){var n=QQ/2,a=r.get("hoverLinkDataSize");return a&&(n=Jn(a,e,t,!0)/2),n}function rN(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function nN(r){return r==="vertical"?"ns-resize":"ew-resize"}var nee={type:"selectDataRange",event:"dataRangeSelected",update:"update"},aee=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},iee=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(CJ(n.stateList,n.targetVisuals,j(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(j(oee,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function oee(r,e,t,n){for(var a=e.targetVisuals[n],i=Pt.prepareVisualTypes(a),o={color:af(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,v,c)}return o.color;function v(h){return o[h]}function c(h,d){o[h]=d}}var _x=A;function see(r){var e=r&&r.visualMap;H(e)||(e=e?[e]:[]),_x(e,function(t){if(t){Xl(t,"splitList")&&!Xl(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&H(n)&&_x(n,function(i){ie(i)&&(Xl(i,"start")&&!Xl(i,"min")&&(i.min=i.start),Xl(i,"end")&&!Xl(i,"max")&&(i.max=i.end))});var a=t.seriesTargets;a&&H(a)&&_x(a,function(i){(!ie(i)||i.dimension==null)&&console.warn("Each seriesTarget should have a dimension property"),i.seriesIndex==null&&i.seriesId==null&&console.warn("Each seriesTarget should have either seriesIndex or seriesId")})}})}function Xl(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var aN=!1;function iN(r){aN||(aN=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(nee,aee),A(iee,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(see))}function oN(r){r.registerComponentModel(jQ),r.registerComponentView(tee),iN(r)}var lee=(function(r){N(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,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],uee[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=ae(i)):(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,n={},a=Pt.listVisualTypes(),i=this.isCategory();A(t.pieces,function(s){A(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),A(n,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=ZO.get(l,f==="inRange"?"active":"inactive",i)})},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,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;A(i,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 n=Pt.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Pt.findPieceIndex(l,a);f===t&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,v){var c=i.getRepresentValue({interval:f});v||(v=i.getValueState(c));var h=t(c,v);f[0]===-1/0?a[0]=h:f[1]===1/0?a[1]=h:n.push({value:f[0],color:h},{value:f[1],color:h})}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 A(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=ti(kp.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})(kp),uee={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),qg(r),A(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;A(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),sN(e,r)},pieces:function(r){var e=this.option;A(e.pieces,function(t,n){ie(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],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=[],v=0;v<2;v++){for(var c=[["gte","gt","min"],["lte","lt","max"]][v],h=0;h<3&&o[v]==null;h++)o[v]=t[c[h]],s[v]=l[h],f[v]=h===2;o[v]==null&&(o[v]=u[v])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Pt.retrieveVisuals(t),r.push(a)},this),sN(e,r),qg(r),A(r,function(t){var n=t.close,a=[["<","\u2264"][n[1]],[">","\u2265"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function sN(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var fee=(function(r){N(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 n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=At(n.get("showLabel",!0),!u),v=!n.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),A(l.viewPieceList,function(c){var h=c.piece,d=new le;d.onclick=j(this._onItemClick,this,h),this._enableHoverLink(d,c.indexInModelPieceList);var p=n.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Pe({style:Ye(i,{x:y==="right"?-a:s[0]+a,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:Q(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:v}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),go(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Op(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return QO(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new le,l=this.visualMapModel.textStyleModel;s.add(new Pe({style:Ye(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=U(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=ht(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=ae(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,A(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})(jO);function lN(r){r.registerComponentModel(lee),r.registerComponentView(fee),iN(r)}function vee(r){xe(oN),xe(lN)}var cee=(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:$T(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r})(),hee=(function(r){N(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,n){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new cee(this);if(this._target=null,this.ecModel.eachSeries(function(a){fR(a,null)}),this.shouldShow()){var n=this.getTarget();fR(n.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,Le("series."+t.subType+" is not supported in thumbnail.",!0)):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:B.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:B.color.neutral30,borderColor:B.color.neutral40,opacity:.3},z:10},e})(we),dee=(function(r){N(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,n,a){if(this._api=a,this._model=t,this._coordSys||(this._coordSys=new Cd),!this._isEnabled()){this._clear();return}this._renderVersion=a.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||B.color.neutral00);var l=bt(t,a).refContainer,u=Je(CC(t,!0),l),f=s.lineWidth||0,v=this._contentRect=so(u.clone(),f/2,!0,!0),c=new le;i.add(c),c.setClipPath(new Ce({shape:v.plain()}));var h=this._targetGroup=new le;c.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Ce({style:s,shape:d,silent:!1,cursor:"grab"}));var p=t.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);c.add(this._windowRect=new Ce({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),fN(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),fN(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=t.z2Range.min-10,Ld(a,s.x,s.y,s.width,s.height);var l=Je({left:"center",top:"center",aspect:s.width/s.height},i);Pd(a,l.x,l.y,l.width,l.height),$f(o,a,Ko),o.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var n=this._bridgeRendered;n&&n.renderVersion===t.renderVersion&&(n.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var n=_r([],t.targetTrans),a=mr([],Md(null,this._coordSys),n);this._transThisToTarget=_r([],a);var i=t.viewportRect;i?i=i.clone():i=new se(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(ue({r:s},i))}},e.prototype._resetRoamController=function(t){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new Zo(a.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return n._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",j(this._onPan,this)).on("zoom",j(this._onZoom,this))},e.prototype._onPan=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=it([],[t.oldX,t.oldY],n),i=it([],[t.oldX-t.dx,t.oldY-t.dy],n);this._api.dispatchAction(uN(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},e.prototype._onZoom=function(t){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=it([],[t.originX,t.originY],n);this._api.dispatchAction(uN(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 n=t.getTarget().baseMapProvider;return!!n},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})(Xe);function uN(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",n={type:t};return n[r.mainType+"Id"]=r.id,G(n,e),n}function fN(r,e){var t=lo(r);zc(e.group,t.z,t.zlevel)}function pee(r){r.registerComponentModel(hee),r.registerComponentView(dee)}var gee={label:{enabled:!0},decal:{show:!1}},vN=Se(),cN=Se(),yee=Au(mee);function mee(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=cN(r).scope||(cN(r).scope={}),a=ae(gee);_e(a.label,r.getLocaleModel().get("aria"),!1),_e(t.option,a,!1),i(),o();function i(){var f=t.getModel("decal"),v=f.get("show");if(v){var c=K();r.eachSeries(function(h){h.isColorBySeries()||(vN(h).scope=c.get(h.type)||c.set(h.type,{}))}),r.eachSeries(function(h){if(ne(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var _=Dm(h.ecModel,h.name,n,r.getSeriesCount()),S=d.getVisual("decal");d.setVisual("decal",x(S,_))}else{var p=h.getRawData(),g={},y=vN(h).scope;d.each(function(b){var w=d.getRawIndex(b);g[w]=b});var m=p.count();p.each(function(b){var w=g[b],C=p.getName(b)||b+"",T=Dm(h.ecModel,C,y,m),M=d.getItemVisual(w,"decal");d.setItemVisual(w,"decal",x(M,T))})}function x(b,w){var C=b?G(G({},w),b):w;return C.dirty=!0,C}})}}function o(){var f=e.getZr().dom;if(f){var v=r.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=ue(c.option,v),!!c.get("enabled")){if(f.setAttribute("role","img"),c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var h=r.getSeriesCount(),d=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(h,p),y;if(!(h<1)){var m=l();if(m){var _=c.get(["general","withTitle"]);y=s(_,{title:m})}else y=c.get(["general","withoutTitle"]);var S=[],x=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);y+=s(x,{seriesCount:h}),r.eachSeries(function(T,M){if(M<g){var D=void 0,L=T.get("name"),I=L?"withName":"withoutName";D=h>1?c.get(["series","multiple",I]):c.get(["series","single",I]),D=s(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var P=T.getData();if(P.count()>d){var E=c.get(["data","partialData"]);D+=s(E,{displayCnt:d})}else D+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),k=c.get(["data","excludeDimensionId"]),V=[],z=0;z<P.count();z++)if(z<d){var F=P.getName(z),Y=k?Ve(P.getValues(z),function(X,ee){return ge(k,ee)===-1}):P.getValues(z),Z=c.get(["data",F?"withName":"withoutName"]);V.push(s(Z,{name:F,value:Y.join(R)}))}D+=V.join(R)+O,S.push(D)}});var b=c.getModel(["series","multiple","separator"]),w=b.get("middle"),C=b.get("end");y+=S.join(w)+C,f.setAttribute("aria-label",y)}}}}function s(f,v){if(!$(f))return f;var c=f;return A(v,function(h,d){c=c.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),c}function l(){var f=r.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var v=r.getLocaleModel().get(["series","typeNames"]);return v[f]||v.chart}}function _ee(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},A(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function See(r){r.registerPreprocessor(_ee),r.registerVisual(r.PRIORITY.VISUAL.ARIA,yee)}var hN={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},xee=(function(){function r(e){var t=this._condVal=$(e)?new RegExp(e):$p(e)?e:null;if(t==null){var n="";n=tr("Illegal regexp",e,"in"),ze(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return $(t)?this._condVal.test(e):Re(t)?this._condVal.test(e+""):!1},r})(),bee=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),wee=(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})(),Tee=(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})(),Cee=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),Aee=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},r})();function Sx(r,e){if(r===!0||r===!1){var t=new bee;return t.value=r,t}var n="";return pN(r)||(n=tr("Illegal config. Expect a plain object but actually",r),ze(n)),r.and?dN("and",r,e):r.or?dN("or",r,e):r.not?Mee(r,e):Dee(r,e)}function dN(r,e,t){var n=e[r],a="";a=tr('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",e),H(n)||ze(a),n.length||ze(a);var i=r==="and"?new wee:new Tee;return i.children=U(n,function(o){return Sx(o,t)}),i.children.length||ze(a),i}function Mee(r,e){var t=r.not,n="";n=tr('"not" condition should only be `not: {}`.',"Illegal condition:",r),pN(t)||ze(n);var a=new Cee;return a.child=Sx(t,e),a.child||ze(n),a}function Dee(r,e){for(var t="",n=e.prepareGetValue(r),a=[],i=Ae(r),o=r.parser,s=o?vA(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=J(hN,u)?hN[u]:u,v=r[u],c=s?s(v):v,h=CF(f,c)||f==="reg"&&new xee(c);h||(t=tr('Illegal relational operation: "'+u+'" in condition:',r),ze(t)),a.push(h)}}a.length||(t=tr("Relational condition must have at least one operator.","Illegal condition:",r),ze(t));var d=new Aee;return d.valueGetterParam=n,d.valueParser=s,d.getValue=e.getValue,d.subCondList=a,d}function pN(r){return ie(r)&&!Vt(r)}var Iee=(function(){function r(e,t){this._cond=Sx(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function Lee(r,e){return new Iee(r,e)}var Pee={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=Lee(r.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;J(s,"dimension")||(l=tr('Relation condition must has prop "dimension" specified.',"Illegal condition:",s),ze(l));var f=e.getDimensionInfo(u);return f||(l=tr("Can not find dimension info via: "+u+`.
69
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
70
+ `,"Illegal condition:",s,`.
71
+ `),ze(l)),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),n.evaluate()&&a.push(t);return{data:a}}},xx="";xx=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ");var Ree={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,n="",a=Ue(t);a.length||(n="Empty `config` in sort transform.",ze(n));var i=[];A(a,function(f){var v=f.dimension,c=f.order,h=f.parser,d=f.incomparable;if(v==null&&(n='Sort transform config must has "dimension" specified.'+xx,ze(n)),c!=="asc"&&c!=="desc"&&(n='Sort transform config must has "order" specified.'+xx,ze(n)),d&&d!=="min"&&d!=="max"){var p="";p='incomparable must be "min" or "max" rather than "'+d+'".',ze(p)}if(c!=="asc"&&c!=="desc"){var g="";g='order must be "asc" or "desc" rather than "'+c+'".',ze(g)}var y=e.getDimensionInfo(v);y||(n=tr("Can not find dimension info via: "+v+`.
72
+ `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
73
+ `,"Illegal config:",f,`.
74
+ `),ze(n));var m=h?vA(h):null;h&&!m&&(n=tr("Invalid parser name "+h+`.
75
+ `,"Illegal config:",f,`.
76
+ `),ze(n)),i.push({dimIdx:y.index,parser:m,comparator:new hA(c,d)})});var o=e.sourceFormat;o!==kt&&o!==Cr&&(n='sourceFormat "'+o+'" is not supported yet',ze(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,v){for(var c=0;c<i.length;c++){var h=i[c],d=e.retrieveValueFromItem(f,h.dimIdx),p=e.retrieveValueFromItem(v,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function Eee(r){r.registerTransform(Pee),r.registerTransform(Ree)}var kee=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new xA(this),bA(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),bA(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:sn},e})(we),Oee=(function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Xe);function Nee(r){r.registerComponentModel(kee),r.registerComponentView(Oee)}var Qn=Pn.CMD;function Zl(r,e){return Math.abs(r-e)<1e-5}function bx(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,P){a&&a.length>2&&n.push(a),a=[I,P]}function f(I,P,E,R){Zl(I,E)&&Zl(P,R)||a.push(I,P,E,R,E,R)}function v(I,P,E,R,O,k){var V=Math.abs(P-I),z=Math.tan(V/4)*4/3,F=P<I?-1:1,Y=Math.cos(I),Z=Math.sin(I),X=Math.cos(P),ee=Math.sin(P),ye=Y*O+E,Be=Z*k+R,ce=X*O+E,te=ee*k+R,me=O*z*F,re=k*z*F;a.push(ye-me*Z,Be+re*Y,ce+me*ee,te-re*X,ce,te)}for(var c,h,d,p,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===Qn.L||y===Qn.C||y===Qn.Q)&&(a=[s,l])),y){case Qn.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case Qn.L:c=e[g++],h=e[g++],f(i,o,c,h),i=c,o=h;break;case Qn.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case Qn.Q:c=e[g++],h=e[g++],d=e[g++],p=e[g++],a.push(i+2/3*(c-i),o+2/3*(h-o),d+2/3*(c-d),p+2/3*(h-p),d,p),i=d,o=p;break;case Qn.A:var _=e[g++],S=e[g++],x=e[g++],b=e[g++],w=e[g++],C=e[g++]+w;g+=1;var T=!e[g++];c=Math.cos(w)*x+_,h=Math.sin(w)*b+S,m?(s=c,l=h,u(s,l)):f(i,o,c,h),i=Math.cos(C)*x+_,o=Math.sin(C)*b+S;for(var M=(T?-1:1)*Math.PI/2,D=w;T?D>C:D<C;D+=M){var L=T?Math.max(D+M,C):Math.min(D+M,C);v(D,L,_,S,x,b)}break;case Qn.R:s=i=e[g++],l=o=e[g++],c=s+e[g++],h=l+e[g++],u(c,l),f(c,l,c,h),f(c,h,s,h),f(s,h,s,l),f(s,l,c,l);break;case Qn.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function Tx(r,e,t,n,a,i,o,s,l,u){if(Zl(r,t)&&Zl(e,n)&&Zl(a,o)&&Zl(i,s)){l.push(o,s);return}var f=2/u,v=f*f,c=o-r,h=s-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=t-r,g=n-e,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<v&&S<v){l.push(o,s);return}var x=c*p+h*g,b=-c*y-h*m,w=_-x*x,C=S-b*b;if(w<v&&x>=0&&C<v&&b>=0){l.push(o,s);return}var T=[],M=[];Ha(r,t,a,o,.5,T),Ha(e,n,i,s,.5,M),Tx(T[0],M[0],T[1],M[1],T[2],M[2],T[3],M[3],l,u),Tx(T[4],M[4],T[5],M[5],T[6],M[6],T[7],M[7],l,u)}function Bee(r,e){var t=bx(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],v=i[u++],c=i[u++],h=i[u++],d=i[u++],p=i[u++];Tx(s,l,f,v,c,h,d,p,o,e),s=d,l=p}n.push(o)}return n}function gN(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*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,v=t-f;if(v>0)for(var u=0;u<v;u++)l[u%o]+=1;return l}function yN(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),v=gN([l,u],f?0:1,e),c=(f?s:u)/v.length,h=0;h<v.length;h++)for(var d=(f?u:s)/v[h],p=0;p<v[h];p++){var g={};f?(g.startAngle=i+c*h,g.endAngle=i+c*(h+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+c*h,g.r=n+c*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function Vee(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=gN([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,c=0;c<o.length;c++)for(var h=r[l]/o[c],d=0;d<o[c];d++){var p={};p[u]=c*v,p[f]=d*h,p[s]=v,p[l]=h,p.x+=r.x,p.y+=r.y,t.push(p)}}function mN(r,e,t,n){return r*n-t*e}function zee(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,v=s-i,c=mN(f,v,l,u);if(Math.abs(c)<1e-6)return null;var h=r-a,d=e-i,p=mN(h,d,f,v)/c;return p<0||p>1?null:new fe(p*l+r,p*u+e)}function Gee(r,e,t){var n=new fe;fe.sub(n,t,e),n.normalize();var a=new fe;fe.sub(a,r,e);var i=a.dot(n);return i}function $l(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function Fee(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=zee(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:Gee(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var v=u;u=f,f=v}for(var c=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[c],p=[h],i=u.idx+1;i<=f.idx;i++)$l(d,r[i].slice());$l(d,h),$l(d,c);for(var i=f.idx+1;i<=u.idx+n;i++)$l(p,r[i%n].slice());return $l(p,c),$l(p,h),[{points:d},{points:p}]}function _N(r){var e=r.points,t=[],n=[];_c(e,t,n);var a=new se(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new fe,f=new fe;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),Fee(e,u,f)}function Np(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);Np(r,i[0],a,n),Np(r,i[1],t-a,n)}return n}function Hee(r,e){for(var t=[],n=0;n<e;n++)t.push(Vy(r));return t}function Wee(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function Uee(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function Yee(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":Vee(n,e,t),a=Ce;break;case"sector":yN(n,e,t),a=Ht;break;case"circle":yN({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=Ht;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=U(Bee(r.getUpdatedPathProxy(),o),function(y){return Uee(y)}),l=s.length;if(l===0)Np(_N,{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,v=U(s,function(y){var m=[],_=[];_c(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});v.sort(function(y,m){return m.area-y.area});for(var c=e,u=0;u<l;u++){var h=v[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(h.area/f*e);d<0||(Np(_N,{points:h.poly},d,t),c-=d)}}a=Wt;break}if(!a)return Hee(r,e);for(var p=[],u=0;u<t.length;u++){var g=new a;g.setShape(t[u]),Wee(r,g),p.push(g)}return p}function Xee(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,v=[o[0],o[1]],c=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],x=o[h++];if(c<=0){v.push(g,y,m,_,S,x);continue}for(var b=Math.min(c,f-1)+1,w=1;w<=b;w++){var C=w/b;Ha(d,g,m,S,C,a),Ha(p,y,_,x,C,i),d=a[3],p=i[3],v.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}c-=b-1}return o===r?[v,e]:[r,v]}function SN(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function Zee(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,v=void 0;l?u?(t=Xee(l,u),f=t[0],v=t[1],n=f,a=v):(v=SN(a||l,l),f=l):(f=SN(n||u,u),v=u),i.push(f),o.push(v)}return[i,o]}function xN(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],v=s*f-u*l;e+=v,t+=(s+u)*v,n+=(l+f)*v}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function $ee(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,v=0,c=0;c<s;c+=2){var h=c===0?f:(f+c-2)%l+2,d=r[h]-t[0],p=r[h+1]-t[1],g=e[c]-n[0],y=e[c+1]-n[1],m=g-d,_=y-p;v+=m*m+_*_}v<i&&(i=v,o=u)}return o}function qee(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function Kee(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=xN(s),f=xN(l);i==null&&(i=u[2]<0!=f[2]<0);var v=[],c=[],h=0,d=1/0,p=[],g=s.length;i&&(s=qee(s));for(var y=$ee(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;v[_+2]=s[S]-u[0],v[_+3]=s[S+1]-u[1]}if(v[0]=s[y]-u[0],v[1]=s[y+1]-u[1],t>0)for(var x=n/t,b=-n/2;b<=n/2;b+=x){for(var w=Math.sin(b),C=Math.cos(b),T=0,_=0;_<s.length;_+=2){var M=v[_],D=v[_+1],L=l[_]-f[0],I=l[_+1]-f[1],P=L*C-I*w,E=L*w+I*C;p[_]=P,p[_+1]=E;var R=P-M,O=E-D;T+=R*R+O*O}if(T<d){d=T,h=b;for(var k=0;k<p.length;k++)c[k]=p[k]}}else for(var V=0;V<g;V+=2)c[V]=l[V]-f[0],c[V+1]=l[V+1]-f[1];a.push({from:v,to:c,fromCp:u,toCp:f,rotation:-h})}return a}function Bp(r){return r.__isCombineMorphing}var bN="__mOriginal_";function Vp(r,e,t){var n=bN+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function xv(r,e){var t=bN+e;r[t]&&(r[e]=r[t],r[t]=null)}function wN(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function TN(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=Zee(bx(t),bx(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&wN(i,s),l&&wN(o,l),Vp(e,"updateTransform",{replace:u}),e.transform=null;var f=Kee(i,o,10,Math.PI),v=[];Vp(e,"buildPath",{replace:function(c){for(var h=e.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,x=y.fromCp,b=y.toCp,w=Math.sin(S),C=Math.cos(S);iu(p,x,b,h);for(var T=0;T<m.length;T+=2){var M=m[T],D=m[T+1],L=_[T],I=_[T+1],P=M*d+L*h,E=D*d+I*h;v[T]=P*C-E*w+p[0],v[T+1]=P*w+E*C+p[1]}var R=v[0],O=v[1];c.moveTo(R,O);for(var T=2;T<m.length;){var L=v[T++],I=v[T++],k=v[T++],V=v[T++],z=v[T++],F=v[T++];R===L&&O===I&&k===z&&V===F?c.lineTo(z,F):c.bezierCurveTo(L,I,k,V,z,F),R=z,O=F}}}})}function Cx(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;TN(r,e),e.__morphT=0;function i(){xv(e,"buildPath"),xv(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},ue({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function jee(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(e&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function zp(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=U(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(v,t),n=Math.max(f,n),a=Math.max(v,a),[f,v]}),o=U(i,function(s,l){return{cp:s,z:jee(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function CN(r){return Yee(r.path,r.count)}function Ax(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Jee(r,e,t){var n=[];function a(x){for(var b=0;b<x.length;b++){var w=x[b];Bp(w)?a(w.childrenRef()):w instanceof Me&&n.push(w)}}a(r);var i=n.length;if(!i)return Ax();var o=t.dividePath||CN,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Ax();n=zp(n),s=zp(s);for(var l=t.done,u=t.during,f=t.individualDelay,v=new _n,c=0;c<i;c++){var h=n[c],d=s[c];d.parent=e,d.copyTransform(v),f||TN(h,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}Vp(e,"addSelfToZr",{after:function(x){p(x)}}),Vp(e,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,xv(e,"addSelfToZr"),xv(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},c=0;c<y;c++){var S=f?ue({delay:(t.delay||0)+f(c,y,n[c],s[c]),done:_},t):t;Cx(n[c],s[c],S)}else e.__morphT=0,e.animateTo({__morphT:1},ue({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)xv(r[x],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Qee(r,e,t){var n=e.length,a=[],i=t.dividePath||CN;function o(h){for(var d=0;d<h.length;d++){var p=h[d];Bp(p)?o(p.childrenRef()):p instanceof Me&&a.push(p)}}if(Bp(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Vy(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Ax()}a=zp(a),e=zp(e);for(var v=t.individualDelay,u=0;u<n;u++){var c=v?ue({delay:(t.delay||0)+v(u,n,a[u],e[u])},t):t;Cx(a[u],e[u],c)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function AN(r){return H(r[0])}function MN(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-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 i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var ete={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=Vy(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function Mx(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=Fs("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=G({setToFinal:!0},o),u,f;AN(r)&&(u=r,f=e),AN(e)&&(u=e,f=r);function v(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var C=m?b[0]:w,T=m?w:b[0];if(Bp(C))v({many:[C],one:T},!0,_,S,!0);else{var M=s?ue({delay:s(_,S)},l):l;Cx(C,T,M),i(C,T,C,T,M)}}else for(var D=ue({dividePath:ete[t],individualDelay:s&&function(O,k,V,z){return s(O+_,S)}},l),L=m?Jee(b,w,D):Qee(w,b,D),I=L.fromIndividuals,P=L.toIndividuals,E=I.length,R=0;R<E;R++){var M=s?ue({delay:s(R,E)},l):l;i(I[R],P[R],m?b[R]:y.one,m?y.one:b[R],M)}}for(var c=u?u===r:r.length>e.length,h=u?MN(f,u):MN(c?e:r,[c?r:e]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)v(h[p],c,g,d),g+=h[p].many.length}function fs(r){if(!r)return[];if(H(r)){for(var e=[],t=0;t<r.length;t++)e.push(fs(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof Me&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var DN=1e4,tte=0,IN=1,LN=2,rte=Se();function nte(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var a=r.getDimensionInfo(t[n]);if(a&&a.otherDims[e]===0)return t[n]}}function ate(r,e,t){var n=r.getDimensionInfo(t),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,e);return a&&a.categories[i]||i+""}}function PN(r,e,t,n){var a=n?"itemChildGroupId":"itemGroupId",i=nte(r,a);if(i){var o=ate(r,e,i);return o}var s=r.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return t||r.getId(e)}function RN(r){var e=[];return A(r,function(t){var n=t.data,a=t.dataGroupId;if(n.count()>DN){et("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:PN(n,o,a,!1),childGroupId:PN(n,o,a,!0),divide:t.divide,dataIndex:o})}),e}function Dx(r,e,t){r.traverse(function(n){n instanceof Me&&Ke(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Ix(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function ql(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function ite(r,e,t){var n=Fs("update",t,e);n&&r.traverse(function(a){if(a instanceof Vr){var i=J5(a);i&&a.animateFrom({style:i},n)}})}function ote(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function EN(r,e,t){var n=RN(r),a=RN(e);function i(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?G(G({},x.style),_.style):_.style},w)}var o=!1,s=tte,l=K(),u=K();A(n,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var v=a[f].groupId;if(u.get(v)){s=IN;break}var c=a[f].childGroupId;if(c&&l.get(c)){s=LN;break}}function h(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===IN?x.childGroupId:x.groupId:s===LN?x.childGroupId:x.groupId}}var d=ote(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var x=n[S],b=a[_],w=b.data.hostModel,C=x.data.getItemGraphicEl(x.dataIndex),T=b.data.getItemGraphicEl(b.dataIndex);if(C===T){T&&ite(T,b.dataIndex,w);return}C&&p[C.id]||T&&(ql(T),C?(ql(C),Ix(C),o=!0,Mx(fs(C),fs(T),b.divide,w,_,i)):Dx(T,w,_))}new wa(n,a,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var x=a[_],b=x.data,w=b.hostModel,C=b.getItemGraphicEl(x.dataIndex),T=Ve(U(S,function(M){return n[M].data.getItemGraphicEl(n[M].dataIndex)}),function(M){return M&&M!==C&&!p[M.id]});C&&(ql(C),T.length?(A(T,function(M){ql(M),Ix(M)}),o=!0,Mx(fs(T),fs(C),x.divide,w,_,i)):Dx(C,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=n[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&p[b.id])){var w=Ve(U(_,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==b}),C=a[_[0]].data.hostModel;w.length&&(A(w,function(T){return ql(T)}),b?(ql(b),Ix(b),o=!0,Mx(fs(b),fs(w),x.divide,C,_[0],i)):A(w,function(T){return Dx(T,C,_[0])}))}}).updateManyToMany(function(_,S){new wa(S,_,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return a[x].data.getId(a[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&A(e,function(_){var S=_.data,x=S.hostModel,b=x&&t.getViewOfSeriesModel(x),w=Fs("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(C){C instanceof Me&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function kN(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function ON(r){return H(r)?r.sort().join(","):r}function bi(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function ste(r,e){var t=K(),n=K(),a=K();A(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=kN(o),v=ON(f);n.set(v,{dataGroupId:l,data:u}),H(f)&&A(f,function(c){a.set(c,{key:v,dataGroupId:l,data:u})})});function i(o){t.get(o)&&et("Duplicated seriesKey in universalTransition "+o)}return A(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=kN(o),f=ON(u),v=n.get(f);if(v)i(f),t.set(f,{oldSeries:[{dataGroupId:v.dataGroupId,divide:bi(v.data),data:v.data}],newSeries:[{dataGroupId:s,divide:bi(l),data:l}]});else if(H(u)){i(f);var c=[];A(u,function(p){var g=n.get(p);g.data&&c.push({dataGroupId:g.dataGroupId,divide:bi(g.data),data:g.data})}),c.length&&t.set(f,{oldSeries:c,newSeries:[{dataGroupId:s,data:l,divide:bi(l)}]})}else{var h=a.get(u);if(h){var d=t.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:bi(h.data)}],newSeries:[]},t.set(h.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:bi(l)})}}}}),t}function NN(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function lte(r,e,t,n){var a=[],i=[];A(Ue(r.from),function(o){var s=NN(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:bi(e.oldData[s]),groupIdDim:o.dimension})}),A(Ue(r.to),function(o){var s=NN(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:bi(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&EN(a,i,n)}function ute(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){A(Ue(n.seriesTransition),function(a){A(Ue(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][sh]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=rte(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)A(Ue(i),function(h){lte(h,a,n,t)});else{var o=ste(a,n);A(o.keys(),function(h){var d=o.get(h);EN(d.oldSeries,d.newSeries,t)})}A(n.updatedSeries,function(h){h[sh]&&(h[sh]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],v=0;v<s.length;v++){var c=s[v].getData();c.count()<DN&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(c))}})}var fte=(function(){function r(e,t){w0(this,r.decoratedMethods),this._outOfBrk=C0(null,t);var n=this._linear=C0(null,t);T0(this,n),this.breaks=e&&e.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<e&&e<a.vmax){var i=t(e,a.vmax);return W(i>=0&&rn(i)===i),i}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return t==null||t===Ca?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(pr,e,t)},setExtent2:function(e,t,n){Hi(t,n)&&(e===pr&&cte(this,[t,n]),this._outOfBrk.setExtent2(e,t,n),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(n,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===Ca)return e;for(var n=BN,a=VN,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){e>s.vmin?n+=s.vmin-a+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal:n+=e-a,a=s.vmax,i=!1;break}n+=s.vmin-a+s.gapReal,a=s.vmax}return i&&(n+=e-a),n},transformOut:function(e,t){if(t&&t.depth===Ca)return e;for(var n=BN,a=VN,i=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=n+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-n,a=l.vmax,i=!1;break}n=f,a=l.vmax}return i&&(o=a+e-n),o}},r})();function vte(r,e){return new fte(r,e)}var BN=0,VN=0;function cte(r,e){var t=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=Lx(s,e);if(u){var f=u.vmin!==s.vmin,v=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!(f&&v))if(f||v){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=c,i[h][l.type].inExtFrac=c/(s.vmax-s.vmin),i[h][l.type].val=l.val}else n[l.type].span+=c,n[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?Te(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function hte(r,e,t,n,a,i){r!=="no"&&A(t,function(o){var s=Lx(o,i);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],f=n(u),v=a*3/4;f>s.vmin-v&&f<s.vmax+v&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&e.splice(l,1)}})}function dte(r,e,t,n){A(e,function(a){var i=Lx(a,t);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:n?n(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:n?n(i):void 0}))}),e.length&&r.sort(function(a,i){return a.value-i.value})}function Lx(r,e){var t=Te(r.vmin,e[0]),n=Ge(r.vmax,e[1]);return t<n||t===n&&t>e[0]&&t<e[1]?{vmin:t,vmax:n,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function Px(r,e,t){var n=[];if(!r)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5?!0:(Le(s+" must be >= 0 and < 1, rather than "+o+" ."),!1)}A(r,function(o){if(!o||o.start==null||o.end==null){Le("The input axis breaks start/end should not be empty.");return}if(!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($(o.gap)){var u=yr(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 v=e.parse(o.gap);(!isFinite(v)||v<0)&&(Le("Axis breaks gap must positive finite rather than ("+o.gap+")."),v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&A(["vmin","vmax"],function(h){s[h]<0&&(Le("Axis break."+h+" must not be negative."),s[h]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return A(n,function(o,s){i>o.vmin&&(Le("Axis breaks must not overlap."),n[s]=null),i=o.vmax}),{breaks:Ve(n,function(o){return!!o})}}function Rx(r,e){return Ex(e)===Ex(r)}function Ex(r){return r.start+"_\0_"+r.end}function pte(r,e,t){var n=[];A(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&n.push([o])}),A(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var l=ta(n,function(u){return Rx(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return A(n,function(i){i.length===2&&a.push(t?i:[r[i[0]],r[i[1]]])}),a}function gte(r,e,t,n){if(e.break){var a=e.break.parsedBreak,i=ta(t,function(f){return Rx(f.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:n,depth:Ca},s=r.transformOut(a.vmin,o),l=r.transformOut(a.vmax,o),u={vmin:s,vmax:l,breakOption:a.breakOption,gapParsed:ae(i.gapParsed),gapReal:a.gapReal};return{tickVal:u[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}}function yte(r,e,t,n,a){a.original=Px(r,e,t);var i=a.transformed=Px(r,e,t),o=a.lookup;i.breaks=U(i.breaks,function(s,l){var u={depth:Ca},f=e.transformIn(s.vmin,u),v=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[n+l]=f,o.to[n+l]=s.vmin,o.from[n+l+1]=v,o.to[n+l+1]=s.vmax,{vmin:f,vmax:v,gapParsed:c,gapReal:s.gapReal,breakOption:s.breakOption}})}var mte={vmin:"start",vmax:"end"};function _te(r,e){return e&&(r=r||{},r.break={type:mte[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function Ste(){mG({createBreakScaleMapper:vte,pruneTicksByBreak:hte,addBreaksToTicks:dte,parseAxisBreakOption:Px,identifyAxisBreak:Rx,serializeAxisBreakIdentifier:Ex,retrieveAxisBreakPairs:pte,getTicksBreakOutwardTransform:gte,parseAxisBreakOptionInwardTransform:yte,makeAxisLabelFormatterParamBreak:_te})}var zN=Se();function xte(r,e){var t=ta(r,function(n){return vt().identifyAxisBreak(n.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function bte(r){A(r,function(e){return e.shouldRemove=!0})}function wte(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function Tte(r,e,t,n,a){var i=t.axis;if(i.scale.isBlank()||!vt())return;var o=vt().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(T){return T.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 v=s.get("expandOnClick"),c=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new le({ignoreModelZ:!0}),S=i.isHorizontal(),x=zN(e).visualList||(zN(e).visualList=[]);bte(x);for(var b=function(T){var M=o[T][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(M.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(M.vmax,!0)),D[1]<D[0]&&D.reverse();var L=xte(x,M);L.shouldRemove=!1;var I=new le;C(L.zigzagRandomList,I,D[0],D[1],S,M),v&&I.on("click",function(){var P={type:od,breaks:[{start:M.breakOption.start,end:M.breakOption.end}]};P[i.dim+"AxisIndex"]=t.componentIndex,a.dispatchAction(P)}),I.silent=!v,_.add(I)},w=0;w<o.length;w++)b(w);r.add(_),wte(x);function C(T,M,D,L,I,P){var E={stroke:p,lineWidth:g,lineDash:y,fill:"none"},R=I?0:1,O=1-R,k=n[pe[O]]+n[st[O]];function V(Ze){var ke=[],He=[];ke[R]=He[R]=Ze,ke[O]=n[pe[O]],He[O]=k;var $e={x1:ke[0],y1:ke[1],x2:He[0],y2:He[1]};return bc($e,$e,{lineWidth:1}),ke[0]=$e.x1,ke[1]=$e.y1,ke[R]}D=V(D),L=V(L);for(var z=[],F=[],Y=!0,Z=n[pe[O]],X=0;;X++){var ee=Z===n[pe[O]],ye=Z>=k;ye&&(Z=k);var Be=[],ce=[];Be[R]=D,ce[R]=L,!ee&&!ye&&(Be[R]+=Y?-l:l,ce[R]-=Y?l:-l),Be[O]=Z,ce[O]=Z,z.push(Be),F.push(ce);var te=void 0;if(X<T.length?te=T[X]:(te=Math.random(),T.push(te)),Z+=te*(f-u)+u,Y=!Y,ye)break}var me=vt().serializeAxisBreakIdentifier(P.breakOption);if(M.add(new Ot({anid:"break_a_"+me,shape:{points:z},style:E,z:c})),P.gapReal!==0){M.add(new Ot({anid:"break_b_"+me,shape:{points:F},style:E,z:c}));var re=F.slice();re.reverse();var he=z.concat(re);M.add(new Wt({anid:"break_c_"+me,shape:{points:he},style:{fill:m,opacity:d.opacity},z:c}))}}}function Cte(r,e,t,n){var a=r.axis,i=t.transform;W(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=vt().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=U(s,function(g){var y=g[0].break.parsedBreak,m=[a.dataToCoord(y.vmin,!0),a.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:vt().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,v=0;v<l.length;v++){var c=l[v],h=Math.max(c.coordPair[0],o[0]),d=Math.min(c.coordPair[1],o[1]);u<=h&&p(u,h,f,c),u=d,f=c}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(D,L){i&&(it(D,D,i),it(L,L,i))}function x(D,L){var I={x1:D[0],y1:D[1],x2:L[0],y2:L[1]};bc(I,I,n.style),D[0]=I.x1,D[1]=I.y1,L[0]=I.x2,L[1]=I.y2}var b=[g,0],w=[y,0],C=[g,5],T=[y,5];S(b,C),x(b,C),S(w,T),x(w,T),x(b,w);var M=new ft(G({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},n));e.add(M),M.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function Ate(r,e,t){if(ta(t,function(m){return!m}))return;var n=new fe;if(!Jh(t[0],t[1],n,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var a=Qe();sa(a,a,-e);var i=U(t,function(m){return m.transform?mr(Qe(),a,m.transform):a});function o(m){var _=t[0].localRect,S=new fe(_[st[m]]*i[0][0],_[st[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=U(t,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new fe;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(a);var f=n.clone().transform(a),v=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),c=(v+f.x)/2-u.x,h=Math.min(c,c-f.x),d=Math.max(c,c-f.x),p=d<0?d:h>0?h:0;s=(c-p)/f.x}var g=new fe,y=new fe;fe.scale(g,n,-s),fe.scale(y,n,1-s),H0(t[0],g),H0(t[1],y)}function Mte(r,e){var t={breaks:[]};return A(e.breaks,function(n){if(n){var a=ta(r.get("breaks",!0),function(s){return vt().identifyAxisBreak(s,n)});if(!a){et("Can not find axis break by start: "+n.start+", end: "+n.end);return}var i=e.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===od?!0:i===fL?!1:i===vL?!a.isExpanded:a.isExpanded,t.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}),t}function Dte(){YU({adjustBreakLabelPair:Ate,buildAxisBreakLine:Cte,rectCoordBuildBreakAxis:Tte,updateModelAxisBreak:Mte})}function Ite(r){qU(r),Ste(),Dte()}function Lte(){v8(Pte)}function Pte(r,e){A(r,function(t){if(!t.model.get(["axisLabel","inside"])){var n=Rte(t);if(n){var a=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[a]-=n[a]+i,t.position==="top"?e.y+=n.height+i:t.position==="left"&&(e.x+=n.width+i)}}})}function Rte(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var n,a,i=t.getExtent();t instanceof pf?a=t.count():(n=t.getTicks(),a=n.length);var o=r.getLabelModel(),s=yf(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var v=n?n[f]:{value:i[0]+f},c=s(v,f),h=o.getTextRect(c),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,x=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),b=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new se(g.x,g.y,x,b);return w}}xe([wU]),xe([gU]),xe([UU,zY,KY,P8,U8,Z6,x7,aX,PX,zX,YX,e9,Y9,yZ,LZ,$Z,JZ,l$,p$,A$,E$,Y$,Dq]),xe(Zq),xe(bK),xe(pP),xe(kK),xe(BR),xe(VK),xe(aj),xe(hj),xe(rJ),xe(xJ),xe(fv),xe(BJ),xe(GJ),xe(qJ),xe(nQ),xe(uQ),xe(pQ),xe(AQ),xe(YQ),xe(WO),xe(XO),xe(vee),xe(oN),xe(lN),xe(pee),xe(See),xe(Eee),xe(Nee),xe(ute),xe(OW),xe(Ite),xe(Lte),xe(R8),de.Axis=Zr,de.ChartView=Fe,de.ComponentModel=we,de.ComponentView=Xe,de.List=Jt,de.Model=De,de.PRIORITY=CM,de.SeriesModel=We,de.color=JB,de.connect=mH,de.dataTool=AH,de.dependencies=eH,de.disConnect=_H,de.disconnect=GM,de.dispose=SH,de.env=Ie,de.extendChartView=SW,de.extendComponentModel=yW,de.extendComponentView=mW,de.extendSeriesModel=_W,de.format=Q4,de.getCoordinateSystemDimensions=bH,de.getInstanceByDom=f0,de.getInstanceById=xH,de.getMap=CH,de.graphic=J4,de.helper=U4,de.init=yH,de.innerDrawElementOnCanvas=qm,de.matrix=AB,de.number=K4,de.parseGeoJSON=N0,de.parseGeoJson=N0,de.registerAction=fn,de.registerCoordinateSystem=WM,de.registerCustomSeries=wH,de.registerLayout=UM,de.registerLoading=p0,de.registerLocale=im,de.registerMap=XM,de.registerPostInit=FM,de.registerPostUpdate=HM,de.registerPreprocessor=c0,de.registerProcessor=h0,de.registerTheme=v0,de.registerTransform=ZM,de.registerUpdateLifecycle=Dh,de.registerVisual=ai,de.setCanvasCreator=TH,de.setPlatformAPI=Nx,de.throttle=uh,de.time=j4,de.use=xe,de.util=eW,de.vector=vB,de.version=Q3,de.zrUtil=aB,de.zrender=kV,Object.defineProperty(de,"__esModule",{value:!0})}))});export{kte as a};