@ovalbee/reportifact 0.0.1

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 (116) hide show
  1. package/README.md +841 -0
  2. package/dist/Chart.vue_vue_type_style_index_0_lang-B4novMFC.cjs +1 -0
  3. package/dist/Chart.vue_vue_type_style_index_0_lang-BYILFTfl.js +5895 -0
  4. package/dist/ImageGallery.vue_vue_type_style_index_0_lang-BB4dG0CB.cjs +1 -0
  5. package/dist/ImageGallery.vue_vue_type_style_index_0_lang-DPY6mSdA.js +191 -0
  6. package/dist/MetricCallout.vue_vue_type_style_index_0_lang-BZbc-Wkf.js +49 -0
  7. package/dist/MetricCallout.vue_vue_type_style_index_0_lang-WpuALh8Z.cjs +1 -0
  8. package/dist/MetricCards.vue_vue_type_style_index_0_lang-CDPSu7no.cjs +1 -0
  9. package/dist/MetricCards.vue_vue_type_style_index_0_lang-CfxCCXmB.js +33 -0
  10. package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BzrxoJW4.cjs +1 -0
  11. package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CO9HvYfr.js +132 -0
  12. package/dist/Reportifact.vue.d.ts +40 -0
  13. package/dist/ReportifactWidgetHost-A73gQ3bT.cjs +1 -0
  14. package/dist/ReportifactWidgetHost-BjKBwCWI.js +17 -0
  15. package/dist/Timeline.vue_vue_type_style_index_0_lang-BIyC7N9b.cjs +2 -0
  16. package/dist/Timeline.vue_vue_type_style_index_0_lang-BnrgKBMh.js +2598 -0
  17. package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs +1 -0
  18. package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js +59 -0
  19. package/dist/components/TableOfContents.vue.d.ts +15 -0
  20. package/dist/composables/useDelayedLoading.d.ts +6 -0
  21. package/dist/composables/useFetch.d.ts +13 -0
  22. package/dist/customWidgets.d.ts +18 -0
  23. package/dist/entries/chart.d.ts +3 -0
  24. package/dist/entries/contracts.d.ts +3 -0
  25. package/dist/entries/figure.d.ts +1 -0
  26. package/dist/entries/host.d.ts +1 -0
  27. package/dist/entries/imageGallery.d.ts +3 -0
  28. package/dist/entries/metricCallout.d.ts +2 -0
  29. package/dist/entries/metricCards.d.ts +2 -0
  30. package/dist/entries/metricsTable.d.ts +2 -0
  31. package/dist/entries/timeline.d.ts +2 -0
  32. package/dist/index-DFz2A8yJ.js +21229 -0
  33. package/dist/index-DmTzvbys.cjs +47 -0
  34. package/dist/index.d.ts +6 -0
  35. package/dist/markdownTable-B5207r3E.js +32 -0
  36. package/dist/markdownTable-Cbn1Du3L.cjs +2 -0
  37. package/dist/mediaResolver.d.ts +18 -0
  38. package/dist/middleware.cjs +1 -0
  39. package/dist/middleware.d.ts +21 -0
  40. package/dist/middleware.js +177 -0
  41. package/dist/portable/ReportifactFigure.vue.d.ts +36 -0
  42. package/dist/portable/ReportifactWidgetHost.vue.d.ts +17 -0
  43. package/dist/portable/contracts.d.ts +54 -0
  44. package/dist/reportifact.cjs +67 -0
  45. package/dist/reportifact.d.ts +2 -0
  46. package/dist/reportifact.js +5272 -0
  47. package/dist/style.css +13 -0
  48. package/dist/useFetch-BfOAq-Kg.cjs +1 -0
  49. package/dist/useFetch-CHQm_TmB.js +35 -0
  50. package/dist/utils/createMarked.d.ts +7 -0
  51. package/dist/utils/parseIndexMd.d.ts +29 -0
  52. package/dist/utils/tfeventsParser.cjs +1 -0
  53. package/dist/utils/tfeventsParser.d.ts +21 -0
  54. package/dist/utils/tfeventsParser.js +336 -0
  55. package/dist/widgets/Card.vue.d.ts +6 -0
  56. package/dist/widgets/Chart.vue.d.ts +26 -0
  57. package/dist/widgets/HelpTooltip.vue.d.ts +5 -0
  58. package/dist/widgets/ImageGallery.vue.d.ts +26 -0
  59. package/dist/widgets/Markdown.vue.d.ts +8 -0
  60. package/dist/widgets/MetricCallout.vue.d.ts +19 -0
  61. package/dist/widgets/MetricCards.vue.d.ts +13 -0
  62. package/dist/widgets/MetricTable.vue.d.ts +6 -0
  63. package/dist/widgets/MetricsTable.vue.d.ts +17 -0
  64. package/dist/widgets/ModelClassComparison.vue.d.ts +7 -0
  65. package/dist/widgets/ModelComparisonGallery.vue.d.ts +15 -0
  66. package/dist/widgets/Notice.vue.d.ts +6 -0
  67. package/dist/widgets/ReportifactWidget.vue.d.ts +23 -0
  68. package/dist/widgets/Scope.vue.d.ts +8 -0
  69. package/dist/widgets/Table.vue.d.ts +18 -0
  70. package/dist/widgets/Tensorboard.vue.d.ts +13 -0
  71. package/dist/widgets/Timeline.vue.d.ts +21 -0
  72. package/dist/widgets/WidgetWrapper.vue.d.ts +28 -0
  73. package/dist/widgets/chart-config/barGradient.d.ts +2 -0
  74. package/dist/widgets/chart-config/barGrouped.d.ts +2 -0
  75. package/dist/widgets/chart-config/barNormalized.d.ts +2 -0
  76. package/dist/widgets/chart-config/barStacked.d.ts +2 -0
  77. package/dist/widgets/chart-config/customGauge.d.ts +2 -0
  78. package/dist/widgets/chart-config/gaugeGrade.d.ts +2 -0
  79. package/dist/widgets/chart-config/heatmap.d.ts +2 -0
  80. package/dist/widgets/chart-config/index.d.ts +4 -0
  81. package/dist/widgets/chart-config/line.d.ts +2 -0
  82. package/dist/widgets/chart-config/pie.d.ts +2 -0
  83. package/dist/widgets/chart-config/radar.d.ts +2 -0
  84. package/dist/widgets/chart-config/shared.d.ts +15 -0
  85. package/dist/widgets/chart-config/types.d.ts +96 -0
  86. package/dist/widgets/chart.cjs +1 -0
  87. package/dist/widgets/chart.d.ts +6 -0
  88. package/dist/widgets/chart.js +5 -0
  89. package/dist/widgets/chartSizing.d.ts +1 -0
  90. package/dist/widgets/contracts.cjs +1 -0
  91. package/dist/widgets/contracts.d.ts +2 -0
  92. package/dist/widgets/contracts.js +1 -0
  93. package/dist/widgets/figure.cjs +1 -0
  94. package/dist/widgets/figure.d.ts +6 -0
  95. package/dist/widgets/figure.js +84 -0
  96. package/dist/widgets/host.cjs +1 -0
  97. package/dist/widgets/host.d.ts +6 -0
  98. package/dist/widgets/host.js +5 -0
  99. package/dist/widgets/image-gallery.cjs +1 -0
  100. package/dist/widgets/image-gallery.d.ts +6 -0
  101. package/dist/widgets/image-gallery.js +5 -0
  102. package/dist/widgets/markdownTable.d.ts +4 -0
  103. package/dist/widgets/metric-callout.cjs +1 -0
  104. package/dist/widgets/metric-callout.d.ts +6 -0
  105. package/dist/widgets/metric-callout.js +5 -0
  106. package/dist/widgets/metric-cards.cjs +1 -0
  107. package/dist/widgets/metric-cards.d.ts +6 -0
  108. package/dist/widgets/metric-cards.js +5 -0
  109. package/dist/widgets/metrics-table.cjs +1 -0
  110. package/dist/widgets/metrics-table.d.ts +6 -0
  111. package/dist/widgets/metrics-table.js +5 -0
  112. package/dist/widgets/scope.d.ts +77 -0
  113. package/dist/widgets/timeline.cjs +1 -0
  114. package/dist/widgets/timeline.d.ts +6 -0
  115. package/dist/widgets/timeline.js +5 -0
  116. package/package.json +125 -0
@@ -0,0 +1,47 @@
1
+ "use strict";var k_=Object.defineProperty;var B_=(e,t,r)=>t in e?k_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Wh=(e,t,r)=>B_(e,typeof t!="symbol"?t+"":t,r);const et=require("vue");/*! *****************************************************************************
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 fl=function(e,t){return fl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},fl(e,t)};function B(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var F_=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),V_=(function(){function e(){this.browser=new F_,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 e})(),Q=new V_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Q.wxa=!0,Q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Q.worker=!0:!Q.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Q.node=!0,Q.svgSupported=!0):z_(navigator.userAgent,Q);function z_(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var Lf=12,H_="sans-serif",Mr=Lf+"px "+H_,G_=20,W_=100,U_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Y_(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-G_)/W_;t[n]=i}return t}var X_=Y_(U_),Ye={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,n){if(!e){var i=Ye.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Mr),e.measureText(r);r=r||"",n=n||Mr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Lf,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=X_[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},gp=sr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),mp=sr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),di=Object.prototype.toString,ps=Array.prototype,$_=ps.forEach,Z_=ps.filter,Pf=ps.slice,q_=ps.map,Uh=(function(){}).constructor,Ea=Uh?Uh.prototype:null,If="__proto__",K_=2311;function yp(){return K_++}function cn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function rt(e){if(e==null||typeof e!="object")return e;var t=e,r=di.call(e);if(r==="[object Array]"){if(!Zi(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=rt(e[n])}}else if(mp[r]){if(!Zi(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!gp[r]&&!Zi(e)&&!ni(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==If&&(t[o]=rt(e[o]))}return t}function st(e,t,r){if(!V(t)||!V(e))return r?rt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==If){var i=e[n],a=t[n];V(a)&&V(i)&&!k(a)&&!k(i)&&!ni(a)&&!ni(i)&&!Yh(a)&&!Yh(i)&&!Zi(a)&&!Zi(i)?st(i,a,r):(r||!(n in e))&&(e[n]=rt(t[n]))}return e}function R(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==If&&(e[r]=t[r]);return e}function ft(e,t,r){for(var n=pt(t),i=0,a=n.length;i<a;i++){var o=n[i];e[o]==null&&(e[o]=t[o])}return e}function ot(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function Q_(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function De(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else ft(e,t)}function Ut(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function T(e,t,r){if(e&&t)if(e.forEach&&e.forEach===$_)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Z(e,t,r){if(!e)return[];if(!t)return Of(e);if(e.map&&e.map===q_)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function sr(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Dt(e,t,r){if(!e)return[];if(!t)return Of(e);if(e.filter&&e.filter===Z_)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function _p(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function pt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function j_(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Pf.call(arguments)))}}var vt=Ea&&K(Ea.bind)?Ea.call.bind(Ea.bind):j_;function Et(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Pf.call(arguments)))}}function k(e){return Array.isArray?Array.isArray(e):di.call(e)==="[object Array]"}function K(e){return typeof e=="function"}function F(e){return typeof e=="string"}function Eo(e){return di.call(e)==="[object String]"}function mt(e){return typeof e=="number"}function V(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Yh(e){return!!gp[di.call(e)]}function Yt(e){return!!mp[di.call(e)]}function ni(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function gs(e){return e.colorStops!=null}function J_(e){return e.image!=null}function t0(e){return di.call(e)==="[object RegExp]"}function yn(e){return e!==e}function _n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function X(e,t){return e??t}function nr(e,t,r){return e??t??r}function Of(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Pf.apply(e,t)}function Rf(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function z(e,t){if(!e)throw new Error(t)}function Ve(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var xp="__ec_primitive__";function hl(e){e[xp]=!0}function Zi(e){return e[xp]}var e0=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return pt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e})(),Sp=typeof Map=="function";function r0(){return Sp?new Map:new e0}var n0=(function(){function e(t){var r=k(t);this.data=r0();var n=this;t instanceof e?t.each(i):t&&T(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return Sp?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function tt(e){return new n0(e)}function i0(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function ms(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&R(r,t),r}function wp(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function pe(e,t){return e.hasOwnProperty(t)}function Wt(){}var a0=180/Math.PI;function pi(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function o0(e){return[e[0],e[1]]}function Xh(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function s0(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function u0(e){return Math.sqrt(l0(e))}function l0(e){return e[0]*e[0]+e[1]*e[1]}function Ys(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function f0(e,t){var r=u0(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function cl(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var bp=cl;function h0(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Jn=h0;function c0(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function ge(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Xn(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function $n(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Dn=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),v0=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Dn(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Dn(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Dn(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Dn(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Dn(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Dn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Me=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),d0=Math.log(2);function vl(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/d0);return e[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*e[r][c]*vl(e,t-1,f,l,i|d,a),v++)}return a[o]=h,h}function $h(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=vl(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*vl(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var Ao="___zrEVENTSAVED",Xs=[];function p0(e,t,r,n,i){return dl(Xs,t,n,i,!0)&&dl(e,r,Xs[0],Xs[1])}function g0(e,t){e&&r(e),t&&r(t);function r(n){var i=n[Ao];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Ao])}}function dl(e,t,r,n,i){if(t.getBoundingClientRect&&Q.domSupported&&!Tp(t)){var a=t[Ao]||(t[Ao]={}),o=m0(t,a),s=y0(o,a,i);if(s)return s(e,r,n),!0}return!1}function m0(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){T(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function y0(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=r?$h(s,o):$h(o,s))}function Tp(e){return e.nodeName.toUpperCase()==="CANVAS"}var _0=/([&<>"'])/g,x0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Zt(e){return e==null?"":(e+"").replace(_0,function(t,r){return x0[r]})}var S0=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$s=[],w0=Q.browser.firefox&&+Q.browser.version.split(".")[0]<39;function pl(e,t,r,n){return r=r||{},n?Zh(e,t,r):w0&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Zh(e,t,r),r}function Zh(e,t,r){if(Q.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Tp(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(dl($s,e,n,i)){r.zrX=$s[0],r.zrY=$s[1];return}}r.zrX=r.zrY=0}function Nf(e){return e||window.event}function ue(e,t,r){if(t=Nf(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&pl(e,o,t,r)}else{pl(e,t,t,r);var a=b0(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&S0.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function b0(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function T0(e,t,r,n){e.addEventListener(t,r,n)}function C0(e,t,r,n){e.removeEventListener(t,r,n)}var kf=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function D0(e){return e.which===2||e.which===3}var M0=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=pl(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Zs)if(Zs.hasOwnProperty(r)){var n=Zs[r](this._track,t);if(n)return n}},e})();function qh(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function E0(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Zs={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=qh(n)/qh(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=E0(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function ir(){return[1,0,0,1,0,0]}function Bf(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Cp(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function qi(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function gl(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Ff(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*f,e[1]=-i*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-n[0])+f*(l-n[1])+n[0],e[5]=h*(l-n[1])-f*(o-n[0])+n[1],e}function A0(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function xa(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*n;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-n*u,e[3]=r*u,e[4]=(n*s-o*i)*u,e[5]=(a*i-r*s)*u,e):null}var ht=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e})(),un=Math.min,Zn=Math.max,ml=Math.abs,Kh=["x","y"],L0=["width","height"],kr=new ht,Br=new ht,Fr=new ht,Vr=new ht,te=Dp(),zi=te.minTv,yl=te.maxTv,Ki=[0,0],J=(function(){function e(t,r,n,i){e.set(this,t,r,n,i)}return e.set=function(t,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),t.x=r,t.y=n,t.width=i,t.height=a,t},e.prototype.union=function(t){var r=un(t.x,this.x),n=un(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Zn(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Zn(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=ir();return gl(a,a,[-r.x,-r.y]),A0(a,a,[n,i]),gl(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,i){n&&ht.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(P0,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(I0,r.x,r.y,r.width,r.height));var s=!!n;te.reset(i,s);var u=te.touchThreshold,l=t.x+u,f=t.x+t.width-u,h=t.y+u,c=t.y+t.height-u,v=r.x+u,d=r.x+r.width-u,m=r.y+u,g=r.y+r.height-u;if(l>f||h>c||v>d||m>g)return!1;var p=!(f<v||d<l||c<m||g<h);return(s||a)&&(Ki[0]=1/0,Ki[1]=0,Qh(l,f,v,d,0,s,a,o),Qh(h,c,m,g,1,s,a,o),s&&ht.copy(n,p?te.useDir?te.dirMinTv:zi:yl)),p},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}kr.x=Fr.x=r.x,kr.y=Vr.y=r.y,Br.x=Vr.x=r.x+r.width,Br.y=Fr.y=r.y+r.height,kr.transform(n),Vr.transform(n),Br.transform(n),Fr.transform(n),t.x=un(kr.x,Br.x,Fr.x,Vr.x),t.y=un(kr.y,Br.y,Fr.y,Vr.y);var u=Zn(kr.x,Br.x,Fr.x,Vr.x),l=Zn(kr.y,Br.y,Fr.y,Vr.y);t.width=u-t.x,t.height=l-t.y},e})(),P0=new J(0,0,0,0),I0=new J(0,0,0,0);function Qh(e,t,r,n,i,a,o,s){var u=ml(t-r),l=ml(n-e),f=un(u,l),h=Kh[i],c=Kh[1-i],v=L0[i];t<r||n<e?u<l?(a&&(yl[h]=-u),s&&(o[h]=t,o[v]=0)):(a&&(yl[h]=l),s&&(o[h]=e,o[v]=0)):(o&&(o[h]=Zn(e,r),o[v]=un(t,n)-o[h]),a&&(f<Ki[0]||te.useDir)&&(Ki[0]=un(f,Ki[0]),(u<l||!te.bidirectional)&&(zi[h]=u,zi[c]=0,te.useDir&&te.calcDirMTV()),(u>=l||!te.bidirectional)&&(zi[h]=-l,zi[c]=0,te.useDir&&te.calcDirMTV())))}function Dp(){var e=0,t=new ht,r=new ht,n={minTv:new ht,maxTv:new ht,useDir:!1,dirMinTv:new ht,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Zn(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(e),l=Math.cos(e),f=u*a.y+l*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return ml(a)<1e-10}return n}var Mp="silent";function O0(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:R0}}function R0(){kf(this.event)}var N0=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Me),wi=(function(){function e(t,r){this.x=t,this.y=r}return e})(),k0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],qs=new J(0,0,0,0),Ep=(function(e){B(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new wi(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new N0,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new v0(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(k0,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Ap(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new wi(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new wi(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=O0(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new wi(r,n);if(jh(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new J(r-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(qs.copy(c.getBoundingRect()),c.transform&&qs.applyTransform(c.transform),qs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,m=Math.PI*2,g=0;g<l;g+=v)for(var p=0;p<m;p+=d){var y=r+g*Math.cos(p),_=n+g*Math.sin(p);if(jh(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new M0);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new wi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Me);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Ep.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Ap(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||bp(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function B0(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?Mp:!0}return!1}function jh(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=B0(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Mp)){t.target=o;break}}}function Ap(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Lp=32,bi=7;function F0(e){for(var t=0;e>=Lp;)t|=e&1,e>>=1;return e+t}function Jh(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;V0(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function V0(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function tc(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,e[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Ks(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])>0){for(s=n-i;u<s&&a(e,t[r+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(e,t[r+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function Qs(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])<0){for(s=i+1;u<s&&a(e,t[r+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(e,t[r+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function z0(e,t){var r=bi,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],m=i[v],g=n[v+1],p=i[v+1];i[v]=m+p,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=Qs(e[g],e,d,m,0,t);d+=y,m-=y,m!==0&&(p=Ks(e[d+m-1],e,g,p,p-1,t),p!==0&&(m<=p?h(d,m,g,p):c(d,m,g,p)))}function h(v,d,m,g){var p=0;for(p=0;p<d;p++)o[p]=e[v+p];var y=0,_=m,x=v;if(e[x++]=e[_++],--g===0){for(p=0;p<d;p++)e[x+p]=o[y+p];return}if(d===1){for(p=0;p<g;p++)e[x+p]=e[_+p];e[x+g]=o[y];return}for(var w=r,S,b,C;;){S=0,b=0,C=!1;do if(t(e[_],o[y])<0){if(e[x++]=e[_++],b++,S=0,--g===0){C=!0;break}}else if(e[x++]=o[y++],S++,b=0,--d===1){C=!0;break}while((S|b)<w);if(C)break;do{if(S=Qs(e[_],o,y,d,0,t),S!==0){for(p=0;p<S;p++)e[x+p]=o[y+p];if(x+=S,y+=S,d-=S,d<=1){C=!0;break}}if(e[x++]=e[_++],--g===0){C=!0;break}if(b=Ks(o[y],e,_,g,0,t),b!==0){for(p=0;p<b;p++)e[x+p]=e[_+p];if(x+=b,_+=b,g-=b,g===0){C=!0;break}}if(e[x++]=o[y++],--d===1){C=!0;break}w--}while(S>=bi||b>=bi);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(p=0;p<g;p++)e[x+p]=e[_+p];e[x+g]=o[y]}else{if(d===0)throw new Error;for(p=0;p<d;p++)e[x+p]=o[y+p]}}function c(v,d,m,g){var p=0;for(p=0;p<g;p++)o[p]=e[m+p];var y=v+d-1,_=g-1,x=m+g-1,w=0,S=0;if(e[x--]=e[y--],--d===0){for(w=x-(g-1),p=0;p<g;p++)e[w+p]=o[p];return}if(g===1){for(x-=d,y-=d,S=x+1,w=y+1,p=d-1;p>=0;p--)e[S+p]=e[w+p];e[x]=o[_];return}for(var b=r;;){var C=0,M=0,E=!1;do if(t(o[_],e[y])<0){if(e[x--]=e[y--],C++,M=0,--d===0){E=!0;break}}else if(e[x--]=o[_--],M++,C=0,--g===1){E=!0;break}while((C|M)<b);if(E)break;do{if(C=d-Qs(o[_],e,v,d,d-1,t),C!==0){for(x-=C,y-=C,d-=C,S=x+1,w=y+1,p=C-1;p>=0;p--)e[S+p]=e[w+p];if(d===0){E=!0;break}}if(e[x--]=o[_--],--g===1){E=!0;break}if(M=g-Ks(e[y],o,0,g,g-1,t),M!==0){for(x-=M,_-=M,g-=M,S=x+1,w=_+1,p=0;p<M;p++)e[S+p]=o[w+p];if(g<=1){E=!0;break}}if(e[x--]=e[y--],--d===0){E=!0;break}b--}while(C>=bi||M>=bi);if(E)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),g===1){for(x-=d,y-=d,S=x+1,w=y+1,p=d-1;p>=0;p--)e[S+p]=e[w+p];e[x]=o[_]}else{if(g===0)throw new Error;for(w=x-(g-1),p=0;p<g;p++)e[w+p]=o[p]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function po(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<Lp){a=Jh(e,r,n,t),tc(e,r,n,r+a,t);return}var o=z0(e,t),s=F0(i);do{if(a=Jh(e,r,n,t),a<s){var u=i;u>s&&(u=s),tc(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var ee=1,Hi=2,Yn=4,ec=!1;function js(){ec||(ec=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rc(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var H0=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rc}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,po(n,rc)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||i)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=i,f=t;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var v=h[c];t.__dirty&&(v.__dirty|=ee),this._updateAndAddDisplayable(v,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(js(),d.z=0),isNaN(d.z2)&&(js(),d.z2=0),isNaN(d.zlevel)&&(js(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var m=t.getDecalElement&&t.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=ot(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),Lo;Lo=Q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Qi={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Qi.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Qi.bounceIn(e*2)*.5:Qi.bounceOut(e*2-1)*.5+.5}},Aa=Math.pow,Cr=Math.sqrt,Po=1e-8,Pp=1e-4,nc=Cr(3),La=1/3,Fe=pi(),he=pi(),ti=pi();function wr(e){return e>-Po&&e<Po}function Ip(e){return e>Po||e<-Po}function Bt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function ic(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Vf(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(wr(f)&&wr(h))if(wr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var m=h*h-4*f*c;if(wr(m)){var g=h/f,d=-s/o+g,p=-g/2;d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p)}else if(m>0){var y=Cr(m),_=f*s+1.5*o*(-h+y),x=f*s+1.5*o*(-h-y);_<0?_=-Aa(-_,La):_=Aa(_,La),x<0?x=-Aa(-x,La):x=Aa(x,La);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*Cr(f*f*f)),S=Math.acos(w)/3,b=Cr(f),C=Math.cos(S),d=(-s-2*b*C)/(3*o),p=(-s+b*(C+nc*Math.sin(S)))/(3*o),M=(-s+b*(C-nc*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p),M>=0&&M<=1&&(a[v++]=M)}}return v}function Op(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(wr(o)){if(Ip(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(wr(f))i[0]=-a/(2*o);else if(f>0){var h=Cr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Io(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function G0(e,t,r,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,m,g,p;Fe[0]=u,Fe[1]=l;for(var y=0;y<1;y+=.05)he[0]=Bt(e,r,i,o,y),he[1]=Bt(t,n,a,s,y),g=Jn(Fe,he),g<v&&(h=y,v=g);v=1/0;for(var _=0;_<32&&!(c<Pp);_++)d=h-c,m=h+c,he[0]=Bt(e,r,i,o,d),he[1]=Bt(t,n,a,s,d),g=Jn(he,Fe),d>=0&&g<v?(h=d,v=g):(ti[0]=Bt(e,r,i,o,m),ti[1]=Bt(t,n,a,s,m),p=Jn(ti,Fe),m<=1&&p<v?(h=m,v=p):c*=.5);return Cr(v)}function W0(e,t,r,n,i,a,o,s,u){for(var l=e,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,m=Bt(e,r,i,o,d),g=Bt(t,n,a,s,d),p=m-l,y=g-f;h+=Math.sqrt(p*p+y*y),l=m,f=g}return h}function qt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function ac(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function U0(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,u=0;if(wr(a)){if(Ip(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(wr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=Cr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Rp(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Oo(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function Y0(e,t,r,n,i,a,o,s,u){var l,f=.005,h=1/0;Fe[0]=o,Fe[1]=s;for(var c=0;c<1;c+=.05){he[0]=qt(e,r,i,c),he[1]=qt(t,n,a,c);var v=Jn(Fe,he);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Pp);d++){var m=l-f,g=l+f;he[0]=qt(e,r,i,m),he[1]=qt(t,n,a,m);var v=Jn(he,Fe);if(m>=0&&v<h)l=m,h=v;else{ti[0]=qt(e,r,i,g),ti[1]=qt(t,n,a,g);var p=Jn(ti,Fe);g<=1&&p<h?(l=g,h=p):f*=.5}}return Cr(h)}function X0(e,t,r,n,i,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=qt(e,r,i,c),d=qt(t,n,a,c),m=v-s,g=d-u;l+=Math.sqrt(m*m+g*g),s=v,u=d}return l}var $0=/cubic-bezier\(([0-9,\.e ]+)\)/;function Np(e){var t=e&&$0.exec(e);if(t){var r=t[1].split(","),n=+Ve(r[0]),i=+Ve(r[1]),a=+Ve(r[2]),o=+Ve(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Vf(0,n,a,1,u,s)&&Bt(0,i,o,1,s[0])}}}var Z0=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Wt,this.ondestroy=t.ondestroy||Wt,this.onrestart=t.onrestart||Wt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:Qi[t]||Np(t)},e})(),kp=(function(){function e(t){this.value=t}return e})(),q0=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new kp(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),ii=(function(){function e(t){this._list=new q0,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new kp(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),oc={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 be(e){return e=Math.round(e),e<0?0:e>255?255:e}function K0(e){return e=Math.round(e),e<0?0:e>360?360:e}function sa(e){return e<0?0:e>1?1:e}function Js(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?be(parseFloat(t)/100*255):be(parseInt(t,10))}function vn(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?sa(parseFloat(t)/100):sa(parseFloat(t))}function tu(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function br(e,t,r){return e+(t-e)*r}function se(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function _l(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Bp=new ii(20),Pa=null;function Mn(e,t){Pa&&_l(Pa,t),Pa=Bp.put(e,Pa||t.slice())}function me(e,t){if(e){t=t||[];var r=Bp.get(e);if(r)return _l(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in oc)return _l(t,oc[n]),Mn(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){se(t,0,0,0,1);return}return se(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Mn(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){se(t,0,0,0,1);return}return se(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Mn(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?se(t,+l[0],+l[1],+l[2],1):se(t,0,0,0,1);f=vn(l.pop());case"rgb":if(l.length>=3)return se(t,Js(l[0]),Js(l[1]),Js(l[2]),l.length===3?f:vn(l[3])),Mn(e,t),t;se(t,0,0,0,1);return;case"hsla":if(l.length!==4){se(t,0,0,0,1);return}return l[3]=vn(l[3]),xl(l,t),Mn(e,t),t;case"hsl":if(l.length!==3){se(t,0,0,0,1);return}return xl(l,t),Mn(e,t),t;default:return}}se(t,0,0,0,1)}}function xl(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=vn(e[1]),i=vn(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],se(t,be(tu(o,a,r+1/3)*255),be(tu(o,a,r)*255),be(tu(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Q0(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?u=c-h:r===a?u=1/3+f-c:n===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return e[3]!=null&&v.push(e[3]),v}}function sc(e,t){var r=me(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return wn(r,r.length===4?"rgba":"rgb")}}function j0(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],u=n-i;return r[0]=be(br(o[0],s[0],u)),r[1]=be(br(o[1],s[1],u)),r[2]=be(br(o[2],s[2],u)),r[3]=sa(br(o[3],s[3],u)),r}}function J0(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=me(t[i]),s=me(t[a]),u=n-i,l=wn([be(br(o[0],s[0],u)),be(br(o[1],s[1],u)),be(br(o[2],s[2],u)),sa(br(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function Ro(e,t,r,n){var i=me(e);if(e)return i=Q0(i),t!=null&&(i[0]=K0(K(t)?t(i[0]):t)),r!=null&&(i[1]=vn(K(r)?r(i[1]):r)),n!=null&&(i[2]=vn(K(n)?n(i[2]):n)),wn(xl(i),"rgba")}function t1(e,t){var r=me(e);if(r&&t!=null)return r[3]=sa(t),wn(r,"rgba")}function wn(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function No(e,t){var r=me(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var uc=new ii(100);function lc(e){if(F(e)){var t=uc.get(e);return t||(t=sc(e,-.1),uc.put(e,t)),t}else if(gs(e)){var r=R({},e);return r.colorStops=Z(e.colorStops,function(n){return{offset:n.offset,color:sc(n.color,-.1)}}),r}return e}function e1(e){return e.type==="linear"}function r1(e){return e.type==="radial"}(function(){return Q.hasGlobalWindow&&K(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&cn("Base64 isn't natively supported in the current environment."),null}})();var Sl=Array.prototype.slice;function Je(e,t,r){return(t-e)*r+e}function eu(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Je(t[a],r[a],n);return e}function n1(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Je(t[o][s],r[o][s],n)}return e}function Ia(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function fc(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function i1(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function a1(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:Sl.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function ji(e){if(Ut(e)){var t=e.length;if(Ut(e[0])){for(var r=[],n=0;n<t;n++)r.push(Sl.call(e[n]));return r}return Sl.call(e)}return e}function go(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function o1(e){return Ut(e&&e[0])?2:1}var Oa=0,mo=1,Fp=2,Gi=3,wl=4,bl=5,hc=6;function cc(e){return e===wl||e===bl}function Ra(e){return e===mo||e===Fp}var Ti=[0,0,0,0],s1=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=hc,u=r;if(Ut(r)){var l=o1(r);s=l,(l===1&&!mt(r[0])||l===2&&!mt(r[0][0]))&&(o=!0)}else if(mt(r)&&!yn(r))s=Oa;else if(F(r))if(!isNaN(+r))s=Oa;else{var f=me(r);f&&(u=f,s=Gi)}else if(gs(r)){var h=R({},u);h.colorStops=Z(r.colorStops,function(v){return{offset:v.offset,color:me(v.color)}}),e1(r)?s=wl:r1(r)&&(s=bl),u=h}a===0?this.valType=s:(s!==this.valType||s===hc)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=K(n)?n:Qi[n]||Np(n)),i.push(c),c},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,g){return m.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Ra(i),l=cc(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?a1(c,v,i):l&&i1(c.colorStops,v.colorStops))}if(!s&&i!==bl&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Oa?n[f].additiveValue=n[f].value-d:i===Gi?n[f].additiveValue=Ia([],n[f].value,d,-1):Ra(i)&&(n[f].additiveValue=i===mo?Ia([],n[f].value,d,-1):fc([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Gi,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var m=c(h+1,s-1);for(f=m;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-v.percent,p=g===0?1:c((r-v.percent)/g,1);d.easingFunc&&(p=d.easingFunc(p));var y=n?this._additiveValue:l?Ti:t[u];if((Ra(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[u]=p<1?v.rawValue:d.rawValue;else if(Ra(a))a===mo?eu(y,v[i],d[i],p):n1(y,v[i],d[i],p);else if(cc(a)){var _=v[i],x=d[i],w=a===wl;t[u]={type:w?"linear":"radial",x:Je(_.x,x.x,p),y:Je(_.y,x.y,p),colorStops:Z(_.colorStops,function(b,C){var M=x.colorStops[C];return{offset:Je(b.offset,M.offset,p),color:go(eu([],b.color,M.color,p))}}),global:x.global},w?(t[u].x2=Je(_.x2,x.x2,p),t[u].y2=Je(_.y2,x.y2,p)):t[u].r=Je(_.r,x.r,p)}else if(l)eu(y,v[i],d[i],p),n||(t[u]=go(y));else{var S=Je(v[i],d[i],p);n?this._additiveValue=S:t[u]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Oa?t[n]=t[n]+i:r===Gi?(me(t[n],Ti),Ia(Ti,Ti,i,1),t[n]=go(Ti)):r===mo?Ia(t[n],t[n],i,1):r===Fp&&fc(t[n],t[n],i,1)},e})(),zf=(function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){cn("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,pt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new s1(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===Gi&&l&&(l=go(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,ji(l),i),this._trackKeys.push(s)}u.addKeyframe(t,ji(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new Z0({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var m=!1,g=0;g<d.length;g++)if(d[g]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,v);var p=r._onframeCbs;if(p)for(var g=0;g<p.length;g++)p[g](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Z(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[a]=ji(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||pt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function qn(){return new Date().getTime()}var u1=(function(e){B(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=qn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Lo(n),!r._paused&&r.update())}Lo(n)},t.prototype.start=function(){this._running||(this._time=qn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=qn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=qn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new zf(r,n.loop);return this.addAnimator(i),i},t})(Me),l1=300,ru=Q.domSupported,nu=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}})(),vc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},dc=!1;function Tl(e){var t=e.pointerType;return t==="pen"||t==="touch"}function f1(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function iu(e){e&&(e.zrByTouch=!0)}function h1(e,t){return ue(e.dom,new c1(e,t),!0)}function Vp(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var c1=(function(){function e(t,r){this.stopPropagation=Wt,this.stopImmediatePropagation=Wt,this.preventDefault=Wt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),Se={mousedown:function(e){e=ue(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ue(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ue(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ue(this.dom,e);var t=e.toElement||e.relatedTarget;Vp(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){dc=!0,e=ue(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){dc||(e=ue(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ue(this.dom,e),iu(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Se.mousemove.call(this,e),Se.mousedown.call(this,e)},touchmove:function(e){e=ue(this.dom,e),iu(e),this.handler.processGesture(e,"change"),Se.mousemove.call(this,e)},touchend:function(e){e=ue(this.dom,e),iu(e),this.handler.processGesture(e,"end"),Se.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<l1&&Se.click.call(this,e)},pointerdown:function(e){Se.mousedown.call(this,e)},pointermove:function(e){Tl(e)||Se.mousemove.call(this,e)},pointerup:function(e){Se.mouseup.call(this,e)},pointerout:function(e){Tl(e)||Se.mouseout.call(this,e)}};T(["click","dblclick","contextmenu"],function(e){Se[e]=function(t){t=ue(this.dom,t),this.trigger(e,t)}});var Cl={pointermove:function(e){Tl(e)||Cl.mousemove.call(this,e)},pointerup:function(e){Cl.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function v1(e,t){var r=t.domHandlers;Q.pointerEventsSupported?T(nu.pointer,function(n){yo(t,n,function(i){r[n].call(e,i)})}):(Q.touchEventsSupported&&T(nu.touch,function(n){yo(t,n,function(i){r[n].call(e,i),f1(t)})}),T(nu.mouse,function(n){yo(t,n,function(i){i=Nf(i),t.touching||r[n].call(e,i)})}))}function d1(e,t){Q.pointerEventsSupported?T(vc.pointer,r):Q.touchEventsSupported||T(vc.mouse,r);function r(n){function i(a){a=Nf(a),Vp(e,a.target)||(a=h1(e,a),t.domHandlers[n].call(e,a))}yo(t,n,i,{capture:!0})}}function yo(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,T0(e.domTarget,t,r,n)}function au(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&C0(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var pc=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),p1=(function(e){B(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new pc(r,Se),ru&&(i._globalHandlerScope=new pc(document,Cl)),v1(i,i._localHandlerScope),i}return t.prototype.dispose=function(){au(this._localHandlerScope),ru&&au(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,ru&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?d1(this,n):au(n)}},t})(Me),zp=1;Q.hasGlobalWindow&&(zp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ko=zp,Dl=.4,Ml="#333",El="#ccc",g1="#eee",gc=Bf,mc=5e-5;function zr(e){return e>mc||e<-mc}var Hr=[],En=[],ou=ir(),su=Math.abs,Hf=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return zr(this.rotation)||zr(this.x)||zr(this.y)||zr(this.scaleX-1)||zr(this.scaleY-1)||zr(this.skewX)||zr(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(gc(n),this.invTransform=null);return}n=n||ir(),r?this.getLocalTransform(n):gc(n),t&&(r?qi(n,t,n):Cp(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Hr);var n=Hr[0]<0?-1:1,i=Hr[1]<0?-1:1,a=((Hr[0]-n)*r+n)/Hr[0]||0,o=((Hr[1]-i)*r+i)/Hr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ir(),xa(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ir(),qi(En,t.invTransform,r),r=En);var n=this.originX,i=this.originY;(n||i)&&(ou[4]=n,ou[5]=i,qi(En,r,ou),En[4]-=n,En[5]-=i,r=En),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ge(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ge(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&su(t[0]-1)>1e-10&&su(t[3]-1)>1e-10?Math.sqrt(su(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Al(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,m=i+u;r[4]=-d*a-c*m*o,r[5]=-m*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,l&&Ff(r,r,l),r[4]+=n+f,r[5]+=i+h,r},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),ai=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Al(e,t){for(var r=0;r<ai.length;r++){var n=ai[r];e[n]=t[n]}}function Ge(e){Na||(Na=new ii(100)),e=e||Mr;var t=Na.get(e);return t||(t={font:e,strWidthCache:new ii(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Ye.measureText("国",e).width,asciiCharWidth:Ye.measureText("a",e).width},Na.put(e,t)),t}var Na;function m1(e){if(!(uu>=yc)){e=e||Mr;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=Ye.measureText(String.fromCharCode(n),e).width;var i=+new Date-r;return i>16?uu=yc:i>2&&uu++,t}}var uu=0,yc=5;function Hp(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=m1(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function We(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=Ye.measureText(t,e.font).width,r.put(t,n)),n}function _c(e,t,r,n){var i=We(Ge(t),e),a=ys(t),o=oi(0,i,r),s=dn(0,a,n),u=new J(o,s,i,a);return u}function Gp(e,t,r,n){var i=((e||"")+"").split(`
15
+ `),a=i.length;if(a===1)return _c(i[0],t,r,n);for(var o=new J(0,0,0,0),s=0;s<i.length;s++){var u=_c(i[s],t,r,n);s===0?o.copy(u):o.union(u)}return o}function oi(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function dn(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function ys(e){return Ge(e).stWideCharWidth}function Er(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Gf(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(n instanceof Array)u+=Er(n[0],r.width),l+=Er(n[1],r.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var lu="__zr_normal__",fu=ai.concat(["ignore"]),y1=sr(ai,function(e,t){return e[t]=!0,e},{ignore:!1}),An={},_1=new J(0,0,0,0),ka=[],_s=(function(){function e(t){this.id=yp(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;a.copyTransform(r);var f=n.position!=null,h=n.autoOverflowArea,c=void 0;if((h||f)&&(c=_1,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(An,n,c):Gf(An,n,c),a.x=An.x,a.y=An.y,o=An.align,s=An.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,m=void 0;v==="center"?(d=c.width*.5,m=c.height*.5):(d=Er(v[0],c.width),m=Er(v[1],c.height)),l=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+m+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],l||(a.originX=-g[0],a.originY=-g[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=p.overflowRect=p.overflowRect||new J(0,0,0,0);a.getLocalTransform(ka),xa(ka,ka),J.copy(y,c),y.applyTransform(ka)}else p.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,x=void 0,w=void 0,S=void 0;_&&this.canBeInsideText()?(x=n.insideFill,w=n.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(x),S=!0)):(x=n.outsideFill,w=n.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(x),S=!0)),x=x||"#000",(x!==p.fill||w!==p.stroke||S!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=x,p.stroke=w,p.autoStroke=S,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=ee,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?El:Ml},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&me(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,wn(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},R(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(V(t))for(var n=t,i=pt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==lu)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,fu)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(lu,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===lu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(ot(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){cn("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,n,f),c&&c.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ee),l}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,g=this._textGuide;m&&m.useStates(t,r,c),g&&g.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ee)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ot(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ot(i,t),o=ot(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];R(r,a),a.textConfig&&(n=n||{},R(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=R({},i?this.textConfig:n.textConfig),R(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<fu.length;f++){var h=fu[f],c=a&&y1[h];r&&r[h]!=null?c?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(c?(l=!0,u[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(t,u,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new Hf,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),R(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=ee;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!i){cn('Property "'+t+'" is not existed in element '+this.id);return}var a=new zf(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ot(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){hu(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){hu(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=hu(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ee;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,u){Object.defineProperty(t,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,u),!this[o]){var f=this[o]=[];l(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(a,s,u),this[s]=f[0],this[u]=f[1],this[o]=f,l(this,f)}});function l(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(h,1,{get:function(){return f[u]},set:function(c){f[u]=c}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),e})();De(_s,Me);De(_s,Hf);function hu(e,t,r,n,i){r=r||{};var a=[];Wp(e,"",e,t,r,n,a,i);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,m){r.during(m)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function cu(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function x1(e){return Ut(e[0])}function S1(e,t,r){if(Ut(t[r]))if(Ut(e[r])||(e[r]=[]),Yt(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),cu(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(x1(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?cu(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else cu(a,i,o);a.length=i.length}else e[r]=t[r]}function w1(e,t){return e===t||Ut(e)&&Ut(t)&&b1(e,t)}function b1(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Wp(e,t,r,n,i,a,o,s){for(var u=pt(n),l=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!V(a),d=e.animators,m=[],g=0;g<u.length;g++){var p=u[g],y=n[p];if(y!=null&&r[p]!=null&&(v||a[p]))if(V(y)&&!Ut(y)&&!gs(y)){if(t){s||(r[p]=y,e.updateDuringAnimation(t));continue}Wp(e,p,r[p],y,i,a&&a[p],o,s)}else m.push(p);else s||(r[p]=y,e.updateDuringAnimation(t),m.push(p))}var _=m.length;if(!h&&_)for(var x=0;x<d.length;x++){var w=d[x];if(w.targetName===t){var S=w.stopTracks(m);if(S){var b=ot(d,w);d.splice(b,1)}}}if(i.force||(m=Dt(m,function(A){return!w1(n[A],r[A])}),_=m.length),_>0||i.force&&!o.length){var C=void 0,M=void 0,E=void 0;if(s){M={},c&&(C={});for(var x=0;x<_;x++){var p=m[x];M[p]=r[p],c?C[p]=n[p]:r[p]=n[p]}}else if(c){E={};for(var x=0;x<_;x++){var p=m[x];E[p]=ji(r[p]),S1(r,n,p)}}var w=new zf(r,!1,!1,h?Dt(d,function(L){return L.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),c&&C&&w.whenWithKeys(0,C,m),E&&w.whenWithKeys(0,E,m),w.whenWithKeys(l??500,s?M:n,m).delay(f||0),e.addAnimator(w,t),o.push(w)}}var jt=(function(e){B(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ot(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ot(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new J(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(J.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},t})(_s);jt.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.txt
23
+ */var Wi={},Up={};function T1(e){delete Up[e]}function C1(e){if(!e)return!1;if(typeof e=="string")return No(e,1)<Dl;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=No(t[i].color,1);return r/=n,r<Dl}return!1}var D1=(function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new H0,o=n.renderer||"canvas";if(Wi[o]||(o=pt(Wi)[0]),process.env.NODE_ENV!=="production"&&!Wi[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Wi[o](r,a,n,t),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!Q.node&&!Q.worker&&!u?new p1(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?Q.touchEventsSupported:!!f,c=44,v;h&&(v=X(n.pointerSize,c)),this.handler=new Ep(a,s,l,s.root,v),this.animation=new u1({stage:{update:u?null:function(){return i._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=C1(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=qn();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=qn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof jt&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.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,T1(this.id))},e})();function xc(e,t){var r=new D1(yp(),e,t);return Up[r.id]=r,r}function M1(e,t){Wi[e]=t}var Sc=1e-4,Yp=20;function E1(e){return e.replace(/^\s+|\s+$/g,"")}var ua=Math.min,ne=Math.max,ze=Math.abs;function Ll(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/u*l+o}var St=A1;function A1(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Pl(e,t,r)}function Pl(e,t,r){return F(e)?E1(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function Pt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Yp),e=(+e).toFixed(t),r?e:+e}function L1(e){return e.sort(function(t,r){return t-r}),e}function er(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Il(e)}function Il(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Xp(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(ze(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function P1(e,t){var r=sr(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Z(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=Z(i,function(v){return Math.floor(v)}),s=sr(o,function(v,d){return v+d},0),u=Z(i,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return Z(o,function(v){return v/n})}function I1(e,t){var r=Math.max(er(e),er(t)),n=e+t;return r>Yp?n:Pt(n,r)}function $p(e){var t=Math.PI*2;return(e%t+t)%t}function Bo(e){return e>-Sc&&e<Sc}var O1=/^(?:(\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 gi(e){if(e instanceof Date)return e;if(F(e)){var t=O1.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function R1(e){return Math.pow(10,xs(e))}function xs(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Zp(e,t){var r=xs(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function N1(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function Fo(e){var t=parseFloat(e);return t==e&&(t!==0||!F(e)||e.indexOf("x")<=0)?t:NaN}function qp(e){return!isNaN(Fo(e))}function Kp(){return Math.round(Math.random()*9)}function Qp(e,t){return t===0?e:Qp(t,e%t)}function wc(e,t){return e==null?t:t==null?e:e*t/Qp(e,t)}var k1="[ECharts] ",bc={},B1=typeof console<"u"&&console.warn&&console.log;function Ss(e,t,r){if(B1){if(r){if(bc[t])return;bc[t]=!0}console[e](k1+t)}}function jp(e,t){Ss("log",e,t)}function Kt(e,t){Ss("warn",e,t)}function lt(e,t){Ss("error",e,t)}function Xe(e){process.env.NODE_ENV!=="production"&&Ss("warn","DEPRECATED: "+e,!0)}function Mt(e,t,r){process.env.NODE_ENV!=="production"&&Xe((r?"["+r+"]":"")+(e+" is deprecated; use "+t+" instead."))}function Vo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":yn(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":K(i)?"function () { ... }":t0(i)?i+"":null};r=Z(e,function(i){if(F(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var u=n(s);return u??s})}catch{return"?"}else return"?"}).join(" ")}return r}function Gt(e){throw new Error(e)}function Tc(e,t,r){return(t-e)*r+e}var Jp="series\0",F1="\0_ec_\0";function Rt(e){return e instanceof Array?e:e==null?[]:[e]}function Ol(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Cc=["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 Sa(e){return V(e)&&!k(e)&&!(e instanceof Date)?e.value:e}function V1(e){return V(e)&&!(e instanceof Array)}function z1(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=tt();T(t,function(u,l){if(!V(u)){t[l]=null;return}process.env.NODE_ENV!=="production"&&(u.id!=null&&!Mc(u.id)&&Dc(u.id),u.name!=null&&!Mc(u.name)&&Dc(u.name))});var s=H1(e,o,r);return(n||i)&&G1(s,e,o,t),n&&W1(s,t),n||i?U1(s,t,i):a&&Y1(s,t),X1(s),s}function H1(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||si(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function G1(e,t,r,n){T(n,function(i,a){if(!(!i||i.id==null)){var o=Ji(i.id),s=r.get(o);if(s!=null){var u=e[s];z(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[s],n[a]=null}}})}function W1(e,t){T(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!si(r)&&!si(a)&&tg("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function U1(e,t,r){T(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||si(i.existing)||i.existing&&n.id!=null&&!tg("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Y1(e,t){T(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function X1(e){var t=tt();T(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),T(e,function(r){var n=r.newOption;z(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),T(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(V(a)){if(o.name=a.name!=null?Ji(a.name):i?i.name:Jp+n,i)o.id=Ji(i.id);else if(a.id!=null)o.id=Ji(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function tg(e,t,r){var n=Te(t[e],null),i=Te(r[e],null);return n!=null&&i!=null&&n===i}function Ji(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return Te(e,"")}function Te(e,t){return e==null?t:F(e)?e:mt(e)||Eo(e)?e+"":t}function Dc(e){process.env.NODE_ENV!=="production"&&Kt("`"+e+"` is invalid id or name. Must be a string or number.")}function Mc(e){return Eo(e)||qp(e)}function Wf(e){var t=e.name;return!!(t&&t.indexOf(Jp))}function si(e){return e&&e.id!=null&&Ji(e.id).indexOf(F1)===0}function $1(e,t,r){T(e,function(n){var i=n.newOption;V(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Z1(t,i,n.existing,r))})}function Z1(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function q1(e,t){var r={},n={};return i(e||[],r),i(t||[],n,r),[a(r),a(n)];function i(o,s,u){for(var l=0,f=o.length;l<f;l++){var h=Te(o[l].seriesId,null);if(h==null)return;for(var c=Rt(o[l].dataIndex),v=u&&u[h],d=0,m=c.length;d<m;d++){var g=c[d];v&&v[g]?v[g]=null:(s[h]||(s[h]={}))[g]=1}}}function a(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var f=a(o[l],!0);f.length&&u.push({seriesId:l,dataIndex:f})}return u}}function mi(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return k(t.dataIndex)?Z(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return k(t.name)?Z(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function _t(){var e="__ec_inner_"+K1++;return function(t){return t[e]||(t[e]={})}}var K1=Kp();function vu(e,t,r){var n=Uf(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var h=yi(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Uf(e,t){var r;if(F(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=tt(),a={},o=!1;return T(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ot(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var re={useDefault:!0,enableAll:!1,enableNone:!1},Q1={useDefault:!1,enableAll:!0,enableNone:!0};function yi(e,t,r,n){n=n||re;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=e.getComponent(t))?[u]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&lt('`"none"` or `false` is not a valid value on index option.'),i=-1}return i==="all"&&(n.enableAll?i=a=o=null:(process.env.NODE_ENV!=="production"&&lt('`"all"` is not a valid value on index option.'),i=-1)),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function eg(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function j1(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function J1(e){return e==="auto"?Q.domSupported?"html":"richText":e||"html"}function rg(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(mt(n)){var o=Tc(r||0,n,i);return Pt(o,a?Math.max(er(r||0),er(n)):t)}else{if(F(n))return i<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=e.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=Tc(v,d,i);s[h]=Pt(o,a?Math.max(er(v),er(d)):t)}}return s}}var tx=".",Gr="___EC__COMPONENT__CONTAINER___",ng="___EC__EXTENDED_CLASS___";function He(e){var t={main:"",sub:""};if(e){var r=e.split(tx);t.main=r[0]||"",t.sub=r[1]||""}return t}function ex(e){z(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function rx(e){return!!(e&&e[ng])}function Yf(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&T(t,function(a){r[a]||console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,i;return nx(n)?i=(function(a){B(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Q_(i,this)),R(i.prototype,r),i[ng]=!0,i.extend=this.extend,i.superCall=ox,i.superApply=sx,i.superClass=n,i}}function nx(e){return K(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function ig(e,t){e.extend=t.extend}var ix=Math.round(Math.random()*10);function ax(e){var t=["__\0is_clz",ix++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&z(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function ox(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function sx(e,t,r){return this.superClass.prototype[t].apply(e,r)}function ws(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){ex(i),n.prototype.type=i;var a=He(i);if(!a.sub)process.env.NODE_ENV!=="production"&&t[a.main]&&console.warn(a.main+" exists."),t[a.main]=n;else if(a.sub!==Gr){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Gr]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=He(n),a=[],o=t[i.main];return o&&o[Gr]?T(o,function(s,u){u!==Gr&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=He(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return T(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=He(n),a=t[i.main];return a&&a[Gr]};function r(n){var i=t[n.main];return(!i||!i[Gr])&&(i=t[n.main]={},i[Gr]=!0),i}}function la(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(i&&ot(i,u)>=0||a&&ot(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var ux=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lx=la(ux),fx=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return lx(this,t,r)},e})(),Rl=new ii(50);function hx(e){if(typeof e=="string"){var t=Rl.get(e);return t&&t.image}else return e}function ag(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Rl.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!bs(t)&&a.pending.push(o)):(t=Ye.loadImage(e,Ec,Ec),t.__zrImageSrc=e,Rl.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Ec(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function bs(e){return e&&e.width&&e.height}var du=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function cx(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
24
+ `);a=og(r,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)sg(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`
25
+ `),e.isTruncated=s}function og(e,t,r,n){n=n||{};var i=R({},n);r=X(r,"..."),i.maxIterations=X(n.maxIterations,2);var a=i.minChar=X(n.minChar,0),o=i.fontMeasureInfo=Ge(t),s=o.asciiCharWidth;i.placeholder=X(n.placeholder,"");for(var u=e=Math.max(0,e-1),l=0;l<a&&u>=s;l++)u-=s;var f=We(o,r);return f>u&&(r="",f=0),u=e-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=u,i.containerWidth=e,i}function sg(e,t,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=We(a,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?vx(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,u),o=We(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function vx(e,t,r){for(var n=0,i=0,a=e.length;i<a&&n<t;i++)n+=Hp(r,e.charCodeAt(i));return i}function dx(e,t,r,n){var i=Xf(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,f=a==="truncate",h=ys(l),c=X(t.lineHeight,h),v=t.lineOverflow==="truncate",d=!1,m=t.width;m==null&&r!=null&&(m=r-s);var g=t.height;g==null&&n!=null&&(g=n-u);var p;m!=null&&(a==="break"||a==="breakAll")?p=i?ug(i,t.font,m,a==="breakAll",0).lines:[]:p=i?i.split(`
26
+ `):[];var y=p.length*c;if(g==null&&(g=y),y>g&&v){var _=Math.floor(g/c);d=d||p.length>_,p=p.slice(0,_),y=p.length*c}if(i&&f&&m!=null)for(var x=og(m,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w={},S=0;S<p.length;S++)sg(w,p[S],x),p[S]=w.textLine,d=d||w.isTruncated;for(var b=g,C=0,M=Ge(l),S=0;S<p.length;S++)C=Math.max(We(M,p[S]),C);m==null&&(m=C);var E=m;return b+=u,E+=s,{lines:p,height:g,outerWidth:E,outerHeight:b,lineHeight:c,calculatedLineHeight:h,contentWidth:C,contentHeight:y,width:m,isTruncated:d}}var px=(function(){function e(){}return e})(),Ac=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),gx=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function mx(e,t,r,n,i){var a=new gx,o=Xf(e);if(!o)return a;var s=t.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-u);var h=t.height;h==null&&n!=null&&(h=n-l);for(var c=t.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=du.lastIndex=0,m;(m=du.exec(o))!=null;){var g=m.index;g>d&&pu(a,o.substring(d,g),t,v),pu(a,m[2],t,v,m[1]),d=du.lastIndex}d<o.length&&pu(a,o.substring(d,o.length),t,v);var p=[],y=0,_=0,x=c==="truncate",w=t.lineOverflow==="truncate",S={};function b(Pe,Ie,Ze){Pe.width=Ie,Pe.lineHeight=Ze,y+=Ze,_=Math.max(_,Ie)}t:for(var C=0;C<a.lines.length;C++){for(var M=a.lines[C],E=0,A=0,L=0;L<M.tokens.length;L++){var D=M.tokens[L],P=D.styleName&&t.rich[D.styleName]||{},I=D.textPadding=P.padding,O=I?I[1]+I[3]:0,U=D.font=P.font||t.font;D.contentHeight=ys(U);var G=X(P.height,D.contentHeight);if(D.innerHeight=G,I&&(G+=I[0]+I[2]),D.height=G,D.lineHeight=nr(P.lineHeight,t.lineHeight,G),D.align=P&&P.align||i,D.verticalAlign=P&&P.verticalAlign||"middle",w&&h!=null&&y+D.lineHeight>h){var q=a.lines.length;L>0?(M.tokens=M.tokens.slice(0,L),b(M,A,E),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<q;break t}var $=P.width,Y=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")D.percentWidth=$,p.push(D),D.contentWidth=We(Ge(U),D.text);else{if(Y){var W=P.backgroundColor,nt=W&&W.image;nt&&(nt=hx(nt),bs(nt)&&(D.width=Math.max(D.width,nt.width*G/nt.height)))}var Tt=x&&f!=null?f-A:null;Tt!=null&&Tt<D.width?!Y||Tt<O?(D.text="",D.width=D.contentWidth=0):(cx(S,D.text,Tt-O,U,t.ellipsis,{minChar:t.truncateMinChar}),D.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,D.width=D.contentWidth=We(Ge(U),D.text)):D.contentWidth=We(Ge(U),D.text)}D.width+=O,A+=D.width,P&&(E=Math.max(E,D.lineHeight))}b(M,A,E)}a.outerWidth=a.width=X(f,_),a.outerHeight=a.height=X(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var C=0;C<p.length;C++){var D=p[C],Le=D.percentWidth;D.width=parseInt(Le,10)/100*a.width}return a}function pu(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,u=o.font||r.font,l=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Er(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
27
+ `),l=!0),n.accumWidth=d}else{var m=ug(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+v,h=m.linesWidths,f=m.lines}}f||(f=t.split(`
28
+ `));for(var g=Ge(u),p=0;p<f.length;p++){var y=f[p],_=new px;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:We(g,y),!p&&!l){var x=(s[s.length-1]||(s[0]=new Ac)).tokens,w=x.length;w===1&&x[0].isLineHolder?x[0]=_:(y||!w||a)&&x.push(_)}else s.push(new Ac([_]))}}function yx(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var _x=sr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function xx(e){return yx(e)?!!_x[e]:!0}function ug(e,t,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=Ge(t),c=0;c<e.length;c++){var v=e.charAt(c);if(v===`
29
+ `){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=Hp(h,v.charCodeAt(0)),m=n?!1:!xx(v);if(a.length?f+d>r:i+f+d>r){f?(s||u)&&(m?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=v,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=v,f=d)):m?(a.push(u),o.push(l),u=v,l=d):(a.push(v),o.push(d));continue}f+=d,m?(u+=v,l+=d):(u&&(s+=u,u="",l=0),s+=v)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Lc(e,t,r,n,i,a){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;J.set(Pc,oi(r,o,i),dn(n,s,a),o,s),J.intersect(t,Pc,null,Ic);var u=Ic.outIntersectRect;e.outerWidth=u.width,e.outerHeight=u.height,e.baseX=oi(u.x,u.width,i,!0),e.baseY=dn(u.y,u.height,a,!0)}}var Pc=new J(0,0,0,0),Ic={outIntersectRect:{},clamp:!0};function Xf(e){return e!=null?e+="":e=""}function Sx(e){var t=Xf(e.text),r=e.font,n=We(Ge(r),t),i=ys(r);return Nl(e,n,i,null)}function Nl(e,t,r,n){var i=new J(oi(e.x||0,t,e.textAlign),dn(e.y||0,r,e.textBaseline),t,r),a=n??(lg(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function lg(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var kl="__zr_style_"+Math.round(Math.random()*10),pn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ts={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};pn[kl]=!0;var Oc=["z","z2","invisible"],bx=["invisible"],_i=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=pt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Tx(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new J(0,0,0,0)),n?J.applyTransform(r,i,n):r.copy(i),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:R(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Hi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Hi)},t.prototype.styleUpdated=function(){this.__dirty&=~Hi},t.prototype.createStyle=function(r){return ms(pn,r)},t.prototype.useStyle=function(r){r[kl]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[kl]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Oc)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.style?o?a?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=pt(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=pt(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var m=this.__inHover?bx:Oc,c=0;c<m.length;c++){var v=m[c];n&&n[v]!=null?this[v]=n[v]:u&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return R(r,n),r},t.prototype.getAnimationStyleProps=function(){return Ts},t.initDefaultProps=(function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=ee|Hi})(),t})(_s),gu=new J(0,0,0,0),mu=new J(0,0,0,0);function Tx(e,t,r){return gu.copy(e.getBoundingRect()),e.transform&&gu.applyTransform(e.transform),mu.width=t,mu.height=r,!gu.intersect(mu)}var ce=Math.min,ve=Math.max,yu=Math.sin,_u=Math.cos,Wr=Math.PI*2,Ba=pi(),Fa=pi(),Va=pi();function Rc(e,t,r,n,i,a){i[0]=ce(e,r),i[1]=ce(t,n),a[0]=ve(e,r),a[1]=ve(t,n)}var Nc=[],kc=[];function Cx(e,t,r,n,i,a,o,s,u,l){var f=Op,h=Bt,c=f(e,r,i,o,Nc);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(e,r,i,o,Nc[v]);u[0]=ce(d,u[0]),l[0]=ve(d,l[0])}c=f(t,n,a,s,kc);for(var v=0;v<c;v++){var m=h(t,n,a,s,kc[v]);u[1]=ce(m,u[1]),l[1]=ve(m,l[1])}u[0]=ce(e,u[0]),l[0]=ve(e,l[0]),u[0]=ce(o,u[0]),l[0]=ve(o,l[0]),u[1]=ce(t,u[1]),l[1]=ve(t,l[1]),u[1]=ce(s,u[1]),l[1]=ve(s,l[1])}function Dx(e,t,r,n,i,a,o,s){var u=Rp,l=qt,f=ve(ce(u(e,r,i),1),0),h=ve(ce(u(t,n,a),1),0),c=l(e,r,i,f),v=l(t,n,a,h);o[0]=ce(e,i,c),o[1]=ce(t,a,v),s[0]=ve(e,i,c),s[1]=ve(t,a,v)}function Mx(e,t,r,n,i,a,o,s,u){var l=Xn,f=$n,h=Math.abs(i-a);if(h%Wr<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-n,u[0]=e+r,u[1]=t+n;return}if(Ba[0]=_u(i)*r+e,Ba[1]=yu(i)*n+t,Fa[0]=_u(a)*r+e,Fa[1]=yu(a)*n+t,l(s,Ba,Fa),f(u,Ba,Fa),i=i%Wr,i<0&&(i=i+Wr),a=a%Wr,a<0&&(a=a+Wr),i>a&&!o?a+=Wr:i<a&&o&&(i+=Wr),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Va[0]=_u(v)*r+e,Va[1]=yu(v)*n+t,l(s,Va,s),f(u,Va,u))}var ut={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ur=[],Yr=[],Oe=[],cr=[],Re=[],Ne=[],xu=Math.min,Su=Math.max,Xr=Math.cos,$r=Math.sin,qe=Math.abs,Bl=Math.PI,_r=Bl*2,wu=typeof Float32Array<"u",Ci=[];function bu(e){var t=Math.round(e/Bl*1e8)/1e8;return t%2*Bl}function fg(e,t){var r=bu(e[0]);r<0&&(r+=_r);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=_r?i=r+_r:t&&r-i>=_r?i=r-_r:!t&&r>i?i=r+(_r-bu(r-i)):t&&r<i&&(i=r-(_r-bu(i-r))),e[0]=r,e[1]=i}var xn=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=qe(n/ko/t)||0,this._uy=qe(n/ko/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(ut.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=qe(t-this._xi),i=qe(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ut.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(ut.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(ut.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Ci[0]=i,Ci[1]=a,fg(Ci,o),i=Ci[0],a=Ci[1];var s=a-i;return this.addData(ut.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Xr(a)*n+t,this._yi=$r(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(ut.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ut.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&wu&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();var o=this.data;if(wu&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=t[a].data,s=0;s<u.length;s++)this.data[i++]=u[s];this._len=i}},e.prototype.addData=function(t,r,n,i,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,wu&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Oe[0]=Oe[1]=Re[0]=Re[1]=Number.MAX_VALUE,cr[0]=cr[1]=Ne[0]=Ne[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],n=t[o+1],i=r,a=n),s){case ut.M:r=i=t[o++],n=a=t[o++],Re[0]=i,Re[1]=a,Ne[0]=i,Ne[1]=a;break;case ut.L:Rc(r,n,t[o],t[o+1],Re,Ne),r=t[o++],n=t[o++];break;case ut.C:Cx(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Re,Ne),r=t[o++],n=t[o++];break;case ut.Q:Dx(r,n,t[o++],t[o++],t[o],t[o+1],Re,Ne),r=t[o++],n=t[o++];break;case ut.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var m=!t[o++];u&&(i=Xr(v)*h+l,a=$r(v)*c+f),Mx(l,f,h,c,v,d,m,Re,Ne),r=Xr(d)*h+l,n=$r(d)*c+f;break;case ut.R:i=r=t[o++],a=n=t[o++];var g=t[o++],p=t[o++];Rc(i,a,i+g,a+p,Re,Ne);break;case ut.Z:r=i,n=a;break}Xn(Oe,Oe,Re),$n(cr,cr,Ne)}return o===0&&(Oe[0]=Oe[1]=cr[0]=cr[1]=0),new J(Oe[0],Oe[1],cr[0]-Oe[0],cr[1]-Oe[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,c=0;c<r;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var m=-1;switch(v){case ut.M:a=s=t[c++],o=u=t[c++];break;case ut.L:{var g=t[c++],p=t[c++],y=g-a,_=p-o;(qe(y)>n||qe(_)>i||c===r-1)&&(m=Math.sqrt(y*y+_*_),a=g,o=p);break}case ut.C:{var x=t[c++],w=t[c++],g=t[c++],p=t[c++],S=t[c++],b=t[c++];m=W0(a,o,x,w,g,p,S,b,10),a=S,o=b;break}case ut.Q:{var x=t[c++],w=t[c++],g=t[c++],p=t[c++];m=X0(a,o,x,w,g,p,10),a=g,o=p;break}case ut.A:var C=t[c++],M=t[c++],E=t[c++],A=t[c++],L=t[c++],D=t[c++],P=D+L;c+=1,d&&(s=Xr(L)*E+C,u=$r(L)*A+M),m=Su(E,A)*xu(_r,Math.abs(D)),a=Xr(P)*E+C,o=$r(P)*A+M;break;case ut.R:{s=a=t[c++],u=o=t[c++];var I=t[c++],O=t[c++];m=I*2+O*2;break}case ut.Z:{var y=s-a,_=u-o;m=Math.sqrt(y*y+_*_),a=s,o=u;break}}m>=0&&(l[h++]=m,f+=m)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,m,g=0,p=0,y,_=0,x,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=this._pathLen,y=r*m,!y)))t:for(var S=0;S<o;){var b=n[S++],C=S===1;switch(C&&(l=n[S],f=n[S+1],s=l,u=f),b!==ut.L&&_>0&&(t.lineTo(x,w),_=0),b){case ut.M:s=l=n[S++],u=f=n[S++],t.moveTo(l,f);break;case ut.L:{h=n[S++],c=n[S++];var M=qe(h-l),E=qe(c-f);if(M>i||E>a){if(v){var A=d[p++];if(g+A>y){var L=(y-g)/A;t.lineTo(l*(1-L)+h*L,f*(1-L)+c*L);break t}g+=A}t.lineTo(h,c),l=h,f=c,_=0}else{var D=M*M+E*E;D>_&&(x=h,w=c,_=D)}break}case ut.C:{var P=n[S++],I=n[S++],O=n[S++],U=n[S++],G=n[S++],q=n[S++];if(v){var A=d[p++];if(g+A>y){var L=(y-g)/A;Io(l,P,O,G,L,Ur),Io(f,I,U,q,L,Yr),t.bezierCurveTo(Ur[1],Yr[1],Ur[2],Yr[2],Ur[3],Yr[3]);break t}g+=A}t.bezierCurveTo(P,I,O,U,G,q),l=G,f=q;break}case ut.Q:{var P=n[S++],I=n[S++],O=n[S++],U=n[S++];if(v){var A=d[p++];if(g+A>y){var L=(y-g)/A;Oo(l,P,O,L,Ur),Oo(f,I,U,L,Yr),t.quadraticCurveTo(Ur[1],Yr[1],Ur[2],Yr[2]);break t}g+=A}t.quadraticCurveTo(P,I,O,U),l=O,f=U;break}case ut.A:var $=n[S++],Y=n[S++],W=n[S++],nt=n[S++],Tt=n[S++],Le=n[S++],Pe=n[S++],Ie=!n[S++],Ze=W>nt?W:nt,Jt=qe(W-nt)>.001,It=Tt+Le,j=!1;if(v){var A=d[p++];g+A>y&&(It=Tt+Le*(y-g)/A,j=!0),g+=A}if(Jt&&t.ellipse?t.ellipse($,Y,W,nt,Pe,Tt,It,Ie):t.arc($,Y,Ze,Tt,It,Ie),j)break t;C&&(s=Xr(Tt)*W+$,u=$r(Tt)*nt+Y),l=Xr(It)*W+$,f=$r(It)*nt+Y;break;case ut.R:s=l=n[S],u=f=n[S+1],h=n[S++],c=n[S++];var it=n[S++],Nr=n[S++];if(v){var A=d[p++];if(g+A>y){var zt=y-g;t.moveTo(h,c),t.lineTo(h+xu(zt,it),c),zt-=it,zt>0&&t.lineTo(h+it,c+xu(zt,Nr)),zt-=Nr,zt>0&&t.lineTo(h+Su(it-zt,0),c+Nr),zt-=it,zt>0&&t.lineTo(h,c+Su(Nr-zt,0));break t}g+=A}t.rect(h,c,it,Nr);break;case ut.Z:if(v){var A=d[p++];if(g+A>y){var L=(y-g)/A;t.lineTo(l*(1-L)+s*L,f*(1-L)+u*L);break t}g+=A}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=ut,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function Ln(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-n)/(e-r),l=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function Ex(e,t,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||l>e+h&&l>r+h&&l>i+h&&l>o+h||l<e-h&&l<r-h&&l<i-h&&l<o-h)return!1;var c=G0(e,t,r,n,i,a,o,s,l,f);return c<=h/2}function Ax(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>n+l&&u>a+l||u<t-l&&u<n-l&&u<a-l||s>e+l&&s>r+l&&s>i+l||s<e-l&&s<r-l&&s<i-l)return!1;var f=Y0(e,t,r,n,i,a,s,u);return f<=l/2}var Bc=Math.PI*2;function za(e){return e%=Bc,e<0&&(e+=Bc),e}var Di=Math.PI*2;function Lx(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-i)%Di<1e-4)return!0;if(a){var h=n;n=za(i),i=za(h)}else n=za(n),i=za(i);n>i&&(i+=Di);var c=Math.atan2(u,s);return c<0&&(c+=Di),c>=n&&c<=i||c+Di>=n&&c+Di<=i}function Zr(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var u=o*(r-e)+e;return u===i?1/0:u>i?s:0}var vr=xn.CMD,qr=Math.PI*2,Px=1e-4;function Ix(e,t){return Math.abs(e-t)<Px}var Ht=[-1,-1,-1],fe=[-1,-1];function Ox(){var e=fe[0];fe[0]=fe[1],fe[1]=e}function Rx(e,t,r,n,i,a,o,s,u,l){if(l>t&&l>n&&l>a&&l>s||l<t&&l<n&&l<a&&l<s)return 0;var f=Vf(t,n,a,s,l,Ht);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,m=0;m<f;m++){var g=Ht[m],p=g===0||g===1?.5:1,y=Bt(e,r,i,o,g);y<u||(c<0&&(c=Op(t,n,a,s,fe),fe[1]<fe[0]&&c>1&&Ox(),v=Bt(t,n,a,s,fe[0]),c>1&&(d=Bt(t,n,a,s,fe[1]))),c===2?g<fe[0]?h+=v<t?p:-p:g<fe[1]?h+=d<v?p:-p:h+=s<d?p:-p:g<fe[0]?h+=v<t?p:-p:h+=s<v?p:-p)}return h}function Nx(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var u=U0(t,n,a,s,Ht);if(u===0)return 0;var l=Rp(t,n,a);if(l>=0&&l<=1){for(var f=0,h=qt(t,n,a,l),c=0;c<u;c++){var v=Ht[c]===0||Ht[c]===1?.5:1,d=qt(e,r,i,Ht[c]);d<o||(Ht[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Ht[0]===0||Ht[0]===1?.5:1,d=qt(e,r,i,Ht[0]);return d<o?0:a<t?v:-v}}function kx(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Ht[0]=-u,Ht[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=qr-1e-4){n=0,i=qr;var f=a?1:-1;return o>=Ht[0]+e&&o<=Ht[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=qr,i+=qr);for(var c=0,v=0;v<2;v++){var d=Ht[v];if(d+e>o){var m=Math.atan2(s,d),f=a?1:-1;m<0&&(m=qr+m),(m>=n&&m<=i||m+qr>=n&&m+qr<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(f=-f),c+=f)}}return c}function hg(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var m=a[d++],g=d===1;switch(m===vr.M&&d>1&&(r||(s+=Zr(u,l,f,h,n,i))),g&&(u=a[d],l=a[d+1],f=u,h=l),m){case vr.M:f=a[d++],h=a[d++],u=f,l=h;break;case vr.L:if(r){if(Ln(u,l,a[d],a[d+1],t,n,i))return!0}else s+=Zr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case vr.C:if(r){if(Ex(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Rx(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case vr.Q:if(r){if(Ax(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Nx(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case vr.A:var p=a[d++],y=a[d++],_=a[d++],x=a[d++],w=a[d++],S=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(w)*_+p,v=Math.sin(w)*x+y,g?(f=c,h=v):s+=Zr(u,l,c,v,n,i);var C=(n-p)*x/_+p;if(r){if(Lx(p,y,x,w,w+S,b,t,C,i))return!0}else s+=kx(p,y,x,w,w+S,b,C,i);u=Math.cos(w+S)*_+p,l=Math.sin(w+S)*x+y;break;case vr.R:f=u=a[d++],h=l=a[d++];var M=a[d++],E=a[d++];if(c=f+M,v=h+E,r){if(Ln(f,h,c,h,t,n,i)||Ln(c,h,c,v,t,n,i)||Ln(c,v,f,v,t,n,i)||Ln(f,v,f,h,t,n,i))return!0}else s+=Zr(c,h,c,v,n,i),s+=Zr(f,v,f,h,n,i);break;case vr.Z:if(r){if(Ln(u,l,f,h,t,n,i))return!0}else s+=Zr(u,l,f,h,n,i);u=f,l=h;break}}return!r&&!Ix(l,h)&&(s+=Zr(u,l,f,h,n,i)||0),s!==0}function Bx(e,t,r){return hg(e,0,!1,t,r)}function Fx(e,t,r,n){return hg(e,t,!0,r,n)}var cg=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},pn),Vx={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ts.style)},Tu=ai.concat(["invisible","culling","z","z2","zlevel","parent"]),gt=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Tu.length;++s)i[Tu[s]]=this[Tu[s]];i.__dirty|=ee}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=pt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?R(this.style,s):this.useStyle(s):o==="shape"?R(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(F(r)){var n=No(r,0);return n>.5?Ml:n>.2?g1:El}else if(r)return El}return Ml},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(F(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=No(r,0)<Dl;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Yn},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new xn(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Yn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),Fx(s,u/l,r,n)))return!0}if(this.hasFill())return Bx(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Yn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:R(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Yn)},t.prototype.createStyle=function(r){return ms(cg,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=R({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=R({},i.shape),R(l,n.shape)):(l=R({},a?this.shape:i.shape),R(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=R({},this.shape);for(var f={},h=pt(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return Vx},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=(function(a){B(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return rt(r.style)},o.prototype.getDefaultShape=function(){return rt(r.shape)},o})(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=ee|Hi|Yn})(),t})(_i),zx=ft({strokeFirst:!0,font:Mr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},cg),zo=(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return lg(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return ms(zx,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Sx(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(_i);zo.prototype.type="tspan";var Hx=ft({x:0,y:0},pn),Gx={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ts.style)};function Wx(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Or=(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ms(Hx,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Wx(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Gx},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new J(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(_i);Or.prototype.type="image";function Ux(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,n),e.lineTo(r+i-u,n),u!==0&&e.arc(r+i-u,n+u,u,-Math.PI/2,0),e.lineTo(r+i,n+a-l),l!==0&&e.arc(r+i-l,n+a-l,l,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Kn=Math.round;function vg(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Kn(n*2)===Kn(i*2)&&(e.x1=e.x2=ln(n,s,!0)),Kn(a*2)===Kn(o*2)&&(e.y1=e.y2=ln(a,s,!0))),e}}function dg(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=ln(n,s,!0),e.y=ln(i,s,!0),e.width=Math.max(ln(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(ln(i+o,s,!1)-e.y,o===0?0:1)),e}}function ln(e,t,r){if(!t)return e;var n=Kn(e*2);return(n+Kn(t))%2===0?n/2:(n+(r?1:-1))/2}var Yx=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),Xx={},bt=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Yx},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=dg(Xx,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Ux(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(gt);bt.prototype.type="rect";var Fc={fill:"#000"},Vc=2,ke={},$x={style:ft({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},Ts.style)},Ft=(function(e){B(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Fc,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,jx(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new J(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(i);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Fc},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return R(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=pt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},R(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return $x},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Mr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";Lc(ke,a.overflowRect,o,s,u,l),o=ke.baseX,s=ke.baseY;var f=Xc(r),h=dx(f,r,ke.outerWidth,ke.outerHeight),c=Cu(r),v=!!r.backgroundColor,d=h.outerHeight,m=h.outerWidth,g=h.lines,p=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=dn(s,h.contentHeight,l);if(c||i){var x=oi(o,m,u),w=dn(s,d,l);c&&this._renderBackground(r,r,x,w,m,d)}_+=p/2,i&&(y=Yc(o,u,i),l==="top"?_+=i[0]:l==="bottom"&&(_-=i[2]));for(var S=0,b=!1,C=!1,M=Uc("fill"in r?r.fill:(C=!0,a.fill)),E=Wc("stroke"in r?r.stroke:!v&&(!a.autoStroke||C)?(S=Vc,b=!0,a.stroke):null),A=r.textShadowBlur>0,L=0;L<g.length;L++){var D=this._getOrCreateChild(zo),P=D.createStyle();D.useStyle(P),P.text=g[L],P.x=y,P.y=_,P.textAlign=u,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,A&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=E,P.fill=M,E&&(P.lineWidth=r.lineWidth||S,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,Hc(P,r),_+=p,D.setBoundingRect(Nl(P,h.contentWidth,h.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Lc(ke,n.overflowRect,o,s,i,a),o=ke.baseX,s=ke.baseY;var u=Xc(r),l=mx(u,r,ke.outerWidth,ke.outerHeight,i),f=l.width,h=l.outerWidth,c=l.outerHeight,v=r.padding;this.isTruncated=!!l.isTruncated;var d=oi(o,h,i),m=dn(s,c,a),g=d,p=m;v&&(g+=v[3],p+=v[0]);var y=g+f;Cu(r)&&this._renderBackground(r,r,d,m,h,c);for(var _=!!r.backgroundColor,x=0;x<l.lines.length;x++){for(var w=l.lines[x],S=w.tokens,b=S.length,C=w.lineHeight,M=w.width,E=0,A=g,L=y,D=b-1,P=void 0;E<b&&(P=S[E],!P.align||P.align==="left");)this._placeToken(P,r,C,p,A,"left",_),M-=P.width,A+=P.width,E++;for(;D>=0&&(P=S[D],P.align==="right");)this._placeToken(P,r,C,p,L,"right",_),M-=P.width,L-=P.width,D--;for(A+=(f-(A-g)-(y-L)-M)/2;E<=D;)P=S[E],this._placeToken(P,r,C,p,A+P.width/2,"center",_),A+=P.width,E++;p+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var c=!r.isLineHolder&&Cu(l);c&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=Yc(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var m=this._getOrCreateChild(zo),g=m.createStyle();m.useStyle(g);var p=this._defaultStyle,y=!1,_=0,x=!1,w=Uc("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,p.fill)),S=Wc("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!p.autoStroke||y)?(_=Vc,x=!0,p.stroke):null),b=l.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=h,b&&(g.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,g.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Mr,g.opacity=nr(l.opacity,n.opacity,1),Hc(g,l),S&&(g.lineWidth=nr(l.lineWidth,n.lineWidth,_),g.lineDash=X(l.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=S),w&&(g.fill=w),m.setBoundingRect(Nl(g,r.contentWidth,r.contentHeight,x?0:null))},t.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,m,g;if(c||r.lineHeight||l&&f){m=this._getOrCreateChild(bt),m.useStyle(m.createStyle()),m.style.fill=null;var p=m.shape;p.x=i,p.y=a,p.width=o,p.height=s,p.r=v,m.dirtyShape()}if(c){var y=m.style;y.fill=u||null,y.fillOpacity=X(r.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Or),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var y=m.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=X(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(m||g).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=nr(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return Qx(r)&&(n=[r.fontStyle,r.fontWeight,Kx(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ve(n)||r.textFont||r.font},t})(_i),Zx={left:!0,right:1,center:1},qx={top:1,bottom:1,middle:1},zc=["fontStyle","fontWeight","fontSize","fontFamily"];function Kx(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Lf+"px":e+"px"}function Hc(e,t){for(var r=0;r<zc.length;r++){var n=zc[r],i=t[n];i!=null&&(e[n]=i)}}function Qx(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function jx(e){return Gc(e),T(e.rich,Gc),e}function Gc(e){if(e){e.font=Ft.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Zx[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||qx[r]?r:"top";var n=e.padding;n&&(e.padding=Rf(e.padding))}}function Wc(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Uc(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Yc(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Xc(e){var t=e.text;return t!=null&&(t+=""),t}function Cu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var ct=_t(),pg=function(e,t,r,n){if(n){var i=ct(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ct(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},$c=1,Zc={},gg=_t(),$f=_t(),Zf=0,Cs=1,Ds=2,ur=["emphasis","blur","select"],Fl=["normal","emphasis","blur","select"],Jx=10,tS=9,gn="highlight",_o="downplay",Ho="select",Vl="unselect",Go="toggleSelect",qf="selectchanged";function Pn(e){return e!=null&&e!=="none"}function Ms(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function mg(e){Ms(e,"emphasis",Ds)}function yg(e){e.hoverState===Ds&&Ms(e,"normal",Zf)}function Kf(e){Ms(e,"blur",Cs)}function _g(e){e.hoverState===Cs&&Ms(e,"normal",Zf)}function eS(e){e.selected=!0}function rS(e){e.selected=!1}function qc(e,t,r){t(e,r)}function hr(e,t,r){qc(e,t,r),e.isGroup&&e.traverse(function(n){qc(n,t,r)})}function nS(e,t){switch(t){case"emphasis":e.hoverState=Ds;break;case"normal":e.hoverState=Zf;break;case"blur":e.hoverState=Cs;break;case"select":e.selected=!0}}function iS(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=i[s];a[s]=u??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function aS(e,t,r,n){var i=r&&ot(r,"select")>=0,a=!1;if(e instanceof gt){var o=gg(e),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Pn(s)||Pn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=R({},n),l=R({},l),l.fill=s):!Pn(l.fill)&&Pn(s)?(a=!0,n=R({},n),l=R({},l),l.fill=lc(s)):!Pn(l.stroke)&&Pn(u)&&(a||(n=R({},n),l=R({},l)),l.stroke=lc(u)),n.style=l}}if(n&&n.z2==null){a||(n=R({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??Jx)}return n}function oS(e,t,r){if(r&&r.z2==null){r=R({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??tS)}return r}function sS(e,t,r){var n=ot(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:iS(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=R({},r),o=R({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Du(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return aS(this,e,t,r);if(e==="blur")return sS(this,e,r);if(e==="select")return oS(this,e,r)}return r}function xg(e){e.stateProxy=Du;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Du),r&&(r.stateProxy=Du)}function Kc(e,t){!Tg(e,t)&&!e.__highByOuter&&hr(e,mg)}function Qc(e,t){!Tg(e,t)&&!e.__highByOuter&&hr(e,yg)}function Wo(e,t){e.__highByOuter|=1<<(t||0),hr(e,mg)}function Uo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&hr(e,yg)}function uS(e){hr(e,Kf)}function Sg(e){hr(e,_g)}function wg(e){hr(e,eS)}function bg(e){hr(e,rS)}function Tg(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Cg(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=$f(a),s=i==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){_g(l)}),s&&r.push(a)),o.isBlured=!1}),T(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function zl(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&Sg(c)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(l);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||Kf(g)}),Ut(t))a(l.getData(),t);else if(V(t))for(var d=pt(t),m=0;m<d.length;m++)a(l.getData(d[m]),t[d[m]]);u.push(l),$f(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,i)}})}}function Hl(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){$f(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Kf(a)})}}}function lS(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!=="production"&&lt("Unknown dataType "+t.dataType);return}var a=mi(i,t);a=(k(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),u=0;!o&&u<s;)o=i.getItemGraphicEl(u++);if(o){var l=ct(o);zl(n,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&zl(n,f,h,r)}}function Qf(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(process.env.NODE_ENV!=="production"&&!ui(s[l])&&lt("param should be highDownDispatcher"),ct(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function fS(e,t,r){process.env.NODE_ENV!=="production"&&!ui(e)&&lt("param should be highDownDispatcher");var n=ct(e),i=Qf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Hl(n.componentMainType,n.componentIndex,r),T(a,function(s){return Kc(s,t)})):(zl(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Hl(n.componentMainType,n.componentIndex,r),Kc(e,t))}function hS(e,t,r){process.env.NODE_ENV!=="production"&&!ui(e)&&lt("param should be highDownDispatcher"),Cg(r);var n=ct(e),i=Qf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?T(i,function(a){return Qc(a,t)}):Qc(e,t)}function cS(e,t,r){if(Gl(t)){var n=t.dataType,i=e.getData(n),a=mi(i,t);k(a)||(a=[a]),e[t.type===Go?"toggleSelect":t.type===Ho?"select":"unselect"](a,n)}}function jc(e){var t=e.getAllData();T(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?wg(a):bg(a)})})}function vS(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();T(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Yo(e,t,r){jf(e,!0),hr(e,xg),gS(e,t,r)}function dS(e){jf(e,!1)}function pS(e,t,r,n){n?dS(e):Yo(e,t,r)}function gS(e,t,r){var n=ct(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Jc=["emphasis","blur","select"],mS={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function yS(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Jc.length;i++){var a=Jc[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[mS[r]]()}}function jf(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function ui(e){return!!(e&&e.__highDownDispatcher)}function _S(e){var t=Zc[e];return t==null&&$c<=32&&(t=Zc[e]=$c++),t}function Gl(e){var t=e.type;return t===Ho||t===Vl||t===Go}function tv(e){var t=e.type;return t===gn||t===_o}function xS(e){var t=gg(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var In=xn.CMD,SS=[[],[],[]],ev=Math.sqrt,wS=Math.atan2;function bS(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,u,l,f=In.M,h=In.C,c=In.L,v=In.R,d=In.A,m=In.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case m:a=2;break;case d:var g=t[4],p=t[5],y=ev(t[0]*t[0]+t[1]*t[1]),_=ev(t[2]*t[2]+t[3]*t[3]),x=wS(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=p,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],ge(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],ge(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var w=SS[u];w[0]=r[o++],w[1]=r[o++],ge(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var Mu=Math.sqrt,Ha=Math.sin,Ga=Math.cos,Mi=Math.PI;function rv(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Wl(e,t){return(e[0]*t[0]+e[1]*t[1])/(rv(e)*rv(t))}function nv(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Wl(e,t))}function iv(e,t,r,n,i,a,o,s,u,l,f){var h=u*(Mi/180),c=Ga(h)*(e-r)/2+Ha(h)*(t-n)/2,v=-1*Ha(h)*(e-r)/2+Ga(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Mu(d),s*=Mu(d));var m=(i===a?-1:1)*Mu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=m*o*v/s,p=m*-s*c/o,y=(e+r)/2+Ga(h)*g-Ha(h)*p,_=(t+n)/2+Ha(h)*g+Ga(h)*p,x=nv([1,0],[(c-g)/o,(v-p)/s]),w=[(c-g)/o,(v-p)/s],S=[(-1*c-g)/o,(-1*v-p)/s],b=nv(w,S);if(Wl(w,S)<=-1&&(b=Mi),Wl(w,S)>=1&&(b=0),b<0){var C=Math.round(b/Mi*1e6)/1e6;b=Mi*2+C%2*Mi}f.addData(l,y,_,o,s,x,b,h,a)}var TS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,CS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function DS(e){var t=new xn;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=xn.CMD,u=e.match(TS);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(CS)||[],d=v.length,m=0;m<d;m++)v[m]=parseFloat(v[m]);for(var g=0;g<d;){var p=void 0,y=void 0,_=void 0,x=void 0,w=void 0,S=void 0,b=void 0,C=r,M=n,E=void 0,A=void 0;switch(h){case"l":r+=v[g++],n+=v[g++],c=s.L,t.addData(c,r,n);break;case"L":r=v[g++],n=v[g++],c=s.L,t.addData(c,r,n);break;case"m":r+=v[g++],n+=v[g++],c=s.M,t.addData(c,r,n),i=r,a=n,h="l";break;case"M":r=v[g++],n=v[g++],c=s.M,t.addData(c,r,n),i=r,a=n,h="L";break;case"h":r+=v[g++],c=s.L,t.addData(c,r,n);break;case"H":r=v[g++],c=s.L,t.addData(c,r,n);break;case"v":n+=v[g++],c=s.L,t.addData(c,r,n);break;case"V":n=v[g++],c=s.L,t.addData(c,r,n);break;case"C":c=s.C,t.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),r=v[g-2],n=v[g-1];break;case"c":c=s.C,t.addData(c,v[g++]+r,v[g++]+n,v[g++]+r,v[g++]+n,v[g++]+r,v[g++]+n),r+=v[g-2],n+=v[g-1];break;case"S":p=r,y=n,E=t.len(),A=t.data,o===s.C&&(p+=r-A[E-4],y+=n-A[E-3]),c=s.C,C=v[g++],M=v[g++],r=v[g++],n=v[g++],t.addData(c,p,y,C,M,r,n);break;case"s":p=r,y=n,E=t.len(),A=t.data,o===s.C&&(p+=r-A[E-4],y+=n-A[E-3]),c=s.C,C=r+v[g++],M=n+v[g++],r+=v[g++],n+=v[g++],t.addData(c,p,y,C,M,r,n);break;case"Q":C=v[g++],M=v[g++],r=v[g++],n=v[g++],c=s.Q,t.addData(c,C,M,r,n);break;case"q":C=v[g++]+r,M=v[g++]+n,r+=v[g++],n+=v[g++],c=s.Q,t.addData(c,C,M,r,n);break;case"T":p=r,y=n,E=t.len(),A=t.data,o===s.Q&&(p+=r-A[E-4],y+=n-A[E-3]),r=v[g++],n=v[g++],c=s.Q,t.addData(c,p,y,r,n);break;case"t":p=r,y=n,E=t.len(),A=t.data,o===s.Q&&(p+=r-A[E-4],y+=n-A[E-3]),r+=v[g++],n+=v[g++],c=s.Q,t.addData(c,p,y,r,n);break;case"A":_=v[g++],x=v[g++],w=v[g++],S=v[g++],b=v[g++],C=r,M=n,r=v[g++],n=v[g++],c=s.A,iv(C,M,r,n,S,b,_,x,w,c,t);break;case"a":_=v[g++],x=v[g++],w=v[g++],S=v[g++],b=v[g++],C=r,M=n,r+=v[g++],n+=v[g++],c=s.A,iv(C,M,r,n,S,b,_,x,w,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),r=i,n=a),o=c}return t.toStatic(),t}var Dg=(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(gt);function Mg(e){return e.setData!=null}function Eg(e,t){var r=DS(e),n=R({},t);return n.buildPath=function(i){var a=Mg(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){bS(r,i),this.dirtyShape()},n}function MS(e,t){return new Dg(Eg(e,t))}function ES(e,t){var r=Eg(e,t),n=(function(i){B(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(Dg);return n}function AS(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new gt(t);return o.createPathProxy(),o.buildPath=function(s){if(Mg(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var LS=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),wa=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new LS},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(gt);wa.prototype.type="circle";var PS=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),Jf=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new PS},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},t})(gt);Jf.prototype.type="ellipse";var Ag=Math.PI,Eu=Ag*2,Kr=Math.sin,On=Math.cos,IS=Math.acos,Nt=Math.atan2,av=Math.abs,ta=Math.sqrt,Ui=Math.max,Be=Math.min,xe=1e-4;function OS(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=h*u-f*l;if(!(c*c<xe))return c=(f*(t-a)-h*(e-i))/c,[e+c*u,t+c*l]}function Wa(e,t,r,n,i,a,o){var s=e-r,u=t-n,l=(o?a:-a)/ta(s*s+u*u),f=l*u,h=-l*s,c=e+f,v=t+h,d=r+f,m=n+h,g=(c+d)/2,p=(v+m)/2,y=d-c,_=m-v,x=y*y+_*_,w=i-a,S=c*m-d*v,b=(_<0?-1:1)*ta(Ui(0,w*w*x-S*S)),C=(S*_-y*b)/x,M=(-S*y-_*b)/x,E=(S*_+y*b)/x,A=(-S*y+_*b)/x,L=C-g,D=M-p,P=E-g,I=A-p;return L*L+D*D>P*P+I*I&&(C=E,M=A),{cx:C,cy:M,x0:-f,y0:-h,x1:C*(i/w-1),y1:M*(i/w-1)}}function RS(e){var t;if(k(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function NS(e,t){var r,n=Ui(t.r,0),i=Ui(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=av(l-u),d=v>Eu&&v%Eu;if(d>xe&&(v=d),!(n>xe))e.moveTo(f,h);else if(v>Eu-xe)e.moveTo(f+n*On(u),h+n*Kr(u)),e.arc(f,h,n,u,l,!c),i>xe&&(e.moveTo(f+i*On(l),h+i*Kr(l)),e.arc(f,h,i,l,u,c));else{var m=void 0,g=void 0,p=void 0,y=void 0,_=void 0,x=void 0,w=void 0,S=void 0,b=void 0,C=void 0,M=void 0,E=void 0,A=void 0,L=void 0,D=void 0,P=void 0,I=n*On(u),O=n*Kr(u),U=i*On(l),G=i*Kr(l),q=v>xe;if(q){var $=t.cornerRadius;$&&(r=RS($),m=r[0],g=r[1],p=r[2],y=r[3]);var Y=av(n-i)/2;if(_=Be(Y,p),x=Be(Y,y),w=Be(Y,m),S=Be(Y,g),M=b=Ui(_,x),E=C=Ui(w,S),(b>xe||C>xe)&&(A=n*On(l),L=n*Kr(l),D=i*On(u),P=i*Kr(u),v<Ag)){var W=OS(I,O,D,P,A,L,U,G);if(W){var nt=I-W[0],Tt=O-W[1],Le=A-W[0],Pe=L-W[1],Ie=1/Kr(IS((nt*Le+Tt*Pe)/(ta(nt*nt+Tt*Tt)*ta(Le*Le+Pe*Pe)))/2),Ze=ta(W[0]*W[0]+W[1]*W[1]);M=Be(b,(n-Ze)/(Ie+1)),E=Be(C,(i-Ze)/(Ie-1))}}}if(!q)e.moveTo(f+I,h+O);else if(M>xe){var Jt=Be(p,M),It=Be(y,M),j=Wa(D,P,I,O,n,Jt,c),it=Wa(A,L,U,G,n,It,c);e.moveTo(f+j.cx+j.x0,h+j.cy+j.y0),M<b&&Jt===It?e.arc(f+j.cx,h+j.cy,M,Nt(j.y0,j.x0),Nt(it.y0,it.x0),!c):(Jt>0&&e.arc(f+j.cx,h+j.cy,Jt,Nt(j.y0,j.x0),Nt(j.y1,j.x1),!c),e.arc(f,h,n,Nt(j.cy+j.y1,j.cx+j.x1),Nt(it.cy+it.y1,it.cx+it.x1),!c),It>0&&e.arc(f+it.cx,h+it.cy,It,Nt(it.y1,it.x1),Nt(it.y0,it.x0),!c))}else e.moveTo(f+I,h+O),e.arc(f,h,n,u,l,!c);if(!(i>xe)||!q)e.lineTo(f+U,h+G);else if(E>xe){var Jt=Be(m,E),It=Be(g,E),j=Wa(U,G,A,L,i,-It,c),it=Wa(I,O,D,P,i,-Jt,c);e.lineTo(f+j.cx+j.x0,h+j.cy+j.y0),E<C&&Jt===It?e.arc(f+j.cx,h+j.cy,E,Nt(j.y0,j.x0),Nt(it.y0,it.x0),!c):(It>0&&e.arc(f+j.cx,h+j.cy,It,Nt(j.y0,j.x0),Nt(j.y1,j.x1),!c),e.arc(f,h,i,Nt(j.cy+j.y1,j.cx+j.x1),Nt(it.cy+it.y1,it.cx+it.x1),c),Jt>0&&e.arc(f+it.cx,h+it.cy,Jt,Nt(it.y1,it.x1),Nt(it.y0,it.x0),!c))}else e.lineTo(f+U,h+G),e.arc(f,h,i,l,u,c)}e.closePath()}}}var kS=(function(){function e(){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 e})(),ba=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new kS},t.prototype.buildPath=function(r,n){NS(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(gt);ba.prototype.type="sector";var BS=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),Es=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new BS},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t})(gt);Es.prototype.type="ring";function FS(e,t,r,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c<v;c++)Xn(f,f,e[c]),$n(h,h,e[c]);Xn(f,f,n[0]),$n(h,h,n[1])}for(var c=0,v=e.length;c<v;c++){var d=e[c];if(r)u=e[c?c-1:v-1],l=e[(c+1)%v];else if(c===0||c===v-1){i.push(o0(e[c]));continue}else u=e[c-1],l=e[c+1];s0(a,l,u),Ys(a,a,t);var m=cl(d,u),g=cl(d,l),p=m+g;p!==0&&(m/=p,g/=p),Ys(o,a,-m),Ys(s,a,g);var y=Xh([],d,o),_=Xh([],d,s);n&&($n(y,y,f),Xn(y,y,h),$n(_,_,f),Xn(_,_,h)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function Lg(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=FS(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var VS=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),As=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new VS},t.prototype.buildPath=function(r,n){Lg(r,n,!0)},t})(gt);As.prototype.type="polygon";var zS=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),Ls=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zS},t.prototype.buildPath=function(r,n){Lg(r,n,!1)},t})(gt);Ls.prototype.type="polyline";var HS={},GS=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),lr=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GS},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=vg(HS,n,this.style);i=u.x1,a=u.y1,o=u.x2,s=u.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t})(gt);lr.prototype.type="line";var Xt=[],WS=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function ov(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?ic:Bt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?ic:Bt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?ac:qt)(e.x1,e.cpx1,e.x2,t),(r?ac:qt)(e.y1,e.cpy1,e.y2,t)]}var th=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new WS},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(r.moveTo(i,a),f==null||h==null?(c<1&&(Oo(i,u,o,c,Xt),u=Xt[1],o=Xt[2],Oo(a,l,s,c,Xt),l=Xt[1],s=Xt[2]),r.quadraticCurveTo(u,l,o,s)):(c<1&&(Io(i,u,f,o,c,Xt),u=Xt[1],f=Xt[2],o=Xt[3],Io(a,l,h,s,c,Xt),l=Xt[1],h=Xt[2],s=Xt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return ov(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=ov(this.shape,r,!0);return f0(n,n)},t})(gt);th.prototype.type="bezier-curve";var US=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),Ps=(function(e){B(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new US},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,u,!l)},t})(gt);Ps.prototype.type="arc";var Pg=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),gt.prototype.getBoundingRect.call(this)},t})(gt),Ig=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),Og=(function(e){B(t,e);function t(r,n,i,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=i??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(Ig),YS=(function(e){B(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t})(Ig),Au=Math.min,XS=Math.max,Ua=Math.abs,Qr=[0,0],jr=[0,0],Lt=Dp(),Ya=Lt.minTv,Xa=Lt.maxTv,Rg=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ht;for(var n=0;n<2;n++)this._axes[n]=new ht;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),r)for(var l=0;l<4;l++)n[l].transform(r);ht.sub(i[0],n[1],n[0]),ht.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(t,r,n){var i=!0,a=!r;return r&&ht.set(r,0,0),Lt.reset(n,!a),!this._intersectCheckOneSide(this,t,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(i=!1,a)||!a&&!Lt.negativeSize&&ht.copy(r,i?Lt.useDir?Lt.dirMinTv:Ya:Xa),i},e.prototype._intersectCheckOneSide=function(t,r,n,i){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Qr),t._getProjMinMaxOnAxis(o,r._corners,jr),Lt.negativeSize||Qr[1]<jr[0]||Qr[0]>jr[1]){if(a=!1,Lt.negativeSize||n)return a;var u=Ua(jr[0]-Qr[1]),l=Ua(Qr[0]-jr[1]);Au(u,l)>Xa.len()&&(u<l?ht.scale(Xa,s,-u*i):ht.scale(Xa,s,l*i))}else if(!n){var u=Ua(jr[0]-Qr[1]),l=Ua(Qr[0]-jr[1]);(Lt.useDir||Au(u,l)<Ya.len())&&((u<l||!Lt.bidirectional)&&(ht.scale(Ya,s,u*i),Lt.useDir&&Lt.calcDirMTV()),(u>=l||!Lt.bidirectional)&&(ht.scale(Ya,s,-l*i),Lt.useDir&&Lt.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[t];s=Au(f,s),u=XS(f,u)}n[0]=s+Lt.touchThreshold,n[1]=u-Lt.touchThreshold,Lt.negativeSize=n[1]<n[0]},e})(),$S=[],ZS=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new J(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform($S)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t})(_i),qS=_t();function Ng(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,f=void 0,h=void 0;n?(l=X(n.duration,200),f=X(n.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),K(h)&&(h=h(r,i)),K(l)&&(l=l(r));var c={duration:l||0,delay:h,easing:f};return c}else return null}function eh(e,t,r,n,i,a,o){var s=!1,u;K(i)?(o=a,a=i,i=null):V(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=Ng(e,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function xi(e,t,r,n,i,a){eh("update",e,t,r,n,i,a)}function Ta(e,t,r,n,i,a){eh("enter",e,t,r,n,i,a)}function ea(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function rh(e,t,r,n,i,a){ea(e)||eh("leave",e,t,r,n,i,a)}function sv(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),rh(e,{style:{opacity:0}},t,r,n)}function kg(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||sv(i,t,r,n)}):sv(e,t,r,n)}function KS(e){qS(e).oldStyle=e.style}var Ul={},Sr=["x","y"],li=["width","height"];function QS(e){return gt.extend(e)}var jS=ES;function JS(e,t){return jS(e,t)}function Ee(e,t){Ul[e]=t}function Bg(e){if(Ul.hasOwnProperty(e))return Ul[e]}function Is(e,t,r,n){var i=MS(e,t);return r&&(n==="center"&&(r=Vg(r,i.getBoundingRect())),Hg(i,r)),i}function Fg(e,t,r){var n=new Or({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(Vg(t,a))}}});return n}function Vg(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var zg=AS;function Hg(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function fa(e,t){return vg(e,e,{lineWidth:t}),e}function tw(e,t){return dg(e,e,t),e}var ew=ln;function Gg(e,t){for(var r=Bf([]);e&&e!==t;)qi(r,e.getLocalTransform(),r),e=e.parent;return r}function Os(e,t,r){return t&&!Ut(t)&&(t=Hf.getLocalTransform(t)),r&&(t=xa([],t)),ge([],e,t)}function Wg(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:ze(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:ze(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=Os(a,t,r),ze(a[0])>ze(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function uv(e){return!e.isGroup}function rw(e){return e.shape!=null}function Ug(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){uv(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return rw(o)&&(s.shape=rt(o.shape)),s}var a=n(e);t.traverse(function(o){if(uv(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),xi(o,u,r,ct(o).dataIndex)}}})}function nw(e,t){return Z(e,function(r){var n=r[0];n=ne(n,t.x),n=ua(n,t.x+t.width);var i=r[1];return i=ne(i,t.y),i=ua(i,t.y+t.height),[n,i]})}function Yg(e,t){var r=ne(e.x,t.x),n=ua(e.x+e.width,t.x+t.width),i=ne(e.y,t.y),a=ua(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function nh(e,t,r){var n=R({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ft(i,r),new Or(n)):Is(e.replace("path://",""),n,r,"center")}function iw(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Xg(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Xg(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=Lu(f,h,u,l);if(aw(c))return!1;var v=e-i,d=t-a,m=Lu(v,d,u,l)/c;if(m<0||m>1)return!1;var g=Lu(v,d,f,h)/c;return!(g<0||g>1)}function Lu(e,t,r,n){return e*n-r*t}function aw(e){return e<=1e-6&&e>=-1e-6}function Xo(e,t,r,n,i){return t==null||(mt(t)?dt[0]=dt[1]=dt[2]=dt[3]=t:(process.env.NODE_ENV!=="production"&&z(t.length===4),dt[0]=t[0],dt[1]=t[1],dt[2]=t[2],dt[3]=t[3]),n&&(dt[0]=ne(0,dt[0]),dt[1]=ne(0,dt[1]),dt[2]=ne(0,dt[2]),dt[3]=ne(0,dt[3])),r&&(dt[0]=-dt[0],dt[1]=-dt[1],dt[2]=-dt[2],dt[3]=-dt[3]),lv(e,dt,"x","width",3,1,i&&i[0]||0),lv(e,dt,"y","height",0,2,i&&i[1]||0)),e}var dt=[0,0,0,0];function lv(e,t,r,n,i,a,o){var s=t[a]+t[i],u=e[n];e[n]+=s,o=ne(0,ua(o,u)),e[n]<o?(e[n]=o,e[r]+=t[i]>=0?-t[i]:t[a]>=0?u+t[a]:ze(s)>1e-8?(u-o)*t[i]/s:0):e[r]-=t[i]}function Rs(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=F(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&T(pt(u),function(f){pe(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ct(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:ft({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Yl(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function ih(e,t){if(e)if(k(e))for(var r=0;r<e.length;r++)Yl(e[r],t);else Yl(e,t)}function ah(e){return!e||ze(e[1])<$a&&ze(e[2])<$a||ze(e[0])<$a&&ze(e[3])<$a}var $a=1e-5;function ha(e,t){return e?J.copy(e,t):t.clone()}function oh(e,t){return t?Cp(e||ir(),t):void 0}function sh(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function ow(e){var t=-1/0,r=1/0;Yl(e,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function $g(e,t,r){Zg(e,t,r,-1/0)}function Zg(e,t,r,n){if(e.ignoreModelZ)return n;var i=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),u=0;u<s.length;u++)n=ne(Zg(s[u],t,r,n),n);else e.z=t,e.zlevel=r,n=ne(e.z2||0,n);if(i&&(i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var l=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+(l&&l.showAbove?1:-1))}return n}Ee("circle",wa);Ee("ellipse",Jf);Ee("sector",ba);Ee("ring",Es);Ee("polygon",As);Ee("polyline",Ls);Ee("rect",bt);Ee("line",lr);Ee("bezierCurve",th);Ee("arc",Ps);const qg=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ps,BezierCurve:th,BoundingRect:J,Circle:wa,CompoundPath:Pg,Ellipse:Jf,Group:jt,Image:Or,IncrementalDisplayable:ZS,Line:lr,LinearGradient:Og,OrientedBoundingRect:Rg,Path:gt,Point:ht,Polygon:As,Polyline:Ls,RadialGradient:YS,Rect:bt,Ring:Es,Sector:ba,Text:Ft,WH:li,XY:Sr,applyTransform:Os,calcZ2Range:ow,clipPointsByRect:nw,clipRectByRect:Yg,createIcon:nh,ensureCopyRect:ha,ensureCopyTransform:oh,expandOrShrinkRect:Xo,extendPath:JS,extendShape:QS,getShapeClass:Bg,getTransform:Gg,groupTransition:Ug,initProps:Ta,isBoundingRectAxisAligned:ah,isElementRemoved:ea,lineLineIntersect:Xg,linePolygonIntersect:iw,makeImage:Fg,makePath:Is,mergePath:zg,registerShape:Ee,removeElement:rh,removeElementWithFadeOut:kg,resizePath:Hg,retrieveZInfo:sh,setTooltipConfig:Rs,subPixelOptimize:ew,subPixelOptimizeLine:fa,subPixelOptimizeRect:tw,transformDirection:Wg,traverseElements:ih,traverseUpdateZ:$g,updateProps:xi},Symbol.toStringTag,{value:"Module"}));var Ns={};function Kg(e,t){for(var r=0;r<ur.length;r++){var n=ur[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Xl(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=K(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var u={normal:s},l=0;l<ur.length;l++){var f=ur[l],h=t[f];u[f]=X(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return u}function Qg(e,t,r,n){r=r||Ns;for(var i=e instanceof Ft,a=!1,o=0;o<Fl.length;o++){var s=t[Fl[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?e:e.getTextContent();if(a){i||(u||(u=new Ft,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=Xl(r,t),f=t.normal,h=!!f.getShallow("show"),c=fr(f,n&&n.normal,r,!1,!i);c.text=l.normal,i||e.setTextConfig($l(f,r,!1));for(var o=0;o<ur.length;o++){var v=ur[o],s=t[v];if(s){var d=u.ensureState(v),m=!!X(s.getShallow("show"),h);if(m!==h&&(d.ignore=!m),d.style=fr(s,n&&n[v],r,!0,!i),d.style.text=l[v],!i){var g=e.ensureState(v);g.textConfig=$l(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),r.enableTextSetter&&(ks(u).setLabelText=function(p){var y=Xl(r,t,p);Kg(u,y)})}else u&&(u.ignore=!0);e.dirty()}function sw(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<ur.length;n++){var i=ur[n];r[i]=e.getModel([i,t])}return r}function fr(e,t,r,n,i){var a={};return uw(a,e,r,n,i),t&&R(a,t),a}function $l(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=X(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function uw(e,t,r,n,i){r=r||Ns;var a=t.ecModel,o=a&&a.option.textStyle,s=lw(t),u;if(s){u={};var l="richInheritPlainLabel",f=X(t.get(l),a?a.get(l):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=t.getModel(["rich",h]);vv(u[h]={},c,o,t,f,r,n,i,!1,!0)}}u&&(e.rich=u);var v=t.get("overflow");v&&(e.overflow=v);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var m=e,g=t.get("minMargin");if(g!=null)g=mt(g)?g/2:0,m.margin=[g,g,g,g],m.__marginType=Qn.minMargin;else{var p=t.get("textMargin");p!=null&&(m.margin=Rf(p),m.__marginType=Qn.textMargin)}vv(e,t,o,null,null,r,n,i,!0,!1)}function lw(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Ns).rich;if(r){t=t||{};for(var n=pt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var fv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],hv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],cv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vv(e,t,r,n,i,a,o,s,u,l){r=!o&&r||Ns;var f=a&&a.inheritColor,h=t.getShallow("color"),c=t.getShallow("textBorderColor"),v=X(t.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&Mt("color: 'auto'","color: 'inherit'"),f?h=f:h=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&Mt("color: 'auto'","color: 'inherit'"),f?c=f:c=null),s||(h=h||r.color,c=c||r.textBorderColor),h!=null&&(e.fill=h),c!=null&&(e.stroke=c);var d=X(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var m=X(t.getShallow("textBorderType"),r.textBorderType);m!=null&&(e.lineDash=m);var g=X(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&v==null&&!l&&(v=a&&a.defaultOpacity),v!=null&&(e.opacity=v),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var p=0;p<fv.length;p++){var y=fv[p],_=i!==!1&&n?nr(t.getShallow(y),n.getShallow(y),r[y]):X(t.getShallow(y),r[y]);_!=null&&(e[y]=_)}for(var p=0;p<hv.length;p++){var y=hv[p],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var x=t.getShallow("baseline");x!=null&&(e.verticalAlign=x)}if(!u||!a.disableBox){for(var p=0;p<cv.length;p++){var y=cv[p],_=t.getShallow(y);_!=null&&(e[y]=_)}var w=t.getShallow("borderType");w!=null&&(e.borderDash=w),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&Mt("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&Mt("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=f)}}function jg(e,t){var r=t&&t.getModel("textStyle");return Ve([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var ks=_t();function fw(e,t,r,n){if(e){var i=ks(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function hw(e,t,r,n,i){var a=ks(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=X(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var h=rg(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:h;var c=Xl({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);Kg(e,c)}e.percent=0,(a.prevValue==null?Ta:xi)(e,{percent:1},n,t,null,l)}var Qn={minMargin:1,textMargin:2},cw=["textStyle","color"],Pu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Iu=new Ft,vw=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(cw):null)},e.prototype.getFont=function(){return jg({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Pu.length;n++)r[Pu[n]]=this.getShallow(Pu[n]);return Iu.useStyle(r),Iu.update(),Iu.getBoundingRect()},e})(),Jg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],dw=la(Jg),pw=(function(){function e(){}return e.prototype.getLineStyle=function(t){return dw(this,t)},e})(),tm=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],gw=la(tm),mw=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return gw(this,t,r)},e})(),yt=(function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){st(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(rt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Q.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e})();Yf(yt);ax(yt);De(yt,pw);De(yt,mw);De(yt,fx);De(yt,vw);var yw=Math.round(Math.random()*10);function Bs(e){return[e||"",yw++].join("_")}function _w(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=He(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=He(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function xw(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,h=l.noEntryList,c={};for(T(a,function(y){c[y]=!0});h.length;){var v=h.pop(),d=f[v],m=!!c[v];m&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),T(d.successor,m?p:g)}T(c,function(){var y="";throw process.env.NODE_ENV!=="production"&&(y=Vo("Circular dependency may exists: ",c,a,o)),new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function p(y){c[y]=!0,g(y)}};function r(a){var o={},s=[];return T(a,function(u){var l=n(o,u),f=l.originalDeps=t(u),h=i(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),T(h,function(c){ot(l.predecessor,c)<0&&l.predecessor.push(c);var v=n(o,c);ot(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return T(a,function(u){ot(o,u)>=0&&s.push(u)}),s}}function em(e,t){return st(st({},e,!0),t,!0)}const Sw={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:". "}}}},ww={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var $o="ZH",uh="EN",ei=uh,xo={},lh={},rm=Q.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ei).toUpperCase();return e.indexOf($o)>-1?$o:ei})():ei;function nm(e,t){e=e.toUpperCase(),lh[e]=new yt(t),xo[e]=t}function bw(e){if(F(e)){var t=xo[e.toUpperCase()]||{};return e===$o||e===uh?rt(t):st(rt(t),rt(xo[ei]),!1)}else return st(rt(e),rt(xo[ei]),!1)}function Tw(e){return lh[e]}function Cw(){return lh[ei]}nm(uh,Sw);nm($o,ww);var Dw=null;function Zo(){return Dw}var fh=1e3,hh=fh*60,ra=hh*60,de=ra*24,dv=de*365,Mw={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})/},So={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Ew="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Za="{yyyy}-{MM}-{dd}",pv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Za,hour:Za+" "+So.hour,minute:Za+" "+So.minute,second:Za+" "+So.second,millisecond:Ew},mn=["year","month","day","hour","minute","second","millisecond"],Aw=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Lw(e){return!F(e)&&!K(e)?Pw(e):e}function Pw(e){e=e||{};var t={},r=!0;return T(mn,function(n){r&&(r=e[n]==null)}),T(mn,function(n,i){var a=e[n];t[n]={};for(var o=null,s=i;s>=0;s--){var u=mn[s],l=V(a)&&!k(a)?a[u]:a,f=void 0;k(l)?(f=l.slice(),o=f[0]||""):F(l)?(o=l,f=[o]):(o==null?o=So[n]:Mw[u].test(o)||(o=t[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][u]=f}}),t}function dr(e,t){return e+="","0000".substr(0,t-e.length)+e}function na(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Iw(e){return e===na(e)}function Ow(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Fs(e,t,r,n){var i=gi(e),a=i[im(r)](),o=i[ch(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[vh(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[dh(r)](),h=(f-1)%12+1,c=i[ph(r)](),v=i[gh(r)](),d=i[mh(r)](),m=f>=12?"pm":"am",g=m.toUpperCase(),p=n instanceof yt?n:Tw(n||rm)||Cw(),y=p.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),w=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,dr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,dr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,dr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,w[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,dr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,dr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,dr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,dr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,dr(d,3)).replace(/{S}/g,d+"")}function Rw(e,t,r,n,i){var a=null;if(F(r))a=r;else if(K(r)){var o={time:e.time,level:e.time.level},s=Zo();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var u=e.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=qo(e.value,i);a=r[f][f][0]}}return Fs(new Date(e.value),a,i,n)}function qo(e,t){var r=gi(e),n=r[ch(t)]()+1,i=r[vh(t)](),a=r[dh(t)](),o=r[ph(t)](),s=r[gh(t)](),u=r[mh(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Zl(e,t,r){switch(t){case"year":e[am(r)](0);case"month":e[om(r)](1);case"day":e[sm(r)](0);case"hour":e[um(r)](0);case"minute":e[lm(r)](0);case"second":e[fm(r)](0)}return e}function im(e){return e?"getUTCFullYear":"getFullYear"}function ch(e){return e?"getUTCMonth":"getMonth"}function vh(e){return e?"getUTCDate":"getDate"}function dh(e){return e?"getUTCHours":"getHours"}function ph(e){return e?"getUTCMinutes":"getMinutes"}function gh(e){return e?"getUTCSeconds":"getSeconds"}function mh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Nw(e){return e?"setUTCFullYear":"setFullYear"}function am(e){return e?"setUTCMonth":"setMonth"}function om(e){return e?"setUTCDate":"setDate"}function sm(e){return e?"setUTCHours":"setHours"}function um(e){return e?"setUTCMinutes":"setMinutes"}function lm(e){return e?"setUTCSeconds":"setSeconds"}function fm(e){return e?"setUTCMilliseconds":"setMilliseconds"}function hm(e){if(!qp(e))return F(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function cm(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Ca=Rf;function ql(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ve(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?gi(e):e;if(isNaN(+u)){if(s)return"-"}else return Fs(u,n,r)}if(t==="ordinal")return Eo(e)?i(e):mt(e)&&a(e)?e+"":"-";var l=Fo(e);return a(l)?hm(l):Eo(e)?i(e):typeof e=="boolean"?e+"":"-"}var gv=["a","b","c","d","e","f","g"],Ou=function(e,t){return"{"+e+(t??"")+"}"};function vm(e,t,r){k(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=gv[a];e=e.replace(Ou(o),Ou(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];e=e.replace(Ou(gv[u],s),r?Zt(l):l)}return e}function kw(e,t){var r=F(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Zt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Zt(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function fi(e,t){return t=t||"transparent",F(e)?e:V(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function mv(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var wo={},Ru={},Vs=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(wo,!0),this._normalMasterList=n(Ru,!1);function n(i,a){var o=[];return T(i,function(s,u){var l=s.create(t,r);o=o.concat(l||[]),process.env.NODE_ENV!=="production"&&a&&T(l,function(f){return z(!f.update)})}),o}},e.prototype.update=function(t,r){T(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){wo[t]=r;return}Ru[t]=r},e.get=function(t){return Ru[t]||wo[t]},e})();function Bw(e){return!!wo[e]}var Kl={coord:1,coord2:2};function Fw(e){process.env.NODE_ENV!=="production"&&z(!Ql.get(e.fullType)),Ql.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Ql=tt();function Vw(e){var t=e.getShallow("coord",!0),r=Kl.coord;if(t==null){var n=Ql.get(e.type);n&&n.getCoord2&&(r=Kl.coord2,t=n.getCoord2(e))}return{coord:t,from:r}}var tr={none:0,dataCoordSys:1,boxCoordSys:2};function zw(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),i=n!=null,a=tr.none;if(r){var o=e.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=tr.dataCoordSys,o||(process.env.NODE_ENV!=="production"&&i&&t&&lt('coordinateSystemUsage "data" is not supported in non-series components.'),a=tr.none)):n==="box"&&(a=tr.boxCoordSys,!o&&!Bw(r)&&(process.env.NODE_ENV!=="production"&&i&&t&&lt('coordinateSystem "'+r+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+e.type+'" yet.')),a=tr.none))}return{coordSysType:r,kind:a}}function Hw(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=e.allowNotFound;process.env.NODE_ENV!=="production"&&z(!!r);var o=zw(t,!0),s=o.kind,u=o.coordSysType;if(i&&s!==tr.dataCoordSys&&(s=tr.dataCoordSys,u=r),s===tr.none||u!==r)return!1;var l=n(r,t);return l?(s===tr.dataCoordSys?(process.env.NODE_ENV!=="production"&&z(t.mainType==="series"),t.coordinateSystem=l):t.boxCoordinateSystem=l,!0):(process.env.NODE_ENV!=="production"&&(a||lt(r+" cannot be found for"+(" "+t.type+" (index: "+t.componentIndex+")."))),!1)}var bo=T,Gw=["left","right","top","bottom","width","height"],qa=[["width","left","right"],["height","top","bottom"]];function yh(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(e==="horizontal"){var m=f.width+(c?-c.x+f.x:0);v=a+m,v>n||u.newline?(a=0,v=m,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>i||u.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var ri=yh;Et(yh,"vertical");Et(yh,"horizontal");function Ww(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function Uw(e,t){var r=Da(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Yi.point)a=r.refPoint,i=$e(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=k(o)?o:[o,o];i=$e(n,r.refContainer),a=r.boxCoordFrom===Kl.coord2?r.refPoint:[St(s[0],i.width)+i.x,St(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function Yw(e,t){var r=Uw(e,t),n=r.viewRect,i=r.center,a=e.get("radius");k(a)||(a=[0,a]);var o=St(n.width,t.getWidth()),s=St(n.height,t.getHeight()),u=Math.min(o,s),l=St(a[0],u/2),f=St(a[1],u/2);return{cx:i[0],cy:i[1],r0:l,r:f,viewRect:n}}function $e(e,t,r){r=Ca(r||0);var n=t.width,i=t.height,a=St(e.left,n),o=St(e.top,i),s=St(e.right,n),u=St(e.bottom,i),l=St(e.width,n),f=St(e.height,i),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),e.left||e.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new J((t.x||0)+a+r[3],(t.y||0)+o+r[0],l,f);return d.margin=r,d}var Yi={rect:1,point:2};function Da(e,t,r){var n,i,a,o=e.boxCoordinateSystem,s;if(o){var u=Vw(e),l=u.coord,f=u.from;if(o.dataToLayout){a=Yi.rect,s=f;var h=o.dataToLayout(l);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint?(a=Yi.point,s=f,i=o.dataToPoint(l)):process.env.NODE_ENV!=="production"&&lt(e.type+"["+e.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return a==null&&(a=Yi.rect),a===Yi.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Xw(e,t,r,n,i,a){a=a||e,a.x=e.x,a.y=e.y;var o;if(o=e.getBoundingRect(),e.needLocalTransform()){var s=e.getLocalTransform();o=o.clone(),o.applyTransform(s)}var u=$e(ft({width:o.width,height:o.height},t),r,n),l=u.x-o.x,f=u.y-o.y;return a.x+=l,a.y+=f,a===e&&e.markRedraw(),!0}function ca(e){var t=e.layoutMode||e.constructor.layoutMode;return V(t)?t:t?{type:t}:null}function Ar(e,t,r){var n=r&&r.ignoreSize;!k(n)&&(n=[n,n]);var i=o(qa[0],0),a=o(qa[1],1);u(qa[0],e,i),u(qa[1],e,a);function o(l,f){var h={},c=0,v={},d=0,m=2;if(bo(l,function(y){v[y]=e[y]}),bo(l,function(y){pe(t,y)&&(h[y]=v[y]=t[y]),s(h,y)&&c++,s(v,y)&&d++}),n[f])return s(t,l[1])?v[l[2]]=null:s(t,l[2])&&(v[l[1]]=null),v;if(d===m||!c)return v;if(c>=m)return h;for(var g=0;g<l.length;g++){var p=l[g];if(!pe(h,p)&&pe(e,p)){h[p]=e[p];break}}return h}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,h){bo(l,function(c){f[c]=h[c]})}}function Si(e){return $w({},e)}function $w(e,t){return t&&e&&bo(Gw,function(r){pe(t,r)&&(e[r]=t[r])}),e}var Zw=_t(),at=(function(e){B(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Bs("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ca(this),a=i?Si(r):{},o=n.getTheme();st(r,o.get(this.mainType)),st(r,this.getDefaultOption()),i&&Ar(r,a,i)},t.prototype.mergeOption=function(r,n){st(this.option,r,!0);var i=ca(this);i&&Ar(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!rx(r))return r.defaultOption;var n=Zw(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=st(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return yi(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return Ww(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(yt);ig(at,yt);ws(at);_w(at);xw(at,qw);function qw(e){var t=[];return T(at.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return He(r).main}),e!=="dataset"&&ot(t,"dataset")<=0&&t.unshift("dataset"),t}var H={color:{},darkColor:{},size:{}},xt=H.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};R(xt,{primary:xt.neutral80,secondary:xt.neutral70,tertiary:xt.neutral60,quaternary:xt.neutral50,disabled:xt.neutral20,border:xt.neutral30,borderTint:xt.neutral20,borderShade:xt.neutral40,background:xt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:xt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:xt.neutral70,axisLineTint:xt.neutral40,axisTick:xt.neutral70,axisTickMinor:xt.neutral60,axisLabel:xt.neutral70,axisSplitLine:xt.neutral15,axisMinorSplitLine:xt.neutral05});for(var Jr in xt)if(xt.hasOwnProperty(Jr)){var yv=xt[Jr];Jr==="theme"?H.darkColor.theme=xt.theme.slice():Jr==="highlight"?H.darkColor.highlight="rgba(255,231,130,0.4)":Jr.indexOf("accent")===0?H.darkColor[Jr]=Ro(yv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):H.darkColor[Jr]=Ro(yv,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}H.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var dm="";typeof navigator<"u"&&(dm=navigator.platform||"");var Rn="rgba(0, 0, 0, 0.2)",pm=H.color.theme[0],Kw=Ro(pm,null,null,.9);const Qw={darkMode:"auto",colorBy:"series",color:H.color.theme,gradientColor:[Kw,pm],aria:{decal:{decals:[{color:Rn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Rn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Rn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Rn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Rn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Rn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:dm.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var jl=tt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ie="original",Vt="arrayRows",_e="objectRows",Ae="keyedColumns",ar="typedArray",gm="unknown",Ue="column",bn="row",Ot={Must:1,Might:2,Not:3},mm=_t();function jw(e){mm(e).datasetMap=tt()}function Jw(e,t,r){var n={},i=_h(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,u=mm(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),T(e,function(m,g){var p=V(m)?m:e[g]={name:m};p.type==="ordinal"&&f==null&&(f=g,h=d(p)),n[p.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});T(e,function(m,g){var p=m.name,y=d(m);if(f==null){var _=c.valueWayDim;v(n[p],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===g)v(n[p],0,y),v(a,0,y);else{var _=c.categoryWayDim;v(n[p],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(m,g,p){for(var y=0;y<p;y++)m.push(g+y)}function d(m){var g=m.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function tb(e,t,r){var n={},i=_h(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===_e||a===Ae)&&T(o,function(f,h){(V(f)?f.name:f)==="name"&&(s=h)});var u=(function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var m=_m(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(m);var g=m===Ot.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===Ot.Not)&&(f.n=v),p(f)&&c[f.n]!==Ot.Not)return f;g||(m===Ot.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function p(y){return y.v!=null&&y.n!=null}return p(f)?f:p(h)?h:null})();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function _h(e){var t=e.get("data",!0);if(!t)return yi(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},re).models[0]}function eb(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:yi(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},re).models}function ym(e,t){return _m(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function _m(e,t,r,n,i,a){var o,s=5;if(Yt(e))return Ot.Not;var u,l;if(n){var f=n[a];V(f)?(u=f.name,l=f.type):F(f)&&(u=f)}if(l!=null)return l==="ordinal"?Ot.Must:Ot.Not;if(t===Vt){var h=e;if(r===bn){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=x(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=x(d[a]))!=null)return o}}else if(t===_e){var m=e;if(!u)return Ot.Not;for(var v=0;v<m.length&&v<s;v++){var g=m[v];if(g&&(o=x(g[u]))!=null)return o}}else if(t===Ae){var p=e;if(!u)return Ot.Not;var c=p[u];if(!c||Yt(c))return Ot.Not;for(var v=0;v<c.length&&v<s;v++)if((o=x(c[v]))!=null)return o}else if(t===ie)for(var y=e,v=0;v<y.length&&v<s;v++){var g=y[v],_=Sa(g);if(!k(_))return Ot.Not;if((o=x(_[a]))!=null)return o}function x(w){var S=F(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?Ot.Might:Ot.Not;if(S&&w!=="-")return Ot.Must}return Ot.Not}var rb=tt();function nb(e,t,r){var n=rb.get(t);if(!n)return r;var i=n(e);if(!i)return r;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)z(si(i[a]));return r.concat(i)}var _v=_t();_t();var xh=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Rt(this.get("color",!0)),a=this.get("colorLayer",!0);return ab(this,_v,i,a,t,r,n)},e.prototype.clearColorPalette=function(){ob(this,_v)},e})();function ib(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function ab(e,t,r,n,i,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:ib(n,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function ob(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ka,Ei,xv,Nu="\0_ec_inner",Sv=1,sb={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"},ub={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"},Ko={};function lb(e){T(e,function(t,r){if(!at.hasClass(r)){var n=sb[r];n&&!Ko[n]&&(lt("Component "+r+` is used but not imported.
30
+ import { `+n+` } from 'echarts/components';
31
+ echarts.use([`+n+"]);"),Ko[n]=!0)}})}var Sh=(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new yt(a),this._locale=new yt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){process.env.NODE_ENV!=="production"&&(z(r!=null,"option is null/undefined"),z(r[Nu]!==Sv,"please use chart.getOption()"));var a=Tv(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Tv(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&lb(o),!this.option||r==="recreate"?xv(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&T(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=tt(),l=n&&n.replaceMergeMainTypeMap;jw(this),T(r,function(h,c){h!=null&&(at.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?rt(h):st(i[c],h,!0))}),l&&l.each(function(h,c){at.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),at.topologicalTravel(s,at.getAllClassMainTypes(),f,this);function f(h){var c=nb(this,h,Rt(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=z1(v,c,d);$1(m,h,at),i[h]=null,a.set(h,null),o.set(h,0);var g=[],p=[],y=0,_,x;T(m,function(w,S){var b=w.existing,C=w.newOption;if(!C)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var M=h==="series",E=at.getClass(h,w.keyInfo.subType,!M);if(!E){if(process.env.NODE_ENV!=="production"){var A=w.keyInfo.subType,L=ub[A];Ko[A]||(Ko[A]=!0,lt(L?"Series "+A+` is used but not imported.
32
+ import { `+L+` } from 'echarts/charts';
33
+ echarts.use([`+L+"]);":"Unknown series "+A))}return}if(h==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(x||(Kt("Currently only one tooltip component is allowed."),x=!0));return}_=!0}if(b&&b.constructor===E)b.name=w.keyInfo.name,b.mergeOption(C,this),b.optionUpdated(C,!1);else{var D=R({componentIndex:S},w.keyInfo);b=new E(C,this,this,D),R(b,D),w.brandNew&&(b.__requireNewView=!0),b.init(C,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),p.push(b),y++):(g.push(void 0),p.push(void 0))},this),i[h]=g,a.set(h,p),o.set(h,y),h==="series"&&Ka(this)}this._seriesIndices||Ka(this)},t.prototype.getOption=function(){var r=rt(this.option);return T(r,function(n,i){if(at.hasClass(i)){for(var a=Rt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!si(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Nu],r},t.prototype.setTheme=function(r){this._theme=new yt(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return i!=null?(u=[],T(Rt(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=wv("id",a,s):o!=null?u=wv("name",o,s):u=Dt(s,function(l){return!!l}),bv(u,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Dt(this._componentsMap.get(i),function(l){return!!l});return u(bv(o,r));function s(l){var f=i+"Index",h=i+"Id",c=i+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:i,index:l[f],id:l[h],name:l[c]}:null}function u(l){return r.filter?Dt(l,r.filter):l}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(K(r)){var o=n,s=r;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=F(r)?a.get(r):V(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Te(r,null);return Dt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Dt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Dt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Ei(this),T(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){T(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){Ei(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return T(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return Ei(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Ei(this);var i=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=tt(i)},t.prototype.restoreData=function(r){Ka(this);var n=this._componentsMap,i=[];n.each(function(a,o){at.hasClass(o)&&i.push(o)}),at.topologicalTravel(i,at.getAllClassMainTypes(),function(a){T(n.get(a),function(o){o&&(a!=="series"||!fb(o,r))&&o.restoreData()})})},t.internalField=(function(){Ka=function(r){var n=r._seriesIndices=[];T(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=tt(n)},Ei=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},xv=function(r,n){r.option={},r.option[Nu]=Sv,r._componentsMap=tt({series:[]}),r._componentsCount=tt();var i=n.aria;V(i)&&i.enabled==null&&(i.enabled=!0),hb(n,r._theme.option),st(n,Qw,!1),r._mergeOption(n,null)}})(),t})(yt);function fb(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function hb(e,t){var r=e.color&&!e.colorLayer;T(t,function(n,i){i==="colorLayer"&&r||i==="color"&&e.color||at.hasClass(i)||(typeof n=="object"?e[i]=e[i]?st(e[i],n,!1):rt(n):e[i]==null&&(e[i]=n))})}function wv(e,t,r){if(k(t)){var n=tt();return T(t,function(a){if(a!=null){var o=Te(a,null);o!=null&&n.set(a,!0)}}),Dt(r,function(a){return a&&n.get(a[e])})}else{var i=Te(t,null);return Dt(r,function(a){return a&&i!=null&&a[e]===i})}}function bv(e,t){return t.hasOwnProperty("subType")?Dt(e,function(r){return r&&r.subType===t.subType}):e}function Tv(e){var t=tt();return e&&T(Rt(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&z(at.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}De(Sh,xh);var cb=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],xm=(function(){function e(t){T(cb,function(r){this[r]=vt(t[r],t)},this)}return e})(),vb=/^(min|max)?(.+)$/,db=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(T(Rt(t.series),function(o){o&&o.data&&Yt(o.data)&&hl(o.data)}),T(Rt(t.dataset),function(o){o&&o.source&&Yt(o.source)&&hl(o.source)})),t=rt(t);var i=this._optionBackup,a=pb(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],rt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=rt(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var u=0,l=i.length;u<l;u++)gb(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!yb(o,this._currentMediaIndices)&&(s=Z(o,function(f){return rt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e})();function pb(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,f=!!e.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&(k(l)?T(l,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&V(v.query)&&V(v.query.option)&&lt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):i||(i=v))}):process.env.NODE_ENV!=="production"&&lt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),c(a),T(u,function(v){return c(v)}),T(n,function(v){return c(v.option)});function c(v){T(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function gb(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return T(e,function(a,o){var s=o.match(vb);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();mb(n[l],a,u)||(i=!1)}}),i}function mb(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function yb(e,t){return e.join(",")===t.join(",")}var ae=T,va=V,Cv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ku(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Cv.length;r<n;r++){var i=Cv[r],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&Mt("itemStyle.normal."+i,i),e[i]=e[i]||{},e[i].normal?st(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&Mt("itemStyle.emphasis."+i,"emphasis."+i),e[i]=e[i]||{},e[i].emphasis?st(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function kt(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&Xe("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),r?(e[t].normal=e[t].emphasis=null,ft(e[t],n)):e[t]=n),i&&(process.env.NODE_ENV!=="production"&&Xe(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Xi(e){kt(e,"itemStyle"),kt(e,"lineStyle"),kt(e,"areaStyle"),kt(e,"label"),kt(e,"labelLine"),kt(e,"upperLabel"),kt(e,"edgeLabel")}function wt(e,t){var r=va(e)&&e[t],n=va(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&Xe("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var i=0,a=Cc.length;i<a;i++){var o=Cc[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function le(e){e&&(Xi(e),wt(e,"label"),e.emphasis&&wt(e.emphasis,"label"))}function _b(e){if(va(e)){ku(e),Xi(e),wt(e,"label"),wt(e,"upperLabel"),wt(e,"edgeLabel"),e.emphasis&&(wt(e.emphasis,"label"),wt(e.emphasis,"upperLabel"),wt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(ku(t),le(t));var r=e.markLine;r&&(ku(r),le(r));var n=e.markArea;n&&le(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Yt(a))for(var o=0;o<a.length;o++)le(a[o]);T(e.categories,function(l){Xi(l)})}if(i&&!Yt(i))for(var o=0;o<i.length;o++)le(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)le(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)k(u[o])?(le(u[o][0]),le(u[o][1])):le(u[o]);e.type==="gauge"?(wt(e,"axisLabel"),wt(e,"title"),wt(e,"detail")):e.type==="treemap"?(kt(e.breadcrumb,"itemStyle"),T(e.levels,function(l){Xi(l)})):e.type==="tree"&&Xi(e.leaves)}}function Ke(e){return k(e)?e:e?[e]:[]}function Dv(e){return(k(e)?e[0]:e)||{}}function xb(e,t){ae(Ke(e.series),function(n){va(n)&&_b(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),ae(r,function(n){ae(Ke(e[n]),function(i){i&&(wt(i,"axisLabel"),wt(i.axisPointer,"label"))})}),ae(Ke(e.parallel),function(n){var i=n&&n.parallelAxisDefault;wt(i,"axisLabel"),wt(i&&i.axisPointer,"label")}),ae(Ke(e.calendar),function(n){kt(n,"itemStyle"),wt(n,"dayLabel"),wt(n,"monthLabel"),wt(n,"yearLabel")}),ae(Ke(e.radar),function(n){wt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&Xe("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&Xe("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&ae(n.indicator,function(i){i.text&&Mt("text","name","radar.indicator")})}),ae(Ke(e.geo),function(n){va(n)&&(le(n),ae(Ke(n.regions),function(i){le(i)}))}),ae(Ke(e.timeline),function(n){le(n),kt(n,"label"),kt(n,"itemStyle"),kt(n,"controlStyle",!0);var i=n.data;k(i)&&T(i,function(a){V(a)&&(kt(a,"label"),kt(a,"itemStyle"))})}),ae(Ke(e.toolbox),function(n){kt(n,"iconStyle"),ae(n.feature,function(i){kt(i,"iconStyle")})}),wt(Dv(e.axisPointer),"label"),wt(Dv(e.tooltip).axisPointer,"label")}function Sb(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function wb(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function Mv(e){e&&T(bb,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var bb=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Tb=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Bu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ai(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Bu.length;r++){var n=Bu[r][1],i=Bu[r][0];t[n]!=null&&(t[i]=t[n],process.env.NODE_ENV!=="production"&&Mt(n,i))}}function Ev(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Mt("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function Av(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&Mt("downplay","blur","sunburst"))}function Cb(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Mt("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function Sm(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Sm(e[r].children,t)}function wm(e,t){xb(e,t),e.series=Rt(e.series),T(e.series,function(r){if(V(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&Mt("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&Mt("clockWise","clockwise")),Ev(r.label);var i=r.data;if(i&&!Yt(i))for(var a=0;a<i.length;a++)Ev(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Mt("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Sb(r,"pointer.color");o!=null&&wb(r,"itemStyle.color",o)}else if(n==="bar"){Ai(r),Ai(r.backgroundStyle),Ai(r.emphasis);var i=r.data;if(i&&!Yt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Ai(i[a]),Ai(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&Mt("highlightPolicy","emphasis.focus","sunburst"))),Av(r),Sm(r.data,Av)}else n==="graph"||n==="sankey"?Cb(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&Mt("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&Xe("`mapLocation` is not used anymore."),ft(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Mt("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Mv(r)}}),e.dataRange&&(e.visualMap=e.dataRange),T(Tb,function(r){var n=e[r];n&&(k(n)||(n=[n]),T(n,function(i){Mv(i)}))})}function Db(e){var t=tt();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),T(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),Mb(r)}})}function Mb(e){T(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var m=NaN,g=r-1;g>=0;g--){var p=e[g];if(s||(d=p.data.rawIndexOf(p.stackedByDimension,v)),d>=0){var y=p.data.getByRawIndex(p.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&c>=0&&y>0||u==="samesign"&&c<=0&&y<0){c=I1(c,y),m=y;break}}}return n[0]=c,n[1]=m,n})})}var zs=(function(){function e(t){this.data=t.data||(t.sourceFormat===Ae?{}:[]),this.sourceFormat=t.sourceFormat||gm,this.seriesLayoutBy=t.seriesLayoutBy||Ue,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&ym(this,n)===Ot.Must&&(i.type="ordinal")}}return e})();function wh(e){return e instanceof zs}function Jl(e,t,r){r=r||Tm(e);var n=t.seriesLayoutBy,i=Ab(e,r,n,t.sourceHeader,t.dimensions),a=new zs({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:rt(t)});return a}function bm(e){return new zs({data:e,sourceFormat:Yt(e)?ar:ie})}function Eb(e){return new zs({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:rt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Tm(e){var t=gm;if(Yt(e))t=ar;else if(k(e)){e.length===0&&(t=Vt);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(k(i)||Yt(i)){t=Vt;break}else if(V(i)){t=_e;break}}}}else if(V(e)){for(var a in e)if(pe(e,a)&&Ut(e[a])){t=Ae;break}}return t}function Ab(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:Lv(i),startIndex:o,dimensionsDetectedCount:a};if(t===Vt){var s=e;n==="auto"||n==null?Pv(function(l){l!=null&&l!=="-"&&(F(l)?o==null&&(o=1):o=0)},r,s,10):o=mt(n)?n:n?1:0,!i&&o===1&&(i=[],Pv(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===bn?s.length:s[0]?s[0].length:null}else if(t===_e)i||(i=Lb(e));else if(t===Ae)i||(i=[],T(e,function(l,f){i.push(f)}));else if(t===ie){var u=Sa(e[0]);a=k(u)&&u.length||1}else t===ar&&process.env.NODE_ENV!=="production"&&z(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Lv(i),dimensionsDetectedCount:a}}function Lb(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return pt(r)}function Lv(e){if(e){var t=tt();return Z(e,function(r,n){r=V(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Pv(e,t,r,n){if(t===bn)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function Cm(e){var t=e.sourceFormat;return t===_e||t===Ae}var tn,en,rn,nn,Iv,Ov,Dm=(function(){function e(t,r){var n=wh(t)?t:bm(t);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===ar){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=i}if(process.env.NODE_ENV!=="production"){var s=Pb[Qo(a,o)];s&&s(i,n.dimensionsDefine)}Ov(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;Ov=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=Iv[Qo(l,f)];if(process.env.NODE_ENV!=="production"&&z(v,"Invalide sourceFormat: "+l),R(o,v),l===ar)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=Mm(l,f);o.getItem=vt(d,null,s,h,c);var m=Em(l,f);o.count=vt(m,null,s,h,c)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},n=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],m=v[1]==null?-1/0:v[1],g=s-o,p=u[c],y=0;y<g;y++){var _=f[y*h+c];p[o+y]=_,_<d&&(d=_),_>m&&(m=_)}v[0]=d,v[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};Iv=(t={},t[Vt+"_"+Ue]={pure:!0,appendData:a},t[Vt+"_"+bn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[_e]={pure:!0,appendData:a},t[Ae]={pure:!0,appendData:function(o){var s=this._data;T(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[ie]={appendData:a},t[ar]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&z(Yt(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),Qa=function(e){k(e)||lt("series.data or dataset.source must be an array.")},Pb=(tn={},tn[Vt+"_"+Ue]=Qa,tn[Vt+"_"+bn]=Qa,tn[_e]=Qa,tn[Ae]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&lt("dimension name must not be null/undefined.")}},tn[ie]=Qa,tn),Rv=function(e,t,r,n){return e[n]},Ib=(en={},en[Vt+"_"+Ue]=function(e,t,r,n){return e[n+t]},en[Vt+"_"+bn]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},en[_e]=Rv,en[Ae]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?e[s]:null;a[o]=u?u[n]:null}return a},en[ie]=Rv,en);function Mm(e,t){var r=Ib[Qo(e,t)];return process.env.NODE_ENV!=="production"&&z(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var Nv=function(e,t,r){return e.length},Ob=(rn={},rn[Vt+"_"+Ue]=function(e,t,r){return Math.max(0,e.length-t)},rn[Vt+"_"+bn]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},rn[_e]=Nv,rn[Ae]=function(e,t,r){var n=r[0].name,i=n!=null?e[n]:null;return i?i.length:0},rn[ie]=Nv,rn);function Em(e,t){var r=Ob[Qo(e,t)];return process.env.NODE_ENV!=="production"&&z(r,'Do not support count on "'+e+'", "'+t+'".'),r}var Fu=function(e,t,r){return e[t]},Rb=(nn={},nn[Vt]=Fu,nn[_e]=function(e,t,r){return e[r]},nn[Ae]=Fu,nn[ie]=function(e,t,r){var n=Sa(e);return n instanceof Array?n[t]:n},nn[ar]=Fu,nn);function Am(e){var t=Rb[e];return process.env.NODE_ENV!=="production"&&z(t,'Do not support get value on "'+e+'".'),t}function Qo(e,t){return e===Vt?e+"_"+t:e}function hi(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return Am(a)(n,o,s)}else{var u=n;return a===ie&&(u=Sa(n)),u}}}}var Nb=/\{@(.+?)\}/g,kb=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),u=n.getItemVisual(t,"style"),l=u&&u[n.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,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:a,data:s,dataType:r,value:i,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(t,n);if(o&&(u.value=o.interpolatedValue),i!=null&&k(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(K(a))return u.status=r,u.dimensionIndex=i,a(u);if(F(a)){var f=vm(a,u);return f.replace(Nb,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&lt("Invalide label formatter: @"+c+", only support @[0], @[1], @[2], ..."));var m=hi(s,t,d);if(o&&k(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(m=o.interpolatedValue[g])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return hi(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e})();function kv(e){var t,r;return V(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Vo(e)):t=e,{text:t,frag:r}}function ia(e){return new Bb(e)}var Bb=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&z(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&z(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var m=this._progress;if(k(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],v,d,u,l);else this._doProgress(m,v,d,u,l)}this._dueIndex=d;var p=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&z(p>=this._outputDueEnd),this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){Bv.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Bv.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),k(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&z(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),Bv=(function(){var e,t,r,n,i,a={reset:function(u,l,f,h){t=u,e=l,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%i*r+Math.ceil(t/i),l=t>=e?null:u<n?u:t;return t++,l}})();function To(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!mt(e)&&e!=null&&e!=="-"&&(e=+gi(e)),e==null||e===""?NaN:Number(e))}tt({number:function(e){return parseFloat(e)},time:function(e){return+gi(e)},trim:function(e){return F(e)?Ve(e):e}});var Fb=(function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=mt(t)?t:Fo(t),i=mt(r)?r:Fo(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=F(t),u=F(r);s&&(n=u?t:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e})(),Vb=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return To(t,r)},e})();function zb(e,t){var r=new Vb,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ue&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Gt(o));var s=[],u={},l=e.dimensionsDefine;if(l)T(l,function(m,g){var p=m.name,y={index:g,name:p,displayName:m.displayName};if(s.push(y),p!=null){var _="";pe(u,p)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+p+'" duplicated.'),Gt(_)),u[p]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=Mm(i,Ue);t.__isBuiltIn&&(r.getRawDataItem=function(m){return h(n,a,s,m)},r.getRawData=vt(Hb,null,e)),r.cloneRawData=vt(Gb,null,e);var c=Em(i,Ue);r.count=vt(c,null,n,a,s);var v=Am(i);r.retrieveValue=function(m,g){var p=h(n,a,s,m);return d(p,g)};var d=r.retrieveValueFromItem=function(m,g){if(m!=null){var p=s[g];if(p)return v(m,g,p.name)}};return r.getDimensionInfo=vt(Wb,null,s,u),r.cloneAllDimensionInfo=vt(Ub,null,s),r}function Hb(e){var t=e.sourceFormat;if(!bh(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),Gt(r)}return e.data}function Gb(e){var t=e.sourceFormat,r=e.data;if(!bh(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),Gt(n)}if(t===Vt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===_e){for(var i=[],a=0,o=r.length;a<o;a++)i.push(R({},r[a]));return i}}function Wb(e,t,r){if(r!=null){if(mt(r)||!isNaN(r)&&!pe(t,r))return e[r];if(pe(t,r))return t[r]}}function Ub(e){return rt(e)}var Lm=tt();function Yb(e){e=rt(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),Gt(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),Gt(r));var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,Lm.set(t,e)}function Xb(e,t,r){var n=Rt(e),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),Gt(a));for(var o=0,s=i;o<s;o++){var u=n[o];t=$b(u,t,r,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function $b(e,t,r,n){var i="";t.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),Gt(i)),V(e)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof e+"."),Gt(i));var a=e.type,o=Lm.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),Gt(i));var s=Z(t,function(f){return zb(f,o)}),u=Rt(o.transform({upstream:s[0],upstreamList:s,config:rt(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var l=Z(u,function(f){var h=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+h+" ===","- transform result data:",Vo(f.data),"- transform result dimensions:",Vo(f.dimensions)].join(`
34
+ `)}).join(`
35
+ `);jp(l)}return Z(u,function(f,h){var c="";V(f)||(process.env.NODE_ENV!=="production"&&(c="A transform should not return some empty results."),Gt(c)),f.data||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be not be null or undefined"),Gt(c));var v=Tm(f.data);bh(v)||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be array rows or object rows."),Gt(c));var d,m=t[0];if(m&&h===0&&!f.dimensions){var g=m.startIndex;g&&(f.data=m.data.slice(0,g).concat(f.data)),d={seriesLayoutBy:Ue,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else d={seriesLayoutBy:Ue,sourceHeader:0,dimensions:f.dimensions};return Jl(f.data,d,null)})}function bh(e){return e===Vt||e===_e}var Hs="undefined",Zb=typeof Uint32Array===Hs?Array:Uint32Array,qb=typeof Uint16Array===Hs?Array:Uint16Array,Pm=typeof Int32Array===Hs?Array:Int32Array,Fv=typeof Float64Array===Hs?Array:Float64Array,Im={float:Fv,int:Pm,ordinal:Array,number:Array,time:Fv},Vu;function Nn(e){return e>65535?Zb:qb}function kn(){return[1/0,-1/0]}function Kb(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Vv(e,t,r,n,i){var a=Im[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(n)}var tf=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=tt()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&z(K(t.getItem)&&K(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Vu[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=Cm(i);this._dimensions=Z(r,function(s){return process.env.NODE_ENV!=="production"&&o&&z(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new Im[r||"float"](this._rawCount),this._rawExtent[a]=kn(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=kn());for(var u=a[t],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&z(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var f=i[l];Vv(n,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],m=Vu.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=m;var g=o[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=Z(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=kn()),Vv(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,u);else for(var c=[],v=t;v<r;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var m=a[d],g=this._dimValueGetter(c,l[d],v,d);m[v]=g;var p=u[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=Nn(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Nn(n._rawCount),o=new a(i),s=[],u=t.length,l=0,f=t[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(u===0)v=r(c);else if(u===1){var m=h[f][d];v=r(m,c)}else{for(var g=0;g<u;g++)s[g]=h[t[g]][d];s[g]=c,v=r.apply(null,s)}v&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=pt(t),a=i.length;if(!a)return this;var o=r.count(),s=Nn(r._rawCount),u=new s(o),l=0,f=i[0],h=t[f][0],c=t[f][1],v=r._chunks,d=!1;if(!r._indices){var m=0;if(a===1){for(var g=v[i[0]],p=0;p<n;p++){var y=g[p];(y>=h&&y<=c||isNaN(y))&&(u[l++]=m),m++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],x=t[i[1]][0],w=t[i[1]][1],p=0;p<n;p++){var y=g[p],S=_[p];(y>=h&&y<=c||isNaN(y))&&(S>=x&&S<=w||isNaN(S))&&(u[l++]=m),m++}d=!0}}if(!d)if(a===1)for(var p=0;p<o;p++){var b=r.getRawIndex(p),y=v[i[0]][b];(y>=h&&y<=c||isNaN(y))&&(u[l++]=b)}else for(var p=0;p<o;p++){for(var C=!0,b=r.getRawIndex(p),M=0;M<a;M++){var E=i[M],y=v[E][b];(y<t[E][0]||y>t[E][1])&&(C=!1)}C&&(u[l++]=r.getRawIndex(p))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=kn();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=i[r[v]][c];u[o]=h;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var m=r[f],g=d[f],p=l[m],y=i[m];y&&(y[c]=g),g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(Nn(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var m=Math.min(d+u,o-1),g=Math.min(d+u*2,o),p=(g+m)/2,y=0,_=m;_<g;_++){var x=this.getRawIndex(_),w=a[x];isNaN(w)||(y+=w)}y/=g-m;var S=d,b=Math.min(d+u,o),C=d-1,M=a[l];f=-1,c=S;for(var E=-1,A=0,_=S;_<b;_++){var x=this.getRawIndex(_),w=a[x];if(isNaN(w)){A++,E<0&&(E=x);continue}h=Math.abs((C-p)*(w-M)-(C-_)*(y-M)),h>f&&(f=h,c=x)}A>0&&A<b-S&&(v[s++]=Math.min(E,c),c=Math.max(E,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/r),o=i[t],s=this.count(),u=new(Nn(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],m=a;f+a>s&&(m=s-f);for(var g=0;g<m;g++){var p=this.getRawIndex(f+g),y=o[p];y<c&&(c=y,h=f+g),y>d&&(d=y,v=f+g)}var _=this.getRawIndex(h),x=this.getRawIndex(v);h<v?(u[l++]=_,u[l++]=x):(u[l++]=x,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],f=this.count(),h=a._rawExtent[t]=kn(),c=new(Nn(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var m=0;m<u;m++){var g=this.getRawIndex(d+m);s[m]=l[g]}var p=n(s),y=this.getRawIndex(Math.min(d+i(s,p)||0,f-1));l[y]=p,p<h[0]&&(h[0]=p),p>h[1]&&(h[1]=p),c[v++]=y}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=kn();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<i;l++){var f=this.getRawIndex(l),h=r[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&sr(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Kb(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=rt(this._extent),t._rawExtent=rt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,n,i,a){return To(r[a],this._dimensions[a])}Vu={arrayRows:t,objectRows:function(r,n,i,a){return To(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return To(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),e})(),Qb=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Li(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=Yt(s)?ar:ie,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=X(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=X(h.sourceHeader,c.sourceHeader),m=X(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||m;i=g?[Jl(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:m},u)]:[]}else{var p=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=p.get("source",!0);i=[Jl(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&z(i&&a),this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&z(i!=null||n!=null),i!=null){var a="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),zv(a))}var o,s=[],u=[];return T(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&(process.env.NODE_ENV!=="production"&&(h="Can not retrieve result by `fromTransformResult`: "+i),zv(h)),s.push(f),u.push(l._getVersionSign())}),n?o=Xb(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Eb(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&z(Li(this._sourceHost),"Can only call getDataStore on series source manager.");var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];Li(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,n):(s=new tf,s.initData(new Dm(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Li(t)){var r=_h(t);return r?[r.getSourceManager()]:[]}else return Z(eb(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Li(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e})();function Li(e){return e.mainType==="series"}function zv(e){throw new Error(e)}var jb="line-height:1";function Om(e){var t=e.lineHeight;return t==null?jb:"line-height:"+Zt(t+"")+"px"}function Rm(e,t){var r=e.color||H.color.tertiary,n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||H.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Zt(n+"")+"px;color:"+Zt(r)+";font-weight:"+Zt(i+""),valueStyle:"font-size:"+Zt(o+"")+"px;color:"+Zt(a)+";font-weight:"+Zt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Jb=[0,10,20,30],tT=["",`
36
+ `,`
37
+
38
+ `,`
39
+
40
+
41
+ `];function ci(e,t){return t.type=e,t}function ef(e){return e.type==="section"}function Nm(e){return ef(e)?eT:rT}function km(e){if(ef(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return T(e.blocks,function(i){var a=km(i);a>=t&&(t=a+ +(n&&(!a||ef(i)&&!i.noHeader)))}),t}return 0}function eT(e,t,r,n){var i=t.noHeader,a=nT(km(t)),o=[],s=t.blocks||[];z(!s||k(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(pe(l,u)){var f=new Fb(l[u],null);s.sort(function(m,g){return f.evaluate(m.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}T(s,function(m,g){var p=t.valueFormatter,y=Nm(m)(p?R(R({},e),{valueFormatter:p}):e,m,g>0?a.html:0,n);y!=null&&o.push(y)});var h=e.renderMode==="richText"?o.join(a.richText):rf(n,o.join(""),i?r:a.html);if(i)return h;var c=ql(t.header,"ordinal",e.useUTC),v=Rm(n,e.renderMode).nameStyle,d=Om(n);return e.renderMode==="richText"?Bm(e,c,v)+a.richText+h:rf(n,'<div style="'+v+";"+d+';">'+Zt(c)+"</div>"+h,r)}function rT(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(x){return x=k(x)?x:[x],Z(x,function(w,S){return ql(w,k(v)?v[S]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||H.color.secondary,i),c=a?"":ql(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),m=!s||!a,g=!s&&a,p=Rm(n,i),y=p.nameStyle,_=p.valueStyle;return i==="richText"?(s?"":h)+(a?"":Bm(e,c,y))+(o?"":oT(e,d,m,g,_)):rf(n,(s?"":h)+(a?"":iT(c,!s,y))+(o?"":aT(d,m,g,_)),r)}}function Hv(e,t,r,n,i,a){if(e){var o=Nm(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function nT(e){return{html:Jb[e],richText:tT[e]}}function rf(e,t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=Om(e);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function iT(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Zt(e)+"</span>"}function aT(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=k(e)?e:[e],'<span style="'+a+";"+n+'">'+Z(e,function(o){return Zt(o)}).join("&nbsp;&nbsp;")+"</span>"}function Bm(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function oT(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(k(t)?t.join(" "):t,a)}function Fm(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return fi(n)}function Vm(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var zu=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Kp()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=kw({color:r,type:t,renderMode:n,markerId:i});return F(a)?a:(process.env.NODE_ENV!=="production"&&z(i),this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};k(r)?T(r,function(a){return R(n,a)}):R(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e})();function sT(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=k(s),l=Fm(t,r),f,h,c,v;if(o>1||u&&!o){var d=uT(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var m=i.getDimensionInfo(a[0]);v=f=hi(i,r,a[0]),h=m.type}else v=f=u?s[0]:s;var g=Wf(t),p=g&&t.name||"",y=i.getName(r),_=n?p:y;return ci("section",{header:p,noHeader:n||!g,sortParam:v,blocks:[ci("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ve(_),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function uT(e,t,r,n,i){var a=t.getData(),o=sr(e,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?T(n,function(h){f(hi(a,r,h),h)}):T(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(ci("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var pr=_t();function ja(e,t){return e.getName(t)||e.getId(t)}var lT="__universalTransitionEnabled",Lr=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ia({count:hT,reset:cT}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=pr(this).sourceManager=new Qb(this);a.prepareSource();var o=this.getInitialData(r,i);Wv(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&z(o,"getInitialData returned invalid data."),pr(this).dataBeforeProcessed=o,Gv(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ca(this),a=i?Si(r):{},o=this.subType;at.hasClass(o)&&(o+="Series"),st(r,n.getTheme().get(this.subType)),st(r,this.getDefaultOption()),Ol(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ar(r,a,i)},t.prototype.mergeOption=function(r,n){r=st(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ca(this);i&&Ar(this.option,r,i);var a=pr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Wv(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,pr(this).dataBeforeProcessed=o,Gv(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Yt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Ol(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=nf(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return pr(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=nf(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}pr(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return tt(r)},t.prototype.getSourceManager=function(){return pr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return pr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(i);a==null&&(a=1/0);var f=[],h=1/0,c=-1,v=0;return o.each(n,function(d,m){var g=u.dataToCoord(d),p=l-g,y=Math.abs(p);y<=a&&((y<h||y===h&&p>=0&&c<0)&&(h=y,c=p,v=0),p===c&&(f[v++]=m))}),f.length=v,f},t.prototype.formatTooltip=function(r,n,i){return sT({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Q.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=xh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=ja(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=pt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[ja(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[lT])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){V(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=n[f],c=ja(r,h);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[u-1],c=ja(r,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return at.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(at);De(Lr,kb);De(Lr,xh);ig(Lr,at);function Gv(e){var t=e.name;Wf(e)||(e.name=fT(e)||t)}function fT(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return T(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function hT(e){return e.model.getRawData().count()}function cT(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),vT}function vT(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Wv(e,t){T(i0(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Et(dT,t))})}function dT(e,t){var r=nf(e);return r&&r.setOutputEnd((t||this).count()),t}function nf(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var ye=(function(){function e(){this.group=new jt,this.uid=Bs("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();Yf(ye);ws(ye);function Th(){var e=_t();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var zm=_t(),pT=Th(),Dr=(function(){function e(){this.group=new jt,this.uid=Bs("viewChart"),this.renderTask=ia({plan:gT,reset:mT}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&lt("Unknown dataType "+i.dataType);return}Yv(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&lt("Unknown dataType "+i.dataType);return}Yv(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){ih(this.group,t)},e.markUpdateMethod=function(t,r){zm(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Uv(e,t,r){e&&ui(e)&&(t==="emphasis"?Wo:Uo)(e,r)}function Yv(e,t,r){var n=mi(e,t),i=t&&t.highlightKey!=null?_S(t.highlightKey):null;n!=null?T(Rt(n),function(a){Uv(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Uv(a,r,i)})}Yf(Dr,["dispose"]);ws(Dr);function gT(e){return pT(e.model)}function mT(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&zm(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,i),yT[u]}var yT={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},jo="\0__throttleOriginMethod",Xv="\0__throttleRate",$v="\0__throttleType";function Gs(e,t,r){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),u=this,l=v;var m=f||t,g=f||r;f=null,s=n-(g?i:a)-m,clearTimeout(o),g?o=setTimeout(h,m):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Ch(e,t,r,n){var i=e[t];if(i){var a=i[jo]||i,o=i[$v],s=i[Xv];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Gs(a,r,n==="debounce"),i[jo]=a,i[$v]=n,i[Xv]=r}return i}}function Jo(e,t){var r=e[t];r&&r[jo]&&(r.clear&&r.clear(),e[t]=r[jo])}var Zv=_t(),qv={itemStyle:la(tm,!0),lineStyle:la(Jg,!0)},_T={lineStyle:"stroke",itemStyle:"fill"};function Hm(e,t){var r=e.visualStyleMapper||qv[t];return r||(console.warn("Unknown style type '"+t+"'."),qv.itemStyle)}function Gm(e,t){var r=e.visualDrawType||_T[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var xT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=Hm(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=Gm(e,n),l=o[u],f=K(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var m=e.getDataParams(d),g=R({},o);g[u]=f(m),v.setItemVisual(d,"style",g)}}}},Pi=new yt,ST={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=Hm(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Pi.option=u[n];var l=i(Pi),f=o.ensureUniqueItemVisual(s,"style");R(f,l),Pi.option.decal&&(o.setItemVisual(s,"decal",Pi.option.decal),Pi.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},wT={performRawSeries:!0,overallReset:function(e){var t=tt();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Zv(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Zv(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=Gm(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},Ja=Math.PI;function bT(e,t){t=t||{},ft(t,{text:"loading",textColor:H.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:H.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new jt,n=new bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Ft({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new bt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Ps({shape:{startAngle:-Ja/2,endAngle:-Ja/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ja*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ja*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Wm=(function(){function e(t,r,n,i){this._stageTaskMap=tt(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=tt();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;T(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),z(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;T(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var m=o.getPerformArgs(c,i.block);d.each(function(g){g.perform(m)}),c.perform(m)&&(a=!0)}else h&&h.each(function(g,p){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=tt(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ia({plan:ET,reset:AT,count:PT}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ia({reset:TT});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=tt(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),z(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,T(n.getSeries(),d));function d(m){var g=m.uid,p=u.set(g,s&&s.get(g)||(c=!0,ia({reset:CT,onDirty:MT})));p.context={model:m,overallProgress:h},p.agent=o,p.__block=h,a._pipe(m,p)}c&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return K(t)&&(t={overallReset:t,seriesType:IT(t)}),t.uid=Bs("stageHandler"),r&&(t.visualType=r),t},e})();function TT(e){e.overallReset(e.ecModel,e.api,e.payload)}function CT(e){return e.overallProgress&&DT}function DT(){this.agent.dirty(),this.getDownstream().dirty()}function MT(){this.agent&&this.agent.dirty()}function ET(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function AT(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Rt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(r,n){return Um(n)}):LT}var LT=Um(0);function Um(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function PT(e){return e.data.count()}function IT(e){ts=null;try{e(da,Ym)}catch{}return ts}var da={},Ym={},ts;Xm(da,Sh);Xm(Ym,xm);da.eachSeriesByType=da.eachRawSeriesByType=function(e){ts=e};da.eachComponent=function(e){e.mainType==="series"&&e.subType&&(ts=e.subType)};function Xm(e,t){for(var r in t.prototype)e[r]=Wt}var N=H.darkColor,OT=N.background,Ii=function(){return{axisLine:{lineStyle:{color:N.axisLine}},splitLine:{lineStyle:{color:N.axisSplitLine}},splitArea:{areaStyle:{color:[N.backgroundTint,N.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:N.axisMinorSplitLine}},axisLabel:{color:N.axisLabel},axisName:{}}},Kv={label:{color:N.secondary},itemStyle:{borderColor:N.borderTint},dividerLineStyle:{color:N.border}},$m={darkMode:!0,color:N.theme,backgroundColor:OT,axisPointer:{lineStyle:{color:N.border},crossStyle:{color:N.borderShade},label:{color:N.tertiary}},legend:{textStyle:{color:N.secondary},pageTextStyle:{color:N.tertiary}},textStyle:{color:N.secondary},title:{textStyle:{color:N.primary},subtextStyle:{color:N.quaternary}},toolbox:{iconStyle:{borderColor:N.accent50}},tooltip:{backgroundColor:N.neutral20,defaultBorderColor:N.border,textStyle:{color:N.tertiary}},dataZoom:{borderColor:N.accent10,textStyle:{color:N.tertiary},brushStyle:{color:N.backgroundTint},handleStyle:{color:N.neutral00,borderColor:N.accent20},moveHandleStyle:{color:N.accent40},emphasis:{handleStyle:{borderColor:N.accent50}},dataBackground:{lineStyle:{color:N.accent30},areaStyle:{color:N.accent20}},selectedDataBackground:{lineStyle:{color:N.accent50},areaStyle:{color:N.accent30}}},visualMap:{textStyle:{color:N.secondary},handleStyle:{borderColor:N.neutral30}},timeline:{lineStyle:{color:N.accent10},label:{color:N.tertiary},controlStyle:{color:N.accent30,borderColor:N.accent30}},calendar:{itemStyle:{color:N.neutral00,borderColor:N.neutral20},dayLabel:{color:N.tertiary},monthLabel:{color:N.secondary},yearLabel:{color:N.secondary}},matrix:{x:Kv,y:Kv,backgroundColor:{borderColor:N.axisLine},body:{itemStyle:{borderColor:N.borderTint}}},timeAxis:Ii(),logAxis:Ii(),valueAxis:Ii(),categoryAxis:Ii(),line:{symbol:"circle"},graph:{color:N.theme},gauge:{title:{color:N.secondary},axisLine:{lineStyle:{color:[[1,N.neutral05]]}},axisLabel:{color:N.axisLabel},detail:{color:N.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:N.background}},radar:(function(){var e=Ii();return e.axisName={color:N.axisLabel},e.axisLine.lineStyle.color=N.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:N.neutral20,textStyle:{color:N.secondary}},emphasis:{itemStyle:{color:N.neutral30}}}},sunburst:{itemStyle:{borderColor:N.background}},map:{itemStyle:{borderColor:N.border,areaColor:N.neutral10},label:{color:N.tertiary},emphasis:{label:{color:N.primary},itemStyle:{areaColor:N.highlight}},select:{label:{color:N.primary},itemStyle:{areaColor:N.highlight}}},geo:{itemStyle:{borderColor:N.border,areaColor:N.neutral10},emphasis:{label:{color:N.primary},itemStyle:{areaColor:N.highlight}},select:{label:{color:N.primary},itemStyle:{color:N.highlight}}}};$m.categoryAxis.splitLine.show=!1;var RT=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(F(t)){var a=He(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),af=["symbol","symbolSize","symbolRotate","symbolOffset"],Qv=af.concat(["symbolKeepAspect"]),NT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<af.length;o++){var s=af[o],u=e.get(s);K(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(R({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var l=pt(i);function f(h,c){for(var v=e.getRawValue(c),d=e.getDataParams(c),m=0;m<l.length;m++){var g=l[m];h.setItemVisual(c,g,i[g](v,d))}}return{dataEach:a?f:null}}},kT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Qv.length;s++){var u=Qv[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function Zm(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function qm(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function BT(e,t,r,n){switch(r){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function FT(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}T([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=R({},i),process.env.NODE_ENV!=="production"&&Mt(i.type,n[1]),o.dispatchAction(R(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Bn(e,t,r,n,i){var a=e+t;r.isSilent(a)||(process.env.NODE_ENV!=="production"&&Xe("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=i.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=mi(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:k(c)?h.getName(c[0]):h.getName(c),selected:F(u)?u:R({},u)})}}))}function VT(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Bn("map","selectchanged",t,i,n),Bn("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Bn("map","selected",t,i,n),Bn("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Bn("map","unselected",t,i,n),Bn("pie","unselected",t,i,n))})}function jn(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var zT=Math.round(Math.random()*9),HT=typeof Object.defineProperty=="function",GT=(function(){function e(){this._id="__ec_inner_"+zT++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return HT?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),WT=gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),UT=gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),YT=gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;e.moveTo(r-f,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+f-h*v,u+s+c*v,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+h*v,u+s+c*v,r-f,u+s),e.closePath()}}),XT=gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),$T={line:lr,rect:bt,roundRect:bt,square:bt,circle:wa,diamond:UT,pin:YT,arrow:XT,triangle:WT},ZT={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},es={};T($T,function(e,t){es[t]=new e});var qT=gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Gf(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=es[n];i||(n="rect",i=es[n]),ZT[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function KT(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||H.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Ws(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=Fg(e.slice(8),new J(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?u=Is(e.slice(7),{},new J(t,r,n,i),o?"center":"cover"):u=new qT({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=KT,a&&u.setColor(a),u}function QT(e){return k(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Km(e,t){if(e!=null)return k(e)||(e=[e,e]),[St(e[0],t[0])||0,St(X(e[1],e[0]),t[1])||0]}function fn(e){return isFinite(e)}function jT(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=fn(n)?n:0,i=fn(i)?i:1,a=fn(a)?a:0,o=fn(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function JT(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,u=u*a),o=fn(o)?o:.5,s=fn(s)?s:.5,u=u>=0&&fn(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function of(e,t,r){for(var n=t.type==="radial"?JT(e,t,r):jT(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function tC(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function to(e){return parseInt(e,10)}function eo(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||to(s[n])||to(e.style[n]))-(to(s[a])||0)-(to(s[o])||0)|0}function eC(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:mt(e)?[e]:k(e)?e:null}function Qm(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&eC(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var rC=new xn(!0);function rs(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function jv(e){return typeof e=="string"&&e!=="none"}function ns(e){var t=e.fill;return t!=null&&t!=="none"}function Jv(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function td(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function sf(e,t,r){var n=ag(t.image,t.__image,r);if(bs(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*a0),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function nC(e,t,r,n){var i,a=rs(r),o=ns(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||rC,h=t.__dirty;if(!n){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,m=a&&!!v.colorStops,g=o&&!!c.image,p=a&&!!v.image,y=void 0,_=void 0,x=void 0,w=void 0,S=void 0;(d||m)&&(S=t.getBoundingRect()),d&&(y=h?of(e,c,S):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(_=h?of(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(x=h||!t.__canvasFillPattern?sf(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=x),p&&(w=h||!t.__canvasStrokePattern?sf(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?e.fillStyle=y:g&&(x?e.fillStyle=x:o=!1),m?e.strokeStyle=_:p&&(w?e.strokeStyle=w:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var C,M;e.setLineDash&&r.lineDash&&(i=Qm(t),C=i[0],M=i[1]);var E=!0;(l||h&Yn)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),E=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),E&&f.rebuildPath(e,u?s:1),C&&(e.setLineDash(C),e.lineDashOffset=M),n||(r.strokeFirst?(a&&td(e,r),o&&Jv(e,r)):(o&&Jv(e,r),a&&td(e,r))),C&&e.setLineDash([])}function iC(e,t,r){var n=t.__image=ag(r.image,t.__image,t,t.onload);if(!(!n||!bs(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(n,l,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(n,l,f,h,c,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function aC(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Mr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Qm(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(rs(r)&&e.strokeText(i,r.x,r.y),ns(r)&&e.fillText(i,r.x,r.y)):(ns(r)&&e.fillText(i,r.x,r.y),rs(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var ed=["shadowBlur","shadowOffsetX","shadowOffsetY"],rd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function jm(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Qt(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?pn.opacity:o}(n||t.blend!==r.blend)&&(a||(Qt(e,i),a=!0),e.globalCompositeOperation=t.blend||pn.blend);for(var s=0;s<ed.length;s++){var u=ed[s];(n||t[u]!==r[u])&&(a||(Qt(e,i),a=!0),e[u]=e.dpr*(t[u]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Qt(e,i),a=!0),e.shadowColor=t.shadowColor||pn.shadowColor),a}function nd(e,t,r,n,i){var a=pa(t,i.inHover),o=n?null:r&&pa(r,i.inHover)||{};if(a===o)return!1;var s=jm(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Qt(e,i),s=!0),jv(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Qt(e,i),s=!0),jv(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Qt(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Qt(e,i),s=!0),e.lineWidth=l)}for(var f=0;f<rd.length;f++){var h=rd[f],c=h[0];(n||a[c]!==o[c])&&(s||(Qt(e,i),s=!0),e[c]=a[c]||h[1])}return s}function oC(e,t,r,n,i){return jm(e,pa(t,i.inHover),r&&pa(r,i.inHover),n,i)}function Jm(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function sC(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),Jm(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function uC(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var id=1,ad=2,od=3,sd=4;function lC(e){var t=ns(e),r=rs(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Qt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function pa(e,t){return t&&e.__hoverStyle||e.style}function ty(e,t){hn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function hn(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~ee,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||tC(a,o))&&(o&&o.length&&(Qt(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Qt(e,r),e.save(),sC(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof gt&&t.autoBatch&&lC(t.style);s||uC(i,l.transform)?(Qt(e,r),Jm(e,t)):f||Qt(e,r);var h=pa(t,r.inHover);t instanceof gt?(r.lastDrawType!==id&&(u=!0,r.lastDrawType=id),nd(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),nC(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof zo?(r.lastDrawType!==od&&(u=!0,r.lastDrawType=od),nd(e,t,l,u,r),aC(e,t,h)):t instanceof Or?(r.lastDrawType!==ad&&(u=!0,r.lastDrawType=ad),oC(e,t,l,u,r),iC(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==sd&&(u=!0,r.lastDrawType=sd),fC(e,t,r)),f&&n&&Qt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function fC(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),hn(e,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),hn(e,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Hu=new GT,ud=new ii(100),ld=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function is(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Hu.delete(e);var a=Hu.get(e);if(a)return a;var o=ft(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Hu.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,c=0;c<ld.length;++c){var v=o[ld[c]];if(v!=null&&!k(v)&&!F(v)&&!mt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var m=ud.get(d);m&&(i?l.svgElement=m:l.image=m)}var g=ry(o.dashArrayX),p=hC(o.dashArrayY),y=ey(o.symbol),_=cC(g),x=ny(p),w=!i&&Ye.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=M(),C;w&&(w.width=b.width*r,w.height=b.height*r,C=w.getContext("2d")),E(),h&&ud.put(d,w||S),l.image=w,l.svgElement=S,l.svgWidth=b.width,l.svgHeight=b.height;function M(){for(var A=1,L=0,D=_.length;L<D;++L)A=wc(A,_[L]);for(var P=1,L=0,D=y.length;L<D;++L)P=wc(P,y[L].length);A*=P;var I=x*_.length*y.length;if(process.env.NODE_ENV!=="production"){var O=function(U){console.warn("Calculated decal size is greater than "+U+" due to decal option settings so "+U+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+U+" to be larger to avoid incontinuity.")};A>o.maxTileWidth&&O("maxTileWidth"),I>o.maxTileHeight&&O("maxTileHeight")}return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var A=0,L=0;L<p.length;++L)A+=p[L];if(A<=0)return;for(var D=-x,P=0,I=0,O=0;D<b.height;){if(P%2===0){for(var U=I/2%y.length,G=0,q=0,$=0;G<b.width*2;){for(var Y=0,L=0;L<g[O].length;++L)Y+=g[O][L];if(Y<=0)break;if(q%2===0){var W=(1-o.symbolSize)*.5,nt=G+g[O][q]*W,Tt=D+p[P]*W,Le=g[O][q]*o.symbolSize,Pe=p[P]*o.symbolSize,Ie=$/2%y[U].length;Ze(nt,Tt,Le,Pe,y[U][Ie])}G+=g[O][q],++$,++q,q===g[O].length&&(q=0)}++O,O===g.length&&(O=0)}D+=p[P],++I,++P,P===p.length&&(P=0)}function Ze(Jt,It,j,it,Nr){var zt=i?1:r,Hh=Ws(Nr,Jt*zt,It*zt,j*zt,it*zt,o.color,o.symbolKeepAspect);if(i){var Gh=n.painter.renderOneToVNode(Hh);Gh&&S.children.push(Gh)}else ty(C,Hh)}}}}function ey(e){if(!e||e.length===0)return[["rect"]];if(F(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!F(e[r])){t=!1;break}if(t)return ey([e]);for(var n=[],r=0;r<e.length;++r)F(e[r])?n.push([e[r]]):n.push(e[r]);return n}function ry(e){if(!e||e.length===0)return[[0,0]];if(mt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!mt(e[n])){r=!1;break}if(r)return ry([e]);for(var i=[],n=0;n<e.length;++n)if(mt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Z(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function hC(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(mt(e)){var t=Math.ceil(e);return[t,t]}var r=Z(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function cC(e){return Z(e,function(t){return ny(t)})}function ny(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function vC(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=is(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=is(i,t)}}})}var we=new Me,as={};function dC(e,t){process.env.NODE_ENV!=="production"&&as[e]&&lt("Already has an implementation of "+e+"."),as[e]=t}function pC(e){return process.env.NODE_ENV!=="production"&&(as[e]||lt("Implementation of "+e+" doesn't exists.")),as[e]}var iy={};function gC(e,t){iy[e]=t}function mC(e){return iy[e]}var yC=1,_C=800,xC=900,SC=1e3,wC=2e3,bC=5e3,ay=1e3,TC=1100,Dh=2e3,oy=3e3,CC=4e3,Us=4500,DC=4600,MC=5e3,EC=6e3,sy=7e3,AC={PROCESSOR:{FILTER:SC,SERIES_FILTER:_C,STATISTIC:bC},VISUAL:{LAYOUT:ay,PROGRESSIVE_LAYOUT:TC,GLOBAL:Dh,CHART:oy,POST_CHART_LAYOUT:DC,COMPONENT:CC,BRUSH:MC,CHART_ITEM:Us,ARIA:EC,DECAL:sy}},Ct="__flagInMainProcess",ro="__mainProcessVersion",At="__pendingUpdate",Gu="__needsUpdateStatus",fd=/^[a-zA-Z0-9_]+$/,Wu="__connectUpdateStatus",hd=0,LC=1,PC=2;function uy(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){$t(this.id);return}return fy(this,e,t)}}function ly(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return fy(this,e,t)}}function fy(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Me.prototype[t].apply(e,r)}var hy=(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Me),cy=hy.prototype;cy.on=ly("on");cy.off=ly("off");var an,Uu,no,Qe,io,Yu,Xu,Fn,Vn,cd,vd,$u,dd,ao,pd,vy,oe,gd,zn,dy=(function(e){B(t,e);function t(r,n,i){var a=e.call(this,new RT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",u=!1;if(a[ro]=1,process.env.NODE_ENV!=="production"){var l=Q.hasGlobalWindow?window:global;l&&(o=X(l.__ECHARTS__DEFAULT__RENDERER__,o),s=X(l.__ECHARTS__DEFAULT__COARSE_POINTER,s),u=X(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,u))}i.ssr;var f=a._zr=xc(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:X(i.useDirtyRect,u),useCoarsePointer:X(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Gs(vt(f.flush,f),17),a._updateTheme(n),a._locale=bw(i.locale||rm),a._coordSysMgr=new Vs;var h=a._api=pd(a);function c(v,d){return v.__prio-d.__prio}return po(us,c),po(lf,c),a._scheduler=new Wm(a,h,lf,us),a._messageCenter=new hy,a._initEvents(),a.resize=vt(a.resize,a),f.animation.on("frame",a._onframe,a),cd(f,a),vd(f,a),hl(a),a}return t.prototype._onframe=function(){if(!this._disposed){gd(this);var r=this._scheduler;if(this[At]){var n=this[At].silent;this[Ct]=!0,zn(this);try{an(this),Qe.update.call(this,null,this[At].updateParams)}catch(u){throw this[Ct]=!1,this[At]=null,u}this._zr.flush(),this[Ct]=!1,this[At]=null,Fn.call(this,n),Vn.call(this,n)}else if(r.unfinished){var i=yC,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Yu(this,a),r.performVisualTasks(a),ao(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(this[Ct]){process.env.NODE_ENV!=="production"&&lt("`setOption` should not be called during main process.");return}if(this._disposed){$t(this.id);return}var a,o,s;if(V(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ct]=!0,zn(this),!this._model||n){var u=new db(this._api),l=this._theme,f=this._model=new Sh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},ff);var h={seriesTransition:s,optionChanged:!0};if(i)this[At]={silent:a,updateParams:h},this[Ct]=!1,this.getZr().wakeUp();else{try{an(this),Qe.update.call(this,null,h)}catch(c){throw this[At]=null,this[Ct]=!1,c}this._ssr||this._zr.flush(),this[At]=null,this[Ct]=!1,Fn.call(this,a),Vn.call(this,a)}},t.prototype.setTheme=function(r,n){if(this[Ct]){process.env.NODE_ENV!=="production"&&lt("`setTheme` should not be called during main process.");return}if(this._disposed){$t(this.id);return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[At]&&(a==null&&(a=this[At].silent),o=this[At].updateParams,this[At]=null),this[Ct]=!0,zn(this);try{this._updateTheme(r),i.setTheme(this._theme),an(this),Qe.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ct]=!1,s}this[Ct]=!1,Fn.call(this,a),Vn.call(this,a)}},t.prototype._updateTheme=function(r){F(r)&&(r=py[r]),r&&(r=rt(r),r&&wm(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Q.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&Mt("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return T(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){$t(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;T(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return T(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){$t(this.id);return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(md[i]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();T(aa,function(_,x){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(r)),S=_.getDom().getBoundingClientRect();u=a(S.left,u),l=a(S.top,l),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:w,left:S.left,top:S.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,m=h-l,g=Ye.createCanvas(),p=xc(g,{renderer:n?"svg":"canvas"});if(p.resize({width:d,height:m}),n){var y="";return T(c,function(_){var x=_.left-u,w=_.top-l;y+='<g transform="translate('+x+","+w+')">'+_.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&p.painter.setBackgroundColor(r.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return r.connectedBackgroundColor&&p.add(new bt({shape:{x:0,y:0,width:d,height:m},style:{fill:r.connectedBackgroundColor}})),T(c,function(_){var x=new Or({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});p.add(x)}),p.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,i){return io(this,"convertToPixel",r,n,i)},t.prototype.convertToLayout=function(r,n,i){return io(this,"convertToLayout",r,n,i)},t.prototype.convertFromPixel=function(r,n,i){return io(this,"convertFromPixel",r,n,i)},t.prototype.containPixel=function(r,n){if(this._disposed){$t(this.id);return}var i=this._model,a,o=vu(i,r);return T(o,function(s,u){u.indexOf("Models")>=0&&T(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint?a=a||h.containPoint(n,l):process.env.NODE_ENV!=="production"&&Kt(u+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Kt(u+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=vu(i,r,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||Kt("There is no specified series model"));var s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?Zm(s,u,n):qm(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;T(IC,function(i){var a=function(o){var s=r.getModel(),u=o.target,l,f=i==="globalout";if(f?l={}:u&&jn(u,function(m){var g=ct(m);if(g&&g.dataIndex!=null){var p=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,u)||{},!0}else if(g.eventData)return l=R({},g.eventData),!0},!0),l){var h=l.componentType,c=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=l.seriesIndex);var v=h&&c!=null&&s.getComponent(h,c),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!f&&!(v&&d)&&Kt("model or view can not be found by params"),l.event=o,l.type=i,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:v,view:d},r.trigger(i,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;T(uf,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),VT(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){$t(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){$t(this.id);return}this._disposed=!0;var r=this.getDom();r&&eg(this.getDom(),Eh,"");var n=this,i=n._api,a=n._model;T(n._componentsViews,function(o){o.dispose(a,i)}),T(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete aa[n.id]},t.prototype.resize=function(r){if(this[Ct]){process.env.NODE_ENV!=="production"&&lt("`resize` should not be called during main process.");return}if(this._disposed){$t(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[At]&&(a==null&&(a=this[At].silent),i=!0,this[At]=null),this[Ct]=!0,zn(this);try{i&&an(this),Qe.update.call(this,{type:"resize",animation:R({duration:0},r&&r.animation)})}catch(o){throw this[Ct]=!1,o}this[Ct]=!1,Fn.call(this,a),Vn.call(this,a)}},t.prototype.showLoading=function(r,n){if(this._disposed){$t(this.id);return}if(V(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!hf[r]){process.env.NODE_ENV!=="production"&&Kt("Loading effects "+r+" not exists.");return}var i=hf[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},t.prototype.hideLoading=function(){if(this._disposed){$t(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=R({},r);return n.type=ss[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){$t(this.id);return}if(V(n)||(n={silent:!!n}),!!os[r.type]&&this._model){if(this[Ct]){this._pendingActions.push(r);return}var i=n.silent;Xu.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Q.browser.weChat&&this._throttledZrFlush(),Fn.call(this,i),Vn.call(this,i)}},t.prototype.updateLabelLayout=function(){we.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){$t(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&z(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){an=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Uu(h,!0),Uu(h,!1),c.plan()},Uu=function(h,c){for(var v=h._model,d=h._scheduler,m=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,p=h._zr,y=h._api,_=0;_<m.length;_++)m[_].__alive=!1;c?v.eachComponent(function(S,b){S!=="series"&&x(b)}):v.eachSeries(x);function x(S){var b=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,M=!b&&g[C];if(!M){var E=He(S.type),A=c?ye.getClass(E.main,E.sub):Dr.getClass(E.sub);process.env.NODE_ENV!=="production"&&z(A,E.sub+" does not exist."),M=new A,M.init(v,y),g[C]=M,m.push(M),p.add(M.group)}S.__viewId=M.__id=C,M.__alive=!0,M.__model=S,M.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!c&&d.prepareView(M,S,v,y)}for(var _=0;_<m.length;){var w=m[_];w.__alive?_++:(!c&&w.renderTask.dispose(),p.remove(w.group),w.dispose(v,y),m.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},no=function(h,c,v,d,m){var g=h._model;if(g.setUpdatePayload(v),!d){T([].concat(h._componentsViews).concat(h._chartsViews),w);return}var p={};p[d+"Id"]=v[d+"Id"],p[d+"Index"]=v[d+"Index"],p[d+"Name"]=v[d+"Name"];var y={mainType:d,query:p};m&&(y.subType=m);var _=v.excludeSeriesId,x;_!=null&&(x=tt(),T(Rt(_),function(S){var b=Te(S,null);b!=null&&x.set(b,!0)})),g&&g.eachComponent(y,function(S){var b=x&&x.get(S.id)!=null;if(!b)if(tv(v))if(S instanceof Lr)v.type===gn&&!v.notBlur&&!S.get(["emphasis","disabled"])&&lS(S,v,h._api);else{var C=Qf(S.mainType,S.componentIndex,v.name,h._api),M=C.focusSelf,E=C.dispatchers;v.type===gn&&M&&!v.notBlur&&Hl(S.mainType,S.componentIndex,h._api),E&&T(E,function(A){v.type===gn?Wo(A):Uo(A)})}else Gl(v)&&S instanceof Lr&&(cS(S,v,h._api),jc(S),oe(h))},h),g&&g.eachComponent(y,function(S){var b=x&&x.get(S.id)!=null;b||w(h[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function w(S){S&&S.__alive&&S[c]&&S[c](S.__model,g,h._api,v)}},Qe={prepareAndUpdate:function(h){an(this),Qe.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,m=this._zr,g=this._coordSysMgr,p=this._scheduler;if(v){v.setUpdatePayload(h),p.restoreData(v,h),p.performSeriesTasks(v),g.create(v,d),p.performDataProcessorTasks(v,h),Yu(this,v),g.update(v,d),n(v),p.performVisualTasks(v,h);var y=v.get("backgroundColor")||"transparent";m.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&m.setDarkMode(_),$u(this,v,d,h,c),we.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var m=[];v.eachComponent(function(p,y){if(p!=="series"){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,v,d,h);x&&x.update&&m.push(_)}else m.push(_)}});var g=tt();v.eachSeries(function(p){var y=c._chartsMap[p.__viewId];if(y.updateTransform){var _=y.updateTransform(p,v,d,h);_&&_.update&&g.set(p.uid,1)}else g.set(p.uid,1)}),n(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),ao(this,v,d,h,{},g),we.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Dr.markUpdateMethod(h,"updateView"),n(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),$u(this,c,this._api,h,{}),we.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),Dr.markUpdateMethod(h,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,m){if(d!=="series"){var g=c.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,v,c._api,h)}}),v.eachSeries(function(d){var m=c._chartsMap[d.__viewId];m.updateVisual(d,v,c._api,h)}),we.trigger("afterupdate",v,this._api))},updateLayout:function(h){Qe.update.call(this,h)}};function r(h,c,v,d,m){if(h._disposed){$t(h.id);return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,_=vu(g,v),x=0;x<p.length;x++){var w=p[x];if(w[c]&&(y=w[c](g,_,d,m))!=null)return y}process.env.NODE_ENV!=="production"&&Kt("No coordinate system that supports "+c+" found by the given finder.")}io=r,Yu=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(m){d.updateStreamModes(m,v[m.__viewId])})},Xu=function(h,c){var v=this,d=this.getModel(),m=h.type,g=h.escapeConnect,p=os[m],y=(p.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&He(y[0]);this[Ct]=!0,zn(this);var w=[h],S=!1;h.batch&&(S=!0,w=Z(h.batch,function(O){return O=ft(R({},O),h),O.batch=null,O}));var b=[],C,M=[],E=p.nonRefinedEventType,A=Gl(h),L=tv(h);if(L&&Cg(this._api),T(w,function(O){var U=p.action(O,d,v._api);if(p.refineEvent?M.push(U):C=U,C=C||R({},O),C.type=E,b.push(C),L){var G=Uf(h),q=G.queryOptionMap,$=G.mainTypeSpecified,Y=$?q.keys()[0]:"series";no(v,_,O,Y),oe(v)}else A?(no(v,_,O,"series"),oe(v)):x&&no(v,_,O,x.main,x.sub)}),_!=="none"&&!L&&!A&&!x)try{this[At]?(an(this),Qe.update.call(this,h),this[At]=null):Qe[_].call(this,h)}catch(O){throw this[Ct]=!1,O}if(S?C={type:E,escapeConnect:g,batch:b}:C=b[0],this[Ct]=!1,!c){var D=void 0;if(p.refineEvent){var P=p.refineEvent(M,h,d,this._api).eventContent;z(V(P)),D=ft({type:p.refinedEventType},P),D.fromAction=h.type,D.fromActionPayload=h,D.escapeConnect=!0}var I=this._messageCenter;I.trigger(C.type,C),D&&I.trigger(D.type,D)}},Fn=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Xu.call(this,v,h)}},Vn=function(h){!h&&this.trigger("updated")},cd=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[At]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},vd=function(h,c){h.on("mouseover",function(v){var d=v.target,m=jn(d,ui);m&&(fS(m,v,c._api),oe(c))}).on("mouseout",function(v){var d=v.target,m=jn(d,ui);m&&(hS(m,v,c._api),oe(c))}).on("click",function(v){var d=v.target,m=jn(d,function(y){return ct(y).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",p=ct(m);c._api.dispatchAction({type:g,dataType:p.dataType,dataIndexInside:p.dataIndex,seriesIndex:p.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],d=!1;if(h.eachComponent(function(y,_){var x=_.get("zlevel")||0,w=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,(y==="series"?v:c).push({zlevel:x,z:w,idx:_.componentIndex,type:y,key:S})}),d){var m=c.concat(v),g,p;po(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),T(m,function(y){var _=h.getComponent(y.type,y.idx),x=y.zlevel,w=y.key;g!=null&&(x=Math.max(g,x)),w?(x===g&&w!==p&&x++,p=w):p&&(x===g&&x++,p=""),g=x,_.setZLevel(x)})}}$u=function(h,c,v,d,m){i(c),dd(h,c,v,d,m),T(h._chartsViews,function(g){g.__alive=!1}),ao(h,c,v,d,m),T(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},dd=function(h,c,v,d,m,g){T(g||h._componentsViews,function(p){var y=p.__model;l(y,p),p.render(y,c,v,d),u(y,p),f(y,p)})},ao=function(h,c,v,d,m,g){var p=h._scheduler;m=R(m||{},{updatedSeries:c.getSeries()}),we.trigger("series:beforeupdate",c,v,m);var y=!1;c.eachSeries(function(_){var x=h._chartsMap[_.__viewId];x.__alive=!0;var w=x.renderTask;p.updatePayload(w,d),l(_,x),g&&g.get(_.uid)&&w.dirty(),w.perform(p.getPerformArgs(w))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),jc(_)}),p.unfinished=y||p.unfinished,we.trigger("series:layoutlabels",c,v,m),we.trigger("series:transition",c,v,m),c.eachSeries(function(_){var x=h._chartsMap[_.__viewId];u(_,x),f(_,x)}),o(h,c),we.trigger("series:afterupdate",c,v,m)},oe=function(h){h[Gu]=!0,h.getZr().wakeUp()},zn=function(h){h[ro]=(h[ro]+1)%1e3},gd=function(h){h[Gu]&&(h.getZr().storage.traverse(function(c){ea(c)||a(c)}),h[Gu]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var m=v[d];m==="emphasis"||m==="blur"||m==="select"||c.push(m)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Ds&&h.states.emphasis?c.push("emphasis"):h.hoverState===Cs&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr,d=v.storage,m=0;d.traverse(function(g){g.isGroup||m++}),m>c.get("hoverLayerThreshold")&&!Q.node&&!Q.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var p=h._chartsMap[g.__viewId];p.__alive&&p.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function u(h,c){if(!h.preventAutoZ){var v=sh(h);c.eachRendered(function(d){return $g(d,v.z,v.zlevel),!0})}}function l(h,c){c.eachRendered(function(v){if(!ea(v)){var d=v.getTextContent(),m=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),m=v.get("duration"),g=m>0?{duration:m,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(p){if(p.states&&p.states.emphasis){if(ea(p))return;if(p instanceof gt&&xS(p),p.__dirty){var y=p.prevStates;y&&p.useStates(y)}if(d){p.stateTransition=g;var _=p.getTextContent(),x=p.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}p.__dirty&&a(p)}})}pd=function(h){return new((function(c){B(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var m=d.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);d=d.parent}},v.prototype.enterEmphasis=function(d,m){Wo(d,m),oe(h)},v.prototype.leaveEmphasis=function(d,m){Uo(d,m),oe(h)},v.prototype.enterBlur=function(d){uS(d),oe(h)},v.prototype.leaveBlur=function(d){Sg(d),oe(h)},v.prototype.enterSelect=function(d){wg(d),oe(h)},v.prototype.leaveSelect=function(d){bg(d),oe(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return h[ro]},v})(xm))(h)},vy=function(h){function c(v,d){for(var m=0;m<v.length;m++){var g=v[m];g[Wu]=d}}T(ss,function(v,d){h._messageCenter.on(d,function(m){if(md[h.group]&&h[Wu]!==hd){if(m&&m.escapeConnect)return;var g=h.makeActionFromEvent(m),p=[];T(aa,function(y){y!==h&&y.group===h.group&&p.push(y)}),c(p,hd),T(p,function(y){y[Wu]!==LC&&y.dispatchAction(g)}),c(p,PC)}})})}})(),t})(Me),Mh=dy.prototype;Mh.on=uy("on");Mh.off=uy("off");Mh.one=function(e,t,r){var n=this;Xe("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var IC=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function $t(e){process.env.NODE_ENV!=="production"&&Kt("Instance "+e+" has been disposed")}var os={},ss={},uf={},lf=[],ff=[],us=[],py={},hf={},aa={},md={},OC=+new Date-0,Eh="_echarts_instance_";function RC(e,t,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!e)throw new Error("Initialize failed: invalid dom.");var i=NC(e);if(i)return process.env.NODE_ENV!=="production"&&Kt("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&ni(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&Kt("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 a=new dy(e,t,r);return a.id="ec_"+OC++,aa[a.id]=a,n&&eg(e,Eh,a.id),vy(a),we.trigger("afterinit",a),a}function NC(e){return aa[j1(e,Eh)]}function gy(e,t){py[e]=t}function my(e){ot(ff,e)<0&&ff.push(e)}function yy(e,t){Lh(lf,e,t,wC)}function kC(e){Ah("afterinit",e)}function BC(e){Ah("afterupdate",e)}function Ah(e,t){we.on(e,t)}function Tn(e,t,r){var n,i,a,o,s;K(t)&&(r=t,t=""),V(e)?(n=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(n=e,i=t);function u(f){return f.toLowerCase()}i=u(i||n);var l=a?u(n):i;os[n]||(z(fd.test(n)&&fd.test(i)),a&&z(i!==n),os[n]={actionType:n,refinedEventType:i,nonRefinedEventType:l,update:o,action:r,refineEvent:a},uf[i]=1,a&&s&&(uf[l]=1),process.env.NODE_ENV!=="production"&&ss[l]&&lt(l+' must not be shared; use "refineEvent" if you intend to share an event name.'),ss[l]=n)}function FC(e,t){Vs.register(e,t)}function VC(e,t){Lh(us,e,t,ay,"layout")}function Cn(e,t){Lh(us,e,t,oy,"visual")}var yd=[];function Lh(e,t,r,n,i){if((K(t)||V(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");T(e,function(o){z(o.__raw!==r)})}if(!(ot(yd,r)>=0)){yd.push(r);var a=Wm.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function _y(e,t){hf[e]=t}function zC(e,t,r){var n=pC("registerMap");n&&n(e,t,r)}var HC=Yb;Cn(Dh,xT);Cn(Us,ST);Cn(Us,wT);Cn(Dh,NT);Cn(Us,kT);Cn(sy,vC);my(wm);yy(xC,Db);_y("default",bT);Tn({type:gn,event:gn,update:gn},Wt);Tn({type:_o,event:_o,update:_o},Wt);Tn({type:Ho,event:qf,update:Ho,action:Wt,refineEvent:Ph,publishNonRefinedEvent:!0});Tn({type:Vl,event:qf,update:Vl,action:Wt,refineEvent:Ph,publishNonRefinedEvent:!0});Tn({type:Go,event:qf,update:Go,action:Wt,refineEvent:Ph,publishNonRefinedEvent:!0});function Ph(e,t,r,n){return{eventContent:{selected:vS(r),isFromClick:t.isFromClick||!1}}}gy("default",{});gy("dark",$m);function Oi(e){return e==null?0:e.length||1}function _d(e){return e}var xy=(function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||_d,this._newKeyGetter=i||_d,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],u=n[s],l=Oi(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],h=Oi(l),c=Oi(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Oi(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=Oi(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e})(),GC=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function WC(e,t){var r={},n=r.encode={},i=tt(),a=[],o=[],s={};T(e.dimensions,function(c){var v=e.getDimensionInfo(c),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&z(jl.get(d)==null);var m=v.coordDimIndex;Zu(n,d)[m]=c,v.isExtraCoord||(i.set(d,1),YC(v.type)&&(a[0]=c),Zu(s,d)[m]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}jl.each(function(g,p){var y=Zu(n,p),_=v.otherDims[p];_!=null&&_!==!1&&(y[_]=v.name)})});var u=[],l={};i.each(function(c,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=Z(u,function(c){return e.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new GC(s,t),r}function Zu(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function UC(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function YC(e){return!(e==="ordinal"||e==="time")}var Co=(function(){function e(t){this.otherDims={},t!=null&&R(this,t)}return e})(),XC=_t(),$C={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Sy=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Ty(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return X(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Cm(this.source),n=!Cy(t),i="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=r?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=r?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!h||!h.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=$C[l]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function wy(e){return e instanceof Sy}function by(e){for(var t=tt(),r=0;r<(e||[]).length;r++){var n=e[r],i=V(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function Ty(e){var t=XC(e);return t.dimNameMap||(t.dimNameMap=by(e.dimensionsDefine))}function Cy(e){return e>30}var Ri=V,gr=Z,ZC=typeof Int32Array>"u"?Array:Int32Array,qC="e\0\0",xd=-1,KC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],QC=["_approximateExtent"],Sd,oo,Ni,Hn,qu,ki,Ku,Dy=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;wy(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var h=n[f],c=F(h)?new Co({name:h}):h instanceof Co?h:new Co(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]);var m=f;mt(c.storeDimIndex)&&(m=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=m),d.itemId===0&&(this._idDimIdx=m),process.env.NODE_ENV!=="production"&&z(i||c.storeDimIndex>=0),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=tt();T(o,function(p){g.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(mt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof tf&&(a=t),!a){var o=this.dimensions,s=wh(t)||Ut(t)?new Dm(t,o.length):t;a=new tf;var u=gr(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=WC(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=r[u],o&&Ku(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==ar&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===ie;if(u&&!i.pure)for(var l=[],f=t;f<r;f++){var h=i.getItem(f,l);if(!this.hasItemOption&&V1(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=Te(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Te(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Ku(this,f);Sd(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Ri(t)?R(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Ni(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return oo(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return k(t)?i.getValues(gr(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n&&n[r];return i==null||isNaN(i)?xd:i},e.prototype.each=function(t,r,n){K(t)&&(n=r,r=t,t=[]);var i=n||this,a=gr(Hn(t),this._getStoreDimIndex,this);this._store.each(a,i?vt(r,i):r)},e.prototype.filterSelf=function(t,r,n){K(t)&&(n=r,r=t,t=[]);var i=n||this,a=gr(Hn(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?vt(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=pt(t);return T(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){K(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=gr(Hn(t),this._getStoreDimIndex,this),s=ki(this);return s._store=this._store.map(o,a?vt(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&T(Hn(t),function(u){var l=a.getDimensionInfo(u);l.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=gr(Hn(t),this._getStoreDimIndex,this);this._store.modify(s,o?vt(r,o):r)},e.prototype.downSample=function(t,r,n,i){var a=ki(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.minmaxDownSample=function(t,r){var n=ki(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=ki(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new yt(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new xy(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return oo(t,n)},function(n){return oo(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Ri(t)?R(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),k(a)?a=a.slice():Ri(a)&&(a=R({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ri(r)?R(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ri(t)?R(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?R(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;pg(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){T(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:gr(this.dimensions,this._getDimInfo,this),this.hostModel)),qu(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Of(arguments)))})},e.internalField=(function(){Sd=function(t){var r=t._invertedIndicesMap;T(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new ZC(o.categories.length);for(var u=0;u<n.length;u++)n[u]=xd;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},Ni=function(t,r,n){return Te(t._getCategory(r,n),null)},oo=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ni(t,t._idDimIdx,r)),n==null&&(n=qC+r),n},Hn=function(t){return k(t)||(t=t!=null?[t]:[]),t},ki=function(t){var r=new e(t._schema?t._schema:gr(t.dimensions,t._getDimInfo,t),t.hostModel);return qu(r,t),r},qu=function(t,r){T(KC.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,T(QC,function(n){t[n]=rt(r[n])}),t._calculationInfo=R({},r._calculationInfo)},Ku=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=Ni(t,a,r)),u==null&&o!=null&&(i[r]=u=Ni(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[r]=u}}})(),e})();function My(e,t){wh(e)||(e=bm(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=tt(),a=[],o=JC(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Cy(o),u=n===e.dimensionsDefine,l=u?Ty(e):by(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=tt(f),c=new Pm(o),v=0;v<c.length;v++)c[v]=-1;function d(M){var E=c[M];if(E<0){var A=n[M],L=V(A)?A:{name:A},D=new Co,P=L.name;P!=null&&l.get(P)!=null&&(D.name=D.displayName=P),L.type!=null&&(D.type=L.type),L.displayName!=null&&(D.displayName=L.displayName);var I=a.length;return c[M]=I,D.storeDimIndex=M,a.push(D),D}return a[E]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(M,E){var A=Rt(M).slice();if(A.length===1&&!F(A[0])&&A[0]<0){h.set(E,!1);return}var L=h.set(E,[]);T(A,function(D,P){var I=F(D)?l.get(D):D;I!=null&&I<o&&(L[P]=I,g(d(I),E,P))})});var m=0;T(r,function(M){var E,A,L,D;if(F(M))E=M,D={};else{D=M,E=D.name;var P=D.ordinalMeta;D.ordinalMeta=null,D=R({},D),D.ordinalMeta=P,A=D.dimsDef,L=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var I=h.get(E);if(I!==!1){if(I=Rt(I),!I.length)for(var O=0;O<(A&&A.length||1);O++){for(;m<o&&d(m).coordDim!=null;)m++;m<o&&I.push(m++)}T(I,function(U,G){var q=d(U);if(u&&D.type!=null&&(q.type=D.type),g(ft(q,D),E,G),q.name==null&&A){var $=A[G];!V($)&&($={name:$}),q.name=q.displayName=$.name,q.defaultTooltip=$.defaultTooltip}L&&ft(q.otherDims,L)})}});function g(M,E,A){jl.get(E)!=null?M.otherDims[E]=A:(M.coordDim=E,M.coordDimIndex=A,i.set(E,!0))}var p=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=p?y||1:0;var x=p||"value";function w(M){M.name==null&&(M.name=M.coordDim)}if(s)T(a,function(M){w(M)}),a.sort(function(M,E){return M.storeDimIndex-E.storeDimIndex});else for(var S=0;S<o;S++){var b=d(S),C=b.coordDim;C==null&&(b.coordDim=tD(x,i,_),b.coordDimIndex=0,(!p||y<=0)&&(b.isExtraCoord=!0),y--),w(b),b.type==null&&(ym(e,S)===Ot.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return jC(a),new Sy({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function jC(e){for(var t=tt(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function JC(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return T(t,function(a){var o;V(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function tD(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var eD=(function(){function e(t){this.coordSysDims=[],this.axisMap=tt(),this.categoryAxisMap=tt(),this.coordSysName=t}return e})();function rD(e){var t=e.get("coordinateSystem"),r=new eD(t),n=nD[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var nD={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",re).models[0],a=e.getReferringComponents("yAxis",re).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+_n(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+_n(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Gn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Gn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",re).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",i),Gn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",re).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Gn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Gn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Gn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(e,t,r,n){var i=e.getReferringComponents("matrix",re).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("matrix coordinate system should be specified.");t.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Gn(e){return e.get("type")==="category"}function iD(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;aD(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c;if(T(a,function(y,_){F(y)&&(a[_]=y={name:y}),u&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,m=0;T(a,function(y){y.coordDim===v&&m++});var g={name:h,coordDim:v,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},p={name:c,coordDim:c,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),p.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(p)):(a.push(g),a.push(p))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function aD(e){return!wy(e.schema)}function Ih(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function oD(e,t){return Ih(e,t)?e.getCalculationInfo("stackResultDimension"):t}function sD(e,t){var r=e.get("coordinateSystem"),n=Vs.get(r),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=UC(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function uD(e,t,r){var n,i;return r&&T(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function lD(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===ie;var o=rD(t),s=sD(t,o),u=r.useEncodeDefaulter,l=K(u)?u:u?Et(Jw,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=My(i,f),c=uD(h.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=iD(t,{schema:h,store:v}),m=new Dy(h,t);m.setCalculationInfo(d);var g=c!=null&&fD(i)?function(p,y,_,x){return x===c?_:this.defaultDimValueGetter(p,y,_,x)}:null;return m.hasItemOption=!1,m.initData(a?i:v,null,g),m}function fD(e){if(e.sourceFormat===ie){var t=hD(e.data||[]);return!k(Sa(t))}}function hD(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function cD(e){var t=Math.pow(10,xs(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function cf(e){return e.type==="interval"||e.type==="log"}function vD(e,t,r,n,i){var a={},o=a.interval=Zp(t/r);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=ga(o),u=a.niceTickExtent=[Pt(Math.ceil(e[0]/o)*o,s),Pt(Math.floor(e[1]/o)*o,s)];return dD(u,e),a}function Qu(e){var t=Math.pow(10,xs(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Pt(r*t)}function ga(e){return er(e)+2}function wd(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function dD(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),wd(e,0,t),wd(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Oh(e,t){return e>=t[0]&&e<=t[1]}var pD=(function(){function e(){this.normalize=bd,this.scale=Td}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=vt(t.normalize,t),this.scale=vt(t.scale,t)):(this.normalize=bd,this.scale=Td)},e})();function bd(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Td(e,t){return e*(t[1]-t[0])+t[0]}function vf(e,t,r){var n=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/n,Math.log(r?t[1]:Math.max(0,t[1]))/n]}var Rr=(function(){function e(t){this._calculator=new pD,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();ws(Rr);var gD=0,df=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gD,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,mD);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!F(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=tt(this.categories))},e})();function mD(e){return V(e)&&e.value!=null?e.value:e+""}var Ey=(function(e){B(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new df({})),k(i)&&(i=new df({categories:Z(i,function(a){return V(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:F(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return Oh(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var l=n[o];i[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Rr);Rr.registerClass(Ey);var mr=Pt,Sn=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return Oh(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=ga(r)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=Zo(),u=[];if(!n)return u;r.breakTicks;var l=1e4;i[0]<a[0]&&(r.expandToNicedExtent?u.push({value:mr(a[0]-n,o)}):u.push({value:i[0]}));for(var f=function(d,m){return Math.round((m-d)/n)},h=a[0];h<=a[1];){if(u.push({value:h}),h=mr(h+n,o),this._brkCtx){var c=this._brkCtx.calcNiceTickMultiple(h,f);c>=0&&(h=mr(h+c*n,o))}if(u.length>0&&h===u[u.length-1].value)break;if(u.length>l)return[]}var v=u.length?u[u.length-1].value:a[1];return i[1]>v&&(r.expandToNicedExtent?u.push({value:mr(v+n,o)}):u.push({value:i[1]})),r.breakTicks,u},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],u=n[o-1];if(!(u.break||s.break)){for(var l=0,f=[],h=s.value-u.value,c=h/r,v=ga(c);l<r-1;){var d=mr(u.value+(l+1)*c,v);d>a[0]&&d<a[1]&&f.push(d),l++}var m=Zo();m&&m.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(g){return g},this._interval,a),i.push(f)}}return i},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=er(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=mr(r.value,i,!0);return hm(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=vD(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=mr(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=mr(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t})(Rr);Rr.registerClass(Sn);var Ay=typeof Float32Array<"u",yD=Ay?Float32Array:Array;function Do(e){return k(e)?Ay?new Float32Array(e):e:new yD(e)}var pf="__ec_stack_";function Ly(e){return e.get("stack")||pf+e.seriesIndex}function Rh(e){return e.dim+e.index}function _D(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var i=r.getBandWidth(),a=0;a<e.count;a++)t.push(ft({bandWidth:i,axisKey:n,stackId:pf+a},e));for(var o=Oy(t),s=[],a=0;a<e.count;a++){var u=o[n][pf+a];u.offsetCenter=u.offset+u.width/2,s.push(u)}return s}}function Py(e,t){var r=[];return t.eachSeriesByType(e,function(n){Ry(n)&&r.push(n)}),r}function xD(e){var t={};T(e,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),m=0,g=d.count();m<g;++m){var p=d.get(v,m);t[c]?t[c].push(p):t[c]=[p]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(u,l){return u-l});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function Iy(e){var t=xD(e),r=[];return T(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=St(n.get("barWidth"),s),m=St(n.get("barMaxWidth"),s),g=St(n.get("barMinWidth")||(Ny(n)?.5:1),s),p=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:m,barMinWidth:g,barGap:p,barCategoryGap:y,defaultBarGap:_,axisKey:Rh(a),stackId:Ly(n)})}),Oy(r)}function Oy(e){var t={};T(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return T(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=pt(a).length;s=Math.max(35-u*4,15)+"%"}var l=St(s,o),f=St(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),T(a,function(p){var y=p.maxWidth,_=p.minWidth;if(p.width){var x=p.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),p.width=x,h-=x+f*x,c--}else{var x=v;y&&y<x&&(x=Math.min(y,h)),_&&_>x&&(x=_),x!==v&&(p.width=x,h-=x+f*x,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,m;T(a,function(p,y){p.width||(p.width=v),m=p,d+=p.width*(1+f)}),m&&(d-=m.width*f);var g=-d/2;T(a,function(p,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:p.width},g+=p.width*(1+f)})}),r}function SD(e,t,r){if(e&&t){var n=e[Rh(t)];return n}}function wD(e,t){var r=Py(e,t),n=Iy(r);T(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=Ly(i),l=n[Rh(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function bD(e){return{seriesType:e,plan:Th(),reset:function(t){if(Ry(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Ih(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=TD(i,a),d=Ny(t),m=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),p=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,x){for(var w=_.count,S=d&&Do(w*3),b=d&&u&&Do(w*3),C=d&&Do(w),M=n.master.getRect(),E=c?M.width:M.height,A,L=x.getStore(),D=0;(A=_.next())!=null;){var P=L.get(h?g:o,A),I=L.get(s,A),O=v,U=void 0;h&&(U=+P-L.get(o,A));var G=void 0,q=void 0,$=void 0,Y=void 0;if(c){var W=n.dataToPoint([P,I]);if(h){var nt=n.dataToPoint([U,I]);O=nt[0]}G=O,q=W[1]+y,$=W[0]-O,Y=p,Math.abs($)<m&&($=($<0?-1:1)*m)}else{var W=n.dataToPoint([I,P]);if(h){var nt=n.dataToPoint([I,U]);O=nt[1]}G=W[0]+y,q=O,$=p,Y=W[1]-O,Math.abs(Y)<m&&(Y=(Y<=0?-1:1)*m)}d?(S[D]=G,S[D+1]=q,S[D+2]=c?$:Y,b&&(b[D]=c?M.x:G,b[D+1]=c?q:M.y,b[D+2]=E),C[A]=A):x.setItemLayout(A,{x:G,y:q,width:$,height:Y}),D+=3}d&&x.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function Ry(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Ny(e){return e.pipelineContext&&e.pipelineContext.large}function TD(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var CD=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},ky=(function(e){B(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Fs(r.value,pv[Ow(na(this._minLevelUnit))]||pv.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Rw(r,n,i,o,a)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=qo(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var u=OD(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(u);var l=qo(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}}),this.getSetting("useUTC");var f=mn.length-1,h=0;return T(a,function(c){f=Math.min(f,ot(mn,c.time.upperTimeUnit)),h=Math.max(h,c.time.level)}),a},t.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=de,n[1]+=de),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-de}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=so.length,s=Math.min(CD(so,this._approxInterval,0,o),o-1);this._interval=so[s][1],this._intervalPrecision=ga(this._interval),this._minLevelUnit=so[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return mt(r)?r:+gi(r)},t.prototype.contain=function(r){return Oh(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t})(Sn),so=[["second",fh],["minute",hh],["hour",ra],["quarter-day",ra*6],["half-day",ra*12],["day",de*1.2],["half-week",de*3.5],["week",de*7],["month",de*31],["quarter",de*95],["half-year",dv/2],["year",dv]];function DD(e,t,r,n){return Zl(new Date(t),e,n).getTime()===Zl(new Date(r),e,n).getTime()}function MD(e,t){return e/=de,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function ED(e){var t=30*de;return e/=t,e>6?6:e>3?3:e>2?2:1}function AD(e){return e/=ra,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Cd(e,t){return e/=t?hh:fh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function LD(e){return Zp(e)}function PD(e,t,r){var n=Math.max(0,ot(mn,t)-1);return Zl(new Date(e),mn[n],r).getTime()}function ID(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function OD(e,t,r,n,i,a){var o=1e4,s=Aw,u=0;function l(D,P,I,O,U,G,q){for(var $=ID(U,D),Y=P,W=new Date(Y);Y<I&&Y<=n[1];){if(q.push({value:Y}),u++>o){process.env.NODE_ENV!=="production"&&Kt("Exceed safe limit in time scale.");break}if(W[U](W[O]()+D),Y=W.getTime(),a){var nt=a.calcNiceTickMultiple(Y,$);nt>0&&(W[U](W[O]()+nt*D),Y=W.getTime())}}q.push({value:Y,notAdd:!0})}function f(D,P,I){var O=[],U=!P.length;if(!DD(na(D),n[0],n[1],r)){U&&(P=[{value:PD(n[0],D,r)},{value:n[1]}]);for(var G=0;G<P.length-1;G++){var q=P[G].value,$=P[G+1].value;if(q!==$){var Y=void 0,W=void 0,nt=void 0,Tt=!1;switch(D){case"year":Y=Math.max(1,Math.round(t/de/365)),W=im(r),nt=Nw(r);break;case"half-year":case"quarter":case"month":Y=ED(t),W=ch(r),nt=am(r);break;case"week":case"half-week":case"day":Y=MD(t),W=vh(r),nt=om(r),Tt=!0;break;case"half-day":case"quarter-day":case"hour":Y=AD(t),W=dh(r),nt=sm(r);break;case"minute":Y=Cd(t,!0),W=ph(r),nt=um(r);break;case"second":Y=Cd(t,!1),W=gh(r),nt=lm(r);break;case"millisecond":Y=LD(t),W=mh(r),nt=fm(r);break}$>=n[0]&&q<=n[1]&&l(Y,q,$,W,nt,Tt,O),D==="year"&&I.length>1&&G===0&&I.unshift({value:I[0].value-Y})}}for(var G=0;G<O.length;G++)I.push(O[G])}}for(var h=[],c=[],v=0,d=0,m=0;m<s.length;++m){var g=na(s[m]);if(Iw(s[m])){f(s[m],h[h.length-1]||[],c);var p=s[m+1]?na(s[m+1]):null;if(g!==p){if(c.length){d=v,c.sort(function(D,P){return D.value-P.value});for(var y=[],_=0;_<c.length;++_){var x=c[_].value;(_===0||c[_-1].value!==x)&&(y.push(c[_]),x>=n[0]&&x<=n[1]&&v++)}var w=i/t;if(v>w*1.5&&d>w/1.5||(h.push(y),v>w||e===s[m]))break}c=[]}}}for(var S=Dt(Z(h,function(D){return Dt(D,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(D){return D.length>0}),b=[],C=S.length-1,m=0;m<S.length;++m)for(var M=S[m],E=0;E<M.length;++E){var A=qo(M[E].value,r);b.push({value:M[E].value,time:{level:C-m,upperTimeUnit:A,lowerTimeUnit:A}})}b.sort(function(D,P){return D.value-P.value});for(var L=[],m=0;m<b.length;++m)(m===0||b[m].value!==b[m-1].value)&&L.push(b[m]);return L}Rr.registerClass(ky);var gf=Pt,RD=Math.floor,ND=Math.ceil,uo=Math.pow,lo=Math.log,By=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Sn,r}return t.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=e.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),Z(a,function(s){var u=s.value,l=null,f=uo(o,u);u===n[0]&&this._fixMin?l=i[0]:u===n[1]&&this._fixMax&&(l=i[1]);var h;return l!=null&&(f=ju(f,l)),{value:f,break:h}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=vf(this.base,[r,n]);e.prototype.setExtent.call(this,i[0],i[1])},t.prototype.getExtent=function(){var r=this.base,n=e.prototype.getExtent.call(this);n[0]=uo(r,n[0]),n[1]=uo(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=ju(n[0],i[0])),this._fixMax&&(n[1]=ju(n[1],i[1])),n},t.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=vf(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=R1(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[gf(ND(n[0]/a)*a),gf(RD(n[1]/a)*a)];this._interval=a,this._intervalPrecision=ga(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=lo(r)/lo(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=lo(r)/lo(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),uo(this.base,r)},t.prototype.setBreaksFromOption=function(r){},t.type="log",t})(Sn);function ju(e,t){return gf(e,er(t))}Rr.registerClass(By);var kD=(function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;K(o)?this._modelMinNum=fo(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=fo(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(K(s)?this._modelMaxNum=fo(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=fo(t,s)),i)this._axisDataLen=r.getCategories().length;else{var u=r.get("boundaryGap"),l=k(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&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 be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Er(l[0],1),Er(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),u==null&&(u=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=yn(s)||yn(u)||t&&!i;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&z(!this.frozen),this[FD[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=BD[t];process.env.NODE_ENV!=="production"&&z(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e})(),BD={min:"_determinedMin",max:"_determinedMax"},FD={min:"_dataMin",max:"_dataMax"};function Fy(e,t,r){var n=e.rawExtentInfo;return n||(n=new kD(e,t,r),e.rawExtentInfo=n,n)}function fo(e,t){return t==null?null:yn(t)?NaN:e.parse(t)}function Vy(e,t){var r=e.type,n=Fy(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=Py("bar",o),u=!1;if(T(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=Iy(s),f=VD(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function VD(e,t,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=SD(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;T(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-e,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),e-=c*(s/l),{min:e,max:t}}function Dd(e,t){var r=t,n=Vy(e,r),i=n.extent,a=r.get("splitNumber");e instanceof By&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setBreaksFromOption(Gy(r)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function zD(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ey({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new ky({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Rr.getClass(t)||Sn)}}function HD(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Ma(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=Lw(t);return function(i,a){return e.scale.getFormattedLabel(i,a,r)}}else{if(F(t))return function(i){var a=e.scale.getLabel(i),o=t.replace("{value}",a??"");return o};if(K(t)){if(e.type==="category")return function(i,a){return t(ls(e,i),i.value-e.scale.getExtent()[0],null)};var n=Zo();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),t(ls(e,i),a,o)}}else return function(i){return e.scale.getLabel(i)}}}function ls(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Nh(e){var t=e.get("interval");return t??"auto"}function zy(e){return e.type==="category"&&Nh(e.getLabelModel())===0}function Hy(e,t){var r={};return T(e.mapDimensionsAll(t),function(n){r[oD(e,n)]=!0}),pt(r)}function GD(e,t,r){t&&T(Hy(t,r),function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}function vi(e){return e==="middle"||e==="center"}function ma(e){return e.getShallow("show")}function Gy(e){var t=e.get("breaks",!0);if(t!=null){process.env.NODE_ENV!=="production"&&lt('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}}var Wy=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),Md=[],WD={registerPreprocessor:my,registerProcessor:yy,registerPostInit:kC,registerPostUpdate:BC,registerUpdateLifecycle:Ah,registerAction:Tn,registerCoordinateSystem:FC,registerLayout:VC,registerVisual:Cn,registerTransform:HC,registerLoading:_y,registerMap:zC,registerImpl:dC,PRIORITY:AC,ComponentModel:at,ComponentView:ye,SeriesModel:Lr,ChartView:Dr,registerComponentModel:function(e){at.registerClass(e)},registerComponentView:function(e){ye.registerClass(e)},registerSeriesModel:function(e){Lr.registerClass(e)},registerChartView:function(e){Dr.registerClass(e)},registerCustomSeries:function(e,t){gC(e,t)},registerSubTypeDefaulter:function(e,t){at.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){M1(e,t)}};function Pr(e){if(k(e)){T(e,function(t){Pr(t)});return}ot(Md,e)>=0||(Md.push(e),K(e)&&(e={install:e}),e.install(WD))}var UD=_t(),oa=_t(),Ce={estimate:1,determine:2};function fs(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function Uy(e,t){var r=Z(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function YD(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=Ma(e),i=e.scale.getExtent(),a=Uy(e,r),o=Dt(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:Z(o,function(s){var u={value:s};return{formattedLabel:n(u),rawLabel:e.scale.getLabel(u),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?$D(e,t):qD(e)}function XD(e,t,r){var n=e.getTickModel().get("customValues");if(n){var i=e.scale.getExtent(),a=Uy(e,n);return{ticks:Dt(a,function(o){return o>=i[0]&&o<=i[1]})}}return e.type==="category"?ZD(e,t):{ticks:Z(e.scale.getTicks(r),function(o){return o.value})}}function $D(e,t){var r=e.getLabelModel(),n=Yy(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function Yy(e,t,r){var n=QD(e),i=Nh(t),a=r.kind===Ce.estimate;if(!a){var o=$y(n,i);if(o)return o}var s,u;K(i)?s=Ky(e,i):(u=i==="auto"?jD(e,r):i,s=qy(e,u));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return mf(n,i,l),!0}):mf(n,i,l),l}function ZD(e,t){var r=KD(e),n=Nh(t),i=$y(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),K(n))a=Ky(e,n,!0);else if(n==="auto"){var s=Yy(e,e.getLabelModel(),fs(Ce.determine));o=s.labelCategoryInterval,a=Z(s.labels,function(u){return u.tickValue})}else o=n,a=qy(e,o,!0);return mf(r,n,{ticks:a,tickCategoryInterval:o})}function qD(e){var t=e.scale.getTicks(),r=Ma(e);return{labels:Z(t,function(n,i){return{formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var KD=Xy("axisTick"),QD=Xy("axisLabel");function Xy(e){return function(r){return oa(r)[e]||(oa(r)[e]={list:[]})}}function $y(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function mf(e,t,r){return e.list.push({key:t,value:r}),r}function jD(e,t){if(t.kind===Ce.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return oa(e).autoInterval=r,!0}),r}var n=oa(e).autoInterval;return n??(oa(e).autoInterval=e.calculateCategoryInterval(t))}function JD(e,t){var r=t.kind,n=eM(e),i=Ma(e),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var h=s[0],c=e.dataToCoord(h+1)-e.dataToCoord(h),v=Math.abs(c*Math.cos(a)),d=Math.abs(c*Math.sin(a)),m=0,g=0;h<=s[1];h+=l){var p=0,y=0,_=Gp(i({value:h}),n.font,"center","top");p=_.width*1.3,y=_.height*1.3,m=Math.max(m,p,7),g=Math.max(g,y,7)}var x=m/v,w=g/d;isNaN(x)&&(x=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(x,w)));if(r===Ce.estimate)return t.out.noPxChangeTryDetermine.push(vt(tM,null,e,S,u)),S;var b=Zy(e,S,u);return b??S}function tM(e,t,r){return Zy(e,t,r)==null}function Zy(e,t,r){var n=UD(e.model),i=e.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=i[0],n.axisExtent1=i[1]}function eM(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function qy(e,t,r){var n=Ma(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=zy(e),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&m(a[0]);for(var d=l;d<=a[1];d+=u)m(d);v&&d-u!==a[1]&&m(a[1]);function m(g){var p={value:g};s.push(r?g:{formattedLabel:n(p),rawLabel:i.getLabel(p),tickValue:g,time:void 0,break:void 0})}return s}function Ky(e,t,r){var n=e.scale,i=Ma(e),a=[];return T(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(r?u:{formattedLabel:i(o),rawLabel:s,tickValue:u,time:void 0,break:void 0})}),a}var Ed=[0,1],Qy=(function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return Xp(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Ad(n,i.count())),Ll(t,Ed,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Ad(n,i.count()));var a=Ll(t,n,Ed,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=XD(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return rM(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(t){return t=t||fs(Ce.determine),YD(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(t){return t=t||fs(Ce.determine),JD(this,t)},e})();function Ad(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function rM(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;T(t,function(v){v.coord-=l/2,v.onBand=!0});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function c(v,d){return v=Pt(v),d=Pt(d),h?v>d:v<d}}var Ld=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],nM=1,hs=2,jy=nM|hs;function cs(e,t,r){r=r||jy,t?e.dirty|=r:e.dirty&=~r}function Jy(e,t){return t=t||jy,e.dirty==null||!!(e.dirty&t)}function Ir(e){if(e)return Jy(e)&&t_(e,e.label,e),e}function t_(e,t,r){var n=t.getComputedTransform();e.transform=oh(e.transform,n);var i=e.localRect=ha(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=Qn.textMargin);for(var h=0;h<4;h++)Ju[h]=f===Qn.minMargin&&u&&u[h]!=null?u[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===Qn.textMargin&&Xo(i,Ju,!1,!1);var c=e.rect=ha(e.rect,i);return n&&c.applyTransform(n),f===Qn.minMargin&&Xo(c,Ju,!1,!1),e.axisAligned=ah(n),(e.label=e.label||{}).ignore=t.ignore,cs(e,!1),cs(e,!0,hs),e}var Ju=[0,0,0,0];function iM(e,t,r){return e.transform=oh(e.transform,r),e.localRect=ha(e.localRect,t),e.rect=ha(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=ah(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function aM(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,r)}}function Pd(e,t){for(var r=0;r<Ld.length;r++){var n=Ld[r];e[n]==null&&(e[n]=t[n])}return Ir(e)}function Id(e){var t=e.obb;return(!t||Jy(e,hs))&&(e.obb=t=t||new Rg,t.fromBoundingRect(e.localRect,e.transform),cs(e,!1,hs)),t}function oM(e,t,r,n,i){var a=e.length,o=Sr[t],s=li[t];if(a<2)return!1;e.sort(function(b,C){return b.rect[o]-C.rect[o]});for(var u=0,l,f=!1,h=0;h<a;h++){var c=e[h],v=c.rect;l=v[o]-u,l<0&&(v[o]-=l,c.label[o]-=l,f=!0),u=v[o]+v[s]}var d=e[0],m=e[a-1],g,p;y(),g<0&&w(-g,.8),p<0&&w(p,.8),y(),_(g,p,1),_(p,g,-1),y(),g<0&&S(-g),p<0&&S(p);function y(){g=d.rect[o]-r,p=n-m.rect[o]-m.rect[s]}function _(b,C,M){if(b<0){var E=Math.min(C,-b);if(E>0){x(E*M,0,a);var A=E+b;A<0&&w(-A*M,1)}else w(-b*M,1)}}function x(b,C,M){b!==0&&(f=!0);for(var E=C;E<M;E++){var A=e[E],L=A.rect;L[o]+=b,A.label[o]+=b}}function w(b,C){for(var M=[],E=0,A=1;A<a;A++){var L=e[A-1].rect,D=Math.max(e[A].rect[o]-L[o]-L[s],0);M.push(D),E+=D}if(E){var P=Math.min(Math.abs(b)/E,C);if(b>0)for(var A=0;A<a-1;A++){var I=M[A]*P;x(I,0,A+1)}else for(var A=a-1;A>0;A--){var I=M[A-1]*P;x(-I,A,a)}}}function S(b){var C=b<0?-1:1;b=Math.abs(b);for(var M=Math.ceil(b/(a-1)),E=0;E<a-1;E++)if(C>0?x(M,0,E+1):x(-M,a-E-1,a),b-=M,b<=0)return}return f}function sM(e){var t=[];e.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function r(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var n=0;n<e.length;n++){var i=Ir(e[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,u=0;u<t.length;u++)if(kh(i,t[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(i)}}}function kh(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:Id(e).intersect(Id(t),r,n)}function Od(e,t,r){var n=Ye.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var tl=(function(e){B(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||ko,typeof r=="string"?o=Od(r,n,i):V(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(wp(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Od("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new J(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new J(0,0,0,0);_.copy(y),o.push(_)}else{for(var x=!1,w=1/0,S=0,b=0;b<o.length;++b){var C=o[b];if(C.intersect(y)){var M=new J(0,0,0,0);M.copy(C),M.union(y),o[b]=M,x=!0;break}else if(u){l.copy(y),l.union(C);var E=y.width*y.height,A=C.width*C.height,L=l.width*l.height,D=L-E-A;D<w&&(w=D,S=b)}}if(u&&(o[S].union(y),x=!0),!x){var _=new J(0,0,0,0);_.copy(y),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=r[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&ee||!v)?c.getPrevPaintRect():null;d&&f(d);var m=v&&(c.__dirty&ee||!c.__isRendered)?c.getPaintRect():null;m&&f(m)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var p=h+1;p<o.length;)o[h].intersect(o[p])?(g=!0,o[h].union(o[p]),o.splice(p,1)):p++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(m,g,p,y){if(o.clearRect(m,g,p,y),n&&n!=="transparent"){var _=void 0;if(gs(n)){var x=n.global||n.__width===p&&n.__height===y;_=x&&n.__canvasGradient||of(o,n,{x:0,y:0,width:p,height:y}),n.__canvasGradient=_,n.__width=p,n.__height=y}else J_(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=sf(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(m,g,p,y),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,m,g,p,y),o.restore())}!i||l?d(0,0,s,u):i.length&&T(i,function(m){d(m.x*h,m.y*h,m.width*h,m.height*h)})},t})(Me),Rd=1e5,on=314159,ho=.01,uM=.001;function lM(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function fM(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var hM=(function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=R({},n||{}),this.dpr=n.devicePixelRatio||ko,this._singleCanvas=a,this.root=t;var o=t.style;o&&(wp(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new tl(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[on]=v,v.zlevel=on,s.push(on),this._domRoot=t}else{this._width=eo(t,0,n),this._height=eo(t,1,n);var l=this._domRoot=fM(this._width,this._height);t.appendChild(l)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Rd)),a||(a=n.ctx,a.save()),hn(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Rd)},e.prototype.paintOne=function(t,r){ty(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;Lo(function(){u._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(on).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var f=!0,h=!1,c=function(m){var g=a[m],p=g.ctx,y=o&&g.createRepaintRects(t,r,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,x=!n&&g.incremental&&Date.now,w=x&&Date.now(),S=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,S,y);else if(_===g.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&g.clear(!1,S,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,M=function(D){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<g.__endIndex;C++){var I=t[C];if(I.__inHover&&(h=!0),i._doPaintEl(I,g,o,D,P,C===g.__endIndex-1),x){var O=Date.now()-w;if(O>15)break}}P.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var E=v.dpr,A=0;A<y.length;++A){var L=y[A];p.save(),p.beginPath(),p.rect(L.x*E,L.y*E,L.width*E,L.height*E),p.clip(),M(L),p.restore()}else p.save(),M(),p.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return Q.wxa&&T(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:f,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var u=t.getPaintRect();(!i||u&&u.intersect(i))&&(hn(s,t,a,o),t.setPrevPaintRect(u))}else hn(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=on);var n=this._layers[t];return n||(n=new tl("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?st(n,this._layerConfig[t],!0):this._layerConfig[t-ho]&&st(n,this._layerConfig[t-ho],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,u=-1;if(n[t]){process.env.NODE_ENV!=="production"&&cn("ZLevel "+t+" has been used already");return}if(!lM(r)){process.env.NODE_ENV!=="production"&&cn("Layer of zlevel "+t+" is not valid");return}if(a>0&&t>i[0]){for(u=0;u<a-1&&!(i[u]<t&&i[u+1]>t);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var i=t[u],l=i.zlevel,f=void 0;s!==l&&(s=l,o=0),i.incremental?(f=this.getLayer(l+uM,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?ho:0),this._needsManuallyCompositing),f.__builtin__||cn("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),a=f),i.__dirty&ee&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?st(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+ho){var o=this._layers[a];st(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(ot(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=eo(a,0,i),r=eo(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(on).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[on].dom;var r=new tl("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];hn(n,f,o,u===l-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function cM(e){e.registerPainter("canvas",hM)}function vM(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=hi(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(hi(e,t,r[o]));return a.join(" ")}}function dM(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!k(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}function e_(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new bt({shape:{x:o,y:s,width:u,height:l}});if(t){var c=e.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=u),h.shape.width=0):(d||(h.shape.y+=l),h.shape.height=0);var m=K(i)?function(g){i(g,h)}:null;Ta(h,{shape:{width:u,height:l,x:o,y:s}},r,null,n,m)}return h}function r_(e,t,r){var n=e.getArea(),i=Pt(n.r0,1),a=Pt(n.r,1),o=new ba({shape:{cx:Pt(e.cx,1),cy:Pt(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Ta(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function pM(e,t,r,n,i){if(e){if(e.type==="polar")return r_(e,t,r);if(e.type==="cartesian2d")return e_(e,t,r,n,i)}else return null;return null}var n_={left:0,right:0,top:0,bottom:0},vs=["25%","25%"],gM=(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var i=Si(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&Ar(r.outerBounds,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Ar(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:n_,outerBoundsContain:"all",outerBoundsClampWidth:vs[0],outerBoundsClampHeight:vs[1],backgroundColor:H.color.transparent,borderWidth:1,borderColor:H.color.neutral30},t})(at),yf=(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",re).models[0]},t.type="cartesian2dAxis",t})(at);De(yf,Wy);var i_={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:!0,onZeroAxisIndex:null,lineStyle:{color:H.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:H.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:H.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[H.color.backgroundTint,H.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:H.color.neutral00,borderColor:H.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},mM=st({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},i_),Bh=st({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:H.color.axisMinorSplitLine,width:1}}},i_),yM=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Bh),_M=ft({logBase:10},Bh);const a_={category:mM,value:Bh,time:yM,log:_M};var xM={value:1,category:1,time:1,log:1},SM=null;function wM(){return SM}function Nd(e,t,r,n){T(xM,function(i,a){var o=st(st({},a_[a],!0),n,!0),s=(function(u){B(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=ca(this),v=c?Si(f):{},d=h.getTheme();st(f,d.get(a+"Axis")),st(f,this.getDefaultOption()),f.type=kd(f),c&&Ar(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=df.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(f){return{breaks:[]}},l.type=t+"Axis."+a,l.defaultOption=o,l})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",kd)}function kd(e){return e.type||(e.data?"category":"value")}var bM=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Dt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e})(),_f=["x","y"];function Bd(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var TM=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=_f,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Bd(r)||!Bd(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=xa([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new J(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ge(i,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(r[0]),l=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return ge(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,u=Math.max(i[0],i[1])-o+r;return new J(a,o,s,u)},t})(bM),CM=(function(e){B(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(Qy),DM="expandAxisBreak",Tr=Math.PI,MM=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],EM=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ya=_t(),o_=_t(),s_=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},e})();function AM(e,t,r,n){var i=r.axis,a=t.ensureRecord(r),o=[],s,u=Fh(e.axisName)&&vi(e.nameLocation);T(n,function(d){var m=Ir(d);if(!(!m||m.label.ignore)){o.push(m);var g=a.transGroup;u&&(g.transform?xa(Bi,g.transform):Bf(Bi),m.transform&&qi(Bi,Bi,m.transform),J.copy(co,m.localRect),co.applyTransform(Bi),s?s.union(co):J.copy(s=new J(0,0,0,0),co))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,m){return Math.abs(d.label[l]-f)-Math.abs(m.label[l]-f)}),u&&s){var h=i.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new J(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Bi=ir(),co=new J(0,0,0,0),u_=function(e,t,r,n,i,a){if(vi(e.nameLocation)){var o=a.stOccupiedRect;o&&l_(iM({},o,a.transGroup.transform),n,i)}else f_(a.labelInfoList,a.dirVec,n,i)};function l_(e,t,r){var n=new ht;kh(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&aM(t,n)}function f_(e,t,r,n){for(var i=ht.dot(n,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||l_(s,r,n)}}var or=(function(){function e(t,r,n,i){this.group=new jt,this._axisModel=t,this._api=r,this._local={},this._shared=i||new s_(u_),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(t){if(process.env.NODE_ENV!=="production"){var r=this._shared.ensureRecord(this._axisModel).ready;z(!r.axisLine&&!r.axisTickLabelDetermine),r.axisName=r.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=t.position,n.labelOffset=t.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=X(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=X(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:X(t.nameDirection,1),tickDirection:X(t.tickDirection,1),labelDirection:X(t.labelDirection,1),labelOffset:X(t.labelOffset,0),silent:X(t.silent,!0),axisName:i,nameLocation:nr(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Fh(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(z(o.position!=null),z(o.rotation!=null)),this._cfg=o;var s=new jt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new ht(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(LM,function(i){t[i]&&PM[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var i=$p(r-t),a,o;return Bo(i)?(o=n>0?"top":"bottom",a="center"):Bo(i-Tr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Tr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e})(),LM=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],PM={axisLine:function(e,t,r,n,i,a,o){if(process.env.NODE_ENV!=="production"){var s=r.ensureRecord(n).ready;z(!s.axisLine),s.axisLine=!0}var u=n.get(["axisLine","show"]);if(u==="auto"&&(u=!0,e.raw.axisLineAutoShow!=null&&(u=!!e.raw.axisLineAutoShow)),!!u){var l=n.axis.getExtent(),f=a.transform,h=[l[0],0],c=[l[1],0],v=h[0]>c[0];f&&(ge(h,h,f),ge(c,c,f));var d=R({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())wM().buildAxisBreakLine(n,i,a,m);else{var g=new lr(R({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},m));fa(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var p=n.get(["axisLine","symbol"]);if(p!=null){var y=n.get(["axisLine","symbolSize"]);F(p)&&(p=[p,p]),(F(y)||mt(y))&&(y=[y,y]);var _=Km(n.get(["axisLine","symbolOffset"])||0,y),x=y[0],w=y[1];T([{rotate:e.rotation+Math.PI/2,offset:_[0],r:0},{rotate:e.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(S,b){if(p[b]!=="none"&&p[b]!=null){var C=Ws(p[b],-x/2,-w/2,x,w,d.stroke,!0),M=S.r+S.offset,E=v?c:h;C.attr({rotation:S.rotate,x:E[0]+M*Math.cos(e.rotation),y:E[1]-M*Math.sin(e.rotation),silent:!0,z2:11}),i.add(C)}})}}},axisTickLabelEstimate:function(e,t,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var u=r.ensureRecord(n).ready;z(!u.axisTickLabelDetermine),u.axisTickLabelEstimate=!0}var l=Vd(t,i,s);l&&Fd(e,t,r,n,i,a,o,Ce.estimate)},axisTickLabelDetermine:function(e,t,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var u=r.ensureRecord(n).ready;u.axisTickLabelDetermine=!0}var l=Vd(t,i,s);l&&Fd(e,t,r,n,i,a,o,Ce.determine);var f=NM(e,i,a,n);RM(e,t.labelLayoutList,f),kM(e,i,a,n,e.tickDirection)},axisName:function(e,t,r,n,i,a,o,s){var u=r.ensureRecord(n);if(process.env.NODE_ENV!=="production"){var l=u.ready;z(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&(i.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var f=e.axisName;if(Fh(f)){var h=e.nameLocation,c=e.nameDirection,v=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,m=n.axis.getExtent(),g=n.axis.inverse?-1:1,p=new ht(0,0),y=new ht(0,0);h==="start"?(p.x=m[0]-g*d,y.x=-g):h==="end"?(p.x=m[1]+g*d,y.x=g):(p.x=(m[0]+m[1])/2,p.y=e.labelOffset+c*d,y.y=c);var _=ir();y.transform(Ff(_,_,e.rotation));var x=n.get("nameRotate");x!=null&&(x=x*Tr/180);var w,S;vi(h)?w=or.innerTextLayout(e.rotation,x??e.rotation,c):(w=IM(e.rotation,h,x||0,m),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(w.rotation)),!isFinite(S)&&(S=null)));var b=v.getFont(),C=n.get("nameTruncate",!0)||{},M=C.ellipsis,E=_n(e.raw.nameTruncateMaxWidth,C.maxWidth,S),A=s.nameMarginLevel||0,L=new Ft({x:p.x,y:p.y,rotation:w.rotation,silent:or.isLabelSilent(n),style:fr(v,{text:f,font:b,overflow:"truncate",width:E,ellipsis:M,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Rs({el:L,componentModel:n,itemName:f}),L.__fullText=f,L.anid="name",n.get("triggerEvent")){var D=or.makeAxisEventDataBase(n);D.targetType="axisName",D.name=f,ct(L).eventData=D}a.add(L),L.updateTransform(),t.nameEl=L;var P=u.nameLayout=Ir({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:vi(h)?MM[A]:EM[A]});if(u.nameLocation=h,i.add(L),L.decomposeTransform(),e.shouldNameMoveOverlap&&P){var I=r.ensureRecord(n);process.env.NODE_ENV!=="production"&&z(I.labelInfoList),r.resolveAxisNameOverlap(e,r,n,P,y,I)}}}};function Fd(e,t,r,n,i,a,o,s){c_(t)||BM(e,t,i,s,n,o);var u=t.labelLayoutList;FM(e,n,u,a),e.rotation;var l=e.optionHideOverlap;OM(n,u,l),l&&sM(Dt(u,function(f){return f&&!f.label.ignore})),AM(e,r,n,u)}function IM(e,t,r,n){var i=$p(r-e),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return Bo(i-Tr/2)?(o=u?"bottom":"top",a="center"):Bo(i-Tr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<Tr*1.5&&i>Tr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function OM(e,t,r){if(zy(e.axis))return;function n(s,u,l){var f=Ir(t[u]),h=Ir(t[l]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){$i(f.label);return}if(h.suggestIgnore){$i(h.label);return}var c=.1;if(!r){var v=[0,0,0,0];f=Pd({marginForce:v},f),h=Pd({marginForce:v},h)}kh(f,h,null,{touchThreshold:c})&&$i(s?h.label:f.label)}}var i=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]),o=t.length;n(i,0,1),n(a,o-1,o-2)}function RM(e,t,r){e.showMinorTicks||T(t,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=o_(a),s=ya(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){$i(a);return}}})}function $i(e){e&&(e.ignore=!0)}function h_(e,t,r,n,i){for(var a=[],o=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,t&&(ge(o,o,t),ge(s,s,t));var f=new lr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});fa(f.shape,f.style.lineWidth),f.anid=i+"_"+e[u].tickValue,a.push(f);var h=o_(f);h.onBand=!!e[u].onBand,h.tickValue=e[u].tickValue}return a}function NM(e,t,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=e.tickDirection*a.get("length"),l=i.getTicksCoords(),f=h_(l,r.transform,u,ft(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function kM(e,t,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=i*o.get("length"),f=ft(u.getLineStyle(),ft(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=h_(s[h],r.transform,l,f,"minorticks_"+h),v=0;v<c.length;v++)t.add(c[v])}}function Vd(e,t,r){if(c_(e)){var n=e.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&z(e.labelGroup&&n);var i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),xf(e,null,null,null))}return!0}function BM(e,t,r,n,i,a){var o=i.axis,s=_n(e.raw.axisLabelShow,i.get(["axisLabel","show"])),u=new jt;r.add(u);var l=fs(n);if(!s||o.scale.isBlank()){xf(t,[],u,l);return}var f=i.getModel("axisLabel"),h=o.getViewLabels(l),c=(_n(e.raw.labelRotate,f.get("rotate"))||0)*Tr/180,v=or.innerTextLayout(e.rotation,c,e.labelDirection),d=i.getCategories&&i.getCategories(!0),m=[],g=i.get("triggerEvent"),p=1/0,y=-1/0;T(h,function(x,w){var S,b=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(x.tickValue):x.tickValue,C=x.formattedLabel,M=x.rawLabel,E=f;if(d&&d[b]){var A=d[b];V(A)&&A.textStyle&&(E=new yt(A.textStyle,f,i.ecModel))}var L=E.getTextColor()||i.get(["axisLine","lineStyle","color"]),D=E.getShallow("align",!0)||v.textAlign,P=X(E.getShallow("alignMinLabel",!0),D),I=X(E.getShallow("alignMaxLabel",!0),D),O=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||v.textVerticalAlign,U=X(E.getShallow("verticalAlignMinLabel",!0),O),G=X(E.getShallow("verticalAlignMaxLabel",!0),O),q=10+(((S=x.time)===null||S===void 0?void 0:S.level)||0);p=Math.min(p,q),y=Math.max(y,q);var $=new Ft({x:0,y:0,rotation:0,silent:or.isLabelSilent(i),z2:q,style:fr(E,{text:C,align:w===0?P:w===h.length-1?I:D,verticalAlign:w===0?U:w===h.length-1?G:O,fill:K(L)?L(o.type==="category"?M:o.type==="value"?b+"":b,w):L})});$.anid="label_"+b;var Y=ya($);if(Y.break=x.break,Y.tickValue=b,Y.layoutRotation=v.rotation,Rs({el:$,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return $.isTruncated},value:M,tickIndex:w}}),g){var W=or.makeAxisEventDataBase(i);W.targetType="axisLabel",W.value=M,W.tickIndex=w,x.break&&(W.break={start:x.break.parsedBreak.vmin,end:x.break.parsedBreak.vmax}),o.type==="category"&&(W.dataIndex=b),ct($).eventData=W,x.break&&zM(i,a,$,x.break)}m.push($),u.add($)});var _=Z(m,function(x){return{label:x,priority:ya(x).break?x.z2+(y-p+1):x.z2,defaultAttr:{ignore:x.ignore}}});xf(t,_,u,l)}function c_(e){return!!e.labelLayoutList}function xf(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function FM(e,t,r,n){var i=t.get(["axisLabel","margin"]);T(r,function(a,o){var s=Ir(a);if(s){var u=s.label,l=ya(u);s.suggestIgnore=u.ignore,u.ignore=!1,Al(je,VM),je.x=t.axis.dataToCoord(l.tickValue),je.y=e.labelOffset+e.labelDirection*i,je.rotation=l.layoutRotation,n.add(je),je.updateTransform(),n.remove(je),je.decomposeTransform(),Al(u,je),u.markRedraw(),cs(s,!0),Ir(s)}})}var je=new bt,VM=new bt;function Fh(e){return!!e}function zM(e,t,r,n){r.on("click",function(i){var a={type:DM,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function ds(e,t,r){r=r||{};var n=t.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,u=n.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,c=u==="x"?[l[2]-h,l[3]+h]:[l[0]-h,l[1]+h];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));c[f.onZero]=Math.max(Math.min(v,c[1]),c[0])}i.position=[u==="y"?c[f[s]]:l[0],u==="x"?c[f[s]]:l[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?c[f[o]]-c[f.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),_n(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-m:m,i.z2=1,i}function HM(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function zd(e){var t={xAxisModel:null,yAxisModel:null};return T(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,re).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+nr(e.get(i+"Index"),e.get(i+"Id"),0)+'" not found');t[n]=a}),t}function GM(e,t,r,n,i,a){for(var o=ds(e,r),s=!1,u=!1,l=0;l<t.length;l++)cf(t[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type==="category"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new or(r,n,o,i)}function WM(e,t,r){var n=ds(t,r);if(process.env.NODE_ENV!=="production"){var i=e.__getRawCfg();T(pt(n),function(a){a!=="position"&&a!=="labelOffset"&&z(n[a]===i[a])})}e.updateCfg(n)}function v_(e,t,r){var n,i=Sn.prototype,a=i.getTicks.call(r),o=i.getTicks.call(r,{expandToNicedExtent:!0}),s=a.length-1,u=i.getInterval.call(r),l=Vy(e,t),f=l.extent,h=l.fixMin,c=l.fixMax;e.type==="log"&&(f=vf(e.base,f,!0)),e.setBreaksFromOption(Gy(t)),e.setExtent(f[0],f[1]),e.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:c});var v=i.getExtent.call(e);h&&(f[0]=v[0]),c&&(f[1]=v[1]);var d=i.getInterval.call(e),m=f[0],g=f[1];if(h&&c)d=(g-m)/s;else if(h)for(g=f[0]+d*s;g<f[1]&&isFinite(g)&&isFinite(f[1]);)d=Qu(d),g=f[0]+d*s;else if(c)for(m=f[1]-d*s;m>f[0]&&isFinite(m)&&isFinite(f[0]);)d=Qu(d),m=f[1]-d*s;else{var p=e.getTicks().length-1;p>s&&(d=Qu(d));var y=d*s;g=Math.ceil(f[1]/d)*d,m=Pt(g-y),m<0&&f[0]>=0?(m=0,g=Pt(y)):g>0&&f[1]<=0&&(g=0,m=-Pt(y))}var _=(a[0].value-o[0].value)/u,x=(a[s].value-o[s].value)/u;if(i.setExtent.call(e,m+d*_,g+d*x),i.setInterval.call(e,d),(_||x)&&i.setNiceExtent.call(e,m+d,g-d),process.env.NODE_ENV!=="production"){var w=i.getTicks.call(e);w[1]&&(!cD(d)||Il(w[1].value)>Il(d))&&Kt("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+(" and alignTicks: true. ("+((n=t.axis)===null||n===void 0?void 0:n.dim)+"AxisIndex: "+t.componentIndex+")"),!0)}}var Hd=[[3,1],[0,2]],UM=(function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_f,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=pt(o),l=u.length;if(l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,m=v.scale;cf(m)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Dd(m,d),cf(m)&&(s=v))}f.length&&(s||(s=f.pop(),Dd(s.scale,s.model)),T(f,function(g){v_(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};T(n.x,function(o){Gd(n,"y",o,a)}),T(n.y,function(o){Gd(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=Da(t,r),a=this._rect=$e(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,u=t.get("containLabel");if(d_(o,a),!n){var l=XM(a,s,o,u,r),f=void 0;if(u)process.env.NODE_ENV!=="production"&&jp("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=Yd(a.clone(),"axisLabel",null,a,o,l,i);else{var h=$M(t,a,i),c=h.outerBoundsRect,v=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;c&&(f=Yd(c,v,d,a,o,l,i))}p_(a,o,Ce.determine,null,f,i)}T(this._coordsList,function(m){m.calcAffineTransform()})},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}V(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",re).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",re).models[0],a=t.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,ot(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(i)u=this.getAxis("y",i.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,h){T(s.y,function(c,v){var d="x"+h+"y"+v,m=new TM(d);m.master=i,m.model=t,i._coordsMap[d]=m,i._coordsList.push(m),m.addAxis(f),m.addAxis(c)})});function l(f){return function(h,c){if(el(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new CM(f,zD(h),[0,0],h.get("type"),v),m=d.type==="category";d.onBand=m&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,u[f]++}}}},e.prototype._updateScale=function(t,r){T(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(HM(i)){var a=zd(i),o=a.xAxisModel,s=a.yAxisModel;if(!el(o,r)||!el(s,r))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=i.getData(),f=u.getAxis("x"),h=u.getAxis("y");n(l,f),n(l,h)}},this);function n(i,a){T(Hy(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return T(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ot(r,a)<0&&r.push(a),ot(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){Hw({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=zd(i),s=o.xAxisModel,u=o.yAxisModel,l=s.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+nr(s.get("gridIndex"),s.get("gridId"),0)+'" not found');if(s.getCoordSysModel()!==u.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var f=l.coordinateSystem;return f.getCartesian(s.componentIndex,u.componentIndex)}}),n},e.dimensions=_f,e})();function el(e,t){return e.getCoordSysModel()===t}function Gd(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)Wd(i[u])&&(a=i[u]);else for(var l in i)if(i.hasOwnProperty(l)&&Wd(i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Wd(e){return e&&e.type!=="category"&&e.type!=="time"&&HD(e)}function YM(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}function d_(e,t){T(e.x,function(r){return Ud(r,t.x,t.width)}),T(e.y,function(r){return Ud(r,t.y,t.height)})}function Ud(e,t,r){var n=[0,r],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),YM(e,t)}function Yd(e,t,r,n,i,a,o){process.env.NODE_ENV!=="production"&&z(t==="all"||t==="axisLabel"),p_(n,i,Ce.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),f(n,0,NaN),f(n,1,NaN);var u=_p(s,function(c){return c>0})==null;return Xo(n,s,!0,!0,r),d_(i,n),u;function l(c){T(i[Sr[c]],function(v){if(ma(v.model)){var d=a.ensureRecord(v.model),m=d.labelInfoList;if(m)for(var g=0;g<m.length;g++){var p=m[g],y=v.scale.normalize(ya(p.label).tickValue);y=c===1?1-y:y,f(p.rect,c,y),f(p.rect,1-c,NaN)}var _=d.nameLayout;if(_){var y=vi(d.nameLocation)?.5:NaN;f(_.rect,c,y),f(_.rect,1-c,NaN)}}})}function f(c,v,d){var m=e[Sr[v]]-c[Sr[v]],g=c[li[v]]+c[Sr[v]]-(e[li[v]]+e[Sr[v]]);m=h(m,1-d),g=h(g,d);var p=Hd[v][0],y=Hd[v][1];s[p]=ne(s[p],m),s[y]=ne(s[y],g)}function h(c,v){return c>0&&!yn(v)&&v>1e-4&&(c/=v),c}}function XM(e,t,r,n,i){var a=new s_(ZM);return T(r,function(o){return T(o,function(s){if(ma(s.model)){var u=!n;s.axisBuilder=GM(e,t,s.model,i,a,u)}})}),a}function p_(e,t,r,n,i,a){var o=r===Ce.determine;T(t,function(l){return T(l,function(f){ma(f.model)&&(WM(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[Sr[1-l]]=e[li[l]]<=a.refContainer[li[l]]*.5?0:1-l===1?2:1}T(t,function(l,f){return T(l,function(h){ma(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function $M(e,t,r){var n,i=e.get("outerBoundsMode",!0);i==="same"?n=t.clone():i==null||i==="auto"?n=$e(e.get("outerBounds",!0)||n_,r.refContainer):i!=="none"&&process.env.NODE_ENV!=="production"&&lt("Invalid grid["+e.componentIndex+"].outerBoundsMode.");var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"?o="all":ot(["all","axisLabel"],a)<0?(process.env.NODE_ENV!=="production"&&lt("Invalid grid["+e.componentIndex+"].outerBoundsContain."),o="all"):o=a;var s=[Pl(X(e.get("outerBoundsClampWidth",!0),vs[0]),t.width),Pl(X(e.get("outerBoundsClampHeight",!0),vs[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var ZM=function(e,t,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";u_(e,t,r,n,i,a),vi(e.nameLocation)||T(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&f_(s.labelInfoList,s.dirVec,n,i)})};function qM(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return KM(r,e,t),r.seriesInvolved&&jM(r,e),r}function KM(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];T(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=_a(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",n);if(T(s.getAxes(),Et(m,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&T(d.baseAxes,Et(m,v?"cross":!0,c)),v&&T(d.otherAxes,Et(m,"cross",!1))}function m(g,p,y){var _=y.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!g&&!Sf(_))){p==null&&(p=_.get("triggerTooltip")),_=g?QM(y,h,i,t,g,p):_;var w=_.get("snap"),S=_.get("triggerEmphasis"),b=_a(y.model),C=p||w||y.type==="category",M=e.axesInfo[b]={key:b,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:p,triggerEmphasis:S,involveSeries:C,snap:w,useHandle:Sf(_),seriesModels:[],linkGroup:null};l[b]=M,e.seriesInvolved=e.seriesInvolved||C;var E=JM(a,y);if(E!=null){var A=o[E]||(o[E]={axesInfo:{}});A.axesInfo[b]=M,A.mapper=a[E].mapper,M.linkGroup=A}}}})}function QM(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};T(s,function(c){u[c]=rt(o.get(c))}),u.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),i==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&ft(l,h.textStyle)}}return e.model.getModel("axisPointer",new yt(u,r,n))}function jM(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||T(e.coordSysAxesInfo[_a(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function JM(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(rl(a[n+"AxisId"],r.id)||rl(a[n+"AxisIndex"],r.componentIndex)||rl(a[n+"AxisName"],r.name))return i}}function rl(e,t){return e==="all"||k(e)&&ot(e,t)>=0||e===t}function tE(e){var t=Vh(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Sf(r);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Vh(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[_a(e)]}function eE(e){var t=Vh(e);return t&&t.axisPointerModel}function Sf(e){return!!e.get(["handle","show"])}function _a(e){return e.type+"||"+e.id}var nl={},g_=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&tE(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=eE(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&nl[r])throw new Error("axisPointer "+r+" exists");nl[r]=n},t.getAxisPointerClass=function(r){return r&&nl[r]},t.type="axis",t})(ye),wf=_t();function rE(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,h=wf(e).splitAreaColors,c=tt(),v=0;if(h)for(var d=0;d<l.length;d++){var m=h.get(l[d].tickValue);if(m!=null){v=(m+(f-1)*d)%f;break}}var g=i.toGlobalCoord(l[0].coord),p=o.getAreaStyle();s=k(s)?s:[s];for(var d=1;d<l.length;d++){var y=i.toGlobalCoord(l[d].coord),_=void 0,x=void 0,w=void 0,S=void 0;i.isHorizontal()?(_=g,x=u.y,w=y-_,S=u.height,g=_+w):(_=u.x,x=g,w=u.width,S=y-x,g=x+S);var b=l[d-1].tickValue;b!=null&&c.set(b,v),t.add(new bt({anid:b!=null?"area_"+b:null,shape:{x:_,y:x,width:w,height:S},style:ft({fill:s[v]},p),autoBatch:!0,silent:!0})),v=(v+1)%f}wf(e).splitAreaColors=c}}}function nE(e){wf(e).splitAreaColors=null}var iE=["splitArea","splitLine","minorSplitLine","breakArea"],m_=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new jt,this.group.add(this._axisGroup),!!ma(r)){this._axisGroup.add(r.axis.axisBuilder.group),T(iE,function(u){r.get([u,"show"])&&aE[u](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Ug(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){nE(this)},t.type="cartesianAxis",t})(g_),aE={splitLine:function(e,t,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=k(u)?u:[u];for(var h=n.coordinateSystem.getRect(),c=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),m=[],g=[],p=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!l||y===d.length-1&&!f)){var x=d[y].tickValue;c?(m[0]=_,m[1]=h.y,g[0]=_,g[1]=h.y+h.height):(m[0]=h.x,m[1]=_,g[0]=h.x+h.width,g[1]=_);var w=v++%u.length,S=new lr({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:g[0],y2:g[1]},style:ft({stroke:u[w]},p),silent:!0});fa(S.shape,p.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=n.coordinateSystem.getRect(),l=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],c=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var m=0;m<f[d].length;m++){var g=a.toGlobalCoord(f[d][m].coord);l?(h[0]=g,h[1]=u.y,c[0]=g,c[1]=u.y+u.height):(h[0]=u.x,h[1]=g,c[0]=u.x+u.width,c[1]=g);var p=new lr({anid:"minor_line_"+f[d][m].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:v,silent:!0});fa(p.shape,v.lineWidth),t.add(p)}},splitArea:function(e,t,r,n,i){rE(e,t,r,n)},breakArea:function(e,t,r,n,i){r.axis.scale}},y_=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t})(m_),oE=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=y_.type,r}return t.type="yAxis",t})(m_),sE=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new bt({shape:r.coordinateSystem.getRect(),style:ft({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(ye),Xd={offset:0};function uE(e){e.registerComponentView(sE),e.registerComponentModel(gM),e.registerCoordinateSystem("cartesian2d",UM),Nd(e,"x",yf,Xd),Nd(e,"y",yf,Xd),e.registerComponentView(y_),e.registerComponentView(oE),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function lE(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=Wn(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Wn(s,[0,o]),i=a=Wn(s,[i,a]),n=0}t[0]=Wn(t[0],r),t[1]=Wn(t[1],r);var u=il(t,n);t[n]+=e;var l=i||0,f=r.slice();u.sign<0?f[0]+=l:f[1]-=l,t[n]=Wn(t[n],f);var h;return h=il(t,n),i!=null&&(h.sign!==u.sign||h.span<i)&&(t[1-n]=t[n]+u.sign*i),h=il(t,n),a!=null&&h.span>a&&(t[1-n]=t[n]+h.sign*a),t}function il(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Wn(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var sn=_t(),$d=rt,al=vt,fE=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new jt,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),n.getZr().add(s);else{var c=Et(Zd,r,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,r)}Kd(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var u=Vh(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=sn(t).pointerEl=new qg[a.type]($d(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=sn(t).labelEl=new Ft($d(r.label));t.add(a),qd(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=sn(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=sn(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),qd(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=nh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){kf(l.event)},onmousedown:al(this._onHandleDragMove,this,0,0),drift:al(this._onHandleDragMove,this),ondragend:al(this._onHandleDragEnd,this)}),n.add(i)),Kd(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");k(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,Ch(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Zd(this._axisPointerModel,!r&&this._moveAnimation,this._handle,ol(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ol(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ol(i)),sn(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Jo(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e})();function Zd(e,t,r,n){__(sn(r).lastProp,n)||(sn(r).lastProp=n,t?xi(r,n,e):(r.stopAnimation(),r.attr(n)))}function __(e,t){if(V(e)&&V(t)){var r=!0;return T(t,function(n,i){r=r&&__(e[i],n)}),!!r}else return e===t}function qd(e,t){e[t.get(["label","show"])?"show":"hide"]()}function ol(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Kd(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function hE(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function cE(e,t,r,n,i){var a=r.get("value"),o=x_(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Ca(s.get("padding")||0),l=s.getFont(),f=Gp(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var m=i.verticalAlign;m==="bottom"&&(h[1]-=v),m==="middle"&&(h[1]-=v/2),vE(h,c,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:fr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function vE(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function x_(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:ls(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),F(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function S_(e,t,r){var n=ir();return Ff(n,n,r.rotation),gl(n,n,r.position),Os([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function dE(e,t,r,n,i,a){var o=or.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),cE(t,n,i,a,{position:S_(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function pE(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function gE(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var mE=(function(e){B(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=Qd(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=hE(a),v=yE[l](s,h,f);v.style=c,r.graphicKey=v.type,r.pointer=v}var d=ds(u.getRect(),i);dE(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=ds(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=S_(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Qd(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t})(fE);function Qd(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var yE={line:function(e,t,r){var n=pE([t,r[0]],[t,r[1]],jd(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:gE([t-n/2,r[0]],[n,i],jd(e))}}};function jd(e){return e.dim==="x"?0:1}var _E=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:H.color.border,width:1,type:"dashed"},shadowStyle:{color:H.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:H.color.neutral00,padding:[5,7,5,7],backgroundColor:H.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:H.color.accent40,throttle:40}},t})(at),rr=_t(),xE=T;function w_(e,t,r){if(!Q.node){var n=t.getZr();rr(n).records||(rr(n).records={}),SE(n,t);var i=rr(n).records[e]||(rr(n).records[e]={});i.handler=r}}function SE(e,t){if(rr(e).initialized)return;rr(e).initialized=!0,r("click",Et(Jd,"click")),r("mousemove",Et(Jd,"mousemove")),r("globalout",bE);function r(n,i){e.on(n,function(a){var o=TE(t);xE(rr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),wE(o.pendings,t)})}}function wE(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function bE(e,t,r){e.handler("leave",null,r)}function Jd(e,t,r,n){t.handler(e,r,n)}function TE(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function bf(e,t){if(!Q.node){var r=t.getZr(),n=(rr(r).records||{})[e];n&&(rr(r).records[e]=null)}}var CE=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";w_("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(r,n){bf("axisPointer",n)},t.prototype.dispose=function(r,n){bf("axisPointer",n)},t.type="axisPointer",t})(ye);function b_(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=mi(a,e);if(o==null||o<0||k(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),m=[];m[v]=a.get(d,o),m[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(m)||[]}else r=u.dataToPoint(a.getValues(Z(u.dimensions,function(p){return a.mapDimension(p)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var tp=_t();function DE(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||vt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Mo(i)&&(i=b_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Mo(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||Mo(i),c={},v={},d={list:[],map:{}},m={showPointer:Et(EE,v),showTooltip:Et(AE,d)};T(s.coordSysMap,function(p,y){var _=u||p.containPoint(i);T(s.coordSysAxesInfo[y],function(x,w){var S=x.axis,b=OE(l,x);if(!h&&_&&(!l||b)){var C=b&&b.value;C==null&&!u&&(C=S.pointToData(i)),C!=null&&ep(x,C,m,!1,c)}})});var g={};return T(f,function(p,y){var _=p.linkGroup;_&&!v[y]&&T(_.axesInfo,function(x,w){var S=v[w];if(x!==p&&S){var b=S.value;_.mapper&&(b=p.axis.scale.parse(_.mapper(b,rp(x),rp(p)))),g[p.key]=b}})}),T(g,function(p,y){ep(f[y],p,m,!0,c)}),LE(v,f,c),PE(d,i,e,o),IE(f,o,r),c}}function ep(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=ME(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&R(i,s[0]),!n&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function ME(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,e,r);c=v.dataIndices,h=v.nestestValue}else{if(c=u.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=e-h,m=Math.abs(d);m<=o&&((m<o||d>=0&&s<0)&&(o=m,s=d,i=h,a.length=0),T(c,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function EE(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function AE(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=_a(u),f=e.map[l];f||(f=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function LE(e,t,r){var n=r.axesInfo=[];T(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function PE(e,t,r,n){if(Mo(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function IE(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=tp(n)[i]||{},o=tp(n)[i]={};T(e,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&T(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];T(a,function(l,f){!o[f]&&u.push(l)}),T(o,function(l,f){!a[f]&&s.push(l)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function OE(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function rp(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Mo(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function T_(e){g_.registerAxisPointerClass("CartesianAxisPointer",mE),e.registerComponentModel(_E),e.registerComponentView(CE),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!k(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=qM(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},DE)}function RE(e){Pr(uE),Pr(T_)}function NE(e,t){var r=Ca(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var i=new bt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var kE=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:H.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:H.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:H.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:H.color.tertiary,fontSize:14}},t})(at);function C_(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function D_(e){if(Q.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var M_=D_(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),BE=D_(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function E_(e,t){if(!e)return t;t=cm(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function FE(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var VE=E_(BE,"transition"),zh=E_(M_,"transform"),zE="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Q.transform3dSupported?"will-change:transform;":"");function HE(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function GE(e,t,r){if(!F(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=fi(t);var a=HE(r),o=Math.max(Math.round(i)*1.5,6),s="",u=zh+":",l;ot(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function WE(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+e/2+"s "+n,a="opacity"+i+",visibility"+i),t||(i=" "+e+"s "+n,a+=(a.length?",":"")+(Q.transformSupported?""+zh+i:",left"+i+",top"+i)),VE+":"+a}function np(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Q.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Q.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+zh+":"+o+";":[["top",0],["left",0],[M_,o]]}function UE(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=X(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),T(["decoration","align"],function(l){var f=e.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function YE(e,t,r,n){var i=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),u=e.get("shadowColor"),l=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),h=e.getModel("textStyle"),c=Vm(e,"html"),v=l+"px "+f+"px "+s+"px "+u;return i.push("box-shadow:"+v),t&&a>0&&i.push(WE(a,r,n)),o&&i.push("background-color:"+o),T(["width","color","radius"],function(d){var m="border-"+d,g=cm(m),p=e.get(g);p!=null&&i.push(m+":"+p+(d==="color"?"":"px"))}),i.push(UE(h)),c!=null&&i.push("padding:"+Ca(c).join("px ")+"px"),i.join(";")+";"}function ip(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&p0(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var XE=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Q.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(F(a)?document.querySelector(a):ni(a)?a:K(a)&&a(t.getDom()));ip(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();ue(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=FE(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=zE+YE(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+np(a[0],a[1],!0)+("border-color:"+fi(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(F(a)&&n.get("trigger")==="item"&&!C_(n)&&(s=GE(n,i,a)),F(t))o.innerHTML=t+s;else if(t){o.innerHTML="",k(t)||(t=[t]);for(var u=0;u<t.length;u++)ni(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(ip(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=np(n[0],n[1]);T(a,function(o){i[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",Q.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(vt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;g0(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e})(),$E=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),op(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;V(t)&&Gt(process.env.NODE_ENV!=="production"?"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 Ft({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Vm(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=ap(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;op(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=xr(a.borderWidth||0),s=ap(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(vt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function xr(e){return Math.max(0,e)}function ap(e){var t=xr(e.shadowBlur||0),r=xr(e.shadowOffsetX||0),n=xr(e.shadowOffsetY||0);return{left:xr(t-r),right:xr(t+r),top:xr(t-n),bottom:xr(t+n)}}function op(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ZE=new bt({shape:{x:-1,y:-1,width:2,height:2}}),qE=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(Q.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=J1(i.get("renderMode"));this._tooltipContent=a==="richText"?new $E(n):new XE(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(Q.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Ch(this,"_updatePosition",50,"fixRate"):Jo(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");w_("itemTooltip",this._api,vt(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||Q.node||!i.getDom())){var o=sp(a,i);this._ticket="";var s=a.dataByCoordSys,u=JE(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=ZE;f.x=a.x,f.y=a.y,f.update(),ct(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var h=b_(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(sp(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(l){var f=l.getData(),h=Fi([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=ct(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;jn(i,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(ct(f).dataIndex!=null?u=f:ct(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=vt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Fi([n.tooltipOption],a),u=this._renderMode,l=[],f=ci("section",{blocks:[],noHeader:!0}),h=[],c=new zu;T(r,function(y){T(y.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!x||w==null)){var S=x_(w,x.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=ci("section",{header:S,noHeader:!Ve(S),sortBlocks:!0,blocks:[]});f.blocks.push(b),T(_.seriesDataIndices,function(C){var M=i.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,A=M.getDataParams(E);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=ls(x.axis,{value:w}),A.axisValueLabel=S,A.marker=c.makeTooltipMarker("item",fi(A.color),u);var L=kv(M.formatTooltip(E,!0,null)),D=L.frag;if(D){var P=Fi([M],a).get("valueFormatter");b.blocks.push(P?R({valueFormatter:P},D):D)}L.text&&h.push(L.text),l.push(A)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),m=Hv(f,c,u,d,i.get("useUTC"),s.get("textStyle"));m&&h.unshift(m);var g=u==="richText"?`
42
+
43
+ `:"<br/>",p=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,p,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ct(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=r.positionDefault,m=Fi([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var p=l.getDataParams(f,h),y=new zu;p.marker=y.makeTooltipMarker("item",fi(p.color),v);var _=kv(l.formatTooltip(f,!1,h)),x=m.get("order"),w=m.get("valueFormatter"),S=_.frag,b=S?Hv(w?R({valueFormatter:w},S):S,y,v,x,a.get("useUTC"),m.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,b,p,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=ct(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(F(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=rt(u),u.content=Zt(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=r.positionDefault,d=Fi(h,this._tooltipModel,v?{position:v}:null),m=d.get("content"),g=Math.random()+"",p=new zu;this._showOrMove(d,function(){var y=rt(d.get("formatterParams")||{});this._showTooltipContent(d,m,y,g,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var c=r.get("formatter");u=u||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),m=d.color;if(c)if(F(c)){var g=r.ecModel.get("useUTC"),p=k(i)?i[0]:i,y=p&&p.axisType&&p.axisType.indexOf("time")>=0;v=c,y&&(v=Fs(p.axisValue,v,g)),v=vm(v,i,!0)}else if(K(c)){var _=vt(function(x,w){x===this._ticket&&(h.setContent(w,f,r,m,u),this._updatePosition(r,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,r,m,u),h.show(r,m),this._updatePosition(r,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||k(n))return{color:a||o};if(!k(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),c=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),K(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),k(n))i=St(n[0],l),a=St(n[1],f);else if(V(n)){var m=n;m.width=h[0],m.height=h[1];var g=$e(m,{width:l,height:f});i=g.x,a=g.y,c=null,v=null}else if(F(n)&&u){var p=jE(n,d,h,r.get("borderWidth"));i=p[0],a=p[1]}else{var p=KE(i,a,o,l,f,c?null:20,v?null:20);i=p[0],a=p[1]}if(c&&(i-=up(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=up(v)?h[1]/2:v==="bottom"?h[1]:0),C_(r)){var p=QE(i,a,o,l,f);i=p[0],a=p[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&T(i,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&T(l,function(c,v){var d=h[v]||{},m=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&m.length===g.length,o&&T(m,function(p,y){var _=g[y];o=o&&p.seriesIndex===_.seriesIndex&&p.dataIndex===_.dataIndex}),a&&T(c.seriesDataIndices,function(p){var y=p.seriesIndex,_=n[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Q.node||!n.getDom()||(Jo(this,"_updatePosition"),this._tooltipContent.dispose(),bf("itemTooltip",n))},t.type="tooltip",t})(ye);function Fi(e,t,r){var n=t.ecModel,i;r?(i=new yt(r,n,n),i=new yt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof yt&&(o=o.get("tooltip",!0)),F(o)&&(o={formatter:o}),o&&(i=new yt(o,i,n)))}return i}function sp(e,t){return e.dispatchAction||vt(t.dispatchAction,t)}function KE(e,t,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>n?e-=u+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function QE(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function jE(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(e){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function up(e){return e==="center"||e==="middle"}function JE(e,t,r){var n=Uf(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=yi(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ct(l).tooltipConfig;if(f&&f.name===e.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function tA(e){Pr(T_),e.registerComponentModel(kE),e.registerComponentView(qE),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Wt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Wt)}var eA=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:H.size.m,backgroundColor:H.color.transparent,borderColor:H.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:H.color.primary},subtextStyle:{fontSize:12,color:H.color.quaternary}},t})(at),rA=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=X(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ft({style:fr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=r.get("subtext"),v=new Ft({style:fr(s,{text:c,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),m=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!m&&!g,d&&f.on("click",function(){mv(d,"_"+r.get("target"))}),m&&v.on("click",function(){mv(m,"_"+r.get("subtarget"))}),ct(f).eventData=ct(v).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),c&&a.add(v);var p=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=p.width,y.height=p.height;var _=Da(r,i),x=$e(y,_.refContainer,r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?x.x+=x.width:u==="center"&&(x.x+=x.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?x.y+=x.height:l==="middle"&&(x.y+=x.height/2),l=l||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var w={align:u,verticalAlign:l};f.setStyle(w),v.setStyle(w),p=a.getBoundingRect();var S=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var C=new bt({shape:{x:p.x-S[3],y:p.y-S[0],width:p.width+S[1]+S[3],height:p.height+S[0]+S[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(C)}},t.type="title",t})(ye);function nA(e){e.registerComponentModel(eA),e.registerComponentView(rA)}var iA=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Tf=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),k(n)&&T(n,function(a,o){F(a)&&(a={type:a}),n[o]=st(a,iA(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(u){var l=u.name;i.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,c=h.getAllNames();r.isSeriesFiltered(u)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&Wf(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=tt(),s=Z(a,function(u){return(F(u)||mt(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new yt(u,this,this.ecModel))},this);this._data=Dt(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;T(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;T(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;T(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ot(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:H.size.m,align:"auto",backgroundColor:H.color.transparent,borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:H.color.disabled,inactiveBorderColor:H.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:H.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:H.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:H.color.tertiary,borderWidth:1,borderColor:H.color.border},emphasis:{selectorLabel:{show:!0,color:H.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(at),Un=Et,Cf=T,vo=jt,A_=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new vo),this.group.add(this._selectorGroup=new vo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,u,s,l);var f=Da(r,i).refContainer,h=r.getBoxLayoutParams(),c=r.get("padding"),v=$e(h,f,c),d=this.layoutInner(r,o,v,a,u,l),m=$e(ft({width:d.width,height:d.height},h),f,c);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=NE(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this.getContentGroup(),f=tt(),h=n.get("selectedMode"),c=n.get("triggerEvent"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Cf(n.getData(),function(d,m){var g=this,p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
44
+ `)){var y=new vo;y.newline=!0,l.add(y);return}var _=i.getSeriesByName(p)[0];if(!f.get(p)){if(_){var x=_.getData(),w=x.getVisual("legendLineStyle")||{},S=x.getVisual("legendIcon"),b=x.getVisual("style"),C=this._createItem(_,p,m,d,n,r,w,b,S,h,a);C.on("click",Un(lp,p,null,a,v)).on("mouseover",Un(Df,_.name,null,a,v)).on("mouseout",Un(Mf,_.name,null,a,v)),i.ssr&&C.eachChild(function(M){var E=ct(M);E.seriesIndex=_.seriesIndex,E.dataIndex=m,E.ssrType="legend"}),c&&C.eachChild(function(M){g.packEventData(M,n,_,m,p)}),f.set(p,!0)}else i.eachRawSeries(function(M){var E=this;if(!f.get(p)&&M.legendVisualProvider){var A=M.legendVisualProvider;if(!A.containName(p))return;var L=A.indexOfName(p),D=A.getItemVisual(L,"style"),P=A.getItemVisual(L,"legendIcon"),I=me(D.fill);I&&I[3]===0&&(I[3]=.2,D=R(R({},D),{fill:wn(I,"rgba")}));var O=this._createItem(M,p,m,d,n,r,{},D,P,h,a);O.on("click",Un(lp,null,p,a,v)).on("mouseover",Un(Df,null,p,a,v)).on("mouseout",Un(Mf,null,p,a,v)),i.ssr&&O.eachChild(function(U){var G=ct(U);G.seriesIndex=M.seriesIndex,G.dataIndex=m,G.ssrType="legend"}),c&&O.eachChild(function(U){E.packEventData(U,n,M,m,p)}),f.set(p,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,a,s,u)},t.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};ct(r).eventData=s},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Cf(r,function(l){var f=l.type,h=new Ft({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Qg(h,{normal:c,emphasis:v},{defaultText:l.title}),Yo(h)})},t.prototype._createItem=function(r,n,i,a,o,s,u,l,f,h,c){var v=r.visualDrawType,d=o.get("itemWidth"),m=o.get("itemHeight"),g=o.isSelected(n),p=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=aA(f,a,u,l,v,g,c),w=new vo,S=a.getModel("textStyle");if(K(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:m,icon:f,iconRotate:p,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var b=_==="inherit"&&r.getData().getVisual("symbol")?p==="inherit"?r.getData().getVisual("symbolRotate"):p:0;w.add(oA({itemWidth:d,itemHeight:m,icon:f,iconRotate:b,itemStyle:x.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,M=s,E=o.get("formatter"),A=n;F(E)&&E?A=E.replace("{name}",n??""):K(E)&&(A=E(n));var L=g?S.getTextColor():a.get("inactiveColor");w.add(new Ft({style:fr(S,{text:A,x:C,y:m/2,fill:L,align:M,verticalAlign:"middle"},{inheritColor:L})}));var D=new bt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&Rs({el:D,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(D),w.eachChild(function(I){I.silent=!0}),D.silent=!h,this.getContentGroup().add(w),Yo(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();ri(r.get("orient"),u,r.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){ri("horizontal",l,r.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=r.get("selectorButtonGap",!0),m=r.getOrient().index,g=m===0?"width":"height",p=m===0?"height":"width",y=m===0?"y":"x";s==="end"?v[m]+=f[g]+d:h[m]+=c[g]+d,v[1-m]+=f[p]/2-c[p]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[p]=Math.max(f[p],c[p]),_[y]=Math.min(0,c[y]+v[1-m]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(ye);function aA(e,t,r,n,i,a,o){function s(g,p){g.lineWidth==="auto"&&(g.lineWidth=p.lineWidth>0?2:0),Cf(g,function(y,_){g[_]==="inherit"&&(g[_]=p[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:is(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:r).opacity),s(l,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,r),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),m=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&m?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function oA(e){var t=e.icon||"roundRect",r=Ws(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=H.color.neutral00,r.style.lineWidth=2),r}function lp(e,t,r,n){Mf(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Df(e,t,r,n)}function L_(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function Df(e,t,r,n){L_(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Mf(e,t,r,n){L_(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function sA(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Vi(e,t,r){var n=e==="allSelect"||e==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),fp(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){T(i,function(u,l){s[u?"select":"unSelect"](l)}),fp(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function fp(e,t){var r=t||{};return T(e.getData(),function(n){var i=n.get("name");if(!(i===`
45
+ `||i==="")){var a=e.isSelected(i);pe(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function uA(e){e.registerAction("legendToggleSelect","legendselectchanged",Et(Vi,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Et(Vi,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Et(Vi,"inverseSelect")),e.registerAction("legendSelect","legendselected",Et(Vi,"select")),e.registerAction("legendUnSelect","legendunselected",Et(Vi,"unSelect"))}function P_(e){e.registerComponentModel(Tf),e.registerComponentView(A_),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,sA),e.registerSubTypeDefaulter("legend",function(){return"plain"}),uA(e)}var lA=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=Si(r);e.prototype.init.call(this,r,n,i),hp(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),hp(this,this.option,r)},t.type="legend.scroll",t.defaultOption=em(Tf.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:H.color.accent50,pageIconInactiveColor:H.color.accent10,pageIconSize:15,pageTextStyle:{color:H.color.tertiary},animationDurationUpdate:800}),t})(Tf);function hp(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ar(t,r,{type:"box",ignoreSize:!!i})}var cp=jt,sl=["width","height"],ul=["x","y"],fA=(function(e){B(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new cp),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new cp)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,u);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=k(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Ft({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(m,g){var p=m+"DataIndex",y=nh(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:vt(l._pageGo,l,p,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=m,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=sl[l],h=ul[l],c=sl[1-l],v=ul[1-l];o&&ri("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),m=u.getBoundingRect(),g=[-m.x,-m.y],p=rt(i);o&&(p[f]=i[f]-m[f]-d);var y=this._layoutContentAndController(r,a,p,l,f,c,v,h);if(o){if(s==="end")g[l]+=y[f]+d;else{var _=m[f]+d;g[l]-=_,y[h]-=_}y[f]+=m[f]+d,g[1-l]+=y[v]+y[c]/2-m[c]/2,y[c]=Math.max(y[c],m[c]),y[v]=Math.min(y[v],m[v]+g[1-l]),u.x=g[0],u.y=g[1],u.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;ri(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),ri("horizontal",c,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),m=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[l]);var p=[0,0],y=[-d.x,-d.y],_=X(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=i[o]-d[o]:p[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(p),c.setPosition(y);var w={x:0,y:0};if(w[o]=m?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[u]=Math.min(0,d[u]+y[1-a]),h.__rectSize=i[o],m){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-_,0),S[s]=w[s],h.setClipPath(new bt({shape:S})),h.__rectSize=S[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(r);return b.pageIndex!=null&&xi(f,{x:b.contentPosition[0],y:b.contentPosition[1]},m?r:null),this._updatePageInfoView(r,b),w},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",F(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=sl[o],u=ul[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var m=x(h);d.contentPosition[o]=-m.s;for(var g=l+1,p=m,y=m,_=null;g<=c;++g)_=x(f[g]),(!_&&y.e>p.s+a||_&&!w(_,p.s))&&(y.i>p.i?p=y:p=_,p&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=p.i),++d.pageCount)),y=_;for(var g=l-1,p=m,y=m,_=null;g>=-1;--g)_=x(f[g]),(!_||!w(y,_.s))&&p.i<y.i&&(y=p,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=p.i),++d.pageCount,++d.pageIndex),p=_;return d;function x(S){if(S){var b=S.getBoundingRect(),C=b[u]+S[u];return{s:C,e:C+b[s],i:S.__legendDataIndex}}}function w(S,b){return S.e>=b&&S.s<=b+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===r&&(n=s)}),n??a},t.type="legend.scroll",t})(A_);function hA(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function cA(e){Pr(P_),e.registerComponentModel(lA),e.registerComponentView(fA),hA(e)}function vA(e){Pr(P_),Pr(cA)}const dA=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function pA(e){function t(r){return function(...i){if(!e.value)throw new Error("ECharts is not initialized yet.");return Reflect.apply(e.value[r],e.value,i)}}return dA.reduce((r,n)=>(r[n]=t(n),r),{})}function gA(e,t,r){et.watch([r,e,t],([n,i,a],o,s)=>{let u=null;if(n&&i&&a){const{offsetWidth:l,offsetHeight:f}=n,{throttle:h=100,onResize:c}=a===!0?{}:a;let v=!1;const d=()=>{i.resize(),c==null||c()},m=h?Gs(d,h):d;u=new ResizeObserver(()=>{!v&&(v=!0,n.offsetWidth===l&&n.offsetHeight===f)||n.offsetWidth===0||n.offsetHeight===0||m()}),u.observe(n)}s(()=>{u&&(u.disconnect(),u=null)})})}const mA={autoresize:[Boolean,Object]},yA=Symbol();function _A(e,t,r){const n=et.inject(yA,{}),i=et.computed(()=>({...et.toValue(n),...r==null?void 0:r.value}));et.watchEffect(()=>{const a=e.value;a&&(t.value?a.showLoading(i.value):a.hideLoading())})}const xA={loading:Boolean,loadingOptions:Object};function I_(){return typeof window<"u"&&typeof document<"u"}const SA=/^on[^a-z]/,O_=e=>SA.test(e);function wA(e){const t={};for(const r in e)O_(r)||(t[r]=e[r]);return t}function bA(e){const t=Number(e);return Number.isInteger(t)&&t>=0&&t<Math.pow(2,32)-1&&String(t)===e}function TA(e,t){const r=new Set(e),n=new Set(t);if(r.size!==n.size)return!1;for(const i of r)if(!n.has(i))return!1;return!0}function R_(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}const CA="[vue-echarts]";function Ef(e){et.warn(`${CA} ${e}`)}const N_={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},DA=Object.keys(N_);function ll(e){return DA.some(t=>e===t||e.startsWith(t+"-"))}function MA(e,t){const r=I_()?document.createElement("div"):void 0,n=et.shallowReactive({}),i=et.shallowReactive({}),a=et.shallowReactive({}),o=et.shallowRef(!1),s=()=>o.value&&r?et.h(et.Teleport,{to:r},Object.entries(e).filter(([h])=>ll(h)).map(([h,c])=>{const v=h;return et.h("div",{ref:d=>{d instanceof HTMLElement&&(n[v]=d)},style:{display:"contents"}},i[v]?c==null?void 0:c(a[v]):void 0)})):void 0;function u(h){return h!==null&&typeof h=="object"&&!Array.isArray(h)}function l(h){const c={...h},v=(d,m)=>{const g=d[m];if(Array.isArray(g))return d[m]=[...g],d[m];if(u(g))return d[m]={...g},d[m];if(g===void 0)return d[m]=bA(m)?[]:{},d[m]};return Object.keys(e).filter(d=>{const m=ll(d);return m||Ef(`Invalid slot name: ${d}`),m}).forEach(d=>{const[m,...g]=d.split("-"),p=N_[m];if(!p)return;const y=[...g,...p];if(y.length===0)return;let _=c;for(let x=0;x<y.length-1;x++)if(_=v(_,y[x]),!_)return;_[y[y.length-1]]=x=>(i[d]=!0,a[d]=x,n[d])}),c}let f=[];return et.onUpdated(()=>{const h=Object.keys(e).filter(ll);TA(h,f)||(f.forEach(c=>{h.includes(c)||(delete a[c],delete i[c],delete n[c])}),f=h,t())}),et.onMounted(()=>{o.value=!0}),et.onUnmounted(()=>{r==null||r.remove()}),{teleportedSlots:s,patchOption:l}}let yr=null;const Af="x-vue-echarts";function EA(){if(yr!=null)return yr;const e=globalThis.customElements;if(!I_()||!(e!=null&&e.get))return yr=!1,yr;if(!e.get(Af))try{class t extends HTMLElement{constructor(){super(...arguments);Wh(this,"__dispose",null)}disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}e.define(Af,t)}catch{return yr=!1,yr}return yr=!0,yr}function AA(e){if(!R_(e))return;const t=e.id;if(typeof t=="string")return t;if(typeof t=="number"&&Number.isFinite(t))return String(t)}function vp(e){const t=e,r=Array.isArray(t.options)?t.options.length:0,n=Array.isArray(t.media)?t.media.length:0,i=Object.create(null),a=[],o=[];for(const s of Object.keys(t)){if(s==="options"||s==="media")continue;const u=t[s];if(Array.isArray(u)){const l=u,f=new Set;let h=0;for(let c=0;c<l.length;c++){const v=AA(l[c]);v!==void 0?f.add(v):h++}i[s]={idsSorted:f.size>0?Array.from(f).sort():[],noIdCount:h}}else R_(u)?a.push(s):u!==void 0&&o.push(s)}return a.length>1&&a.sort(),o.length>1&&o.sort(),{optionsLength:r,mediaLength:n,arrays:i,objects:a,scalars:o}}function dp(e,t){if(e.length===0)return[];if(t.length===0)return e.slice();const r=new Set(t),n=[];for(let i=0;i<e.length;i++){const a=e[i];r.has(a)||n.push(a)}return n}function LA(e,t){if(e.length===0)return!1;if(t.length===0)return!0;const r=new Set(t);for(let n=0;n<e.length;n++)if(!r.has(e[n]))return!0;return!1}function PA(e,t){const r=vp(t);if(!e)return{option:t,signature:r,plan:{notMerge:!1}};if(r.optionsLength<e.optionsLength)return{option:t,signature:r,plan:{notMerge:!0}};if(r.mediaLength<e.mediaLength)return{option:t,signature:r,plan:{notMerge:!0}};if(dp(e.scalars,r.scalars).length>0)return{option:t,signature:r,plan:{notMerge:!0}};const n=new Set,i=new Map,a=dp(e.objects,r.objects);for(let l=0;l<a.length;l++)i.set(a[l],null);for(const l of Object.keys(e.arrays)){const f=e.arrays[l];if(!f)continue;const h=r.arrays[l];if(!h){(f.idsSorted.length>0||f.noIdCount>0)&&(i.set(l,[]),n.add(l));continue}if(LA(f.idsSorted,h.idsSorted)){n.add(l);continue}h.noIdCount<f.noIdCount&&n.add(l)}let o=t,s=r;if(i.size>0){const l={...t};i.forEach((f,h)=>{l[h]=f}),o=l,s=vp(o)}const u=n.size>0?Array.from(n).sort():void 0;return{option:o,signature:s,plan:u?{notMerge:!1,replaceMerge:u}:{notMerge:!1}}}var pp=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
46
+ x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;}
47
+ `;if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const e=new CSSStyleSheet;e.replaceSync(pp),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}else{const e=document.createElement("style");e.textContent=pp,document.head.appendChild(e)}const IA=EA(),OA=Symbol(),RA=Symbol(),NA=Symbol();var kA=et.defineComponent({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...mA,...xA},emits:{},slots:Object,setup(e,{attrs:t,expose:r,slots:n}){const i=et.shallowRef(),a=et.shallowRef(),o=et.inject(OA,null),s=et.inject(RA,null),u=et.inject(NA,null),{autoresize:l,manualUpdate:f,loading:h,loadingOptions:c}=et.toRefs(e),v=et.computed(()=>e.theme||et.toValue(o)),d=et.computed(()=>e.initOptions||et.toValue(s)||void 0),m=et.computed(()=>e.updateOptions||et.toValue(u)),g=et.computed(()=>wA(t)),p={},y=new Map,{teleportedSlots:_,patchOption:x}=MA(n,()=>{!f.value&&e.option&&a.value&&b(a.value,e.option)});let w;function S(L){const D={},P=((L==null?void 0:L.replaceMerge)??[]).filter(I=>I!=null);return P.length>0&&(D.replaceMerge=[...new Set(P)]),(L==null?void 0:L.notMerge)!==void 0&&(D.notMerge=L.notMerge),D}function b(L,D,P,I=!1){const O=x(D);if(I){L.setOption(O,P??{}),w=void 0;return}if(m.value){const q=P??m.value;L.setOption(O,q),w=void 0;return}const U=PA(w,O),G=S(U.plan);L.setOption(U.option,G),w=U.signature}Object.keys(t).filter(L=>O_(L)).forEach(L=>{if(L.indexOf("Native:")===2){const O=`on${L.charAt(9).toUpperCase()}${L.slice(10)}`;p[O]=t[L];return}let D=L.charAt(2).toLowerCase()+L.slice(3),P;D.indexOf("zr:")===0&&(P=!0,D=D.substring(3));let I;D.substring(D.length-4)==="Once"&&(I=!0,D=D.substring(0,D.length-4)),y.set({event:D,zr:P,once:I},t[L])});function C(){if(!i.value)return;const L=a.value=RC(i.value,v.value,d.value);e.group&&(L.group=e.group),y.forEach((I,{zr:O,once:U,event:G})=>{if(!I)return;const q=O?L.getZr():L;if(U){const $=I;let Y=!1;I=(...W)=>{Y||(Y=!0,$(...W),q.off(G,I))}}q.on(G,I)});function D(){L&&!L.isDisposed()&&L.resize()}function P(){const{option:I}=e;if(f.value){I&&b(L,I,void 0,!0);return}I&&b(L,I)}l.value?et.nextTick(()=>{D(),P()}):P()}const M=(L,D,P)=>{if(!e.manualUpdate){Ef("`setOption` is only available when `manual-update` is `true`.");return}const I=typeof D=="boolean"?{notMerge:D,lazyUpdate:P}:D;a.value&&b(a.value,L,I??void 0,!0)};function E(){a.value&&(a.value.dispose(),a.value=void 0),w=void 0}et.watch(()=>e.option,L=>{if(!L){w=void 0;return}if(f.value){Ef("`option` prop changes are ignored when `manual-update` is `true`.");return}a.value&&b(a.value,L)},{deep:!0}),et.watch([f,d],()=>{E(),C()},{deep:!0}),et.watch(v,L=>{var D;(D=a.value)==null||D.setTheme(L||{})},{deep:!0}),et.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const A=pA(a);return _A(a,h,c),gA(a,l,i),et.onMounted(()=>{C()}),et.onBeforeUnmount(()=>{IA&&i.value?i.value.__dispose=E:E()}),r({setOption:M,root:i,chart:a,...A}),(()=>et.h(Af,{...g.value,...p,ref:i,class:["echarts",g.value.class]},_()))}}),BA=kA;exports.Axis=Qy;exports.AxisBuilder=or;exports.AxisModelCommonMixin=Wy;exports.BoundingRect=J;exports.ChartView=Dr;exports.Circle=wa;exports.ComponentModel=at;exports.ComponentView=ye;exports.CompoundPath=Pg;exports.CoordinateSystemManager=Vs;exports.DISPLAY_STATES=Fl;exports.DataDiffer=xy;exports.Displayable=_i;exports.Eventful=Me;exports.Group=jt;exports.IntervalScale=Sn;exports.Line=lr;exports.LinearGradient=Og;exports.MULTIPLE_REFERRING=Q1;exports.Model=yt;exports.Path=gt;exports.PathProxy=xn;exports.Point=ht;exports.Polygon=As;exports.Polyline=Ls;exports.Rect=bt;exports.Ring=Es;exports.SINGLE_REFERRING=re;exports.SPECIAL_STATES=ur;exports.Sector=ba;exports.SeriesData=Dy;exports.SeriesModel=Lr;exports.TRANSFORMABLE_PROPS=ai;exports.ZRImage=Or;exports.ZRText=Ft;exports.__extends=B;exports.alignScaleTicks=v_;exports.animateLabelValue=hw;exports.applyTransform=Os;exports.asc=L1;exports.assert=z;exports.axisDefault=a_;exports.bind=vt;exports.box=ri;exports.calculateTextPosition=Gf;exports.clear=Jo;exports.clipRectByRect=Yg;exports.clone=rt;exports.cloneValue=ji;exports.compressBatches=q1;exports.computeLabelGeometry=t_;exports.convertToColorString=fi;exports.createBoxLayoutReference=Da;exports.createClipPath=pM;exports.createFloat32Array=Do;exports.createGridClipPath=e_;exports.createHashMap=tt;exports.createLegacyDataSelectAction=FT;exports.createOrUpdate=Ch;exports.createOrUpdatePatternFromDecal=is;exports.createPolarClipPath=r_;exports.createProgressiveLayout=bD;exports.createRenderPlanner=Th;exports.createSeriesData=lD;exports.createSymbol=Ws;exports.createTextConfig=$l;exports.createTextStyle=fr;exports.createTooltipMarkup=ci;exports.cubicAt=Bt;exports.cubicRootAt=Vf;exports.curry=Et;exports.defaultEmphasis=Ol;exports.defaults=ft;exports.deprecateLog=Xe;exports.dist=bp;exports.each=T;exports.enableHoverEmphasis=Yo;exports.ensureScaleRawExtentInfo=Fy;exports.enterEmphasis=Wo;exports.eqNaN=yn;exports.extend=R;exports.fastLerp=j0;exports.filter=Dt;exports.find=_p;exports.findEventDispatcher=jn;exports.getAnimationConfig=Ng;exports.getCircleLayout=Yw;exports.getCustomSeries=mC;exports.getDefaultInterpolatedLabel=dM;exports.getDefaultLabel=vM;exports.getECData=ct;exports.getFont=jg;exports.getItemVisualFromData=Zm;exports.getLabelStatesModels=sw;exports.getLayoutOnAxis=_D;exports.getLayoutParams=Si;exports.getLayoutRect=$e;exports.getPercentSeats=P1;exports.getPixelPrecision=Xp;exports.getShapeClass=Bg;exports.getTransform=Gg;exports.getVisualFromData=qm;exports.graphic=qg;exports.hasOwn=pe;exports.indexOf=ot;exports.inheritDefaultOption=em;exports.initProps=Ta;exports.install=cM;exports.install$1=nA;exports.install$2=tA;exports.install$3=vA;exports.install$4=RE;exports.interpolateRawValues=rg;exports.isArray=k;exports.isArrayLike=Ut;exports.isDimensionStacked=Ih;exports.isFunction=K;exports.isMiddleOrRightButtonOnMouseUpDown=D0;exports.isNumber=mt;exports.isObject=V;exports.isString=F;exports.keys=pt;exports.labelInner=ks;exports.layout=wD;exports.leaveEmphasis=Uo;exports.lerp=c0;exports.lerp$1=J0;exports.linearMap=Ll;exports.makeInner=_t;exports.makePath=Is;exports.makeSeriesEncodeForNameBased=tb;exports.map=Z;exports.merge=st;exports.mergePath=zg;exports.mixin=De;exports.modifyAlpha=t1;exports.modifyHSL=Ro;exports.noop=Wt;exports.normalizeArcAngles=fg;exports.normalizeCssArray=Ca;exports.normalizeSymbolOffset=Km;exports.normalizeSymbolSize=QT;exports.normalizeToArray=Rt;exports.parse=me;exports.parsePercent=St;exports.parsePercent$1=Er;exports.platformApi=Ye;exports.positionElement=Xw;exports.prepareSeriesDataSchema=My;exports.queryDataIndex=mi;exports.queryReferringComponents=yi;exports.reduce=sr;exports.reformIntervals=N1;exports.registerAction=Tn;exports.registerLayOutOnCoordSysUsage=Fw;exports.removeElement=rh;exports.removeElementWithFadeOut=kg;exports.retrieve=_n;exports.retrieve2=X;exports.retrieve3=nr;exports.retrieveVisualColorForTooltipMarker=Fm;exports.retrieveZInfo=sh;exports.round=Pt;exports.saveOldStyle=KS;exports.setAsHighDownDispatcher=jf;exports.setCommonECData=pg;exports.setDefaultStateProxy=xg;exports.setItemVisualFromData=BT;exports.setLabelStyle=Qg;exports.setLabelValueAnimation=fw;exports.setStatesFlag=nS;exports.setStatesStylesFromModel=yS;exports.shiftLayoutOnXY=oM;exports.sliderMove=lE;exports.src_default=BA;exports.stop=kf;exports.stringify=wn;exports.symbolBuildProxies=es;exports.throttle=Gs;exports.throwError=Gt;exports.toggleHoverEmphasis=pS;exports.tokens=H;exports.transformDirection=Wg;exports.traverseElements=ih;exports.unionAxisExtentFromData=GD;exports.updateProps=xi;exports.use=Pr;exports.warn=Kt;