@migor/agentia-harness 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/assets/discover.d.ts +5 -0
  2. package/dist/assets/discover.d.ts.map +1 -1
  3. package/dist/assets/discover.js +17 -7
  4. package/dist/assets/discover.js.map +1 -1
  5. package/dist/assets/stub-template.d.ts +24 -0
  6. package/dist/assets/stub-template.d.ts.map +1 -0
  7. package/dist/assets/stub-template.js +58 -0
  8. package/dist/assets/stub-template.js.map +1 -0
  9. package/dist/assets/tool-stub.d.ts +103 -0
  10. package/dist/assets/tool-stub.d.ts.map +1 -0
  11. package/dist/assets/tool-stub.js +234 -0
  12. package/dist/assets/tool-stub.js.map +1 -0
  13. package/dist/assets/types.d.ts +12 -0
  14. package/dist/assets/types.d.ts.map +1 -1
  15. package/dist/assets/types.js.map +1 -1
  16. package/dist/cli/commands/rsi-inspect.js +1 -1
  17. package/dist/cli/commands/rsi-inspect.js.map +1 -1
  18. package/dist/cli/commands/rsi-manual.js +1 -1
  19. package/dist/cli/commands/rsi-manual.js.map +1 -1
  20. package/dist/cli/commands/rsi-watch.js +1 -1
  21. package/dist/cli/commands/rsi-watch.js.map +1 -1
  22. package/dist/cli/commands/rsi.js +1 -1
  23. package/dist/cli/commands/rsi.js.map +1 -1
  24. package/dist/cli/commands/run.d.ts +10 -1
  25. package/dist/cli/commands/run.d.ts.map +1 -1
  26. package/dist/cli/commands/run.js +39 -3
  27. package/dist/cli/commands/run.js.map +1 -1
  28. package/dist/cli/context.d.ts.map +1 -1
  29. package/dist/cli/context.js +9 -1
  30. package/dist/cli/context.js.map +1 -1
  31. package/dist/cli/init.d.ts.map +1 -1
  32. package/dist/cli/init.js +5 -1
  33. package/dist/cli/init.js.map +1 -1
  34. package/dist/cli/remote-stage.d.ts.map +1 -1
  35. package/dist/cli/remote-stage.js +3 -0
  36. package/dist/cli/remote-stage.js.map +1 -1
  37. package/dist/cli.js +10 -0
  38. package/dist/cli.js.map +1 -1
  39. package/dist/config.d.ts +1 -0
  40. package/dist/config.d.ts.map +1 -1
  41. package/dist/config.js +2 -0
  42. package/dist/config.js.map +1 -1
  43. package/dist/evals/check.d.ts +17 -2
  44. package/dist/evals/check.d.ts.map +1 -1
  45. package/dist/evals/check.js +65 -1
  46. package/dist/evals/check.js.map +1 -1
  47. package/dist/evals/gate.d.ts +10 -0
  48. package/dist/evals/gate.d.ts.map +1 -1
  49. package/dist/evals/gate.js +30 -3
  50. package/dist/evals/gate.js.map +1 -1
  51. package/dist/evals/judge-gate.d.ts +31 -0
  52. package/dist/evals/judge-gate.d.ts.map +1 -0
  53. package/dist/evals/judge-gate.js +77 -0
  54. package/dist/evals/judge-gate.js.map +1 -0
  55. package/dist/evals/judge.d.ts +130 -0
  56. package/dist/evals/judge.d.ts.map +1 -0
  57. package/dist/evals/judge.js +251 -0
  58. package/dist/evals/judge.js.map +1 -0
  59. package/dist/evals/load-fields.d.ts +89 -0
  60. package/dist/evals/load-fields.d.ts.map +1 -0
  61. package/dist/evals/load-fields.js +215 -0
  62. package/dist/evals/load-fields.js.map +1 -0
  63. package/dist/evals/load.d.ts +1 -9
  64. package/dist/evals/load.d.ts.map +1 -1
  65. package/dist/evals/load.js +56 -109
  66. package/dist/evals/load.js.map +1 -1
  67. package/dist/evals/memory-seed.d.ts +35 -0
  68. package/dist/evals/memory-seed.d.ts.map +1 -0
  69. package/dist/evals/memory-seed.js +54 -0
  70. package/dist/evals/memory-seed.js.map +1 -0
  71. package/dist/evals/report-types.d.ts +204 -0
  72. package/dist/evals/report-types.d.ts.map +1 -0
  73. package/dist/evals/report-types.js +11 -0
  74. package/dist/evals/report-types.js.map +1 -0
  75. package/dist/evals/report.d.ts.map +1 -1
  76. package/dist/evals/report.js +32 -0
  77. package/dist/evals/report.js.map +1 -1
  78. package/dist/evals/run-one.d.ts +18 -1
  79. package/dist/evals/run-one.d.ts.map +1 -1
  80. package/dist/evals/run-one.js +84 -4
  81. package/dist/evals/run-one.js.map +1 -1
  82. package/dist/evals/run.d.ts +12 -2
  83. package/dist/evals/run.d.ts.map +1 -1
  84. package/dist/evals/run.js +71 -2
  85. package/dist/evals/run.js.map +1 -1
  86. package/dist/evals/sample.d.ts.map +1 -1
  87. package/dist/evals/sample.js +33 -2
  88. package/dist/evals/sample.js.map +1 -1
  89. package/dist/evals/types.d.ts +130 -147
  90. package/dist/evals/types.d.ts.map +1 -1
  91. package/dist/evals/types.js +21 -2
  92. package/dist/evals/types.js.map +1 -1
  93. package/dist/evals/variants.d.ts +37 -0
  94. package/dist/evals/variants.d.ts.map +1 -0
  95. package/dist/evals/variants.js +186 -0
  96. package/dist/evals/variants.js.map +1 -0
  97. package/dist/rsi/accept.d.ts.map +1 -1
  98. package/dist/rsi/accept.js +10 -2
  99. package/dist/rsi/accept.js.map +1 -1
  100. package/dist/rsi/commit.js +3 -3
  101. package/dist/rsi/commit.js.map +1 -1
  102. package/dist/rsi/holdout.d.ts.map +1 -1
  103. package/dist/rsi/holdout.js +2 -5
  104. package/dist/rsi/holdout.js.map +1 -1
  105. package/dist/rsi/regress.d.ts.map +1 -1
  106. package/dist/rsi/regress.js +2 -5
  107. package/dist/rsi/regress.js.map +1 -1
  108. package/dist/rsi/verify.d.ts.map +1 -1
  109. package/dist/rsi/verify.js +2 -5
  110. package/dist/rsi/verify.js.map +1 -1
  111. package/dist/run/app.d.ts +11 -0
  112. package/dist/run/app.d.ts.map +1 -1
  113. package/dist/run/app.js +1 -1
  114. package/dist/run/app.js.map +1 -1
  115. package/dist/run/case-runner.d.ts +17 -0
  116. package/dist/run/case-runner.d.ts.map +1 -1
  117. package/dist/run/remote-metadata.d.ts +14 -0
  118. package/dist/run/remote-metadata.d.ts.map +1 -1
  119. package/dist/run/remote-metadata.js +9 -1
  120. package/dist/run/remote-metadata.js.map +1 -1
  121. package/dist/run/remote.d.ts +7 -0
  122. package/dist/run/remote.d.ts.map +1 -1
  123. package/dist/run/remote.js +21 -0
  124. package/dist/run/remote.js.map +1 -1
  125. package/dist/run/runner.d.ts +25 -0
  126. package/dist/run/runner.d.ts.map +1 -1
  127. package/dist/run/runner.js +36 -1
  128. package/dist/run/runner.js.map +1 -1
  129. package/dist/run/stub-tool.d.ts +17 -0
  130. package/dist/run/stub-tool.d.ts.map +1 -0
  131. package/dist/run/stub-tool.js +50 -0
  132. package/dist/run/stub-tool.js.map +1 -0
  133. package/dist/run/stub-world.d.ts +52 -0
  134. package/dist/run/stub-world.d.ts.map +1 -0
  135. package/dist/run/stub-world.js +115 -0
  136. package/dist/run/stub-world.js.map +1 -0
  137. package/dist/run/tools.d.ts +12 -2
  138. package/dist/run/tools.d.ts.map +1 -1
  139. package/dist/run/tools.js +27 -3
  140. package/dist/run/tools.js.map +1 -1
  141. package/dist/server/asset-echarts.d.ts +11 -0
  142. package/dist/server/asset-echarts.d.ts.map +1 -0
  143. package/dist/server/asset-echarts.js +78 -0
  144. package/dist/server/asset-echarts.js.map +1 -0
  145. package/dist/server/assets/echarts.min.js +18 -0
  146. package/dist/server/page-chart.d.ts +21 -0
  147. package/dist/server/page-chart.d.ts.map +1 -0
  148. package/dist/server/page-chart.js +159 -0
  149. package/dist/server/page-chart.js.map +1 -0
  150. package/dist/server/page-core.d.ts +1 -1
  151. package/dist/server/page-core.d.ts.map +1 -1
  152. package/dist/server/page-core.js +17 -3
  153. package/dist/server/page-core.js.map +1 -1
  154. package/dist/server/page-style.d.ts +8 -2
  155. package/dist/server/page-style.d.ts.map +1 -1
  156. package/dist/server/page-style.js +217 -132
  157. package/dist/server/page-style.js.map +1 -1
  158. package/dist/server/page-views-cases.d.ts +18 -0
  159. package/dist/server/page-views-cases.d.ts.map +1 -0
  160. package/dist/server/page-views-cases.js +180 -0
  161. package/dist/server/page-views-cases.js.map +1 -0
  162. package/dist/server/page-views.d.ts +1 -1
  163. package/dist/server/page-views.d.ts.map +1 -1
  164. package/dist/server/page-views.js +45 -125
  165. package/dist/server/page-views.js.map +1 -1
  166. package/dist/server/page-views2.d.ts +1 -1
  167. package/dist/server/page-views2.d.ts.map +1 -1
  168. package/dist/server/page-views2.js +4 -4
  169. package/dist/server/page-views3.d.ts +1 -1
  170. package/dist/server/page-views3.d.ts.map +1 -1
  171. package/dist/server/page-views3.js +4 -2
  172. package/dist/server/page-views3.js.map +1 -1
  173. package/dist/server/page-widgets.d.ts +1 -1
  174. package/dist/server/page-widgets.d.ts.map +1 -1
  175. package/dist/server/page-widgets.js +86 -54
  176. package/dist/server/page-widgets.js.map +1 -1
  177. package/dist/server/page.d.ts +7 -5
  178. package/dist/server/page.d.ts.map +1 -1
  179. package/dist/server/page.js +31 -13
  180. package/dist/server/page.js.map +1 -1
  181. package/dist/server/read/workspace.d.ts.map +1 -1
  182. package/dist/server/read/workspace.js +5 -1
  183. package/dist/server/read/workspace.js.map +1 -1
  184. package/dist/server/routes.d.ts.map +1 -1
  185. package/dist/server/routes.js +8 -0
  186. package/dist/server/routes.js.map +1 -1
  187. package/dist/server/web.d.ts.map +1 -1
  188. package/dist/server/web.js +9 -0
  189. package/dist/server/web.js.map +1 -1
  190. package/dist/util/kv.d.ts +29 -0
  191. package/dist/util/kv.d.ts.map +1 -0
  192. package/dist/util/kv.js +46 -0
  193. package/dist/util/kv.js.map +1 -0
  194. package/package.json +6 -3
@@ -0,0 +1,18 @@
1
+ /*! ECharts 5 (subset: line + tooltip + markLine) | Apache-2.0 | https://echarts.apache.org */
2
+ (()=>{var DS=Object.defineProperty;var me=(r,t)=>{for(var e in t)DS(r,e,{get:t[e],enumerable:!0})};var Rp={};me(Rp,{Axis:()=>Tu,ChartView:()=>re,ComponentModel:()=>lt,ComponentView:()=>Gt,List:()=>lu,Model:()=>ct,PRIORITY:()=>Jc,SeriesModel:()=>Ue,color:()=>Ss,connect:()=>FD,dataTool:()=>YD,dependencies:()=>xD,disConnect:()=>UD,disconnect:()=>t0,dispose:()=>BD,env:()=>G,extendChartView:()=>sA,extendComponentModel:()=>nA,extendComponentView:()=>aA,extendSeriesModel:()=>oA,format:()=>Ip,getCoordinateSystemDimensions:()=>HD,getInstanceByDom:()=>rp,getInstanceById:()=>VD,getMap:()=>WD,graphic:()=>Pp,helper:()=>bp,init:()=>zD,innerDrawElementOnCanvas:()=>ha,matrix:()=>mr,number:()=>Ep,parseGeoJSON:()=>bu,parseGeoJson:()=>bu,registerAction:()=>ri,registerCoordinateSystem:()=>op,registerLayout:()=>sp,registerLoading:()=>au,registerLocale:()=>ml,registerMap:()=>up,registerPostInit:()=>np,registerPostUpdate:()=>ap,registerPreprocessor:()=>iu,registerProcessor:()=>nu,registerTheme:()=>ip,registerTransform:()=>fp,registerUpdateLifecycle:()=>Ro,registerVisual:()=>Mr,setCanvasCreator:()=>GD,setPlatformAPI:()=>$o,throttle:()=>To,time:()=>Lp,use:()=>fr,util:()=>Op,vector:()=>tr,version:()=>_D,zrUtil:()=>j,zrender:()=>Os});var Bu=function(r,t){return Bu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Bu(r,t)};function L(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Os={};me(Os,{dispose:()=>uw,disposeAll:()=>fw,getElementSSRData:()=>cw,getInstance:()=>hw,init:()=>Is,registerPainter:()=>zf,registerSSRDataGetter:()=>Ff,version:()=>pw});var MS=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),AS=(function(){function r(){this.browser=new MS,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!="undefined"}return r})(),Ir=new AS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ir.wxa=!0,Ir.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Ir.worker=!0:!Ir.hasGlobalWindow||"Deno"in window?(Ir.node=!0,Ir.svgSupported=!0):ES(navigator.userAgent,Ir);function ES(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var G=Ir;var j={};me(j,{HashMap:()=>mv,RADIAN_TO_DEGREE:()=>es,assert:()=>Nt,bind:()=>nt,clone:()=>q,concatArray:()=>Yu,createCanvas:()=>VS,createHashMap:()=>V,createObject:()=>cr,curry:()=>Tt,defaults:()=>Y,disableUserSelect:()=>xa,each:()=>S,eqNaN:()=>mi,extend:()=>O,filter:()=>mt,find:()=>HS,guid:()=>ma,hasOwn:()=>be,indexOf:()=>$,inherits:()=>ga,isArray:()=>R,isArrayLike:()=>Dt,isBuiltInObject:()=>Vu,isDom:()=>vi,isFunction:()=>B,isGradientObject:()=>hr,isImagePatternObject:()=>Wu,isNumber:()=>rt,isObject:()=>U,isPrimitive:()=>xn,isRegExp:()=>WS,isString:()=>k,isStringSafe:()=>wn,isTypedArray:()=>wt,keys:()=>tt,logError:()=>di,map:()=>N,merge:()=>et,mergeAll:()=>BS,mixin:()=>Rt,noop:()=>Et,normalizeCssArray:()=>_a,reduce:()=>Wt,retrieve:()=>Or,retrieve2:()=>Z,retrieve3:()=>Rr,setAsPrimitive:()=>gi,slice:()=>ya,trim:()=>kt});var Qo=12,LS="sans-serif",We=Qo+"px "+LS,PS=20,IS=100,OS="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function RS(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-PS)/IS;t[i]=n}return t}var NS=RS(OS),$t={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=$t.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||We),r.measureText(e);e=e||"",i=i||We;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Qo,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=NS[e[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}};function $o(r){for(var t in $t)r[t]&&($t[t]=r[t])}var cv=Wt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),pv=Wt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Sn=Object.prototype.toString,ts=Array.prototype,kS=ts.forEach,zS=ts.filter,Hu=ts.slice,FS=ts.map,hv=function(){}.constructor,Jo=hv?hv.prototype:null,Gu="__proto__",US=2311;function ma(){return US++}function di(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,r)}function q(r){if(r==null||typeof r!="object")return r;var t=r,e=Sn.call(r);if(e==="[object Array]"){if(!xn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=q(r[i])}}else if(pv[e]){if(!xn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!cv[e]&&!xn(r)&&!vi(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Gu&&(t[o]=q(r[o]))}return t}function et(r,t,e){if(!U(t)||!U(r))return e?q(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Gu){var n=r[i],a=t[i];U(a)&&U(n)&&!R(a)&&!R(n)&&!vi(a)&&!vi(n)&&!Vu(a)&&!Vu(n)&&!xn(a)&&!xn(n)?et(n,a,e):(e||!(i in r))&&(r[i]=q(t[i]))}return r}function BS(r,t){for(var e=r[0],i=1,n=r.length;i<n;i++)e=et(e,r[i],t);return e}function O(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Gu&&(r[e]=t[e]);return r}function Y(r,t,e){for(var i=tt(t),n=0,a=i.length;n<a;n++){var o=i[n];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var VS=$t.createCanvas;function $(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function ga(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Rt(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else Y(r,t,e)}function Dt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function S(r,t,e){if(r&&t)if(r.forEach&&r.forEach===kS)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function N(r,t,e){if(!r)return[];if(!t)return ya(r);if(r.map&&r.map===FS)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function Wt(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function mt(r,t,e){if(!r)return[];if(!t)return ya(r);if(r.filter&&r.filter===zS)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function HS(r,t,e){if(r&&t){for(var i=0,n=r.length;i<n;i++)if(t.call(e,r[i],i,r))return r[i]}}function tt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function GS(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Hu.call(arguments)))}}var nt=Jo&&B(Jo.bind)?Jo.call.bind(Jo.bind):GS;function Tt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Hu.call(arguments)))}}function R(r){return Array.isArray?Array.isArray(r):Sn.call(r)==="[object Array]"}function B(r){return typeof r=="function"}function k(r){return typeof r=="string"}function wn(r){return Sn.call(r)==="[object String]"}function rt(r){return typeof r=="number"}function U(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Vu(r){return!!cv[Sn.call(r)]}function wt(r){return!!pv[Sn.call(r)]}function vi(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function hr(r){return r.colorStops!=null}function Wu(r){return r.image!=null}function WS(r){return Sn.call(r)==="[object RegExp]"}function mi(r){return r!==r}function Or(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function Z(r,t){return r!=null?r:t}function Rr(r,t,e){return r!=null?r:t!=null?t:e}function ya(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Hu.apply(r,t)}function _a(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Nt(r,t){if(!r)throw new Error(t)}function kt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vv="__ec_primitive__";function gi(r){r[vv]=!0}function xn(r){return r[vv]}var YS=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return tt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),dv=typeof Map=="function";function XS(){return dv?new Map:new YS}var mv=(function(){function r(t){var e=R(t);this.data=XS();var i=this;t instanceof r?t.each(n):t&&S(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return dv?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function V(r){return new mv(r)}function Yu(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function cr(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&O(e,t),e}function xa(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function be(r,t){return r.hasOwnProperty(t)}function Et(){}var es=180/Math.PI;var tr={};me(tr,{add:()=>rs,applyTransform:()=>Mt,clone:()=>Xu,copy:()=>qS,create:()=>pr,dist:()=>Qu,distSquare:()=>Nr,distance:()=>wa,distanceSquare:()=>gv,div:()=>JS,dot:()=>t1,len:()=>Zu,lenSquare:()=>Ku,length:()=>jS,lengthSquare:()=>QS,lerp:()=>r1,max:()=>Ce,min:()=>Te,mul:()=>$S,negate:()=>e1,normalize:()=>ju,scale:()=>Sa,scaleAndAdd:()=>KS,set:()=>ZS,sub:()=>qu});function pr(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function qS(r,t){return r[0]=t[0],r[1]=t[1],r}function Xu(r){return[r[0],r[1]]}function ZS(r,t,e){return r[0]=t,r[1]=e,r}function rs(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function KS(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function qu(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Zu(r){return Math.sqrt(Ku(r))}var jS=Zu;function Ku(r){return r[0]*r[0]+r[1]*r[1]}var QS=Ku;function $S(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function JS(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function t1(r,t){return r[0]*t[0]+r[1]*t[1]}function Sa(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function ju(r,t){var e=Zu(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function wa(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Qu=wa;function gv(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Nr=gv;function e1(r,t){return r[0]=-t[0],r[1]=-t[1],r}function r1(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function Mt(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Te(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ce(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var bn=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),i1=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new bn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new bn(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new bn(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new bn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new bn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new bn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),yv=i1;var n1=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var l={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var f=n[u];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,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),Ht=n1;var a1=Math.log(2);function $u(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/a1);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,p=0,c=0;p<s;p++){var v=1<<p;v&n||(h+=(c%2?-1:1)*r[e][p]*$u(r,t-1,f,u,n|v,a),c++)}return a[o]=h,h}function Ju(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=$u(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*$u(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var _v="___zrEVENTSAVED",tf=[];function xv(r,t,e,i,n){return is(tf,t,i,n,!0)&&is(r,e,tf[0],tf[1])}function is(r,t,e,i,n){if(t.getBoundingClientRect&&G.domSupported&&!ef(t)){var a=t[_v]||(t[_v]={}),o=o1(t,a),s=s1(o,a,n);if(s)return s(r,e,i),!0}return!1}function o1(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function s1(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,p=f.left,c=f.top;o.push(p,c),l=l&&a&&p===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?Ju(s,o):Ju(o,s))}function ef(r){return r.nodeName.toUpperCase()==="CANVAS"}var l1=/([&<>"'])/g,u1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Pt(r){return r==null?"":(r+"").replace(l1,function(t,e){return u1[e]})}var f1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rf=[],h1=G.browser.firefox&&+G.browser.version.split(".")[0]<39;function ns(r,t,e,i){return e=e||{},i?Sv(r,t,e):h1&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Sv(r,t,e),e}function Sv(r,t,e){if(G.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(ef(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(is(rf,r,i,n)){e.zrX=rf[0],e.zrY=rf[1];return}}e.zrX=e.zrY=0}function as(r){return r||window.event}function ie(r,t,e){if(t=as(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&ns(r,o,t,e)}else{ns(r,t,t,e);var a=c1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&f1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function c1(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function wv(r,t,e,i){r.addEventListener(t,e,i)}function bv(r,t,e,i){r.removeEventListener(t,e,i)}var os=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};var Cv=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=ns(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in af)if(af.hasOwnProperty(e)){var i=af[e](this._track,t);if(i)return i}},r})();function Tv(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function p1(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var af={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Tv(i)/Tv(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=p1(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};var mr={};me(mr,{clone:()=>v1,copy:()=>ss,create:()=>Ye,identity:()=>vr,invert:()=>dr,mul:()=>De,rotate:()=>yi,scale:()=>of,translate:()=>Tn});function Ye(){return[1,0,0,1,0,0]}function vr(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function ss(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function De(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Tn(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function yi(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function of(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function dr(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}function v1(r){var t=Ye();return ss(t,r),t}var d1=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r})(),ut=d1;var ls=Math.min,us=Math.max,_i=new ut,xi=new ut,Si=new ut,wi=new ut,ba=new ut,Ta=new ut,m1=(function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=ls(t.x,this.x),i=ls(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=us(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=us(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=Ye();return Tn(a,a,[-e.x,-e.y]),of(a,a,[i,n]),Tn(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,p=!(a<l||u<n||s<f||h<o);if(e){var c=1/0,v=0,g=Math.abs(a-l),d=Math.abs(u-n),m=Math.abs(s-f),y=Math.abs(h-o),_=Math.min(g,d),x=Math.min(m,y);a<l||u<n?_>v&&(v=_,g<d?ut.set(Ta,-g,0):ut.set(Ta,d,0)):_<c&&(c=_,g<d?ut.set(ba,g,0):ut.set(ba,-d,0)),s<f||h<o?x>v&&(v=x,m<y?ut.set(Ta,0,-m):ut.set(Ta,0,y)):_<c&&(c=_,m<y?ut.set(ba,0,m):ut.set(ba,0,-y))}return e&&ut.copy(e,p?ba:Ta),p},r.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.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}_i.x=Si.x=e.x,_i.y=wi.y=e.y,xi.x=wi.x=e.x+e.width,xi.y=Si.y=e.y+e.height,_i.transform(i),wi.transform(i),xi.transform(i),Si.transform(i),t.x=ls(_i.x,xi.x,Si.x,wi.x),t.y=ls(_i.y,xi.y,Si.y,wi.y);var l=us(_i.x,xi.x,Si.x,wi.x),u=us(_i.y,xi.y,Si.y,wi.y);t.width=l-t.x,t.height=u-t.y},r})(),X=m1;var Mv="silent";function g1(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:y1}}function y1(){os(this.event)}var _1=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Ht),Ca=(function(){function r(t,e){this.x=t,this.y=e}return r})(),x1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],sf=new X(0,0,0,0),Av=(function(r){L(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Ca(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new _1,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new yv(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(S(x1,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Ev(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ca(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ca(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=g1(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Ca(e,i);if(Dv(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new X(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var p=a[h];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(sf.copy(p.getBoundingRect()),p.transform&&sf.applyTransform(p.transform),sf.intersect(f)&&s.push(p))}if(s.length)for(var c=4,v=Math.PI/12,g=Math.PI*2,d=0;d<u;d+=c)for(var m=0;m<g;m+=v){var y=e+d*Math.cos(m),_=i+d*Math.sin(m);if(Dv(s,o,y,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new Cv);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Ca;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Ht);S(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Av.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=Ev(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Qu(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function S1(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Mv:!0}return!1}function Dv(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=S1(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Mv)){t.target=o;break}}}function Ev(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Lv=Av;var Ov=32,Da=7;function w1(r){for(var t=0;r>=Ov;)t|=r&1,r>>=1;return r+t}function Pv(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;b1(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function b1(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function Iv(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function lf(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l<s&&a(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function uf(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;l<s&&a(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function T1(r,t){var e=Da,i,n,a=0,o=[];i=[],n=[];function s(c,v){i[a]=c,n[a]=v,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var v=i[c],g=n[c],d=i[c+1],m=n[c+1];n[c]=g+m,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var y=uf(r[d],r,v,g,0,t);v+=y,g-=y,g!==0&&(m=lf(r[v+g-1],r,d,m,m-1,t),m!==0&&(g<=m?h(v,g,d,m):p(v,g,d,m)))}function h(c,v,g,d){var m=0;for(m=0;m<v;m++)o[m]=r[c+m];var y=0,_=g,x=c;if(r[x++]=r[_++],--d===0){for(m=0;m<v;m++)r[x+m]=o[y+m];return}if(v===1){for(m=0;m<d;m++)r[x+m]=r[_+m];r[x+d]=o[y];return}for(var b=e,w,T,C;;){w=0,T=0,C=!1;do if(t(r[_],o[y])<0){if(r[x++]=r[_++],T++,w=0,--d===0){C=!0;break}}else if(r[x++]=o[y++],w++,T=0,--v===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=uf(r[_],o,y,v,0,t),w!==0){for(m=0;m<w;m++)r[x+m]=o[y+m];if(x+=w,y+=w,v-=w,v<=1){C=!0;break}}if(r[x++]=r[_++],--d===0){C=!0;break}if(T=lf(o[y],r,_,d,0,t),T!==0){for(m=0;m<T;m++)r[x+m]=r[_+m];if(x+=T,_+=T,d-=T,d===0){C=!0;break}}if(r[x++]=o[y++],--v===1){C=!0;break}b--}while(w>=Da||T>=Da);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),v===1){for(m=0;m<d;m++)r[x+m]=r[_+m];r[x+d]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)r[x+m]=o[y+m]}}function p(c,v,g,d){var m=0;for(m=0;m<d;m++)o[m]=r[g+m];var y=c+v-1,_=d-1,x=g+d-1,b=0,w=0;if(r[x--]=r[y--],--v===0){for(b=x-(d-1),m=0;m<d;m++)r[b+m]=o[m];return}if(d===1){for(x-=v,y-=v,w=x+1,b=y+1,m=v-1;m>=0;m--)r[w+m]=r[b+m];r[x]=o[_];return}for(var T=e;;){var C=0,D=0,A=!1;do if(t(o[_],r[y])<0){if(r[x--]=r[y--],C++,D=0,--v===0){A=!0;break}}else if(r[x--]=o[_--],D++,C=0,--d===1){A=!0;break}while((C|D)<T);if(A)break;do{if(C=v-uf(o[_],r,c,v,v-1,t),C!==0){for(x-=C,y-=C,v-=C,w=x+1,b=y+1,m=C-1;m>=0;m--)r[w+m]=r[b+m];if(v===0){A=!0;break}}if(r[x--]=o[_--],--d===1){A=!0;break}if(D=d-lf(r[y],o,0,d,d-1,t),D!==0){for(x-=D,_-=D,d-=D,w=x+1,b=_+1,m=0;m<D;m++)r[w+m]=o[b+m];if(d<=1){A=!0;break}}if(r[x--]=r[y--],--v===0){A=!0;break}T--}while(C>=Da||D>=Da);if(A)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),d===1){for(x-=v,y-=v,w=x+1,b=y+1,m=v-1;m>=0;m--)r[w+m]=r[b+m];r[x]=o[_]}else{if(d===0)throw new Error;for(b=x-(d-1),m=0;m<d;m++)r[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function bi(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<Ov){a=Pv(r,e,i,t),Iv(r,e,i,e+a,t);return}var o=T1(r,t),s=w1(n);do{if(a=Pv(r,e,i,t),a<s){var l=n;l>s&&(l=s),Iv(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var Lt=1,Ti=2,kr=4;var Rv=!1;function ff(){Rv||(Rv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Nv(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var C1=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Nv}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,bi(i,Nv)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e?e=e.slice():e=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Lt),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(ff(),f.z=0),isNaN(f.z2)&&(ff(),f.z2=0),isNaN(f.zlevel)&&(ff(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,e,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=$(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),kv=C1;var zv;zv=G.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Ma=zv;var fs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-fs.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?fs.bounceIn(r*2)*.5:fs.bounceOut(r*2-1)*.5+.5}},hs=fs;var cs=Math.pow,Fr=Math.sqrt,vs=1e-8,Uv=1e-4,Fv=Fr(3),ps=1/3,er=pr(),Me=pr(),Cn=pr();function zr(r){return r>-vs&&r<vs}function Bv(r){return r>vs||r<-vs}function _t(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function hf(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Ci(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,p=l*l-3*s*u,c=0;if(zr(f)&&zr(h))if(zr(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[c++]=v)}else{var g=h*h-4*f*p;if(zr(g)){var d=h/f,v=-s/o+d,m=-d/2;v>=0&&v<=1&&(a[c++]=v),m>=0&&m<=1&&(a[c++]=m)}else if(g>0){var y=Fr(g),_=f*s+1.5*o*(-h+y),x=f*s+1.5*o*(-h-y);_<0?_=-cs(-_,ps):_=cs(_,ps),x<0?x=-cs(-x,ps):x=cs(x,ps);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[c++]=v)}else{var b=(2*f*s-3*o*h)/(2*Fr(f*f*f)),w=Math.acos(b)/3,T=Fr(f),C=Math.cos(w),v=(-s-2*T*C)/(3*o),m=(-s+T*(C+Fv*Math.sin(w)))/(3*o),D=(-s+T*(C-Fv*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[c++]=v),m>=0&&m<=1&&(a[c++]=m),D>=0&&D<=1&&(a[c++]=D)}}return c}function ds(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(zr(o)){if(Bv(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(zr(f))n[0]=-a/(2*o);else if(f>0){var h=Fr(f),u=(-a+h)/(2*o),p=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Dn(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function Vv(r,t,e,i,n,a,o,s,l,u,f){var h,p=.005,c=1/0,v,g,d,m;er[0]=l,er[1]=u;for(var y=0;y<1;y+=.05)Me[0]=_t(r,e,n,o,y),Me[1]=_t(t,i,a,s,y),d=Nr(er,Me),d<c&&(h=y,c=d);c=1/0;for(var _=0;_<32&&!(p<Uv);_++)v=h-p,g=h+p,Me[0]=_t(r,e,n,o,v),Me[1]=_t(t,i,a,s,v),d=Nr(Me,er),v>=0&&d<c?(h=v,c=d):(Cn[0]=_t(r,e,n,o,g),Cn[1]=_t(t,i,a,s,g),m=Nr(Cn,er),g<=1&&m<c?(h=g,c=m):p*=.5);return f&&(f[0]=_t(r,e,n,o,h),f[1]=_t(t,i,a,s,h)),Fr(c)}function Hv(r,t,e,i,n,a,o,s,l){for(var u=r,f=t,h=0,p=1/l,c=1;c<=l;c++){var v=c*p,g=_t(r,e,n,o,v),d=_t(t,i,a,s,v),m=g-u,y=d-f;h+=Math.sqrt(m*m+y*y),u=g,f=d}return h}function It(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function cf(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function Gv(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(zr(a)){if(Bv(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(zr(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Fr(f),u=(-o+h)/(2*a),p=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function ms(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Mn(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function Wv(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;er[0]=o,er[1]=s;for(var p=0;p<1;p+=.05){Me[0]=It(r,e,n,p),Me[1]=It(t,i,a,p);var c=Nr(er,Me);c<h&&(u=p,h=c)}h=1/0;for(var v=0;v<32&&!(f<Uv);v++){var g=u-f,d=u+f;Me[0]=It(r,e,n,g),Me[1]=It(t,i,a,g);var c=Nr(Me,er);if(g>=0&&c<h)u=g,h=c;else{Cn[0]=It(r,e,n,d),Cn[1]=It(t,i,a,d);var m=Nr(Cn,er);d<=1&&m<h?(u=d,h=m):f*=.5}}return l&&(l[0]=It(r,e,n,u),l[1]=It(t,i,a,u)),Fr(h)}function Yv(r,t,e,i,n,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var p=h*f,c=It(r,e,n,p),v=It(t,i,a,p),g=c-s,d=v-l;u+=Math.sqrt(g*g+d*d),s=c,l=v}return u}var D1=/cubic-bezier\(([0-9,\.e ]+)\)/;function gs(r){var t=r&&D1.exec(r);if(t){var e=t[1].split(","),i=+kt(e[0]),n=+kt(e[1]),a=+kt(e[2]),o=+kt(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ci(0,i,a,1,l,s)&&_t(0,n,o,1,s[0])}}}var M1=(function(){function r(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||Et,this.ondestroy=t.ondestroy||Et,this.onrestart=t.onrestart||Et,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=B(t)?t:hs[t]||gs(t)},r})(),Xv=M1;var Ss={};me(Ss,{fastLerp:()=>Qv,fastMapToColor:()=>O1,lerp:()=>_s,lift:()=>yf,liftColor:()=>xs,lum:()=>Mi,mapToColor:()=>R1,modifyAlpha:()=>k1,modifyHSL:()=>N1,parse:()=>ne,random:()=>z1,stringify:()=>Br,toHex:()=>I1});var qv=(function(){function r(t){this.value=t}return r})();var A1=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new qv(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})();var E1=(function(){function r(t){this._list=new A1,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new qv(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),gr=E1;var Zv={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 Xe(r){return r=Math.round(r),r<0?0:r>255?255:r}function L1(r){return r=Math.round(r),r<0?0:r>360?360:r}function Aa(r){return r<0?0:r>1?1:r}function vf(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Xe(parseFloat(t)/100*255):Xe(parseInt(t,10))}function Di(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Aa(parseFloat(t)/100):Aa(parseFloat(t))}function df(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ur(r,t,e){return r+(t-r)*e}function Ae(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function mf(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var jv=new gr(20),ys=null;function An(r,t){ys&&mf(ys,t),ys=jv.put(r,ys||t.slice())}function ne(r,t){if(r){t=t||[];var e=jv.get(r);if(e)return mf(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Zv)return mf(t,Zv[i]),An(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Ae(t,0,0,0,1);return}return Ae(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),An(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ae(t,0,0,0,1);return}return Ae(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),An(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ae(t,+u[0],+u[1],+u[2],1):Ae(t,0,0,0,1);f=Di(u.pop());case"rgb":if(u.length>=3)return Ae(t,vf(u[0]),vf(u[1]),vf(u[2]),u.length===3?f:Di(u[3])),An(r,t),t;Ae(t,0,0,0,1);return;case"hsla":if(u.length!==4){Ae(t,0,0,0,1);return}return u[3]=Di(u[3]),gf(u,t),An(r,t),t;case"hsl":if(u.length!==3){Ae(t,0,0,0,1);return}return gf(u,t),An(r,t),t;default:return}}Ae(t,0,0,0,1)}}function gf(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=Di(r[1]),n=Di(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Ae(t,Xe(df(o,a,e+1/3)*255),Xe(df(o,a,e)*255),Xe(df(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function P1(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,p=((a-i)/6+o/2)/o;t===a?l=p-h:e===a?l=1/3+f-p:i===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function yf(r,t){var e=ne(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Br(e,e.length===4?"rgba":"rgb")}}function I1(r){var t=ne(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Qv(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return e[0]=Xe(Ur(o[0],s[0],l)),e[1]=Xe(Ur(o[1],s[1],l)),e[2]=Xe(Ur(o[2],s[2],l)),e[3]=Aa(Ur(o[3],s[3],l)),e}}var O1=Qv;function _s(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=ne(t[n]),s=ne(t[a]),l=i-n,u=Br([Xe(Ur(o[0],s[0],l)),Xe(Ur(o[1],s[1],l)),Xe(Ur(o[2],s[2],l)),Aa(Ur(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var R1=_s;function N1(r,t,e,i){var n=ne(r);if(r)return n=P1(n),t!=null&&(n[0]=L1(t)),e!=null&&(n[1]=Di(e)),i!=null&&(n[2]=Di(i)),Br(gf(n),"rgba")}function k1(r,t){var e=ne(r);if(e&&t!=null)return e[3]=Aa(t),Br(e,"rgba")}function Br(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Mi(r,t){var e=ne(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function z1(){return Br([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Kv=new gr(100);function xs(r){if(k(r)){var t=Kv.get(r);return t||(t=yf(r,-.1),Kv.put(r,t)),t}else if(hr(r)){var e=O({},r);return e.colorStops=N(r.colorStops,function(i){return{offset:i.offset,color:yf(i.color,-.1)}}),e}return r}function $v(r){return r.type==="linear"}function Jv(r){return r.type==="radial"}var ML=(function(){return G.hasGlobalWindow&&B(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var xf=Array.prototype.slice;function yr(r,t,e){return(t-r)*e+r}function _f(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=yr(t[a],e[a],i);return r}function F1(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=yr(t[o][s],e[o][s],i)}return r}function ws(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function td(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function U1(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function B1(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(e===1?n[l]:xf.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function Pa(r){if(Dt(r)){var t=r.length;if(Dt(r[0])){for(var e=[],i=0;i<t;i++)e.push(xf.call(r[i]));return e}return xf.call(r)}return r}function Cs(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function V1(r){return Dt(r&&r[0])?2:1}var bs=0,Ds=1,id=2,La=3,Sf=4,wf=5,ed=6;function rd(r){return r===Sf||r===wf}function Ts(r){return r===Ds||r===id}var Ea=[0,0,0,0],H1=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=ed,l=e;if(Dt(e)){var u=V1(e);s=u,(u===1&&!rt(e[0])||u===2&&!rt(e[0][0]))&&(o=!0)}else if(rt(e)&&!mi(e))s=bs;else if(k(e))if(!isNaN(+e))s=bs;else{var f=ne(e);f&&(l=f,s=La)}else if(hr(e)){var h=O({},l);h.colorStops=N(e.colorStops,function(c){return{offset:c.offset,color:ne(c.color)}}),$v(e)?s=Sf:Jv(e)&&(s=wf),l=h}a===0?this.valType=s:(s!==this.valType||s===ed)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:l,rawValue:e,percent:0};return i&&(p.easing=i,p.easingFunc=B(i)?i:hs[i]||gs(i)),n.push(p),p},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Ts(n),u=rd(n),f=0;f<a;f++){var h=i[f],p=h.value,c=o.value;h.percent=h.time/t,s||(l&&f!==a-1?B1(p,c,n):u&&U1(p.colorStops,c.colorStops))}if(!s&&n!==wf&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var v=i[0].value,f=0;f<a;f++)n===bs?i[f].additiveValue=i[f].value-v:n===La?i[f].additiveValue=ws([],i[f].value,v,-1):Ts(n)&&(i[f].additiveValue=n===Ds?ws([],i[f].value,v,-1):td([],i[f].value,v,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===La,f,h=this._lastFr,p=Math.min,c,v;if(s===1)c=v=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var g=p(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=e);f--);f=p(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=p(f-1,s-2)}v=o[f+1],c=o[f]}if(c&&v){this._lastFr=f,this._lastFrP=e;var d=v.percent-c.percent,m=d===0?1:p((e-c.percent)/d,1);v.easingFunc&&(m=v.easingFunc(m));var y=i?this._additiveValue:u?Ea:t[l];if((Ts(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?c.rawValue:v.rawValue;else if(Ts(a))a===Ds?_f(y,c[n],v[n],m):F1(y,c[n],v[n],m);else if(rd(a)){var _=c[n],x=v[n],b=a===Sf;t[l]={type:b?"linear":"radial",x:yr(_.x,x.x,m),y:yr(_.y,x.y,m),colorStops:N(_.colorStops,function(T,C){var D=x.colorStops[C];return{offset:yr(T.offset,D.offset,m),color:Cs(_f([],T.color,D.color,m))}}),global:x.global},b?(t[l].x2=yr(_.x2,x.x2,m),t[l].y2=yr(_.y2,x.y2,m)):t[l].r=yr(_.r,x.r,m)}else if(u)_f(y,c[n],v[n],m),i||(t[l]=Cs(y));else{var w=yr(c[n],v[n],m);i?this._additiveValue=w:t[l]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===bs?t[i]=t[i]+n:e===La?(ne(t[i],Ea),ws(Ea,Ea,n,1),t[i]=Cs(Ea)):e===Ds?ws(t[i],t[i],n,1):e===id&&td(t[i],t[i],n,1)},r})(),G1=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){di("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,tt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new H1(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,p=h[h.length-1];u=p&&p.value,f.valType===La&&u&&(u=Cs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Pa(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Pa(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Xv({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var v=e._additiveAnimators;if(v){for(var g=!1,d=0;d<v.length;d++)if(v[d]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(e._target,c);var m=e._onframeCbs;if(m)for(var d=0;d<m.length;d++)m[d](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return N(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[a]=Pa(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||tt(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),Ia=G1;function Ai(){return new Date().getTime()}var W1=(function(r){L(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Ai()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Ma(i),!e._paused&&e.update())}Ma(i)},t.prototype.start=function(){this._running||(this._time=Ai(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ai(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ai()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new Ia(e,i.loop);return this.addAnimator(n),n},t})(Ht),nd=W1;var Y1=300,bf=G.domSupported,Tf=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=N(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),ad={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},od=!1;function Mf(r){var t=r.pointerType;return t==="pen"||t==="touch"}function X1(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Cf(r){r&&(r.zrByTouch=!0)}function q1(r,t){return ie(r.dom,new Z1(r,t),!0)}function ld(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var Z1=(function(){function r(t,e){this.stopPropagation=Et,this.stopImmediatePropagation=Et,this.preventDefault=Et,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),qe={mousedown:function(r){r=ie(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ie(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ie(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ie(this.dom,r);var t=r.toElement||r.relatedTarget;ld(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){od=!0,r=ie(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){od||(r=ie(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ie(this.dom,r),Cf(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),qe.mousemove.call(this,r),qe.mousedown.call(this,r)},touchmove:function(r){r=ie(this.dom,r),Cf(r),this.handler.processGesture(r,"change"),qe.mousemove.call(this,r)},touchend:function(r){r=ie(this.dom,r),Cf(r),this.handler.processGesture(r,"end"),qe.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Y1&&qe.click.call(this,r)},pointerdown:function(r){qe.mousedown.call(this,r)},pointermove:function(r){Mf(r)||qe.mousemove.call(this,r)},pointerup:function(r){qe.mouseup.call(this,r)},pointerout:function(r){Mf(r)||qe.mouseout.call(this,r)}};S(["click","dblclick","contextmenu"],function(r){qe[r]=function(t){t=ie(this.dom,t),this.trigger(r,t)}});var Af={pointermove:function(r){Mf(r)||Af.mousemove.call(this,r)},pointerup:function(r){Af.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function K1(r,t){var e=t.domHandlers;G.pointerEventsSupported?S(Tf.pointer,function(i){Ms(t,i,function(n){e[i].call(r,n)})}):(G.touchEventsSupported&&S(Tf.touch,function(i){Ms(t,i,function(n){e[i].call(r,n),X1(t)})}),S(Tf.mouse,function(i){Ms(t,i,function(n){n=as(n),t.touching||e[i].call(r,n)})}))}function j1(r,t){G.pointerEventsSupported?S(ad.pointer,e):G.touchEventsSupported||S(ad.mouse,e);function e(i){function n(a){a=as(a),ld(r,a.target)||(a=q1(r,a),t.domHandlers[i].call(r,a))}Ms(t,i,n,{capture:!0})}}function Ms(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,wv(r.domTarget,t,e,i)}function Df(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&bv(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var sd=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),Q1=(function(r){L(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new sd(e,qe),bf&&(n._globalHandlerScope=new sd(document,Af)),K1(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Df(this._localHandlerScope),bf&&Df(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,bf&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?j1(this,i):Df(i)}},t})(Ht),ud=Q1;var fd=1;G.hasGlobalWindow&&(fd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ei=fd,Oa=.4,Ra="#333",Na="#ccc",hd="#eee";var cd=vr,pd=5e-5;function Li(r){return r>pd||r<-pd}var Pi=[],En=[],Ef=Ye(),Lf=Math.abs,$1=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Li(this.rotation)||Li(this.x)||Li(this.y)||Li(this.scaleX-1)||Li(this.scaleY-1)||Li(this.skewX)||Li(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(cd(i),this.invTransform=null);return}i=i||Ye(),e?this.getLocalTransform(i):cd(i),t&&(e?De(i,t,i):ss(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Pi);var i=Pi[0]<0?-1:1,n=Pi[1]<0?-1:1,a=((Pi[0]-i)*e+i)/Pi[0]||0,o=((Pi[1]-n)*e+n)/Pi[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ye(),dr(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ye(),De(En,t.invTransform,e),e=En);var i=this.originX,n=this.originY;(i||n)&&(Ef[4]=i,Ef[5]=n,De(En,e,Ef),En[4]-=i,En[5]-=n,e=En),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&Mt(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&Mt(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Lf(t[0]-1)>1e-10&&Lf(t[3]-1)>1e-10?Math.sqrt(Lf(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){J1(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,p=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var v=i+s,g=n+l;e[4]=-v*a-p*g*o,e[5]=-g*o-c*v*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=p*o,u&&yi(e,e,u),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=(function(){var t=r.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})(),r})(),Ii=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function J1(r,t){for(var e=0;e<Ii.length;e++){var i=Ii[e];r[i]=t[i]}}var ka=$1;var vd={};function ae(r,t){t=t||We;var e=vd[t];e||(e=vd[t]=new gr(500));var i=e.get(r);return i==null&&(i=$t.measureText(r,t).width,e.put(r,i)),i}function dd(r,t,e,i){var n=ae(r,t),a=As(t),o=Pn(0,n,e),s=Oi(0,a,i),l=new X(o,s,n,a);return l}function Ln(r,t,e,i){var n=((r||"")+"").split(`
3
+ `),a=n.length;if(a===1)return dd(n[0],t,e,i);for(var o=new X(0,0,0,0),s=0;s<n.length;s++){var l=dd(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function Pn(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Oi(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function As(r){return ae("\u56FD",r)}function rr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Es(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=rr(i[0],e.width),u+=rr(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Pf="__zr_normal__",If=Ii.concat(["ignore"]),tw=Wt(Ii,function(r,t){return r[t]=!0,r},{ignore:!1}),In={},ew=new X(0,0,0,0),Nf=(function(){function r(t){this.id=ma(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var f=ew;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(In,i,f):Es(In,i,f),a.x=In.x,a.y=In.y,o=In.align,s=In.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var p=void 0,c=void 0;h==="center"?(p=f.width*.5,c=f.height*.5):(p=rr(h[0],f.width),c=rr(h[1],f.height)),u=!0,a.originX=-a.x+p+(n?0:f.x),a.originY=-a.y+c+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var v=i.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=i.insideFill,y=i.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=i.outsideFill,y=i.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==d.fill||y!==d.stroke||_!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(l=!0,d.fill=m,d.stroke=y,d.autoStroke=_,d.align=o,d.verticalAlign=s,e.setDefaultTextStyle(d)),e.__dirty|=Lt,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Na:Ra},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&ne(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Br(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},O(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(U(t))for(var i=t,n=tt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Pf)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,If)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Pf,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Pf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!($(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){di("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,i,f),p&&p.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Lt),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],p=!!(h&&h.hoverLayer||i);p&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),v=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,d=this._textGuide;g&&g.useStates(t,e,p),d&&d.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Lt)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=$(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=$(n,t),o=$(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];O(e,a),a.textConfig&&(i=i||{},O(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=O({},n?this.textConfig:i.textConfig),O(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<If.length;f++){var h=If[f],p=a&&tw[h];e&&e[h]!=null?p?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(p?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],v=c.targetName;c.getLoop()||c.__changeFinalValue(v?(e||i)[v]:e||i)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ka,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Lt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new Ia(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=$(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){Of(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){Of(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=Of(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Lt;var e={};function i(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(h,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();Rt(Nf,Ht);Rt(Nf,ka);function Of(r,t,e,i,n){e=e||{};var a=[];gd(r,"",r,t,e,i,a,n);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(v,g){e.during(g)});for(var p=0;p<a.length;p++){var c=a[p];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function Rf(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function rw(r){return Dt(r[0])}function iw(r,t,e){if(Dt(t[e]))if(Dt(r[e])||(r[e]=[]),wt(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),Rf(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(rw(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Rf(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Rf(a,n,o);a.length=n.length}else r[e]=t[e]}function nw(r,t){return r===t||Dt(r)&&Dt(t)&&aw(r,t)}function aw(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function gd(r,t,e,i,n,a,o,s){for(var l=tt(i),u=n.duration,f=n.delay,h=n.additive,p=n.setToFinal,c=!U(a),v=r.animators,g=[],d=0;d<l.length;d++){var m=l[d],y=i[m];if(y!=null&&e[m]!=null&&(c||a[m]))if(U(y)&&!Dt(y)&&!hr(y)){if(t){s||(e[m]=y,r.updateDuringAnimation(t));continue}gd(r,m,e[m],y,n,a&&a[m],o,s)}else g.push(m);else s||(e[m]=y,r.updateDuringAnimation(t),g.push(m))}var _=g.length;if(!h&&_)for(var x=0;x<v.length;x++){var b=v[x];if(b.targetName===t){var w=b.stopTracks(g);if(w){var T=$(v,b);v.splice(T,1)}}}if(n.force||(g=mt(g,function(M){return!nw(i[M],e[M])}),_=g.length),_>0||n.force&&!o.length){var C=void 0,D=void 0,A=void 0;if(s){D={},p&&(C={});for(var x=0;x<_;x++){var m=g[x];D[m]=e[m],p?C[m]=i[m]:e[m]=i[m]}}else if(p){A={};for(var x=0;x<_;x++){var m=g[x];A[m]=Pa(e[m]),iw(e,i,m)}}var b=new Ia(e,!1,!1,h?mt(v,function(E){return E.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),p&&C&&b.whenWithKeys(0,C,g),A&&b.whenWithKeys(0,A,g),b.whenWithKeys(u==null?500:u,s?D:i,g).delay(f||0),r.addAnimator(b,t),o.push(b)}}var Ls=Nf;var yd=(function(r){L(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=$(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=$(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new X(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(X.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t})(Ls);yd.prototype.type="group";var dt=yd;var Ps={},Ri={};function ow(r){delete Ri[r]}function sw(r){if(!r)return!1;if(typeof r=="string")return Mi(r,1)<Oa;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Mi(t[n].color,1);return e/=i,e<Oa}return!1}var lw=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new kv,o=i.renderer||"canvas";Ps[o]||(o=tt(Ps)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Ps[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!G.node&&!G.worker&&!l?new ud(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?G.touchEventsSupported:!!f,p=44,c;h&&(c=Z(i.pointerSize,p)),this.handler=new Lv(a,s,u,s.root,c),this.animation=new nd({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=sw(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=Ai();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Ai();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof dt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,ow(this.id))},r})();function Is(r,t){var e=new lw(ma(),r,t);return Ri[e.id]=e,e}function uw(r){r.dispose()}function fw(){for(var r in Ri)Ri.hasOwnProperty(r)&&Ri[r].dispose();Ri={}}function hw(r){return Ri[r]}function zf(r,t){Ps[r]=t}var kf;function cw(r){if(typeof kf=="function")return kf(r)}function Ff(r){kf=r}var pw="5.6.1";var _d=1e-4,xd=20;function vw(r){return r.replace(/^\s+|\s+$/g,"")}function za(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function Ot(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return k(r)?vw(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ht(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),xd),r=(+r).toFixed(t),e?r:+r}function Sd(r){return r.sort(function(t,e){return t-e}),r}function Jt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Uf(r)}function Uf(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function Rs(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function wd(r,t,e){if(!r[t])return 0;var i=dw(r,e);return i[t]||0}function dw(r,t){var e=Wt(r,function(c,v){return c+(isNaN(v)?0:v)},0);if(e===0)return[];for(var i=Math.pow(10,t),n=N(r,function(c){return(isNaN(c)?0:c)/e*i*100}),a=i*100,o=N(n,function(c){return Math.floor(c)}),s=Wt(o,function(c,v){return c+v},0),l=N(n,function(c,v){return c-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return N(o,function(c){return c/i})}function bd(r,t){var e=Math.max(Jt(r),Jt(t)),i=r+t;return e>xd?i:ht(i,e)}var Td=9007199254740991;function Fa(r){var t=Math.PI*2;return(r%t+t)%t}function Ni(r){return r>-_d&&r<_d}var mw=/^(?:(\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 zt(r){if(r instanceof Date)return r;if(k(r)){var t=mw.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}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(r==null)return new Date(NaN);return new Date(Math.round(r))}function Ns(r){return Math.pow(10,On(r))}function On(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Rn(r,t){var e=On(r),i=Math.pow(10,e),n=r/i,a;return t?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function Cd(r,t){var e=(r.length-1)*t+1,i=Math.floor(e),n=+r[i-1],a=e-i;return a?n+a*(r[i]-n):n}function Dd(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i<r.length;){for(var n=r[i].interval,a=r[i].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,a[o]=o?1:1-e),t=n[o],e=a[o];n[0]===n[1]&&a[0]*a[1]!==1?r.splice(i,1):i++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ee(r){var t=parseFloat(r);return t==r&&(t!==0||!k(r)||r.indexOf("x")<=0)?t:NaN}function Ua(r){return!isNaN(Ee(r))}function ks(){return Math.round(Math.random()*9)}function Md(r,t){return t===0?r:Md(t,r%t)}function Bf(r,t){return r==null?t:t==null?r:r*t/Md(r,t)}function Ft(r){throw new Error(r)}function Ad(r,t,e){return(t-r)*e+r}var Ed="series\0",gw="\0_ec_\0";function xt(r){return r instanceof Array?r:r==null?[]:[r]}function Vf(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Hf=["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 _r(r){return U(r)&&!R(r)&&!(r instanceof Date)?r.value:r}function Ld(r){return U(r)&&!(r instanceof Array)}function Pd(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=V();S(t,function(l,u){if(!U(l)){t[u]=null;return}});var s=yw(r,o,e);return(i||n)&&_w(s,r,o,t),i&&xw(s,t),i||n?Sw(s,t,n):a&&ww(s,t),bw(s),s}function yw(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||Nn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function _w(r,t,e,i){S(i,function(n,a){if(!(!n||n.id==null)){var o=Ba(n.id),s=e.get(o);if(s!=null){var l=r[s];Nt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],i[a]=null}}})}function xw(r,t){S(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!Nn(e)&&!Nn(a)&&Id("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function Sw(r,t,e){S(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||Nn(n.existing)||n.existing&&i.id!=null&&!Id("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function ww(r,t){S(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function bw(r){var t=V();S(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),S(r,function(e){var i=e.newOption;Nt(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),S(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(U(a)){if(o.name=a.name!=null?Ba(a.name):n?n.name:Ed+i,n)o.id=Ba(n.id);else if(a.id!=null)o.id=Ba(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Id(r,t,e){var i=ge(t[r],null),n=ge(e[r],null);return i!=null&&n!=null&&i===n}function Ba(r){return ge(r,"")}function ge(r,t){return r==null?t:k(r)?r:rt(r)||wn(r)?r+"":t}function Fs(r){var t=r.name;return!!(t&&t.indexOf(Ed))}function Nn(r){return r&&r.id!=null&&Ba(r.id).indexOf(gw)===0}function Od(r,t,e){S(r,function(i){var n=i.newOption;U(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=Tw(t,n,i.existing,e))})}function Tw(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function Le(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return R(t.dataIndex)?N(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return R(t.name)?N(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function at(){var r="__ec_inner_"+Cw++;return function(t){return t[r]||(t[r]={})}}var Cw=ks();function Us(r,t,e){var i=Va(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var h=Vr(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Va(r,t){var e;if(k(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=V(),a={},o=!1;return S(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&$(t.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var Yt={useDefault:!0,enableAll:!1,enableNone:!1};function Vr(r,t,e,i){i=i||Yt;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(Nt(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Nt(i.enableAll,'`"all"` is not a valid value on index option.'),n=a=o=null),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s)}function Gf(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function Rd(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function Nd(r){return r==="auto"?G.domSupported?"html":"richText":r||"html"}function Wf(r,t,e,i,n){var a=t==null||t==="auto";if(i==null)return i;if(rt(i)){var o=Ad(e||0,i,n);return ht(o,a?Math.max(Jt(e||0),Jt(i)):t)}else{if(k(i))return n<1?e:i;for(var s=[],l=e,u=i,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var p=r.getDimensionInfo(h);if(p&&p.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,v=u[h],o=Ad(c,v,n);s[h]=ht(o,a?Math.max(Jt(c),Jt(v)):t)}}return s}}var Dw=".",zi="___EC__COMPONENT__CONTAINER___",kd="___EC__EXTENDED_CLASS___";function oe(r){var t={main:"",sub:""};if(r){var e=r.split(Dw);t.main=e[0]||"",t.sub=e[1]||""}return t}function Mw(r){Nt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function zd(r){return!!(r&&r[kd])}function kn(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return Aw(i)?n=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(e.$constructor||i).apply(this,arguments)},ga(n,this)),O(n.prototype,e),n[kd]=!0,n.extend=this.extend,n.superCall=Lw,n.superApply=Pw,n.superClass=i,n}}function Aw(r){return B(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Bs(r,t){r.extend=t.extend}var Ew=Math.round(Math.random()*10);function Fd(r){var t=["__\0is_clz",Ew++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function Lw(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function Pw(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Hr(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){Mw(n),i.prototype.type=n;var a=oe(n);if(!a.sub)t[a.main]=i;else if(a.sub!==zi){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[zi]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=oe(i),a=[],o=t[n.main];return o&&o[zi]?S(o,function(s,l){l!==zi&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=oe(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return S(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=oe(i),a=t[n.main];return a&&a[zi]};function e(i){var n=t[i.main];return(!n||!n[zi])&&(n=t[i.main]={},n[zi]=!0),n}}function ir(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&$(n,l)>=0||a&&$(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Iw=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Ow=ir(Iw),Ud=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Ow(this,t,e)},r})();var Xf=new gr(50);function Vd(r){if(typeof r=="string"){var t=Xf.get(r);return t&&t.image}else return r}function qf(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Xf.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!zn(t)&&a.pending.push(o)):(t=$t.loadImage(r,Bd,Bd),t.__zrImageSrc=r,Xf.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Bd(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function zn(r){return r&&r.width&&r.height}var Zf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function jf(r,t,e,i,n){var a={};return Gd(a,r,t,e,i,n),a.text}function Gd(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
4
+ `);a=Wd(e,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Yd(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
5
+ `),r.isTruncated=s}function Wd(r,t,e,i){i=i||{};var n=O({},i);n.font=t,e=Z(e,"..."),n.maxIterations=Z(i.maxIterations,2);var a=n.minChar=Z(i.minChar,0);n.cnCharWidth=ae("\u56FD",t);var o=n.ascCharWidth=ae("a",t);n.placeholder=Z(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=ae(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function Yd(r,t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i){r.textLine="",r.isTruncated=!1;return}var o=ae(t,n);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?Nw(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=ae(t,n)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function Nw(r,t,e,i){for(var n=0,a=0,o=r.length;a<o&&n<t;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?e:i}return a}function Xd(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,n=t.font,a=e==="truncate",o=As(n),s=Z(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=!1,h=t.width,p;h!=null&&(e==="break"||e==="breakAll")?p=r?Zd(r,t.font,h,e==="breakAll",0).lines:[]:p=r?r.split(`
6
+ `):[];var c=p.length*s,v=Z(t.height,c);if(c>v&&u){var g=Math.floor(v/s);f=f||p.length>g,p=p.slice(0,g)}if(r&&a&&h!=null)for(var d=Wd(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m={},y=0;y<p.length;y++)Yd(m,p[y],d),p[y]=m.textLine,f=f||m.isTruncated;for(var _=v,x=0,y=0;y<p.length;y++)x=Math.max(ae(p[y],n),x);h==null&&(h=x);var b=x;return i&&(_+=i[0]+i[2],b+=i[1]+i[3],h+=i[1]+i[3]),l&&(b=h),{lines:p,height:v,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:c,width:h,isTruncated:f}}var kw=(function(){function r(){}return r})(),Hd=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),zw=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function qd(r,t){var e=new zw;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=Zf.lastIndex=0,l;(l=Zf.exec(r))!=null;){var u=l.index;u>s&&Kf(e,r.substring(s,u),t,o),Kf(e,l[2],t,o,l[1]),s=Zf.lastIndex}s<r.length&&Kf(e,r.substring(s,r.length),t,o);var f=[],h=0,p=0,c=t.padding,v=a==="truncate",g=t.lineOverflow==="truncate",d={};function m(it,vt,pt){it.width=vt,it.lineHeight=pt,h+=pt,p=Math.max(p,vt)}t:for(var y=0;y<e.lines.length;y++){for(var _=e.lines[y],x=0,b=0,w=0;w<_.tokens.length;w++){var T=_.tokens[w],C=T.styleName&&t.rich[T.styleName]||{},D=T.textPadding=C.padding,A=D?D[1]+D[3]:0,M=T.font=C.font||t.font;T.contentHeight=As(M);var E=Z(C.height,T.contentHeight);if(T.innerHeight=E,D&&(E+=D[0]+D[2]),T.height=E,T.lineHeight=Rr(C.lineHeight,t.lineHeight,E),T.align=C&&C.align||t.align,T.verticalAlign=C&&C.verticalAlign||"middle",g&&n!=null&&h+T.lineHeight>n){var I=e.lines.length;w>0?(_.tokens=_.tokens.slice(0,w),m(_,b,x),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y),e.isTruncated=e.isTruncated||e.lines.length<I;break t}var P=C.width,z=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")T.percentWidth=P,f.push(T),T.contentWidth=ae(T.text,M);else{if(z){var F=C.backgroundColor,K=F&&F.image;K&&(K=Vd(K),zn(K)&&(T.width=Math.max(T.width,K.width*E/K.height)))}var H=v&&i!=null?i-b:null;H!=null&&H<T.width?!z||H<A?(T.text="",T.width=T.contentWidth=0):(Gd(d,T.text,H-A,M,t.ellipsis,{minChar:t.truncateMinChar}),T.text=d.text,e.isTruncated=e.isTruncated||d.isTruncated,T.width=T.contentWidth=ae(T.text,M)):T.contentWidth=ae(T.text,M)}T.width+=A,b+=T.width,C&&(x=Math.max(x,T.lineHeight))}m(_,b,x)}e.outerWidth=e.width=Z(i,p),e.outerHeight=e.height=Z(n,h),e.contentHeight=h,e.contentWidth=p,c&&(e.outerWidth+=c[1]+c[3],e.outerHeight+=c[0]+c[2]);for(var y=0;y<f.length;y++){var T=f[y],W=T.percentWidth;T.width=parseInt(W,10)/100*e.width}return e}function Kf(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(i){var p=o.padding,c=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=rr(o.width,i.width)+c;s.length>0&&v+i.accumWidth>i.width&&(f=t.split(`
7
+ `),u=!0),i.accumWidth=v}else{var g=Zd(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,h=g.linesWidths,f=g.lines}}else f=t.split(`
8
+ `);for(var d=0;d<f.length;d++){var m=f[d],y=new kw;if(y.styleName=n,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=h?h[d]:ae(m,l),!d&&!u){var _=(s[s.length-1]||(s[0]=new Hd)).tokens,x=_.length;x===1&&_[0].isLineHolder?_[0]=y:(m||!x||a)&&_.push(y)}else s.push(new Hd([y]))}}function Fw(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Uw=Wt(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Bw(r){return Fw(r)?!!Uw[r]:!0}function Zd(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var p=r.charAt(h);if(p===`
9
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=ae(p,t),v=i?!1:!Bw(p);if(a.length?f+c>e:n+f+c>e){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=p,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=p,f=c)):v?(a.push(l),o.push(u),l=p,u=c):(a.push(p),o.push(c));continue}f+=c,v?(l+=p,u+=c):(l&&(s+=l,l="",u=0),s+=p)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var Jf="__zr_style_"+Math.round(Math.random()*10),nr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Fi={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};nr[Jf]=!0;var Kd=["z","z2","invisible"],Vw=["invisible"],Hw=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=tt(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[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(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Gw(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new X(0,0,0,0)),i?X.applyTransform(e,n,i):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:O(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Ti,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ti)},t.prototype.styleUpdated=function(){this.__dirty&=~Ti},t.prototype.createStyle=function(e){return cr(nr,e)},t.prototype.useStyle=function(e){e[Jf]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Jf]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Kd)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=tt(f),p=0;p<h.length;p++){var c=h[p];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var v=tt(u),p=0;p<v.length;p++){var c=v[p];this.style[c]=this.style[c]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?Vw:Kd,p=0;p<g.length;p++){var c=g[p];i&&i[c]!=null?this[c]=i[c]:l&&n[c]!=null&&(this[c]=n[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return O(e,i),e},t.prototype.getAnimationStyleProps=function(){return Fi},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Lt|Ti})(),t})(Ls),Qf=new X(0,0,0,0),$f=new X(0,0,0,0);function Gw(r,t,e){return Qf.copy(r.getBoundingRect()),r.transform&&Qf.applyTransform(r.transform),$f.width=t,$f.height=e,!Qf.intersect($f)}var ar=Hw;var Pe=Math.min,Ie=Math.max,th=Math.sin,eh=Math.cos,Ui=Math.PI*2,Vs=pr(),Hs=pr(),Gs=pr();function rh(r,t,e,i,n,a){n[0]=Pe(r,e),n[1]=Pe(t,i),a[0]=Ie(r,e),a[1]=Ie(t,i)}var jd=[],Qd=[];function $d(r,t,e,i,n,a,o,s,l,u){var f=ds,h=_t,p=f(r,e,n,o,jd);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<p;c++){var v=h(r,e,n,o,jd[c]);l[0]=Pe(v,l[0]),u[0]=Ie(v,u[0])}p=f(t,i,a,s,Qd);for(var c=0;c<p;c++){var g=h(t,i,a,s,Qd[c]);l[1]=Pe(g,l[1]),u[1]=Ie(g,u[1])}l[0]=Pe(r,l[0]),u[0]=Ie(r,u[0]),l[0]=Pe(o,l[0]),u[0]=Ie(o,u[0]),l[1]=Pe(t,l[1]),u[1]=Ie(t,u[1]),l[1]=Pe(s,l[1]),u[1]=Ie(s,u[1])}function Jd(r,t,e,i,n,a,o,s){var l=ms,u=It,f=Ie(Pe(l(r,e,n),1),0),h=Ie(Pe(l(t,i,a),1),0),p=u(r,e,n,f),c=u(t,i,a,h);o[0]=Pe(r,n,p),o[1]=Pe(t,a,c),s[0]=Ie(r,n,p),s[1]=Ie(t,a,c)}function tm(r,t,e,i,n,a,o,s,l){var u=Te,f=Ce,h=Math.abs(n-a);if(h%Ui<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(Vs[0]=eh(n)*e+r,Vs[1]=th(n)*i+t,Hs[0]=eh(a)*e+r,Hs[1]=th(a)*i+t,u(s,Vs,Hs),f(l,Vs,Hs),n=n%Ui,n<0&&(n=n+Ui),a=a%Ui,a<0&&(a=a+Ui),n>a&&!o?a+=Ui:n<a&&o&&(n+=Ui),o){var p=a;a=n,n=p}for(var c=0;c<a;c+=Math.PI/2)c>n&&(Gs[0]=eh(c)*e+r,Gs[1]=th(c)*i+t,u(s,Gs,s),f(l,Gs,l))}var ft={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Bi=[],Vi=[],or=[],Gr=[],sr=[],lr=[],ih=Math.min,nh=Math.max,Hi=Math.cos,Gi=Math.sin,xr=Math.abs,sh=Math.PI,Wr=sh*2,ah=typeof Float32Array!="undefined",Ha=[];function oh(r){var t=Math.round(r/sh*1e8)/1e8;return t%2*sh}function Ww(r,t){var e=oh(r[0]);e<0&&(e+=Wr);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=Wr?n=e+Wr:t&&e-n>=Wr?n=e-Wr:!t&&e>n?n=e+(Wr-oh(e-n)):t&&e<n&&(n=e-(Wr-oh(n-e))),r[0]=e,r[1]=n}var Yw=(function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=xr(i/Ei/t)||0,this._uy=xr(i/Ei/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ft.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=xr(t-this._xi),n=xr(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(ft.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(ft.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(ft.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Ha[0]=n,Ha[1]=a,Ww(Ha,o),n=Ha[0],a=Ha[1];var s=a-n;return this.addData(ft.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Hi(a)*i+t,this._yi=Gi(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(ft.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ft.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&ah&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();ah&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ah&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){or[0]=or[1]=sr[0]=sr[1]=Number.MAX_VALUE,Gr[0]=Gr[1]=lr[0]=lr[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],i=t[o+1],n=e,a=i),s){case ft.M:e=n=t[o++],i=a=t[o++],sr[0]=n,sr[1]=a,lr[0]=n,lr[1]=a;break;case ft.L:rh(e,i,t[o],t[o+1],sr,lr),e=t[o++],i=t[o++];break;case ft.C:$d(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],sr,lr),e=t[o++],i=t[o++];break;case ft.Q:Jd(e,i,t[o++],t[o++],t[o],t[o+1],sr,lr),e=t[o++],i=t[o++];break;case ft.A:var u=t[o++],f=t[o++],h=t[o++],p=t[o++],c=t[o++],v=t[o++]+c;o+=1;var g=!t[o++];l&&(n=Hi(c)*h+u,a=Gi(c)*p+f),tm(u,f,h,p,c,v,g,sr,lr),e=Hi(v)*h+u,i=Gi(v)*p+f;break;case ft.R:n=e=t[o++],a=i=t[o++];var d=t[o++],m=t[o++];rh(n,a,n+d,a+m,sr,lr);break;case ft.Z:e=n,i=a;break}Te(or,or,sr),Ce(Gr,Gr,lr)}return o===0&&(or[0]=or[1]=Gr[0]=Gr[1]=0),new X(or[0],or[1],Gr[0]-or[0],Gr[1]-or[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,p=0;p<e;){var c=t[p++],v=p===1;v&&(a=t[p],o=t[p+1],s=a,l=o);var g=-1;switch(c){case ft.M:a=s=t[p++],o=l=t[p++];break;case ft.L:{var d=t[p++],m=t[p++],y=d-a,_=m-o;(xr(y)>i||xr(_)>n||p===e-1)&&(g=Math.sqrt(y*y+_*_),a=d,o=m);break}case ft.C:{var x=t[p++],b=t[p++],d=t[p++],m=t[p++],w=t[p++],T=t[p++];g=Hv(a,o,x,b,d,m,w,T,10),a=w,o=T;break}case ft.Q:{var x=t[p++],b=t[p++],d=t[p++],m=t[p++];g=Yv(a,o,x,b,d,m,10),a=d,o=m;break}case ft.A:var C=t[p++],D=t[p++],A=t[p++],M=t[p++],E=t[p++],I=t[p++],P=I+E;p+=1,v&&(s=Hi(E)*A+C,l=Gi(E)*M+D),g=nh(A,M)*ih(Wr,Math.abs(I)),a=Hi(P)*A+C,o=Gi(P)*M+D;break;case ft.R:{s=a=t[p++],l=o=t[p++];var z=t[p++],F=t[p++];g=z*2+F*2;break}case ft.Z:{var y=s-a,_=l-o;g=Math.sqrt(y*y+_*_),a=s,o=l;break}}g>=0&&(u[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,h,p,c=e<1,v,g,d=0,m=0,y,_=0,x,b;if(!(c&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,y=e*g,!y)))t:for(var w=0;w<o;){var T=i[w++],C=w===1;switch(C&&(u=i[w],f=i[w+1],s=u,l=f),T!==ft.L&&_>0&&(t.lineTo(x,b),_=0),T){case ft.M:s=u=i[w++],l=f=i[w++],t.moveTo(u,f);break;case ft.L:{h=i[w++],p=i[w++];var D=xr(h-u),A=xr(p-f);if(D>n||A>a){if(c){var M=v[m++];if(d+M>y){var E=(y-d)/M;t.lineTo(u*(1-E)+h*E,f*(1-E)+p*E);break t}d+=M}t.lineTo(h,p),u=h,f=p,_=0}else{var I=D*D+A*A;I>_&&(x=h,b=p,_=I)}break}case ft.C:{var P=i[w++],z=i[w++],F=i[w++],K=i[w++],H=i[w++],W=i[w++];if(c){var M=v[m++];if(d+M>y){var E=(y-d)/M;Dn(u,P,F,H,E,Bi),Dn(f,z,K,W,E,Vi),t.bezierCurveTo(Bi[1],Vi[1],Bi[2],Vi[2],Bi[3],Vi[3]);break t}d+=M}t.bezierCurveTo(P,z,F,K,H,W),u=H,f=W;break}case ft.Q:{var P=i[w++],z=i[w++],F=i[w++],K=i[w++];if(c){var M=v[m++];if(d+M>y){var E=(y-d)/M;Mn(u,P,F,E,Bi),Mn(f,z,K,E,Vi),t.quadraticCurveTo(Bi[1],Vi[1],Bi[2],Vi[2]);break t}d+=M}t.quadraticCurveTo(P,z,F,K),u=F,f=K;break}case ft.A:var it=i[w++],vt=i[w++],pt=i[w++],gt=i[w++],yt=i[w++],bt=i[w++],Ge=i[w++],ci=!i[w++],_n=pt>gt?pt:gt,de=xr(pt-gt)>.001,Vt=yt+bt,J=!1;if(c){var M=v[m++];d+M>y&&(Vt=yt+bt*(y-d)/M,J=!0),d+=M}if(de&&t.ellipse?t.ellipse(it,vt,pt,gt,Ge,yt,Vt,ci):t.arc(it,vt,_n,yt,Vt,ci),J)break t;C&&(s=Hi(yt)*pt+it,l=Gi(yt)*gt+vt),u=Hi(Vt)*pt+it,f=Gi(Vt)*gt+vt;break;case ft.R:s=u=i[w],l=f=i[w+1],h=i[w++],p=i[w++];var st=i[w++],pi=i[w++];if(c){var M=v[m++];if(d+M>y){var Qt=y-d;t.moveTo(h,p),t.lineTo(h+ih(Qt,st),p),Qt-=st,Qt>0&&t.lineTo(h+st,p+ih(Qt,pi)),Qt-=pi,Qt>0&&t.lineTo(h+nh(st-Qt,0),p+pi),Qt-=st,Qt>0&&t.lineTo(h,p+nh(pi-Qt,0));break t}d+=M}t.rect(h,p,st,pi);break;case ft.Z:if(c){var M=v[m++];if(d+M>y){var E=(y-d)/M;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break t}d+=M}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=ft,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})(),ye=Yw;function Wi(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-i)/(r-e),u=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function em(r,t,e,i,n,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||u>r+h&&u>e+h&&u>n+h&&u>o+h||u<r-h&&u<e-h&&u<n-h&&u<o-h)return!1;var p=Vv(r,t,e,i,n,a,o,s,u,f,null);return p<=h/2}function rm(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>i+u&&l>a+u||l<t-u&&l<i-u&&l<a-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var f=Wv(r,t,e,i,n,a,s,l,null);return f<=u/2}var im=Math.PI*2;function Ga(r){return r%=im,r<0&&(r+=im),r}var Wa=Math.PI*2;function nm(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(i-n)%Wa<1e-4)return!0;if(a){var h=i;i=Ga(n),n=Ga(h)}else i=Ga(i),n=Ga(n);i>n&&(n+=Wa);var p=Math.atan2(l,s);return p<0&&(p+=Wa),p>=i&&p<=n||p+Wa>=i&&p+Wa<=n}function Oe(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var Yr=ye.CMD,Yi=Math.PI*2,jw=1e-4;function Qw(r,t){return Math.abs(r-t)<jw}var te=[-1,-1,-1],Re=[-1,-1];function $w(){var r=Re[0];Re[0]=Re[1],Re[1]=r}function Jw(r,t,e,i,n,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var f=Ci(t,i,a,s,u,te);if(f===0)return 0;for(var h=0,p=-1,c=void 0,v=void 0,g=0;g<f;g++){var d=te[g],m=d===0||d===1?.5:1,y=_t(r,e,n,o,d);y<l||(p<0&&(p=ds(t,i,a,s,Re),Re[1]<Re[0]&&p>1&&$w(),c=_t(t,i,a,s,Re[0]),p>1&&(v=_t(t,i,a,s,Re[1]))),p===2?d<Re[0]?h+=c<t?m:-m:d<Re[1]?h+=v<c?m:-m:h+=s<v?m:-m:d<Re[0]?h+=c<t?m:-m:h+=s<c?m:-m)}return h}function tb(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=Gv(t,i,a,s,te);if(l===0)return 0;var u=ms(t,i,a);if(u>=0&&u<=1){for(var f=0,h=It(t,i,a,u),p=0;p<l;p++){var c=te[p]===0||te[p]===1?.5:1,v=It(r,e,n,te[p]);v<o||(te[p]<u?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=te[0]===0||te[0]===1?.5:1,v=It(r,e,n,te[0]);return v<o?0:a<t?c:-c}}function eb(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);te[0]=-l,te[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Yi-1e-4){i=0,n=Yi;var f=a?1:-1;return o>=te[0]+r&&o<=te[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Yi,n+=Yi);for(var p=0,c=0;c<2;c++){var v=te[c];if(v+r>o){var g=Math.atan2(s,v),f=a?1:-1;g<0&&(g=Yi+g),(g>=i&&g<=n||g+Yi>=i&&g+Yi<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),p+=f)}}return p}function am(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,p,c,v=0;v<o;){var g=a[v++],d=v===1;switch(g===Yr.M&&v>1&&(e||(s+=Oe(l,u,f,h,i,n))),d&&(l=a[v],u=a[v+1],f=l,h=u),g){case Yr.M:f=a[v++],h=a[v++],l=f,u=h;break;case Yr.L:if(e){if(Wi(l,u,a[v],a[v+1],t,i,n))return!0}else s+=Oe(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Yr.C:if(e){if(em(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,i,n))return!0}else s+=Jw(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Yr.Q:if(e){if(rm(l,u,a[v++],a[v++],a[v],a[v+1],t,i,n))return!0}else s+=tb(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Yr.A:var m=a[v++],y=a[v++],_=a[v++],x=a[v++],b=a[v++],w=a[v++];v+=1;var T=!!(1-a[v++]);p=Math.cos(b)*_+m,c=Math.sin(b)*x+y,d?(f=p,h=c):s+=Oe(l,u,p,c,i,n);var C=(i-m)*x/_+m;if(e){if(nm(m,y,x,b,b+w,T,t,C,n))return!0}else s+=eb(m,y,x,b,b+w,T,C,n);l=Math.cos(b+w)*_+m,u=Math.sin(b+w)*x+y;break;case Yr.R:f=l=a[v++],h=u=a[v++];var D=a[v++],A=a[v++];if(p=f+D,c=h+A,e){if(Wi(f,h,p,h,t,i,n)||Wi(p,h,p,c,t,i,n)||Wi(p,c,f,c,t,i,n)||Wi(f,c,f,h,t,i,n))return!0}else s+=Oe(p,h,p,c,i,n),s+=Oe(f,c,f,h,i,n);break;case Yr.Z:if(e){if(Wi(l,u,f,h,t,i,n))return!0}else s+=Oe(l,u,f,h,i,n);l=f,u=h;break}}return!e&&!Qw(u,h)&&(s+=Oe(l,u,f,h,i,n)||0),s!==0}function om(r,t,e){return am(r,0,!1,t,e)}function sm(r,t,e,i){return am(r,t,!0,e,i)}var uh=Y({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},nr),ib={style:Y({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Fi.style)},lh=Ii.concat(["invisible","culling","z","z2","zlevel","parent"]),nb=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<lh.length;++s)n[lh[s]]=this[lh[s]];n.__dirty|=Lt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=tt(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):r.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 e=this.style.fill;if(e!=="none"){if(k(e)){var i=Mi(e,0);return i>.5?Ra:i>.2?hd:Na}else if(e)return Na}return Ra},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(k(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Mi(e,0)<Oa;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~kr},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ye(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&kr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),sm(s,l/u,e,i)))return!0}if(this.hasFill())return om(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=kr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:O(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&kr)},t.prototype.createStyle=function(e){return cr(uh,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=O({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=O({},n.shape),O(u,i.shape)):(u=O({},a?this.shape:n.shape),O(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=O({},this.shape);for(var f={},h=tt(u),p=0;p<h.length;p++){var c=h[p];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return ib},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){L(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return q(e.style)},o.prototype.getDefaultShape=function(){return q(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Lt|Ti|kr})(),t})(ar),Q=nb;var ab=Y({strokeFirst:!0,font:We,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},uh),lm=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return cr(ab,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=Ln(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(ar);lm.prototype.type="tspan";var Ya=lm;var ob=Y({x:0,y:0},nr),sb={style:Y({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Fi.style)};function lb(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var um=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return cr(ob,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=lb(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return sb},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new X(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(ar);um.prototype.type="image";var se=um;function fm(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Fn=Math.round;function Ws(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Fn(i*2)===Fn(n*2)&&(r.x1=r.x2=Xr(i,s,!0)),Fn(a*2)===Fn(o*2)&&(r.y1=r.y2=Xr(a,s,!0))),r}}function Ys(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Xr(i,s,!0),r.y=Xr(n,s,!0),r.width=Math.max(Xr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Xr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Xr(r,t,e){if(!t)return r;var i=Fn(r*2);return(i+Fn(t))%2===0?i/2:(i+(e?1:-1))/2}var hb=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})();var cb={},hm=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new hb},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Ys(cb,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?fm(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Q);hm.prototype.type="rect";var St=hm;var cm={fill:"#000"},pm=2,pb={style:Y({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},Fi.style)},Sm=(function(r){L(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=cm,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,yb(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new X(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||cm},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return O(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=tt(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},O(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return pb},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||We,n=e.padding,a=xm(e),o=Xd(a,e),s=fh(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,p=o.lines,c=o.lineHeight,v=this._defaultStyle;this.isTruncated=!!o.isTruncated;var g=e.x||0,d=e.y||0,m=e.align||v.align||"left",y=e.verticalAlign||v.verticalAlign||"top",_=g,x=Oi(d,o.contentHeight,y);if(s||n){var b=Pn(g,f,m),w=Oi(d,u,y);s&&this._renderBackground(e,e,b,w,f,u)}x+=c/2,n&&(_=_m(g,m,n),y==="top"?x+=n[0]:y==="bottom"&&(x-=n[2]));for(var T=0,C=!1,D=ym("fill"in e?e.fill:(C=!0,v.fill)),A=gm("stroke"in e?e.stroke:!l&&(!v.autoStroke||C)?(T=pm,v.stroke):null),M=e.textShadowBlur>0,E=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<p.length;P++){var z=this._getOrCreateChild(Ya),F=z.createStyle();z.useStyle(F),F.text=p[P],F.x=_,F.y=x,m&&(F.textAlign=m),F.textBaseline="middle",F.opacity=e.opacity,F.strokeFirst=!0,M&&(F.shadowBlur=e.textShadowBlur||0,F.shadowColor=e.textShadowColor||"transparent",F.shadowOffsetX=e.textShadowOffsetX||0,F.shadowOffsetY=e.textShadowOffsetY||0),F.stroke=A,F.fill=D,A&&(F.lineWidth=e.lineWidth||T,F.lineDash=e.lineDash,F.lineDashOffset=e.lineDashOffset||0),F.font=i,dm(F,e),x+=c,E&&z.setBoundingRect(new X(Pn(F.x,h,F.textAlign),Oi(F.y,I,F.textBaseline),h,I))}},t.prototype._updateRichTexts=function(){var e=this.style,i=xm(e),n=qd(i,e),a=n.width,o=n.outerWidth,s=n.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,p=e.align||h.align,c=e.verticalAlign||h.verticalAlign;this.isTruncated=!!n.isTruncated;var v=Pn(u,o,p),g=Oi(f,s,c),d=v,m=g;l&&(d+=l[3],m+=l[0]);var y=d+a;fh(e)&&this._renderBackground(e,e,v,g,o,s);for(var _=!!e.backgroundColor,x=0;x<n.lines.length;x++){for(var b=n.lines[x],w=b.tokens,T=w.length,C=b.lineHeight,D=b.width,A=0,M=d,E=y,I=T-1,P=void 0;A<T&&(P=w[A],!P.align||P.align==="left");)this._placeToken(P,e,C,m,M,"left",_),D-=P.width,M+=P.width,A++;for(;I>=0&&(P=w[I],P.align==="right");)this._placeToken(P,e,C,m,E,"right",_),D-=P.width,E-=P.width,I--;for(M+=(a-(M-d)-(y-E)-D)/2;A<=I;)P=w[A],this._placeToken(P,e,C,m,M+P.width/2,"center",_),M+=P.width,A++;m+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var p=!e.isLineHolder&&fh(u);p&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!u.backgroundColor,v=e.textPadding;v&&(o=_m(o,s,v),h-=e.height/2-v[0]-e.innerHeight/2);var g=this._getOrCreateChild(Ya),d=g.createStyle();g.useStyle(d);var m=this._defaultStyle,y=!1,_=0,x=ym("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,m.fill)),b=gm("stroke"in u?u.stroke:"stroke"in i?i.stroke:!c&&!l&&(!m.autoStroke||y)?(_=pm,m.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;d.text=e.text,d.x=o,d.y=h,w&&(d.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,d.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=e.font||We,d.opacity=Rr(u.opacity,i.opacity,1),dm(d,u),b&&(d.lineWidth=Rr(u.lineWidth,i.lineWidth,_),d.lineDash=Z(u.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=b),x&&(d.fill=x);var T=e.contentWidth,C=e.contentHeight;g.setBoundingRect(new X(Pn(d.x,T,d.textAlign),Oi(d.y,C,d.textBaseline),T,C))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,p=l&&!h,c=e.borderRadius,v=this,g,d;if(p||e.lineHeight||u&&f){g=this._getOrCreateChild(St),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=n,m.y=a,m.width=o,m.height=s,m.r=c,g.dirtyShape()}if(p){var y=g.style;y.fill=l||null,y.fillOpacity=Z(e.fillOpacity,1)}else if(h){d=this._getOrCreateChild(se),d.onload=function(){v.dirtyStyle()};var _=d.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Z(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(g||d).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=Rr(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return gb(e)&&(i=[e.fontStyle,e.fontWeight,mb(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&kt(i)||e.textFont||e.font},t})(ar),vb={left:!0,right:1,center:1},db={top:1,bottom:1,middle:1},vm=["fontStyle","fontWeight","fontSize","fontFamily"];function mb(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Qo+"px":r+"px"}function dm(r,t){for(var e=0;e<vm.length;e++){var i=vm[e],n=t[i];n!=null&&(r[i]=n)}}function gb(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function yb(r){return mm(r),S(r.rich,mm),r}function mm(r){if(r){r.font=Sm.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||vb[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||db[e]?e:"top";var i=r.padding;i&&(r.padding=_a(r.padding))}}function gm(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function ym(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function _m(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function xm(r){var t=r.text;return t!=null&&(t+=""),t}function fh(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Ct=Sm;var ot=at(),wm=function(r,t,e,i){if(i){var n=ot(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=ot(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}};var bm=1,Tm={},Em=at(),ph=at(),vh=0,Xa=1,qa=2,Ne=["emphasis","blur","select"],dh=["normal","emphasis","blur","select"],_b=10,xb=9,qr="highlight",Za="downplay",Bn="select",Ka="unselect",Vn="toggleSelect";function Un(r){return r!=null&&r!=="none"}function qs(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Lm(r){qs(r,"emphasis",qa)}function Pm(r){r.hoverState===qa&&qs(r,"normal",vh)}function mh(r){qs(r,"blur",Xa)}function Im(r){r.hoverState===Xa&&qs(r,"normal",vh)}function Sb(r){r.selected=!0}function wb(r){r.selected=!1}function Cm(r,t,e){t(r,e)}function Sr(r,t,e){Cm(r,t,e),r.isGroup&&r.traverse(function(i){Cm(i,t,e)})}function gh(r,t){switch(t){case"emphasis":r.hoverState=qa;break;case"normal":r.hoverState=vh;break;case"blur":r.hoverState=Xa;break;case"select":r.selected=!0}}function bb(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=n[s];a[s]=l==null?i&&i[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function Tb(r,t,e,i){var n=e&&$(e,"select")>=0,a=!1;if(r instanceof Q){var o=Em(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Un(s)||Un(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=O({},i),u=O({},u),u.fill=s):!Un(u.fill)&&Un(s)?(a=!0,i=O({},i),u=O({},u),u.fill=xs(s)):!Un(u.stroke)&&Un(l)&&(a||(i=O({},i),u=O({},u)),u.stroke=xs(l)),i.style=u}}if(i&&i.z2==null){a||(i=O({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f!=null?f:_b)}return i}function Cb(r,t,e){if(e&&e.z2==null){e=O({},e);var i=r.z2SelectLift;e.z2=r.z2+(i!=null?i:xb)}return e}function Db(r,t,e){var i=$(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:bb(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:i?n:a.opacity*.1},o),e.style=o),e}function hh(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Tb(this,r,t,e);if(r==="blur")return Db(this,r,e);if(r==="select")return Cb(this,r,e)}return e}function Mb(r){r.stateProxy=hh;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=hh),e&&(e.stateProxy=hh)}function Dm(r,t){!Rm(r,t)&&!r.__highByOuter&&Sr(r,Lm)}function Mm(r,t){!Rm(r,t)&&!r.__highByOuter&&Sr(r,Pm)}function Xi(r,t){r.__highByOuter|=1<<(t||0),Sr(r,Lm)}function qi(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Sr(r,Pm)}function Om(r){Sr(r,mh)}function yh(r){Sr(r,Im)}function _h(r){Sr(r,Sb)}function xh(r){Sr(r,wb)}function Rm(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Sh(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=ph(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){Im(u)}),s&&e.push(a)),o.isBlured=!1}),S(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function ch(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var p=u.getItemGraphicEl(f[h]);p&&yh(p)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var p=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!p||t==="series"&&f)){var c=i.getViewOfSeriesModel(u);if(c.group.traverse(function(d){d.__highByOuter&&f&&t==="self"||mh(d)}),Dt(t))a(u.getData(),t);else if(U(t))for(var v=tt(t),g=0;g<v.length;g++)a(u.getData(v[g]),t[v[g]]);l.push(u),ph(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function Xs(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){ph(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){mh(a)})}}}function Nm(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(n){var a=Le(n,t);a=(R(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ot(o);ch(i,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&ch(i,f,h,e)}}}function Zs(r,t,e,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var a=i.getModel().getComponent(r,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ot(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function km(r,t,e){var i=ot(r),n=Zs(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&Xs(i.componentMainType,i.componentIndex,e),S(a,function(s){return Dm(s,t)})):(ch(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&Xs(i.componentMainType,i.componentIndex,e),Dm(r,t))}function zm(r,t,e){Sh(e);var i=ot(r),n=Zs(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?S(n,function(a){return Mm(a,t)}):Mm(r,t)}function Fm(r,t,e){if(Ks(t)){var i=t.dataType,n=r.getData(i),a=Le(n,t);R(a)||(a=[a]),r[t.type===Vn?"toggleSelect":t.type===Bn?"select":"unselect"](a,i)}}function wh(r){var t=r.getAllData();S(t,function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?_h(a):xh(a)})})}function Um(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();S(i,function(n){var a=n.data,o=n.type,s=e.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:e.seriesIndex};o!=null&&(l.dataType=o),t.push(l)}})}),t}function bh(r,t,e){Bm(r,!0),Sr(r,Mb),Eb(r,t,e)}function Ab(r){Bm(r,!1)}function ja(r,t,e,i){i?Ab(r):bh(r,t,e)}function Eb(r,t,e){var i=ot(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var Am=["emphasis","blur","select"],Lb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Th(r,t,e,i){e=e||"itemStyle";for(var n=0;n<Am.length;n++){var a=Am[n],o=t.getModel([a,e]),s=r.ensureState(a);s.style=i?i(o):o[Lb[e]]()}}function Bm(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function Qa(r){return!!(r&&r.__highDownDispatcher)}function Vm(r){var t=Tm[r];return t==null&&bm<=32&&(t=Tm[r]=bm++),t}function Ks(r){var t=r.type;return t===Bn||t===Ka||t===Vn}function Ch(r){var t=r.type;return t===qr||t===Za}function Hm(r){var t=Em(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var fe={};me(fe,{Arc:()=>Qi,BezierCurve:()=>ao,BoundingRect:()=>X,Circle:()=>Zi,CompoundPath:()=>tl,Ellipse:()=>Ja,Group:()=>dt,Image:()=>se,IncrementalDisplayable:()=>al,Line:()=>_e,LinearGradient:()=>Wn,OrientedBoundingRect:()=>Yn,Path:()=>Q,Point:()=>ut,Polygon:()=>io,Polyline:()=>no,RadialGradient:()=>rl,Rect:()=>St,Ring:()=>ro,Sector:()=>ji,Text:()=>Ct,applyTransform:()=>ul,clipPointsByRect:()=>Bh,clipRectByRect:()=>Vh,createIcon:()=>so,extendPath:()=>Nh,extendShape:()=>Rh,getShapeClass:()=>kh,getTransform:()=>Fh,groupTransition:()=>Uh,initProps:()=>Ke,isElementRemoved:()=>tn,lineLineIntersect:()=>_g,linePolygonIntersect:()=>hT,makeImage:()=>oo,makePath:()=>qn,mergePath:()=>zh,registerShape:()=>xe,removeElement:()=>Xn,removeElementWithFadeOut:()=>vg,resizePath:()=>ll,setTooltipConfig:()=>fl,subPixelOptimize:()=>lT,subPixelOptimizeLine:()=>en,subPixelOptimizeRect:()=>sT,transformDirection:()=>uT,traverseElements:()=>lo,updateProps:()=>ue});var Hn=ye.CMD,Pb=[[],[],[]],Gm=Math.sqrt,Ib=Math.atan2;function Dh(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,l,u,f=Hn.M,h=Hn.C,p=Hn.L,c=Hn.R,v=Hn.A,g=Hn.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case h:a=3;break;case g:a=2;break;case v:var d=t[4],m=t[5],y=Gm(t[0]*t[0]+t[1]*t[1]),_=Gm(t[2]*t[2]+t[3]*t[3]),x=Ib(-t[1]/_,t[0]/y);e[o]*=y,e[o++]+=d,e[o]*=_,e[o++]+=m,e[o++]*=y,e[o++]*=_,e[o++]+=x,e[o++]+=x,o+=2,s=o;break;case c:u[0]=e[o++],u[1]=e[o++],Mt(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Mt(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var b=Pb[l];b[0]=e[o++],b[1]=e[o++],Mt(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Mh=Math.sqrt,js=Math.sin,Qs=Math.cos,$a=Math.PI;function Wm(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Ah(r,t){return(r[0]*t[0]+r[1]*t[1])/(Wm(r)*Wm(t))}function Ym(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Ah(r,t))}function Xm(r,t,e,i,n,a,o,s,l,u,f){var h=l*($a/180),p=Qs(h)*(r-e)/2+js(h)*(t-i)/2,c=-1*js(h)*(r-e)/2+Qs(h)*(t-i)/2,v=p*p/(o*o)+c*c/(s*s);v>1&&(o*=Mh(v),s*=Mh(v));var g=(n===a?-1:1)*Mh((o*o*(s*s)-o*o*(c*c)-s*s*(p*p))/(o*o*(c*c)+s*s*(p*p)))||0,d=g*o*c/s,m=g*-s*p/o,y=(r+e)/2+Qs(h)*d-js(h)*m,_=(t+i)/2+js(h)*d+Qs(h)*m,x=Ym([1,0],[(p-d)/o,(c-m)/s]),b=[(p-d)/o,(c-m)/s],w=[(-1*p-d)/o,(-1*c-m)/s],T=Ym(b,w);if(Ah(b,w)<=-1&&(T=$a),Ah(b,w)>=1&&(T=0),T<0){var C=Math.round(T/$a*1e6)/1e6;T=$a*2+C%2*$a}f.addData(u,y,_,o,s,x,T,h,a)}var Ob=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Rb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Nb(r){var t=new ye;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=ye.CMD,l=r.match(Ob);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),p=void 0,c=f.match(Rb)||[],v=c.length,g=0;g<v;g++)c[g]=parseFloat(c[g]);for(var d=0;d<v;){var m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,T=void 0,C=e,D=i,A=void 0,M=void 0;switch(h){case"l":e+=c[d++],i+=c[d++],p=s.L,t.addData(p,e,i);break;case"L":e=c[d++],i=c[d++],p=s.L,t.addData(p,e,i);break;case"m":e+=c[d++],i+=c[d++],p=s.M,t.addData(p,e,i),n=e,a=i,h="l";break;case"M":e=c[d++],i=c[d++],p=s.M,t.addData(p,e,i),n=e,a=i,h="L";break;case"h":e+=c[d++],p=s.L,t.addData(p,e,i);break;case"H":e=c[d++],p=s.L,t.addData(p,e,i);break;case"v":i+=c[d++],p=s.L,t.addData(p,e,i);break;case"V":i=c[d++],p=s.L,t.addData(p,e,i);break;case"C":p=s.C,t.addData(p,c[d++],c[d++],c[d++],c[d++],c[d++],c[d++]),e=c[d-2],i=c[d-1];break;case"c":p=s.C,t.addData(p,c[d++]+e,c[d++]+i,c[d++]+e,c[d++]+i,c[d++]+e,c[d++]+i),e+=c[d-2],i+=c[d-1];break;case"S":m=e,y=i,A=t.len(),M=t.data,o===s.C&&(m+=e-M[A-4],y+=i-M[A-3]),p=s.C,C=c[d++],D=c[d++],e=c[d++],i=c[d++],t.addData(p,m,y,C,D,e,i);break;case"s":m=e,y=i,A=t.len(),M=t.data,o===s.C&&(m+=e-M[A-4],y+=i-M[A-3]),p=s.C,C=e+c[d++],D=i+c[d++],e+=c[d++],i+=c[d++],t.addData(p,m,y,C,D,e,i);break;case"Q":C=c[d++],D=c[d++],e=c[d++],i=c[d++],p=s.Q,t.addData(p,C,D,e,i);break;case"q":C=c[d++]+e,D=c[d++]+i,e+=c[d++],i+=c[d++],p=s.Q,t.addData(p,C,D,e,i);break;case"T":m=e,y=i,A=t.len(),M=t.data,o===s.Q&&(m+=e-M[A-4],y+=i-M[A-3]),e=c[d++],i=c[d++],p=s.Q,t.addData(p,m,y,e,i);break;case"t":m=e,y=i,A=t.len(),M=t.data,o===s.Q&&(m+=e-M[A-4],y+=i-M[A-3]),e+=c[d++],i+=c[d++],p=s.Q,t.addData(p,m,y,e,i);break;case"A":_=c[d++],x=c[d++],b=c[d++],w=c[d++],T=c[d++],C=e,D=i,e=c[d++],i=c[d++],p=s.A,Xm(C,D,e,i,w,T,_,x,b,p,t);break;case"a":_=c[d++],x=c[d++],b=c[d++],w=c[d++],T=c[d++],C=e,D=i,e+=c[d++],i+=c[d++],p=s.A,Xm(C,D,e,i,w,T,_,x,b,p,t);break}}(h==="z"||h==="Z")&&(p=s.Z,t.addData(p),e=n,i=a),o=p}return t.toStatic(),t}var qm=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(Q);function Zm(r){return r.setData!=null}function Km(r,t){var e=Nb(r),i=O({},t);return i.buildPath=function(n){if(Zm(n)){n.setData(e.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;e.rebuildPath(a,1)}},i.applyTransform=function(n){Dh(e,n),this.dirtyShape()},i}function jm(r,t){return new qm(Km(r,t))}function Qm(r,t){var e=Km(r,t),i=(function(n){L(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(qm);return i}function $m(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new Q(t);return o.createPathProxy(),o.buildPath=function(s){if(Zm(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var zb=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})();var Jm=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new zb},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(Q);Jm.prototype.type="circle";var Zi=Jm;var Fb=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})();var tg=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Fb},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t})(Q);tg.prototype.type="ellipse";var Ja=tg;var rg=Math.PI,Eh=rg*2,Ki=Math.sin,Gn=Math.cos,Ub=Math.acos,Xt=Math.atan2,eg=Math.abs,eo=Math.sqrt,to=Math.max,ur=Math.min,Ze=1e-4;function Bb(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,p=h*l-f*u;if(!(p*p<Ze))return p=(f*(t-a)-h*(r-n))/p,[r+p*l,t+p*u]}function $s(r,t,e,i,n,a,o){var s=r-e,l=t-i,u=(o?a:-a)/eo(s*s+l*l),f=u*l,h=-u*s,p=r+f,c=t+h,v=e+f,g=i+h,d=(p+v)/2,m=(c+g)/2,y=v-p,_=g-c,x=y*y+_*_,b=n-a,w=p*g-v*c,T=(_<0?-1:1)*eo(to(0,b*b*x-w*w)),C=(w*_-y*T)/x,D=(-w*y-_*T)/x,A=(w*_+y*T)/x,M=(-w*y+_*T)/x,E=C-d,I=D-m,P=A-d,z=M-m;return E*E+I*I>P*P+z*z&&(C=A,D=M),{cx:C,cy:D,x0:-f,y0:-h,x1:C*(n/b-1),y1:D*(n/b-1)}}function Vb(r){var t;if(R(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function ig(r,t){var e,i=to(t.r,0),n=to(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,p=!!t.clockwise,c=eg(u-l),v=c>Eh&&c%Eh;if(v>Ze&&(c=v),!(i>Ze))r.moveTo(f,h);else if(c>Eh-Ze)r.moveTo(f+i*Gn(l),h+i*Ki(l)),r.arc(f,h,i,l,u,!p),n>Ze&&(r.moveTo(f+n*Gn(u),h+n*Ki(u)),r.arc(f,h,n,u,l,p));else{var g=void 0,d=void 0,m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,T=void 0,C=void 0,D=void 0,A=void 0,M=void 0,E=void 0,I=void 0,P=void 0,z=i*Gn(l),F=i*Ki(l),K=n*Gn(u),H=n*Ki(u),W=c>Ze;if(W){var it=t.cornerRadius;it&&(e=Vb(it),g=e[0],d=e[1],m=e[2],y=e[3]);var vt=eg(i-n)/2;if(_=ur(vt,m),x=ur(vt,y),b=ur(vt,g),w=ur(vt,d),D=T=to(_,x),A=C=to(b,w),(T>Ze||C>Ze)&&(M=i*Gn(u),E=i*Ki(u),I=n*Gn(l),P=n*Ki(l),c<rg)){var pt=Bb(z,F,I,P,M,E,K,H);if(pt){var gt=z-pt[0],yt=F-pt[1],bt=M-pt[0],Ge=E-pt[1],ci=1/Ki(Ub((gt*bt+yt*Ge)/(eo(gt*gt+yt*yt)*eo(bt*bt+Ge*Ge)))/2),_n=eo(pt[0]*pt[0]+pt[1]*pt[1]);D=ur(T,(i-_n)/(ci+1)),A=ur(C,(n-_n)/(ci-1))}}}if(!W)r.moveTo(f+z,h+F);else if(D>Ze){var de=ur(m,D),Vt=ur(y,D),J=$s(I,P,z,F,i,de,p),st=$s(M,E,K,H,i,Vt,p);r.moveTo(f+J.cx+J.x0,h+J.cy+J.y0),D<T&&de===Vt?r.arc(f+J.cx,h+J.cy,D,Xt(J.y0,J.x0),Xt(st.y0,st.x0),!p):(de>0&&r.arc(f+J.cx,h+J.cy,de,Xt(J.y0,J.x0),Xt(J.y1,J.x1),!p),r.arc(f,h,i,Xt(J.cy+J.y1,J.cx+J.x1),Xt(st.cy+st.y1,st.cx+st.x1),!p),Vt>0&&r.arc(f+st.cx,h+st.cy,Vt,Xt(st.y1,st.x1),Xt(st.y0,st.x0),!p))}else r.moveTo(f+z,h+F),r.arc(f,h,i,l,u,!p);if(!(n>Ze)||!W)r.lineTo(f+K,h+H);else if(A>Ze){var de=ur(g,A),Vt=ur(d,A),J=$s(K,H,M,E,n,-Vt,p),st=$s(z,F,I,P,n,-de,p);r.lineTo(f+J.cx+J.x0,h+J.cy+J.y0),A<C&&de===Vt?r.arc(f+J.cx,h+J.cy,A,Xt(J.y0,J.x0),Xt(st.y0,st.x0),!p):(Vt>0&&r.arc(f+J.cx,h+J.cy,Vt,Xt(J.y0,J.x0),Xt(J.y1,J.x1),!p),r.arc(f,h,n,Xt(J.cy+J.y1,J.cx+J.x1),Xt(st.cy+st.y1,st.cx+st.x1),p),de>0&&r.arc(f+st.cx,h+st.cy,de,Xt(st.y1,st.x1),Xt(st.y0,st.x0),!p))}else r.lineTo(f+K,h+H),r.arc(f,h,n,u,l,p)}r.closePath()}}}var Gb=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})();var ng=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Gb},t.prototype.buildPath=function(e,i){ig(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Q);ng.prototype.type="sector";var ji=ng;var Wb=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})();var ag=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Wb},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})(Q);ag.prototype.type="ring";var ro=ag;function Lh(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,c=r.length;p<c;p++)Te(f,f,r[p]),Ce(h,h,r[p]);Te(f,f,i[0]),Ce(h,h,i[1])}for(var p=0,c=r.length;p<c;p++){var v=r[p];if(e)l=r[p?p-1:c-1],u=r[(p+1)%c];else if(p===0||p===c-1){n.push(Xu(r[p]));continue}else l=r[p-1],u=r[p+1];qu(a,u,l),Sa(a,a,t);var g=wa(v,l),d=wa(v,u),m=g+d;m!==0&&(g/=m,d/=m),Sa(o,a,-g),Sa(s,a,d);var y=rs([],v,o),_=rs([],v,s);i&&(Ce(y,y,f),Te(y,y,h),Ce(_,_,f),Te(_,_,h)),n.push(y),n.push(_)}return e&&n.push(n.shift()),n}function Js(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=Lh(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var Yb=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})();var sg=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Yb},t.prototype.buildPath=function(e,i){Js(e,i,!0)},t})(Q);sg.prototype.type="polygon";var io=sg;var Xb=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})();var lg=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Xb},t.prototype.buildPath=function(e,i){Js(e,i,!1)},t})(Q);lg.prototype.type="polyline";var no=lg;var qb={},Zb=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();var ug=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Zb},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Ws(qb,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(Q);ug.prototype.type="line";var _e=ug;var le=[],Kb=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function fg(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?hf:_t)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?hf:_t)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?cf:It)(r.x1,r.cpx1,r.x2,t),(e?cf:It)(r.y1,r.cpy1,r.y2,t)]}var hg=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Kb},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,h=i.cpy2,p=i.percent;p!==0&&(e.moveTo(n,a),f==null||h==null?(p<1&&(Mn(n,l,o,p,le),l=le[1],o=le[2],Mn(a,u,s,p,le),u=le[1],s=le[2]),e.quadraticCurveTo(l,u,o,s)):(p<1&&(Dn(n,l,f,o,p,le),l=le[1],f=le[2],o=le[3],Dn(a,u,h,s,p,le),u=le[1],h=le[2],s=le[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return fg(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=fg(this.shape,e,!0);return ju(i,i)},t})(Q);hg.prototype.type="bezier-curve";var ao=hg;var jb=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})();var cg=(function(r){L(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jb},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,l,!u)},t})(Q);cg.prototype.type="arc";var Qi=cg;var Qb=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Q.prototype.getBoundingRect.call(this)},t})(Q),tl=Qb;var $b=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),el=$b;var Jb=(function(r){L(t,r);function t(e,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=i==null?0:i,l.x2=n==null?1:n,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t})(el),Wn=Jb;var tT=(function(r){L(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e==null?.5:e,s.y=i==null?.5:i,s.r=n==null?.5:n,s.type="radial",s.global=o||!1,s}return t})(el),rl=tT;var $i=[0,0],Ji=[0,0],il=new ut,nl=new ut,eT=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ut;for(var i=0;i<2;i++)this._axes[i]=new ut;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),e)for(var u=0;u<4;u++)i[u].transform(e);ut.sub(n[0],i[1],i[0]),ut.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(t,e){var i=!0,n=!e;return il.set(1/0,1/0),nl.set(0,0),!this._intersectCheckOneSide(this,t,il,nl,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,il,nl,n,-1)&&(i=!1,n)||n||ut.copy(e,i?il:nl),i},r.prototype._intersectCheckOneSide=function(t,e,i,n,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,$i),this._getProjMinMaxOnAxis(l,e._corners,Ji),$i[1]<Ji[0]||$i[0]>Ji[1]){if(s=!1,a)return s;var f=Math.abs(Ji[0]-$i[1]),h=Math.abs($i[0]-Ji[1]);Math.min(f,h)>n.len()&&(f<h?ut.scale(n,u,-f*o):ut.scale(n,u,h*o))}else if(i){var f=Math.abs(Ji[0]-$i[1]),h=Math.abs($i[0]-Ji[1]);Math.min(f,h)<i.len()&&(f<h?ut.scale(i,u,f*o):ut.scale(i,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(n)+a[t];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},r})(),Yn=eT;var rT=[],iT=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,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(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new X(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(rT)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(ar),al=iT;var nT=at();function aT(r,t,e,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;i?(u=Z(i.duration,200),f=Z(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),B(h)&&(h=h(e,n)),B(u)&&(u=u(e));var p={duration:u||0,delay:h,easing:f};return p}else return null}function Ph(r,t,e,i,n,a,o){var s=!1,l;B(n)?(o=a,a=n,n=null):U(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=aT(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,p=f.delay,c=f.easing,v={duration:h,delay:p||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function ue(r,t,e,i,n,a){Ph("update",r,t,e,i,n,a)}function Ke(r,t,e,i,n,a){Ph("enter",r,t,e,i,n,a)}function tn(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Xn(r,t,e,i,n,a){tn(r)||Ph("leave",r,t,e,i,n,a)}function pg(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Xn(r,{style:{opacity:0}},t,e,i)}function vg(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||pg(n,t,e,i)}):pg(r,t,e,i)}function dg(r){nT(r).oldStyle=r.style}var ol=Math.max,sl=Math.min,Oh={};function Rh(r){return Q.extend(r)}var oT=Qm;function Nh(r,t){return oT(r,t)}function xe(r,t){Oh[r]=t}function kh(r){if(Oh.hasOwnProperty(r))return Oh[r]}function qn(r,t,e,i){var n=jm(r,t);return e&&(i==="center"&&(e=yg(e,n.getBoundingRect())),ll(n,e)),n}function oo(r,t,e){var i=new se({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var a={width:n.width,height:n.height};i.setStyle(yg(t,a))}}});return i}function yg(r,t){var e=t.width/t.height,i=r.height*e,n;i<=r.width?n=r.height:(i=r.width,n=i/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var zh=$m;function ll(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function en(r,t){return Ws(r,r,{lineWidth:t}),r}function sT(r){return Ys(r.shape,r.shape,r.style),r}var lT=Xr;function Fh(r,t){for(var e=vr([]);r&&r!==t;)De(e,r.getLocalTransform(),e),r=r.parent;return e}function ul(r,t,e){return t&&!Dt(t)&&(t=ka.getLocalTransform(t)),e&&(t=dr([],t)),Mt([],r,t)}function uT(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=ul(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function mg(r){return!r.isGroup}function fT(r){return r.shape!=null}function Uh(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){mg(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fT(o)&&(s.shape=O({},o.shape)),s}var a=i(r);t.traverse(function(o){if(mg(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),ue(o,l,e,ot(o).dataIndex)}}})}function Bh(r,t){return N(r,function(e){var i=e[0];i=ol(i,t.x),i=sl(i,t.x+t.width);var n=e[1];return n=ol(n,t.y),n=sl(n,t.y+t.height),[i,n]})}function Vh(r,t){var e=ol(r.x,t.x),i=sl(r.x+r.width,t.x+t.width),n=ol(r.y,t.y),a=sl(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function so(r,t,e){var i=O({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),Y(n,e),new se(i)):qn(r.replace("path://",""),i,e,"center")}function hT(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(_g(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function _g(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,p=Ih(f,h,l,u);if(cT(p))return!1;var c=r-n,v=t-a,g=Ih(c,v,l,u)/p;if(g<0||g>1)return!1;var d=Ih(c,v,f,h)/p;return!(d<0||d>1)}function Ih(r,t,e,i){return r*i-e*t}function cT(r){return r<=1e-6&&r>=-1e-6}function fl(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=k(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&S(tt(l),function(f){be(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ot(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:Y({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function gg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function lo(r,t){if(r)if(R(r))for(var e=0;e<r.length;e++)gg(r[e],t);else gg(r,t)}xe("circle",Zi);xe("ellipse",Ja);xe("sector",ji);xe("ring",ro);xe("polygon",io);xe("polyline",no);xe("rect",St);xe("line",_e);xe("bezierCurve",ao);xe("arc",Qi);var hl={};function pT(r,t){for(var e=0;e<Ne.length;e++){var i=Ne[e],n=t[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function xg(r,t,e){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=B(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<Ne.length;u++){var f=Ne[u],h=t[f];l[f]=Z(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return l}function cl(r,t,e,i){e=e||hl;for(var n=r instanceof Ct,a=!1,o=0;o<dh.length;o++){var s=t[dh[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new Ct,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=xg(e,t),f=t.normal,h=!!f.getShallow("show"),p=wr(f,i&&i.normal,e,!1,!n);p.text=u.normal,n||r.setTextConfig(Sg(f,e,!1));for(var o=0;o<Ne.length;o++){var c=Ne[o],s=t[c];if(s){var v=l.ensureState(c),g=!!Z(s.getShallow("show"),h);if(g!==h&&(v.ignore=!g),v.style=wr(s,i&&i[c],e,!0,!n),v.style.text=u[c],!n){var d=r.ensureState(c);d.textConfig=Sg(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!h,l.useStyle(p),l.dirty(),e.enableTextSetter&&(Hh(l).setLabelText=function(m){var y=xg(e,t,m);pT(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Zn(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<Ne.length;i++){var n=Ne[i];e[n]=r.getModel([n,t])}return e}function wr(r,t,e,i,n){var a={};return vT(a,r,e,i,n),t&&O(a,t),a}function Sg(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=Z(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",i}function vT(r,t,e,i,n){e=e||hl;var a=t.ecModel,o=a&&a.option.textStyle,s=dT(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Cg(l[u]={},f,o,e,i,n,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var p=t.get("minMargin");p!=null&&(r.margin=p),Cg(r,t,o,e,i,n,!0,!1)}function dT(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||hl).rich;if(e){t=t||{};for(var i=tt(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var wg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Tg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Cg(r,t,e,i,n,a,o,s){e=!n&&e||hl;var l=i&&i.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=Z(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var p=Z(t.getShallow("textBorderWidth"),e.textBorderWidth);p!=null&&(r.lineWidth=p);var c=Z(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var v=Z(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);v!=null&&(r.lineDashOffset=v),!n&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!n&&!a&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<wg.length;g++){var d=wg[g],m=Z(t.getShallow(d),e[d]);m!=null&&(r[d]=m)}for(var g=0;g<bg.length;g++){var d=bg[g],m=t.getShallow(d);m!=null&&(r[d]=m)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!i.disableBox){for(var g=0;g<Tg.length;g++){var d=Tg[g],m=t.getShallow(d);m!=null&&(r[d]=m)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function Dg(r,t){var e=t&&t.getModel("textStyle");return kt([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Hh=at();var mT=["textStyle","color"],Gh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Wh=new Ct,gT=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(mT):null)},r.prototype.getFont=function(){return Dg({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Gh.length;i++)e[Gh[i]]=this.getShallow(Gh[i]);return Wh.useStyle(e),Wh.update(),Wh.getBoundingRect()},r})(),Mg=gT;var Yh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],yT=ir(Yh),Ag=(function(){function r(){}return r.prototype.getLineStyle=function(t){return yT(this,t)},r})();var Xh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],_T=ir(Xh),Eg=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return _T(this,t,e)},r})();var rn=(function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},r.prototype.mergeOption=function(t,e){et(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,n=i==null?i:i[t];if(n==null&&!e){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},r.prototype.getModel=function(t,e){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(q(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!G.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r})();kn(rn);Fd(rn);Rt(rn,Ag);Rt(rn,Eg);Rt(rn,Ud);Rt(rn,Mg);var ct=rn;var xT=Math.round(Math.random()*10);function Zr(r){return[r||"",xT++].join("_")}function Lg(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=oe(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=oe(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function Pg(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,p={};for(S(a,function(y){p[y]=!0});h.length;){var c=h.pop(),v=f[c],g=!!p[c];g&&(s.call(l,c,v.originalDeps.slice()),delete p[c]),S(v.successor,g?m:d)}S(p,function(){var y="";throw new Error(y)});function d(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function m(y){p[y]=!0,d(y)}};function e(a){var o={},s=[];return S(a,function(l){var u=i(o,l),f=u.originalDeps=t(l),h=n(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),S(h,function(p){$(u.predecessor,p)<0&&u.predecessor.push(p);var c=i(o,p);$(c.successor,p)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return S(a,function(l){$(o,l)>=0&&s.push(l)}),s}}var Ig={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}};var Og={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var vl="ZH",Zh="EN",Kn=Zh,pl={},Kh={},dl=G.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Kn).toUpperCase();return r.indexOf(vl)>-1?vl:Kn})():Kn;function ml(r,t){r=r.toUpperCase(),Kh[r]=new ct(t),pl[r]=t}function Rg(r){if(k(r)){var t=pl[r.toUpperCase()]||{};return r===vl||r===Zh?q(t):et(q(t),q(pl[Kn]),!1)}else return et(q(r),q(pl[Kn]),!1)}function Ng(r){return Kh[r]}function kg(){return Kh[Kn]}ml(Zh,Ig);ml(vl,Og);var yl=1e3,_l=yl*60,Qn=_l*60,Se=Qn*24,Qh=Se*365,uo={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},gl="{yyyy}-{MM}-{dd}",$h={year:"{yyyy}",month:"{yyyy}-{MM}",day:gl,hour:gl+" "+uo.hour,minute:gl+" "+uo.minute,second:gl+" "+uo.second,millisecond:uo.none},jh=["year","month","day","hour","minute","second","millisecond"],Jh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function qt(r,t){return r+="","0000".substr(0,t-r.length)+r}function an(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function zg(r){return r===an(r)}function Fg(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function br(r,t,e,i){var n=zt(r),a=n[xl(e)](),o=n[nn(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[fo(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[jn(e)](),h=(f-1)%12+1,p=n[ho(e)](),c=n[co(e)](),v=n[po(e)](),g=f>=12?"pm":"am",d=g.toUpperCase(),m=i instanceof ct?i:Ng(i||dl)||kg(),y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,qt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,qt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,qt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,qt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,qt(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,qt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,qt(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,qt(v,3)).replace(/{S}/g,v+"")}function Ug(r,t,e,i,n){var a=null;if(k(e))a=e;else if(B(e))a=e(r.value,t,{level:r.level});else{var o=O({},uo);if(r.level>0)for(var s=0;s<jh.length;++s)o[jh[s]]="{primary|"+o[jh[s]]+"}";var l=e?e.inherit===!1?e:Y(e,o):o,u=Bg(r.value,n);if(l[u])a=l[u];else if(l.inherit){for(var f=Jh.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(R(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return br(new Date(r.value),a,n,i)}function Bg(r,t){var e=zt(r),i=e[nn(t)]()+1,n=e[fo(t)](),a=e[jn(t)](),o=e[ho(t)](),s=e[co(t)](),l=e[po(t)](),u=l===0,f=u&&s===0,h=f&&o===0,p=h&&a===0,c=p&&n===1,v=c&&i===1;return v?"year":c?"month":p?"day":h?"hour":f?"minute":u?"second":"millisecond"}function tc(r,t,e){var i=rt(r)?zt(r):r;switch(t=t||Bg(r,e),t){case"year":return i[xl(e)]();case"half-year":return i[nn(e)]()>=6?1:0;case"quarter":return Math.floor((i[nn(e)]()+1)/4);case"month":return i[nn(e)]();case"day":return i[fo(e)]();case"half-day":return i[jn(e)]()/24;case"hour":return i[jn(e)]();case"minute":return i[ho(e)]();case"second":return i[co(e)]();case"millisecond":return i[po(e)]()}}function xl(r){return r?"getUTCFullYear":"getFullYear"}function nn(r){return r?"getUTCMonth":"getMonth"}function fo(r){return r?"getUTCDate":"getDate"}function jn(r){return r?"getUTCHours":"getHours"}function ho(r){return r?"getUTCMinutes":"getMinutes"}function co(r){return r?"getUTCSeconds":"getSeconds"}function po(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Vg(r){return r?"setUTCFullYear":"setFullYear"}function ec(r){return r?"setUTCMonth":"setMonth"}function rc(r){return r?"setUTCDate":"setDate"}function ic(r){return r?"setUTCHours":"setHours"}function nc(r){return r?"setUTCMinutes":"setMinutes"}function ac(r){return r?"setUTCSeconds":"setSeconds"}function oc(r){return r?"setUTCMilliseconds":"setMilliseconds"}function sc(r,t,e,i,n,a,o,s){var l=new Ct({style:{text:r,font:t,align:e,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function vo(r){if(!Ua(r))return k(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function $n(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Kr=_a;function Sl(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&kt(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?zt(r):r;if(isNaN(+l)){if(s)return"-"}else return br(l,i,e)}if(t==="ordinal")return wn(r)?n(r):rt(r)&&a(r)?r+"":"-";var u=Ee(r);return a(u)?vo(u):wn(r)?n(r):typeof r=="boolean"?r+"":"-"}var Hg=["a","b","c","d","e","f","g"],lc=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Jn(r,t,e){R(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Hg[a];r=r.replace(lc(o),lc(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(lc(Hg[l],s),e?Pt(u):u)}return r}function wl(r,t){var e=k(r)?{color:r,extraCssText:t}:r||{},i=e.color,n=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Pt(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Pt(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Gg(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
10
+ yyyy`);var i=zt(t),n=e?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),h=i[n+"Milliseconds"]();return r=r.replace("MM",qt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",qt(a%100+"",2)).replace("dd",qt(s,2)).replace("d",s).replace("hh",qt(l,2)).replace("h",l).replace("mm",qt(u,2)).replace("m",u).replace("ss",qt(f,2)).replace("s",f).replace("SSS",qt(h,3)),r}function Wg(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function je(r,t){return t=t||"transparent",k(r)?r:U(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var Tl=S,ST=["left","right","top","bottom","width","height"],bl=[["width","left","right"],["height","top","bottom"]];function Yg(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect(),c,v;if(r==="horizontal"){var g=f.width+(p?-p.x+f.x:0);c=a+g,c>i||l.newline?(a=0,c=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var d=f.height+(p?-p.y+f.y:0);v=o+d,v>n||l.newline?(a+=s+e,o=0,v=d,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+e:o=v+e)})}var nN=Tt(Yg,"vertical"),aN=Tt(Yg,"horizontal");function ta(r,t,e){e=Kr(e||0);var i=t.width,n=t.height,a=Ot(r.left,i),o=Ot(r.top,n),s=Ot(r.right,i),l=Ot(r.bottom,n),u=Ot(r.width,i),f=Ot(r.height,n),h=e[2]+e[0],p=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-p;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var v=new X(a+e[3],o+e[0],u,f);return v.margin=e,v}function jr(r){var t=r.layoutMode||r.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function Qr(r,t,e){var i=e&&e.ignoreSize;!R(i)&&(i=[i,i]);var n=o(bl[0],0),a=o(bl[1],1);u(bl[0],r,n),u(bl[1],r,a);function o(f,h){var p={},c=0,v={},g=0,d=2;if(Tl(f,function(_){v[_]=r[_]}),Tl(f,function(_){s(t,_)&&(p[_]=v[_]=t[_]),l(p,_)&&c++,l(v,_)&&g++}),i[h])return l(t,f[1])?v[f[2]]=null:l(t,f[2])&&(v[f[1]]=null),v;if(g===d||!c)return v;if(c>=d)return p;for(var m=0;m<f.length;m++){var y=f[m];if(!s(p,y)&&s(r,y)){p[y]=r[y];break}}return p}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,p){Tl(f,function(c){h[c]=p[c]})}}function ea(r){return wT({},r)}function wT(r,t){return t&&r&&Tl(ST,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var TT=at(),ra=(function(r){L(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=Zr("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=jr(this),a=n?ea(e):{},o=i.getTheme();et(e,o.get(this.mainType)),et(e,this.getDefaultOption()),n&&Qr(e,a,n)},t.prototype.mergeOption=function(e,i){et(this.option,e,!0);var n=jr(this);n&&Qr(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!zd(e))return e.defaultOption;var i=TT(this);if(!i.defaultOption){for(var n=[],a=e;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=et(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return Vr(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(ct);Bs(ra,ct);Hr(ra);Lg(ra);Pg(ra,CT);function CT(r){var t=[];return S(ra.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=N(t,function(e){return oe(e).main}),r!=="dataset"&&$(t,"dataset")<=0&&t.unshift("dataset"),t}var lt=ra;var Xg="";typeof navigator!="undefined"&&(Xg=navigator.platform||"");var ia="rgba(0, 0, 0, 0.2)",qg={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ia,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ia,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ia,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ia,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ia,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ia,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Xg.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 Cl=V(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ut="original",Bt="arrayRows",he="objectRows",ke="keyedColumns",we="typedArray",fc="unknown",ze="column",Tr="row";var ee={Must:1,Might:2,Not:3},Zg=at();function Kg(r){Zg(r).datasetMap=V()}function jg(r,t,e){var i={},n=hc(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=Zg(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),S(r,function(g,d){var m=U(g)?g:r[d]={name:g};m.type==="ordinal"&&f==null&&(f=d,h=v(m)),i[m.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});S(r,function(g,d){var m=g.name,y=v(g);if(f==null){var _=p.valueWayDim;c(i[m],_,y),c(o,_,y),p.valueWayDim+=y}else if(f===d)c(i[m],0,y),c(a,0,y);else{var _=p.categoryWayDim;c(i[m],_,y),c(o,_,y),p.categoryWayDim+=y}});function c(g,d,m){for(var y=0;y<m;y++)g.push(d+y)}function v(g){var d=g.dimsDef;return d?d.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function hc(r){var t=r.get("data",!0);if(!t)return Vr(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Yt).models[0]}function Qg(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Vr(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Yt).models}function Dl(r,t){return DT(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function DT(r,t,e,i,n,a){var o,s=5;if(wt(r))return ee.Not;var l,u;if(i){var f=i[a];U(f)?(l=f.name,u=f.type):k(f)&&(l=f)}if(u!=null)return u==="ordinal"?ee.Must:ee.Not;if(t===Bt){var h=r;if(e===Tr){for(var p=h[a],c=0;c<(p||[]).length&&c<s;c++)if((o=x(p[n+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var v=h[n+c];if(v&&(o=x(v[a]))!=null)return o}}else if(t===he){var g=r;if(!l)return ee.Not;for(var c=0;c<g.length&&c<s;c++){var d=g[c];if(d&&(o=x(d[l]))!=null)return o}}else if(t===ke){var m=r;if(!l)return ee.Not;var p=m[l];if(!p||wt(p))return ee.Not;for(var c=0;c<p.length&&c<s;c++)if((o=x(p[c]))!=null)return o}else if(t===Ut)for(var y=r,c=0;c<y.length&&c<s;c++){var d=y[c],_=_r(d);if(!R(_))return ee.Not;if((o=x(_[a]))!=null)return o}function x(b){var w=k(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return w?ee.Might:ee.Not;if(w&&b!=="-")return ee.Must}return ee.Not}var MT=V();function $g(r,t,e){var i=MT.get(t);if(!i)return e;var n=i(r);if(!n)return e;if(0)for(var a;a<n.length;a++);return e.concat(n)}var Jg=at(),SN=at(),mo=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=xt(this.get("color",!0)),a=this.get("colorLayer",!0);return ET(this,Jg,n,a,t,e,i)},r.prototype.clearColorPalette=function(){LT(this,Jg)},r})();function AT(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function ET(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?e:AT(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function LT(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ml,go,ty,ey="\0_ec_inner",PT=1;var ay=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new ct(a),this._locale=new ct(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=ny(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,ny(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?ty(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&S(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=V(),u=i&&i.replaceMergeMainTypeMap;Kg(this),S(e,function(h,p){h!=null&&(lt.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?q(h):et(n[p],h,!0))}),u&&u.each(function(h,p){lt.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),lt.topologicalTravel(s,lt.getAllClassMainTypes(),f,this);function f(h){var p=$g(this,h,xt(e[h])),c=a.get(h),v=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=Pd(c,p,v);Od(g,h,lt),n[h]=null,a.set(h,null),o.set(h,0);var d=[],m=[],y=0,_,x;S(g,function(b,w){var T=b.existing,C=b.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var D=h==="series",A=lt.getClass(h,b.keyInfo.subType,!D);if(!A){if(0)var M,E;return}if(h==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===A)T.name=b.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var I=O({componentIndex:w},b.keyInfo);T=new A(C,this,this,I),O(T,I),b.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(d.push(T.option),m.push(T),y++):(d.push(void 0),m.push(void 0))},this),n[h]=d,a.set(h,m),o.set(h,y),h==="series"&&Ml(this)}this._seriesIndices||Ml(this)},t.prototype.getOption=function(){var e=q(this.option);return S(e,function(i,n){if(lt.hasClass(n)){for(var a=xt(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Nn(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[ey],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var n=e.index,a=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],S(xt(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=ry("id",a,s):o!=null?l=ry("name",o,s):l=mt(s,function(u){return!!u}),iy(l,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):mt(this._componentsMap.get(n),function(u){return!!u});return l(iy(o,e));function s(u){var f=n+"Index",h=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[h]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[h],name:u[p]}:null}function l(u){return e.filter?mt(u,e.filter):u}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(B(e)){var o=i,s=e;a.each(function(h,p){for(var c=0;h&&c<h.length;c++){var v=h[c];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=k(e)?a.get(e):U(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=ge(e,null);return mt(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return mt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return mt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){go(this),S(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];e.call(i,a,n)},this)},t.prototype.eachRawSeries=function(e,i){S(this._componentsMap.get("series"),function(n){n&&e.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,n){go(this),S(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,i,n){return S(this.getSeriesByType(e),i,n)},t.prototype.isSeriesFiltered=function(e){return go(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){go(this);var n=[];S(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=V(n)},t.prototype.restoreData=function(e){Ml(this);var i=this._componentsMap,n=[];i.each(function(a,o){lt.hasClass(o)&&n.push(o)}),lt.topologicalTravel(n,lt.getAllClassMainTypes(),function(a){S(i.get(a),function(o){o&&(a!=="series"||!IT(o,e))&&o.restoreData()})})},t.internalField=(function(){Ml=function(e){var i=e._seriesIndices=[];S(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=V(i)},go=function(e){},ty=function(e,i){e.option={},e.option[ey]=PT,e._componentsMap=V({series:[]}),e._componentsCount=V();var n=i.aria;U(n)&&n.enabled==null&&(n.enabled=!0),OT(i,e._theme.option),et(i,qg,!1),e._mergeOption(i,null)}})(),t})(ct);function IT(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||n!=null&&r.name!==n}}function OT(r,t){var e=r.color&&!r.colorLayer;S(t,function(i,n){n==="colorLayer"&&e||lt.hasClass(n)||(typeof i=="object"?r[n]=r[n]?et(r[n],i,!1):q(i):r[n]==null&&(r[n]=i))})}function ry(r,t,e){if(R(t)){var i=V();return S(t,function(a){if(a!=null){var o=ge(a,null);o!=null&&i.set(a,!0)}}),mt(e,function(a){return a&&i.get(a[r])})}else{var n=ge(t,null);return mt(e,function(a){return a&&n!=null&&a[r]===n})}}function iy(r,t){return t.hasOwnProperty("subType")?mt(r,function(e){return e&&e.subType===t.subType}):r}function ny(r){var t=V();return r&&S(xt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Rt(ay,mo);var Al=ay;var RT=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],NT=(function(){function r(t){S(RT,function(e){this[e]=nt(t[e],t)},this)}return r})(),El=NT;var cc={},kT=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];S(cc,function(n,a){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(t,e){S(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){cc[t]=e},r.get=function(t){return cc[t]},r})(),na=kT;var zT=/^(min|max)?(.+)$/,FT=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(S(xt(t.series),function(o){o&&o.data&&wt(o.data)&&gi(o.data)}),S(xt(t.dataset),function(o){o&&o.source&&wt(o.source)&&gi(o.source)})),t=q(t);var n=this._optionBackup,a=UT(t,e,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],q(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=q(i[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)BT(n[l].query,e,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!HT(o,this._currentMediaIndices)&&(s=N(o,function(f){return q(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function UT(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&R(u)&&S(u,function(c){c&&c.option&&(c.query?i.push(c):n||(n=c))}),p(a),S(l,function(c){return p(c)}),S(i,function(c){return p(c.option)});function p(c){S(t,function(v){v(c,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function BT(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return S(r,function(a,o){var s=o.match(zT);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();VT(i[u],a,l)||(n=!1)}}),n}function VT(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function HT(r,t){return r.join(",")===t.join(",")}var oy=FT;var Qe=S,_o=U,sy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pc(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=sy.length;e<i;e++){var n=sy[e],a=t.normal,o=t.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?et(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?et(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Zt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,Y(r[t],i)):r[t]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function yo(r){Zt(r,"itemStyle"),Zt(r,"lineStyle"),Zt(r,"areaStyle"),Zt(r,"label"),Zt(r,"labelLine"),Zt(r,"upperLabel"),Zt(r,"edgeLabel")}function At(r,t){var e=_o(r)&&r[t],i=_o(e)&&e.textStyle;if(i)for(var n=0,a=Hf.length;n<a;n++){var o=Hf[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}function Fe(r){r&&(yo(r),At(r,"label"),r.emphasis&&At(r.emphasis,"label"))}function GT(r){if(_o(r)){pc(r),yo(r),At(r,"label"),At(r,"upperLabel"),At(r,"edgeLabel"),r.emphasis&&(At(r.emphasis,"label"),At(r.emphasis,"upperLabel"),At(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(pc(t),Fe(t));var e=r.markLine;e&&(pc(e),Fe(e));var i=r.markArea;i&&Fe(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!wt(a))for(var o=0;o<a.length;o++)Fe(a[o]);S(r.categories,function(u){yo(u)})}if(n&&!wt(n))for(var o=0;o<n.length;o++)Fe(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Fe(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)R(l[o])?(Fe(l[o][0]),Fe(l[o][1])):Fe(l[o]);r.type==="gauge"?(At(r,"axisLabel"),At(r,"title"),At(r,"detail")):r.type==="treemap"?(Zt(r.breadcrumb,"itemStyle"),S(r.levels,function(u){yo(u)})):r.type==="tree"&&yo(r.leaves)}}function Cr(r){return R(r)?r:r?[r]:[]}function ly(r){return(R(r)?r[0]:r)||{}}function vc(r,t){Qe(Cr(r.series),function(i){_o(i)&&GT(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Qe(e,function(i){Qe(Cr(r[i]),function(n){n&&(At(n,"axisLabel"),At(n.axisPointer,"label"))})}),Qe(Cr(r.parallel),function(i){var n=i&&i.parallelAxisDefault;At(n,"axisLabel"),At(n&&n.axisPointer,"label")}),Qe(Cr(r.calendar),function(i){Zt(i,"itemStyle"),At(i,"dayLabel"),At(i,"monthLabel"),At(i,"yearLabel")}),Qe(Cr(r.radar),function(i){At(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Qe(Cr(r.geo),function(i){_o(i)&&(Fe(i),Qe(Cr(i.regions),function(n){Fe(n)}))}),Qe(Cr(r.timeline),function(i){Fe(i),Zt(i,"label"),Zt(i,"itemStyle"),Zt(i,"controlStyle",!0);var n=i.data;R(n)&&S(n,function(a){U(a)&&(Zt(a,"label"),Zt(a,"itemStyle"))})}),Qe(Cr(r.toolbox),function(i){Zt(i,"iconStyle"),Qe(i.feature,function(n){Zt(n,"iconStyle")})}),At(ly(r.axisPointer),"label"),At(ly(r.tooltip).axisPointer,"label")}function WT(r,t){for(var e=t.split(","),i=r,n=0;n<e.length&&(i=i&&i[e[n]],i!=null);n++);return i}function YT(r,t,e,i){for(var n=t.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=e)}function uy(r){r&&S(XT,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var XT=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],qT=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],dc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function xo(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<dc.length;e++){var i=dc[e][1],n=dc[e][0];t[i]!=null&&(t[n]=t[i])}}function fy(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function hy(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function ZT(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function cy(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&cy(r[e].children,t)}function Ll(r,t){vc(r,t),r.series=xt(r.series),S(r.series,function(e){if(U(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),fy(e.label);var n=e.data;if(n&&!wt(n))for(var a=0;a<n.length;a++)fy(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=WT(e,"pointer.color");o!=null&&YT(e,"itemStyle.color",o)}else if(i==="bar"){xo(e),xo(e.backgroundStyle),xo(e.emphasis);var n=e.data;if(n&&!wt(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(xo(n[a]),xo(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),hy(e),cy(e.data,hy)}else i==="graph"||i==="sankey"?ZT(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Y(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),uy(e)}}),r.dataRange&&(r.visualMap=r.dataRange),S(qT,function(e){var i=r[e];i&&(R(i)||(i=[i]),S(i,function(n){uy(n)}))})}function mc(r){var t=V();r.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.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:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(KT)}function KT(r){S(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var p=o.get(t.stackedDimension,h);if(isNaN(p))return n;var c,v;s?v=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var g=NaN,d=e-1;d>=0;d--){var m=r[d];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,c)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=bd(p,y),g=y;break}}}return i[0]=p,i[1]=g,i})})}var Pl=(function(){function r(t){this.data=t.data||(t.sourceFormat===ke?{}:[]),this.sourceFormat=t.sourceFormat||fc,this.seriesLayoutBy=t.seriesLayoutBy||ze,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];n.type==null&&Dl(this,i)===ee.Must&&(n.type="ordinal")}}return r})();function aa(r){return r instanceof Pl}function So(r,t,e){e=e||gc(r);var i=t.seriesLayoutBy,n=jT(r,e,i,t.sourceHeader,t.dimensions),a=new Pl({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:q(t)});return a}function oa(r){return new Pl({data:r,sourceFormat:wt(r)?we:Ut})}function dy(r){return new Pl({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:q(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function gc(r){var t=fc;if(wt(r))t=we;else if(R(r)){r.length===0&&(t=Bt);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(R(n)||wt(n)){t=Bt;break}else if(U(n)){t=he;break}}}}else if(U(r)){for(var a in r)if(be(r,a)&&Dt(r[a])){t=ke;break}}return t}function jT(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:py(n),startIndex:o,dimensionsDetectedCount:a};if(t===Bt){var s=r;i==="auto"||i==null?vy(function(u){u!=null&&u!=="-"&&(k(u)?o==null&&(o=1):o=0)},e,s,10):o=rt(i)?i:i?1:0,!n&&o===1&&(n=[],vy(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),a=n?n.length:e===Tr?s.length:s[0]?s[0].length:null}else if(t===he)n||(n=QT(r));else if(t===ke)n||(n=[],S(r,function(u,f){n.push(f)}));else if(t===Ut){var l=_r(r[0]);a=R(l)&&l.length||1}return{startIndex:o,dimensionsDefine:py(n),dimensionsDetectedCount:a}}function QT(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return tt(e)}function py(r){if(r){var t=V();return N(r,function(e,i){e=U(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function vy(r,t,e,i){if(t===Tr)for(var n=0;n<e.length&&n<i;n++)r(e[n]?e[n][0]:null,n);else for(var a=e[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function Il(r){var t=r.sourceFormat;return t===he||t===ke}var on,sn,ln,my,gy,Ol=(function(){function r(t,e){var i=aa(t)?t:oa(t);this._source=i;var n=this._data=i.data;i.sourceFormat===we&&(this._offset=0,this._dimSize=e,this._data=n),gy(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;gy=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,p=l.dimensionsDefine,c=my[wc(u,f)];if(O(o,c),u===we)o.getItem=e,o.count=n,o.fillStorage=i;else{var v=_c(u,f);o.getItem=nt(v,null,s,h,p);var g=xc(u,f);o.count=nt(g,null,s,h,p)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},i=function(o,s,l,u){for(var f=this._data,h=this._dimSize,p=0;p<h;p++){for(var c=u[p],v=c[0]==null?1/0:c[0],g=c[1]==null?-1/0:c[1],d=s-o,m=l[p],y=0;y<d;y++){var _=f[y*h+p];m[o+y]=_,_<v&&(v=_),_>g&&(g=_)}c[0]=v,c[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};my=(t={},t[Bt+"_"+ze]={pure:!0,appendData:a},t[Bt+"_"+Tr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[he]={pure:!0,appendData:a},t[ke]={pure:!0,appendData:function(o){var s=this._data;S(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Ut]={appendData:a},t[we]={persistent:!1,pure:!0,appendData:function(o){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])}})(),r})();var yy=function(r,t,e,i){return r[i]},$T=(on={},on[Bt+"_"+ze]=function(r,t,e,i){return r[i+t]},on[Bt+"_"+Tr]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},on[he]=yy,on[ke]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[i]:null}return a},on[Ut]=yy,on);function _c(r,t){var e=$T[wc(r,t)];return e}var _y=function(r,t,e){return r.length},JT=(sn={},sn[Bt+"_"+ze]=function(r,t,e){return Math.max(0,r.length-t)},sn[Bt+"_"+Tr]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},sn[he]=_y,sn[ke]=function(r,t,e){var i=e[0].name,n=r[i];return n?n.length:0},sn[Ut]=_y,sn);function xc(r,t){var e=JT[wc(r,t)];return e}var yc=function(r,t,e){return r[t]},tC=(ln={},ln[Bt]=yc,ln[he]=function(r,t,e){return r[e]},ln[ke]=yc,ln[Ut]=function(r,t,e){var i=_r(r);return i instanceof Array?i[t]:i},ln[we]=yc,ln);function Sc(r){var t=tC[r];return t}function wc(r,t){return r===Bt?r+"_"+t:r}function Dr(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return Sc(a)(i,o,s)}else{var l=i;return a===Ut&&(l=_r(i)),l}}}}var eC=/\{@(.+?)\}/g,xy=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,p=h==="series",c=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(o&&(l.value=o.interpolatedValue),n!=null&&R(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(B(a))return l.status=e,l.dimensionIndex=n,a(l);if(k(a)){var f=Jn(a,l);return f.replace(eC,function(h,p){var c=p.length,v=p;v.charAt(0)==="["&&v.charAt(c-1)==="]"&&(v=+v.slice(1,c-1));var g=Dr(s,t,v);if(o&&R(o.interpolatedValue)){var d=s.getDimensionIndex(v);d>=0&&(g=o.interpolatedValue[d])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return Dr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r})();function bc(r){var t,e;return U(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function $r(r){return new rC(r)}var rC=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(h||c<v)){var g=this._progress;if(R(g))for(var d=0;d<g.length;d++)this._doProgress(g[d],c,v,l,u);else this._doProgress(g,c,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,n,a){Sy.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Sy.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),R(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})();var Sy=(function(){var r,t,e,i,n,a={reset:function(l,u,f,h){t=l,r=u,e=f,i=h,n=Math.ceil(i/e),a.next=e>1&&i>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<i?l:t;return t++,u}})();function sa(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!rt(r)&&r!=null&&r!=="-"&&(r=+zt(r)),r==null||r===""?NaN:Number(r))}var d2=V({number:function(r){return parseFloat(r)},time:function(r){return+zt(r)},trim:function(r){return k(r)?kt(r):r}});var iC={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},m2=(function(){function r(t,e){if(!rt(e)){var i="";Ft(i)}this._opFn=iC[t],this._rvalFloat=Ee(e)}return r.prototype.evaluate=function(t){return rt(t)?this._opFn(t,this._rvalFloat):this._opFn(Ee(t),this._rvalFloat)},r})(),wy=(function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=rt(t)?t:Ee(t),n=rt(e)?e:Ee(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=k(t),l=k(e);s&&(i=l?t:0),l&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r})();var g2=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ee(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(e=Ee(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();var nC=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return sa(t,e)},r})();function aC(r,t){var e=new nC,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==ze&&Ft(o);var s=[],l={},u=r.dimensionsDefine;if(u)S(u,function(g,d){var m=g.name,y={index:d,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";be(l,m)&&Ft(_),l[m]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=_c(n,ze);t.__isBuiltIn&&(e.getRawDataItem=function(g){return h(i,a,s,g)},e.getRawData=nt(oC,null,r)),e.cloneRawData=nt(sC,null,r);var p=xc(n,ze);e.count=nt(p,null,i,a,s);var c=Sc(n);e.retrieveValue=function(g,d){var m=h(i,a,s,g);return v(m,d)};var v=e.retrieveValueFromItem=function(g,d){if(g!=null){var m=s[d];if(m)return c(g,d,m.name)}};return e.getDimensionInfo=nt(lC,null,s,l),e.cloneAllDimensionInfo=nt(uC,null,s),e}function oC(r){var t=r.sourceFormat;if(!Tc(t)){var e="";Ft(e)}return r.data}function sC(r){var t=r.sourceFormat,e=r.data;if(!Tc(t)){var i="";Ft(i)}if(t===Bt){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===he){for(var n=[],a=0,o=e.length;a<o;a++)n.push(O({},e[a]));return n}}function lC(r,t,e){if(e!=null){if(rt(e)||!isNaN(e)&&!be(t,e))return r[e];if(be(t,e))return t[e]}}function uC(r){return q(r)}var by=V();function Ty(r){r=q(r);var t=r.type,e="";t||Ft(e);var i=t.split(":");i.length!==2&&Ft(e);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,by.set(t,r)}function Cy(r,t,e){var i=xt(r),n=i.length,a="";n||Ft(a);for(var o=0,s=n;o<s;o++){var l=i[o];t=fC(l,t,e,n===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function fC(r,t,e,i){var n="";t.length||Ft(n),U(r)||Ft(n);var a=r.type,o=by.get(a);o||Ft(n);var s=N(t,function(f){return aC(f,o)}),l=xt(o.transform({upstream:s[0],upstreamList:s,config:q(r.config)}));if(0&&r.print)var u;return N(l,function(f,h){var p="";U(f)||Ft(p),f.data||Ft(p);var c=gc(f.data);Tc(c)||Ft(p);var v,g=t[0];if(g&&h===0&&!f.dimensions){var d=g.startIndex;d&&(f.data=g.data.slice(0,d).concat(f.data)),v={seriesLayoutBy:ze,sourceHeader:d,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:ze,sourceHeader:0,dimensions:f.dimensions};return So(f.data,v,null)})}function Tc(r){return r===Bt||r===he}var Rl="undefined",hC=typeof Uint32Array===Rl?Array:Uint32Array,cC=typeof Uint16Array===Rl?Array:Uint16Array,Dc=typeof Int32Array===Rl?Array:Int32Array,Dy=typeof Float64Array===Rl?Array:Float64Array,Ay={float:Dy,int:Dc,ordinal:Array,number:Array,time:Dy},Cc;function la(r){return r>65535?hC:cC}function ua(){return[1/0,-1/0]}function pC(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function My(r,t,e,i,n){var a=Ay[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(i)}var vC=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=Cc[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Il(n);this._dimensions=N(e,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===e)return a}else a=n.length;return n[a]={type:e},i.set(t,a),this._chunks[a]=new Ay[e||"float"](this._rawCount),this._rawExtent[a]=ua(),a},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=ua());for(var l=a[t],u=o;u<s;u++){var f=i[u]=e.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=n[u];My(i,u,f.type,l,!0)}for(var h=[],p=s;p<l;p++)for(var c=p-s,v=0;v<a;v++){var f=n[v],g=Cc.arrayRows.call(this,t[c]||h,f.property,c,v);i[v][p]=g;var d=o[v];g<d[0]&&(d[0]=g),g>d[1]&&(d[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=N(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=ua()),My(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,l);else for(var p=[],c=t;c<e;c++){p=n.getItem(c,p);for(var v=0;v<s;v++){var g=a[v],d=this._dimValueGetter(p,u[v],c,v);g[c]=d;var m=l[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],n=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var i=e.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var p=this.getRawIndex(f),c=e-a[p],v=Math.abs(c);v<=i&&((v<s||v===s&&c>=0&&l<0)&&(s=v,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=e[a]}else t=new i(e.buffer,0,n)}else{var i=la(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=la(i._rawCount),o=new a(n),s=[],l=t.length,u=0,f=t[0],h=i._chunks,p=0;p<n;p++){var c=void 0,v=i.getRawIndex(p);if(l===0)c=e(p);else if(l===1){var g=h[f][v];c=e(g,p)}else{for(var d=0;d<l;d++)s[d]=h[t[d]][v];s[d]=p,c=e.apply(null,s)}c&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=tt(t),a=n.length;if(!a)return this;var o=e.count(),s=la(e._rawCount),l=new s(o),u=0,f=n[0],h=t[f][0],p=t[f][1],c=e._chunks,v=!1;if(!e._indices){var g=0;if(a===1){for(var d=c[n[0]],m=0;m<i;m++){var y=d[m];(y>=h&&y<=p||isNaN(y))&&(l[u++]=g),g++}v=!0}else if(a===2){for(var d=c[n[0]],_=c[n[1]],x=t[n[1]][0],b=t[n[1]][1],m=0;m<i;m++){var y=d[m],w=_[m];(y>=h&&y<=p||isNaN(y))&&(w>=x&&w<=b||isNaN(w))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var T=e.getRawIndex(m),y=c[n[0]][T];(y>=h&&y<=p||isNaN(y))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=e.getRawIndex(m),D=0;D<a;D++){var A=n[D],y=c[A][T];(y<t[A][0]||y>t[A][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(m))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var n=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=ua();for(var h=0;h<s;h++){for(var p=t.getRawIndex(h),c=0;c<o;c++)l[c]=n[e[c]][p];l[o]=h;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var g=e[f],d=v[f],m=u[g],y=n[g];y&&(y[p]=d),d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,p,c=new(la(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var v=1;v<o-1;v+=l){for(var g=Math.min(v+l,o-1),d=Math.min(v+l*2,o),m=(d+g)/2,y=0,_=g;_<d;_++){var x=this.getRawIndex(_),b=a[x];isNaN(b)||(y+=b)}y/=d-g;var w=v,T=Math.min(v+l,o),C=v-1,D=a[u];f=-1,p=w;for(var A=-1,M=0,_=w;_<T;_++){var x=this.getRawIndex(_),b=a[x];if(isNaN(b)){M++,A<0&&(A=x);continue}h=Math.abs((C-m)*(b-D)-(C-_)*(y-D)),h>f&&(f=h,p=x)}M>0&&M<T-w&&(c[s++]=Math.min(A,p),p=Math.max(A,p)),c[s++]=p,u=p}return c[s++]=this.getRawIndex(o-1),i._count=s,i._indices=c,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/e),o=n[t],s=this.count(),l=new(la(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,p=o[this.getRawIndex(h)],c=f,v=o[this.getRawIndex(c)],g=a;f+a>s&&(g=s-f);for(var d=0;d<g;d++){var m=this.getRawIndex(f+d),y=o[m];y<p&&(p=y,h=f+d),y>v&&(v=y,c=f+d)}var _=this.getRawIndex(h),x=this.getRawIndex(c);h<c?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=ua(),p=new(la(this._rawCount))(Math.ceil(f/l)),c=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var g=0;g<l;g++){var d=this.getRawIndex(v+g);s[g]=u[d]}var m=i(s),y=this.getRawIndex(Math.min(v+n(s,m)||0,f-1));u[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),p[c++]=y}return a._count=c,a._indices=p,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:e(a);break;case 1:e(n[t[0]][s],a);break;case 2:e(n[t[0]][s],n[t[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=ua();if(!e)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][e]);return i},r.prototype.clone=function(t,e){var i=new r,n=this._chunks,a=t&&Wt(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?pC(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=q(this._extent),t._rawExtent=q(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,i,n,a){return sa(e[a],this._dimensions[a])}Cc={arrayRows:t,objectRows:function(e,i,n,a){return sa(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return sa(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}})(),r})(),wo=vC;var Ly=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(Nl(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=wt(s)?we:Ut,a=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},c=Z(h.seriesLayoutBy,p.seriesLayoutBy)||null,v=Z(h.sourceHeader,p.sourceHeader),g=Z(h.dimensions,p.dimensions),d=c!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||g;n=d?[So(s,{seriesLayoutBy:c,sourceHeader:v,dimensions:g},l)]:[]}else{var m=t;if(i){var y=this._applyTransform(e);n=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);n=[So(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&Ey(a)}var o,s=[],l=[];return S(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&Ey(h),s.push(f),l.push(u._getVersionSign())}),i?o=Cy(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[dy(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Nl(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new wo,s.initData(new Ol(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Nl(t)){var e=hc(t);return e?[e.getSourceManager()]:[]}else return N(Qg(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(Nl(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:n}},r})();function Nl(r){return r.mainType==="series"}function Ey(r){throw new Error(r)}var dC="line-height:1";function Py(r){var t=r.lineHeight;return t==null?dC:"line-height:"+Pt(t+"")+"px"}function Iy(r,t){var e=r.color||"#6e7079",i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Pt(i+"")+"px;color:"+Pt(e)+";font-weight:"+Pt(n+""),valueStyle:"font-size:"+Pt(o+"")+"px;color:"+Pt(a)+";font-weight:"+Pt(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var mC=[0,10,20,30],gC=["",`
11
+ `,`
12
+
13
+ `,`
14
+
15
+
16
+ `];function un(r,t){return t.type=r,t}function Mc(r){return r.type==="section"}function Oy(r){return Mc(r)?yC:_C}function Ry(r){if(Mc(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return S(r.blocks,function(n){var a=Ry(n);a>=t&&(t=a+ +(i&&(!a||Mc(n)&&!n.noHeader)))}),t}return 0}function yC(r,t,e,i){var n=t.noHeader,a=xC(Ry(t)),o=[],s=t.blocks||[];Nt(!s||R(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(be(u,l)){var f=new wy(u[l],null);s.sort(function(g,d){return f.evaluate(g.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}S(s,function(g,d){var m=t.valueFormatter,y=Oy(g)(m?O(O({},r),{valueFormatter:m}):r,g,d>0?a.html:0,i);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):Ac(i,o.join(""),n?e:a.html);if(n)return h;var p=Sl(t.header,"ordinal",r.useUTC),c=Iy(i,r.renderMode).nameStyle,v=Py(i);return r.renderMode==="richText"?Ny(r,p,c)+a.richText+h:Ac(i,'<div style="'+c+";"+v+';">'+Pt(p)+"</div>"+h,e)}function _C(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(x){return x=R(x)?x:[x],N(x,function(b,w){return Sl(b,R(c)?c[w]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),p=a?"":Sl(l,"ordinal",u),c=t.valueType,v=o?[]:f(t.value,t.dataIndex),g=!s||!a,d=!s&&a,m=Iy(i,n),y=m.nameStyle,_=m.valueStyle;return n==="richText"?(s?"":h)+(a?"":Ny(r,p,y))+(o?"":bC(r,v,g,d,_)):Ac(i,(s?"":h)+(a?"":SC(p,!s,y))+(o?"":wC(v,g,d,_)),e)}}function Ec(r,t,e,i,n,a){if(r){var o=Oy(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function xC(r){return{html:mC[r],richText:gC[r]}}function Ac(r,t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",a=Py(r);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function SC(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+Pt(r)+"</span>"}function wC(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=R(r)?r:[r],'<span style="'+a+";"+i+'">'+N(r,function(o){return Pt(o)}).join("&nbsp;&nbsp;")+"</span>"}function Ny(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function bC(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(R(t)?t.join(" "):t,a)}function ky(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return je(i)}function kl(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var zl=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=ks()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=wl({color:e,type:t,renderMode:i,markerId:n});return k(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};R(e)?S(e,function(a){return O(i,a)}):O(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r})();function zy(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=R(s),u=ky(t,e),f,h,p,c;if(o>1||l&&!o){var v=TC(s,t,e,a,u);f=v.inlineValues,h=v.inlineValueTypes,p=v.blocks,c=v.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);c=f=Dr(n,e,a[0]),h=g.type}else c=f=l?s[0]:s;var d=Fs(t),m=d&&t.name||"",y=n.getName(e),_=i?m:y;return un("section",{header:m,noHeader:i||!d,sortParam:c,blocks:[un("nameValue",{markerType:"item",markerColor:u,name:_,noName:!kt(_),value:f,valueType:h,dataIndex:e})].concat(p||[])})}function TC(r,t,e,i,n){var a=t.getData(),o=Wt(r,function(h,p,c){var v=a.getDimensionInfo(c);return h=h||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?S(i,function(h){f(Dr(a,e,h),h)}):S(r,f);function f(h,p){var c=a.getDimensionInfo(p);!c||c.otherDims.tooltip===!1||(o?u.push(un("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Jr=at();function Fl(r,t){return r.getName(t)||r.getId(t)}var CC="__universalTransitionEnabled",Ul=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=$r({count:MC,reset:AC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=Jr(this).sourceManager=new Ly(this);a.prepareSource();var o=this.getInitialData(e,n);Uy(o,this),this.dataTask.context.data=o,Jr(this).dataBeforeProcessed=o,Fy(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=jr(this),a=n?ea(e):{},o=this.subType;lt.hasClass(o)&&(o+="Series"),et(e,i.getTheme().get(this.subType)),et(e,this.getDefaultOption()),Vf(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Qr(e,a,n)},t.prototype.mergeOption=function(e,i){e=et(this.option,e,!0),this.fillDataTextStyle(e.data);var n=jr(this);n&&Qr(this.option,e,n);var a=Jr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);Uy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Jr(this).dataBeforeProcessed=o,Fy(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!wt(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Vf(e[n],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=Lc(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Jr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=Lc(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}Jr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return V(e)},t.prototype.getSourceManager=function(){return Jr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Jr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,i,n){return zy({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(G.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=mo.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Fl(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,i){for(var n=[],a=0;a<e.length;a++)n[0]=e[a],this.isSelected(e[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=tt(e),n=[],a=0;a<i.length;a++){var o=e[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Fl(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[CC])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=i[f],p=Fl(e,h);u[p]=!0,this._selectedDataIndicesMap[p]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=i[l-1],p=Fl(e,c);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=e.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(n){var a=e.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return lt.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(lt);Rt(Ul,xy);Rt(Ul,mo);Bs(Ul,lt);function Fy(r){var t=r.name;Fs(r)||(r.name=DC(r)||t)}function DC(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return S(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function MC(r){return r.model.getRawData().count()}function AC(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),EC}function EC(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Uy(r,t){S(Yu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Tt(LC,t))})}function LC(r,t){var e=Lc(r);return e&&e.setOutputEnd((t||this).count()),t}function Lc(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var Ue=Ul;var Pc=(function(){function r(){this.group=new dt,this.uid=Zr("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();kn(Pc);Hr(Pc);var Gt=Pc;function bo(){var r=at();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Hy=at(),PC=bo(),Ic=(function(){function r(){this.group=new dt,this.uid=Zr("viewChart"),this.renderTask=$r({plan:IC,reset:OC}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Vy(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Vy(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){lo(this.group,t)},r.markUpdateMethod=function(t,e){Hy(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function By(r,t,e){r&&Qa(r)&&(t==="emphasis"?Xi:qi)(r,e)}function Vy(r,t,e){var i=Le(r,t),n=t&&t.highlightKey!=null?Vm(t.highlightKey):null;i!=null?S(xt(i),function(a){By(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){By(a,e,n)})}kn(Ic,["dispose"]);Hr(Ic);function IC(r){return PC(r.model)}function OC(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&Hy(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),RC[l]}var RC={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},re=Ic;var Bl="\0__throttleOriginMethod",Gy="\0__throttleRate",Wy="\0__throttleType";function To(r,t,e){var i,n=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var p=function(){for(var c=[],v=0;v<arguments.length;v++)c[v]=arguments[v];i=new Date().getTime(),l=this,u=c;var g=f||t,d=f||e;f=null,s=i-(d?n:a)-g,clearTimeout(o),d?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(c){f=c},p}function Vl(r,t,e,i){var n=r[t];if(n){var a=n[Bl]||n,o=n[Wy],s=n[Gy];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=To(a,e,i==="debounce"),n[Bl]=a,n[Wy]=i,n[Gy]=e}return n}}function Co(r,t){var e=r[t];e&&e[Bl]&&(e.clear&&e.clear(),r[t]=e[Bl])}var Yy=at(),Xy={itemStyle:ir(Xh,!0),lineStyle:ir(Yh,!0)},kC={lineStyle:"stroke",itemStyle:"fill"};function qy(r,t){var e=r.visualStyleMapper||Xy[t];return e||(console.warn("Unknown style type '"+t+"'."),Xy.itemStyle)}function Zy(r,t){var e=r.visualDrawType||kC[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Ky={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=qy(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Zy(r,i),u=o[l],f=B(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var p=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=p,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||B(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||B(o.stroke)?p:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,v){var g=r.getDataParams(v),d=O({},o);d[l]=f(g),c.setItemVisual(v,"style",d)}}}},Do=new ct,jy={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=qy(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Do.option=l[i];var u=n(Do),f=o.ensureUniqueItemVisual(s,"style");O(f,u),Do.option.decal&&(o.setItemVisual(s,"decal",Do.option.decal),Do.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Qy={performRawSeries:!0,overallReset:function(r){var t=V();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),Yy(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=Yy(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Zy(e,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var p=a.ensureUniqueItemVisual(f,"style"),c=i.getName(u)||u+"",v=i.count();p[l]=e.getColorFromPalette(c,o,v)}})}})}};var Hl=Math.PI;function Oc(r,t){t=t||{},Y(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new dt,i=new St({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Ct({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 St({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Qi({shape:{startAngle:-Hl/2,endAngle:-Hl/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:Hl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Hl*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var zC=(function(){function r(t,e,i,n){this._stageTaskMap=V(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=V();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;S(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";Nt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;S(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,p=f.overallTask;if(p){var c,v=p.agentStubMap;v.each(function(d){s(n,d)&&(d.dirty(),c=!0)}),c&&p.dirty(),o.updatePayload(p,i);var g=o.getPerformArgs(p,n.block);v.each(function(d){d.perform(g)}),p.perform(g)&&(a=!0)}else h&&h.each(function(d,m){s(n,d)&&d.dirty();var y=o.getPerformArgs(d,n.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(d.context.model),o.updatePayload(d,i),d.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=V(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(h){var p=h.uid,c=s.set(p,o&&o.get(p)||$r({plan:HC,reset:GC,count:YC}));c.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||$r({reset:FC});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=V(),u=t.seriesType,f=t.getTargetSeries,h=!0,p=!1,c="";Nt(!t.createOnAllSeries,c),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):(h=!1,S(i.getSeries(),v));function v(g){var d=g.uid,m=l.set(d,s&&s.get(d)||(p=!0,$r({reset:UC,onDirty:VC})));m.context={model:g,overallProgress:h},m.agent=o,m.__block=h,a._pipe(g,m)}p&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return B(t)&&(t={overallReset:t,seriesType:XC(t)}),t.uid=Zr("stageHandler"),e&&(t.visualType=e),t},r})();function FC(r){r.overallReset(r.ecModel,r.api,r.payload)}function UC(r){return r.overallProgress&&BC}function BC(){this.agent.dirty(),this.getDownstream().dirty()}function VC(){this.agent&&this.agent.dirty()}function HC(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function GC(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=xt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?N(t,function(e,i){return $y(i)}):WC}var WC=$y(0);function $y(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function YC(r){return r.data.count()}function XC(r){Gl=null;try{r(Mo,Jy)}catch{}return Gl}var Mo={},Jy={},Gl;t_(Mo,Al);t_(Jy,El);Mo.eachSeriesByType=Mo.eachRawSeriesByType=function(r){Gl=r};Mo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Gl=r.subType)};function t_(r,t){for(var e in t.prototype)r[e]=Et}var Rc=zC;var e_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],r_={color:e_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],e_]};var Kt="#B9B8CE",i_="#100C2A",Wl=function(){return{axisLine:{lineStyle:{color:Kt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},n_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],a_={darkMode:!0,color:n_,backgroundColor:i_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Kt},pageTextStyle:{color:Kt}},textStyle:{color:Kt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Kt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Kt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Kt}},timeline:{lineStyle:{color:Kt},label:{color:Kt},controlStyle:{color:Kt,borderColor:Kt}},calendar:{itemStyle:{color:i_},dayLabel:{color:Kt},monthLabel:{color:Kt},yearLabel:{color:Kt}},timeAxis:Wl(),logAxis:Wl(),valueAxis:Wl(),categoryAxis:Wl(),line:{symbol:"circle"},graph:{color:n_},gauge:{title:{color:Kt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Kt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};a_.categoryAxis.splitLine.show=!1;var o_=a_;var s_=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(k(t)){var a=oe(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};S(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var p=o[h],c=u.lastIndexOf(p);if(c>0&&c===u.length-p.length){var v=u.slice(0,c);v!=="data"&&(e.mainType=v,e[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,p,c,v){return h[c]==null||p[v||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})();var Nc=["symbol","symbolSize","symbolRotate","symbolOffset"],l_=Nc.concat(["symbolKeepAspect"]),u_={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Nc.length;o++){var s=Nc[o],l=r.get(s);B(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(O({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=tt(n);function f(h,p){for(var c=r.getRawValue(p),v=r.getDataParams(p),g=0;g<u.length;g++){var d=u[g];h.setItemVisual(p,d,n[d](c,v))}}return{dataEach:a?f:null}}},f_={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<l_.length;s++){var l=l_[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?i:null}}};function h_(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e);default:}}function c_(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t);default:}}function fa(r,t,e,i,n){var a=r+t;e.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),p=Le(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:R(p)?h.getName(p[0]):h.getName(p),selected:k(l)?l:O({},l)})}})}function p_(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(fa("map","selectchanged",t,n,i),fa("pie","selectchanged",t,n,i)):i.fromAction==="select"?(fa("map","selected",t,n,i),fa("pie","selected",t,n,i)):i.fromAction==="unselect"&&(fa("map","unselected",t,n,i),fa("pie","unselected",t,n,i))})}function fn(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var qC=Math.round(Math.random()*9),ZC=typeof Object.defineProperty=="function",KC=(function(){function r(){this._id="__ec_inner_"+qC++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return ZC?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})(),v_=KC;var jC=Q.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i+a),r.lineTo(e-n,i+a),r.closePath()}}),QC=Q.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i),r.lineTo(e,i+a),r.lineTo(e-n,i),r.closePath()}}),$C=Q.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),p=Math.cos(u),c=o*.6,v=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*c,l+s+p*c,e,i-v,e,i),r.bezierCurveTo(e,i-v,e-f+h*c,l+s+p*c,e-f,l+s),r.closePath()}}),JC=Q.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+e),r.lineTo(n,a+e/4*3),r.lineTo(n-o,a+e),r.lineTo(n,a),r.closePath()}}),tD={line:_e,rect:St,roundRect:St,square:St,circle:Zi,diamond:QC,pin:$C,arrow:JC,triangle:jC},eD={line:function(r,t,e,i,n){n.x1=r,n.y1=t+i/2,n.x2=r+e,n.y2=t+i/2},rect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i},roundRect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i,n.r=Math.min(e,i)/4},square:function(r,t,e,i,n){var a=Math.min(e,i);n.x=r,n.y=t,n.width=a,n.height=a},circle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.r=Math.min(e,i)/2},diamond:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i},pin:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},arrow:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},triangle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i}},kc={};S(tD,function(r,t){kc[t]=new r});var rD=Q.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=Es(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var n=kc[i];n||(i="rect",n=kc[i]),eD[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function iD(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function $e(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=oo(r.slice(8),new X(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=qn(r.slice(7),{},new X(t,e,i,n),o?"center":"cover"):l=new rD({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=iD,a&&l.setColor(a),l}function d_(r){return R(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Yl(r,t){if(r!=null)return R(r)||(r=[r,r]),[Ot(r[0],t[0])||0,Ot(Z(r[1],r[0]),t[1])||0]}function hn(r){return isFinite(r)}function nD(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=hn(i)?i:0,n=hn(n)?n:1,a=hn(a)?a:0,o=hn(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function aD(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,l=l*a),o=hn(o)?o:.5,s=hn(s)?s:.5,l=l>=0&&hn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Ao(r,t,e){for(var i=t.type==="radial"?aD(r,t,e):nD(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function m_(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Xl(r){return parseInt(r,10)}function Eo(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Xl(s[i])||Xl(r.style[i]))-(Xl(s[a])||0)-(Xl(s[o])||0)|0}function oD(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:rt(r)?[r]:R(r)?r:null}function zc(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&oD(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=N(e,function(a){return a/n}),i/=n)}return[e,i]}var sD=new ye(!0);function ql(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function g_(r){return typeof r=="string"&&r!=="none"}function Zl(r){var t=r.fill;return t!=null&&t!=="none"}function y_(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function __(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Kl(r,t,e){var i=qf(t.image,t.__image,e);if(zn(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*es),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function lD(r,t,e,i){var n,a=ql(e),o=Zl(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||sD,h=t.__dirty;if(!i){var p=e.fill,c=e.stroke,v=o&&!!p.colorStops,g=a&&!!c.colorStops,d=o&&!!p.image,m=a&&!!c.image,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(v||g)&&(w=t.getBoundingRect()),v&&(y=h?Ao(r,p,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=h?Ao(r,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),d&&(x=h||!t.__canvasFillPattern?Kl(r,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(b=h||!t.__canvasStrokePattern?Kl(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),v?r.fillStyle=y:d&&(x?r.fillStyle=x:o=!1),g?r.strokeStyle=_:m&&(b?r.strokeStyle=b:a=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,D;r.setLineDash&&e.lineDash&&(n=zc(t),C=n[0],D=n[1]);var A=!0;(u||h&kr)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=D),i||(e.strokeFirst?(a&&__(r,e),o&&y_(r,e)):(o&&y_(r,e),a&&__(r,e))),C&&r.setLineDash([])}function uD(r,t,e){var i=t.__image=qf(e.image,t.__image,t,t.onload);if(!(!i||!zn(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,p=s-f;r.drawImage(i,u,f,h,p,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function fD(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||We,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=zc(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(ql(e)&&r.strokeText(n,e.x,e.y),Zl(e)&&r.fillText(n,e.x,e.y)):(Zl(e)&&r.fillText(n,e.x,e.y),ql(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var x_=["shadowBlur","shadowOffsetX","shadowOffsetY"],S_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M_(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){ce(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?nr.opacity:o}(i||t.blend!==e.blend)&&(a||(ce(r,n),a=!0),r.globalCompositeOperation=t.blend||nr.blend);for(var s=0;s<x_.length;s++){var l=x_[s];(i||t[l]!==e[l])&&(a||(ce(r,n),a=!0),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(ce(r,n),a=!0),r.shadowColor=t.shadowColor||nr.shadowColor),a}function w_(r,t,e,i,n){var a=Lo(t,n.inHover),o=i?null:e&&Lo(e,n.inHover)||{};if(a===o)return!1;var s=M_(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(ce(r,n),s=!0),g_(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(ce(r,n),s=!0),g_(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(ce(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(ce(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<S_.length;f++){var h=S_[f],p=h[0];(i||a[p]!==o[p])&&(s||(ce(r,n),s=!0),r[p]=a[p]||h[1])}return s}function hD(r,t,e,i,n){return M_(r,Lo(t,n.inHover),e&&Lo(e,n.inHover),i,n)}function A_(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function cD(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),A_(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function pD(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var b_=1,T_=2,C_=3,D_=4;function vD(r){var t=Zl(r),e=ql(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function ce(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Lo(r,t){return t&&r.__hoverStyle||r.style}function ha(r,t){ti(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ti(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Lt,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||m_(a,o))&&(o&&o.length&&(ce(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(ce(r,e),r.save(),cD(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof Q&&t.autoBatch&&vD(t.style);s||pD(n,u.transform)?(ce(r,e),A_(r,t)):f||ce(r,e);var h=Lo(t,e.inHover);t instanceof Q?(e.lastDrawType!==b_&&(l=!0,e.lastDrawType=b_),w_(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),lD(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Ya?(e.lastDrawType!==C_&&(l=!0,e.lastDrawType=C_),w_(r,t,u,l,e),fD(r,t,h)):t instanceof se?(e.lastDrawType!==T_&&(l=!0,e.lastDrawType=T_),hD(r,t,u,l,e),uD(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==D_&&(l=!0,e.lastDrawType=D_),dD(r,t,e)),f&&i&&ce(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function dD(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ti(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ti(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Fc=new v_,E_=new gr(100),L_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Uc(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&Fc.delete(r);var a=Fc.get(r);if(a)return a;var o=Y(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,Fc.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,p=0;p<L_.length;++p){var c=o[L_[p]];if(c!=null&&!R(c)&&!k(c)&&!rt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var v;if(h){v=f.join(",")+(n?"-svg":"");var g=E_.get(v);g&&(n?u.svgElement=g:u.image=g)}var d=I_(o.dashArrayX),m=mD(o.dashArrayY),y=P_(o.symbol),_=gD(d),x=O_(m),b=!n&&$t.createCanvas(),w=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),C;b&&(b.width=T.width*e,b.height=T.height*e,C=b.getContext("2d")),A(),h&&E_.put(v,b||w),u.image=b,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var M=1,E=0,I=_.length;E<I;++E)M=Bf(M,_[E]);for(var P=1,E=0,I=y.length;E<I;++E)P=Bf(P,y[E].length);M*=P;var z=x*_.length*y.length;if(0)var F;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var M=0,E=0;E<m.length;++E)M+=m[E];if(M<=0)return;for(var I=-x,P=0,z=0,F=0;I<T.height;){if(P%2===0){for(var K=z/2%y.length,H=0,W=0,it=0;H<T.width*2;){for(var vt=0,E=0;E<d[F].length;++E)vt+=d[F][E];if(vt<=0)break;if(W%2===0){var pt=(1-o.symbolSize)*.5,gt=H+d[F][W]*pt,yt=I+m[P]*pt,bt=d[F][W]*o.symbolSize,Ge=m[P]*o.symbolSize,ci=it/2%y[K].length;_n(gt,yt,bt,Ge,y[K][ci])}H+=d[F][W],++it,++W,W===d[F].length&&(W=0)}++F,F===d.length&&(F=0)}I+=m[P],++z,++P,P===m.length&&(P=0)}function _n(de,Vt,J,st,pi){var Qt=n?1:e,uv=$e(pi,de*Qt,Vt*Qt,J*Qt,st*Qt,o.color,o.symbolKeepAspect);if(n){var fv=i.painter.renderOneToVNode(uv);fv&&w.children.push(fv)}else ha(C,uv)}}}}function P_(r){if(!r||r.length===0)return[["rect"]];if(k(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!k(r[e])){t=!1;break}if(t)return P_([r]);for(var i=[],e=0;e<r.length;++e)k(r[e])?i.push([r[e]]):i.push(r[e]);return i}function I_(r){if(!r||r.length===0)return[[0,0]];if(rt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!rt(r[i])){e=!1;break}if(e)return I_([r]);for(var n=[],i=0;i<r.length;++i)if(rt(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=N(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function mD(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(rt(r)){var t=Math.ceil(r);return[t,t]}var e=N(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function gD(r){return N(r,function(t){return O_(t)})}function O_(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function Bc(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Uc(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Uc(n,t)}}})}var yD=new Ht,Be=yD;var R_={};function N_(r,t){R_[r]=t}function Vc(r){return R_[r]}var _D="5.6.0",xD={zrender:"5.6.1"},SD=1,wD=800,bD=900,TD=1e3,CD=2e3,DD=5e3,W_=1e3,MD=1100,$c=2e3,Y_=3e3,AD=4e3,ru=4500,ED=4600,LD=5e3,PD=6e3,X_=7e3,Jc={PROCESSOR:{FILTER:TD,SERIES_FILTER:wD,STATISTIC:DD},VISUAL:{LAYOUT:W_,PROGRESSIVE_LAYOUT:MD,GLOBAL:$c,CHART:Y_,POST_CHART_LAYOUT:ED,COMPONENT:AD,BRUSH:LD,CHART_ITEM:ru,ARIA:PD,DECAL:X_}},jt="__flagInMainProcess",pe="__pendingUpdate",Hc="__needsUpdateStatus",k_=/^[a-zA-Z0-9_]+$/,Gc="__connectUpdateStatus",z_=0,ID=1,OD=2;function q_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return K_(this,r,t)}}function Z_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return K_(this,r,t)}}function K_(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Ht.prototype[t].apply(r,e)}var j_=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Ht),Q_=j_.prototype;Q_.on=Z_("on");Q_.off=Z_("off");var ca,Wc,jl,ei,Yc,Xc,qc,Po,Io,F_,U_,Zc,B_,Ql,V_,$_,Ve,H_,$l=(function(r){L(t,r);function t(e,i,n){var a=r.call(this,new s_)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},k(i)&&(i=J_[i]),a._dom=e;var o="canvas",s="auto",l=!1;if(0)var u;n.ssr&&Ff(function(c){var v=ot(c),g=v.dataIndex;if(g!=null){var d=V();return d.set("series_index",v.seriesIndex),d.set("data_index",g),v.ssrType&&d.set("ssr_type",v.ssrType),d}});var f=a._zr=Is(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Z(n.useDirtyRect,l),useCoarsePointer:Z(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=To(nt(f.flush,f),17),i=q(i),i&&Ll(i,!0),a._theme=i,a._locale=Rg(n.locale||dl),a._coordSysMgr=new na;var h=a._api=V_(a);function p(c,v){return c.__prio-v.__prio}return bi(tu,p),bi(Kc,p),a._scheduler=new Rc(a,h,Kc,tu),a._messageCenter=new j_,a._initEvents(),a.resize=nt(a.resize,a),f.animation.on("frame",a._onframe,a),F_(f,a),U_(f,a),gi(a),a}return t.prototype._onframe=function(){if(!this._disposed){H_(this);var e=this._scheduler;if(this[pe]){var i=this[pe].silent;this[jt]=!0;try{ca(this),ei.update.call(this,null,this[pe].updateParams)}catch(l){throw this[jt]=!1,this[pe]=null,l}this._zr.flush(),this[jt]=!1,this[pe]=null,Po.call(this,i),Io.call(this,i)}else if(e.unfinished){var n=SD,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Xc(this,a),e.performVisualTasks(a),Ql(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(!this[jt]){if(this._disposed){this.id;return}var a,o,s;if(U(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[jt]=!0,!this._model||i){var l=new oy(this._api),u=this._theme,f=this._model=new Al;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},jc);var h={seriesTransition:s,optionChanged:!0};if(n)this[pe]={silent:a,updateParams:h},this[jt]=!1,this.getZr().wakeUp();else{try{ca(this),ei.update.call(this,null,h)}catch(p){throw this[pe]=null,this[jt]=!1,p}this._ssr||this._zr.flush(),this[pe]=null,this[jt]=!1,Po.call(this,a),Io.call(this,a)}}},t.prototype.setTheme=function(){},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||G.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(G.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return S(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;S(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return S(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(eu[n]){var l=s,u=s,f=-s,h=-s,p=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();S(cn,function(_,x){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(q(e)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),p.push({dom:b,left:w.left,top:w.top})}}),l*=c,u*=c,f*=c,h*=c;var v=f-l,g=h-u,d=$t.createCanvas(),m=Is(d,{renderer:i?"svg":"canvas"});if(m.resize({width:v,height:g}),i){var y="";return S(p,function(_){var x=_.left-l,b=_.top-u;y+='<g transform="translate('+x+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new St({shape:{x:0,y:0,width:v,height:g},style:{fill:e.connectedBackgroundColor}})),S(p,function(_){var x=new se({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),d.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return Yc(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Yc(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=Us(n,e);return S(o,function(s,l){l.indexOf("Models")>=0&&S(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=Us(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?h_(s,l,i):c_(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;S(RD,function(i){var n=function(a){var o=e.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&fn(s,function(v){var g=ot(v);if(g&&g.dataIndex!=null){var d=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=d&&d.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=O({},g.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var p=f&&h!=null&&o.getComponent(f,h),c=p&&e[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=a,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:c},e.trigger(i,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),S(Oo,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),S(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),p_(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Gf(this.getDom(),ep,"");var i=this,n=i._api,a=i._model;S(i._componentsViews,function(o){o.dispose(a,n)}),S(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete cn[i.id]},t.prototype.resize=function(e){if(!this[jt]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[pe]&&(a==null&&(a=this[pe].silent),n=!0,this[pe]=null),this[jt]=!0;try{n&&ca(this),ei.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[jt]=!1,o}this[jt]=!1,Po.call(this,a),Io.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(U(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Qc[e]){var n=Qc[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=O({},e);return i.type=Oo[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(U(i)||(i={silent:!!i}),!!Jl[e.type]&&this._model){if(this[jt]){this._pendingActions.push(e);return}var n=i.silent;qc.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&G.browser.weChat&&this._throttledZrFlush(),Po.call(this,n),Io.call(this,n)}},t.prototype.updateLabelLayout=function(){Be.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){ca=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),Wc(h,!0),Wc(h,!1),p.plan()},Wc=function(h,p){for(var c=h._model,v=h._scheduler,g=p?h._componentsViews:h._chartsViews,d=p?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_<g.length;_++)g[_].__alive=!1;p?c.eachComponent(function(w,T){w!=="series"&&x(T)}):c.eachSeries(x);function x(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,D=!T&&d[C];if(!D){var A=oe(w.type),M=p?Gt.getClass(A.main,A.sub):re.getClass(A.sub);D=new M,D.init(c,y),d[C]=D,g.push(D),m.add(D.group)}w.__viewId=D.__id=C,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!p&&v.prepareView(D,w,c,y)}for(var _=0;_<g.length;){var b=g[_];b.__alive?_++:(!p&&b.renderTask.dispose(),m.remove(b.group),b.dispose(c,y),g.splice(_,1),d[b.__id]===b&&delete d[b.__id],b.__id=b.group.__ecComponentInfo=null)}},jl=function(h,p,c,v,g){var d=h._model;if(d.setUpdatePayload(c),!v){S([].concat(h._componentsViews).concat(h._chartsViews),b);return}var m={};m[v+"Id"]=c[v+"Id"],m[v+"Index"]=c[v+"Index"],m[v+"Name"]=c[v+"Name"];var y={mainType:v,query:m};g&&(y.subType=g);var _=c.excludeSeriesId,x;_!=null&&(x=V(),S(xt(_),function(w){var T=ge(w,null);T!=null&&x.set(T,!0)})),d&&d.eachComponent(y,function(w){var T=x&&x.get(w.id)!=null;if(!T)if(Ch(c))if(w instanceof Ue)c.type===qr&&!c.notBlur&&!w.get(["emphasis","disabled"])&&Nm(w,c,h._api);else{var C=Zs(w.mainType,w.componentIndex,c.name,h._api),D=C.focusSelf,A=C.dispatchers;c.type===qr&&D&&!c.notBlur&&Xs(w.mainType,w.componentIndex,h._api),A&&S(A,function(M){c.type===qr?Xi(M):qi(M)})}else Ks(c)&&w instanceof Ue&&(Fm(w,c,h._api),wh(w),Ve(h))},h),d&&d.eachComponent(y,function(w){var T=x&&x.get(w.id)!=null;T||b(h[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function b(w){w&&w.__alive&&w[p]&&w[p](w.__model,d,h._api,c)}},ei={prepareAndUpdate:function(h){ca(this),ei.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,p){var c=this._model,v=this._api,g=this._zr,d=this._coordSysMgr,m=this._scheduler;if(c){c.setUpdatePayload(h),m.restoreData(c,h),m.performSeriesTasks(c),d.create(c,v),m.performDataProcessorTasks(c,h),Xc(this,c),d.update(c,v),e(c),m.performVisualTasks(c,h),Zc(this,c,v,h,p);var y=c.get("backgroundColor")||"transparent",_=c.get("darkMode");g.setBackgroundColor(y),_!=null&&_!=="auto"&&g.setDarkMode(_),Be.trigger("afterupdate",c,v)}},updateTransform:function(h){var p=this,c=this._model,v=this._api;if(c){c.setUpdatePayload(h);var g=[];c.eachComponent(function(m,y){if(m!=="series"){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,c,v,h);x&&x.update&&g.push(_)}else g.push(_)}});var d=V();c.eachSeries(function(m){var y=p._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,c,v,h);_&&_.update&&d.set(m.uid,1)}else d.set(m.uid,1)}),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:d}),Ql(this,c,v,h,{},d),Be.trigger("afterupdate",c,v)}},updateView:function(h){var p=this._model;p&&(p.setUpdatePayload(h),re.markUpdateMethod(h,"updateView"),e(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0}),Zc(this,p,this._api,h,{}),Be.trigger("afterupdate",p,this._api))},updateVisual:function(h){var p=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(v){v.getData().clearAllVisual()}),re.markUpdateMethod(h,"updateVisual"),e(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(v,g){if(v!=="series"){var d=p.getViewOfComponentModel(g);d&&d.__alive&&d.updateVisual(g,c,p._api,h)}}),c.eachSeries(function(v){var g=p._chartsMap[v.__viewId];g.updateVisual(v,c,p._api,h)}),Be.trigger("afterupdate",c,this._api))},updateLayout:function(h){ei.update.call(this,h)}},Yc=function(h,p,c,v){if(h._disposed){h.id;return}for(var g=h._model,d=h._coordSysMgr.getCoordinateSystems(),m,y=Us(g,c),_=0;_<d.length;_++){var x=d[_];if(x[p]&&(m=x[p](g,y,v))!=null)return m}},Xc=function(h,p){var c=h._chartsMap,v=h._scheduler;p.eachSeries(function(g){v.updateStreamModes(g,c[g.__viewId])})},qc=function(h,p){var c=this,v=this.getModel(),g=h.type,d=h.escapeConnect,m=Jl[g],y=m.actionInfo,_=(y.update||"update").split(":"),x=_.pop(),b=_[0]!=null&&oe(_[0]);this[jt]=!0;var w=[h],T=!1;h.batch&&(T=!0,w=N(h.batch,function(P){return P=Y(O({},P),h),P.batch=null,P}));var C=[],D,A=Ks(h),M=Ch(h);if(M&&Sh(this._api),S(w,function(P){if(D=m.action(P,c._model,c._api),D=D||O({},P),D.type=y.event||D.type,C.push(D),M){var z=Va(h),F=z.queryOptionMap,K=z.mainTypeSpecified,H=K?F.keys()[0]:"series";jl(c,x,P,H),Ve(c)}else A?(jl(c,x,P,"series"),Ve(c)):b&&jl(c,x,P,b.main,b.sub)}),x!=="none"&&!M&&!A&&!b)try{this[pe]?(ca(this),ei.update.call(this,h),this[pe]=null):ei[x].call(this,h)}catch(P){throw this[jt]=!1,P}if(T?D={type:y.event||g,escapeConnect:d,batch:C}:D=C[0],this[jt]=!1,!p){var E=this._messageCenter;if(E.trigger(D.type,D),A){var I={type:"selectchanged",escapeConnect:d,selected:Um(v),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};E.trigger(I.type,I)}}},Po=function(h){for(var p=this._pendingActions;p.length;){var c=p.shift();qc.call(this,c,h)}},Io=function(h){!h&&this.trigger("updated")},F_=function(h,p){h.on("rendered",function(c){p.trigger("rendered",c),h.animation.isFinished()&&!p[pe]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},U_=function(h,p){h.on("mouseover",function(c){var v=c.target,g=fn(v,Qa);g&&(km(g,c,p._api),Ve(p))}).on("mouseout",function(c){var v=c.target,g=fn(v,Qa);g&&(zm(g,c,p._api),Ve(p))}).on("click",function(c){var v=c.target,g=fn(v,function(y){return ot(y).dataIndex!=null},!0);if(g){var d=g.selected?"unselect":"select",m=ot(g);p._api.dispatchAction({type:d,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(p){p.clearColorPalette()})}function i(h){var p=[],c=[],v=!1;if(h.eachComponent(function(y,_){var x=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?c:p).push({zlevel:x,z:b,idx:_.componentIndex,type:y,key:w})}),v){var g=p.concat(c),d,m;bi(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),S(g,function(y){var _=h.getComponent(y.type,y.idx),x=y.zlevel,b=y.key;d!=null&&(x=Math.max(d,x)),b?(x===d&&b!==m&&x++,m=b):m&&(x===d&&x++,m=""),d=x,_.setZLevel(x)})}}Zc=function(h,p,c,v,g){i(p),B_(h,p,c,v,g),S(h._chartsViews,function(d){d.__alive=!1}),Ql(h,p,c,v,g),S(h._chartsViews,function(d){d.__alive||d.remove(p,c)})},B_=function(h,p,c,v,g,d){S(d||h._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,p,c,v),s(y,m),f(y,m)})},Ql=function(h,p,c,v,g,d){var m=h._scheduler;g=O(g||{},{updatedSeries:p.getSeries()}),Be.trigger("series:beforeupdate",p,c,g);var y=!1;p.eachSeries(function(_){var x=h._chartsMap[_.__viewId];x.__alive=!0;var b=x.renderTask;m.updatePayload(b,v),u(_,x),d&&d.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),x.group.silent=!!_.get("silent"),o(_,x),wh(_)}),m.unfinished=y||m.unfinished,Be.trigger("series:layoutlabels",p,c,g),Be.trigger("series:transition",p,c,g),p.eachSeries(function(_){var x=h._chartsMap[_.__viewId];s(_,x),f(_,x)}),a(h,p),Be.trigger("series:afterupdate",p,c,g)},Ve=function(h){h[Hc]=!0,h.getZr().wakeUp()},H_=function(h){h[Hc]&&(h.getZr().storage.traverse(function(p){tn(p)||n(p)}),h[Hc]=!1)};function n(h){for(var p=[],c=h.currentStates,v=0;v<c.length;v++){var g=c[v];g==="emphasis"||g==="blur"||g==="select"||p.push(g)}h.selected&&h.states.select&&p.push("select"),h.hoverState===qa&&h.states.emphasis?p.push("emphasis"):h.hoverState===Xa&&h.states.blur&&p.push("blur"),h.useStates(p)}function a(h,p){var c=h._zr,v=c.storage,g=0;v.traverse(function(d){d.isGroup||g++}),g>p.get("hoverLayerThreshold")&&!G.node&&!G.worker&&p.eachSeries(function(d){if(!d.preventUsingHoverLayer){var m=h._chartsMap[d.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(h,p){var c=h.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=c)})}function s(h,p){if(!h.preventAutoZ){var c=h.get("z")||0,v=h.get("zlevel")||0;p.eachRendered(function(g){return l(g,c,v,-1/0),!0})}}function l(h,p,c,v){var g=h.getTextContent(),d=h.getTextGuideLine(),m=h.isGroup;if(m)for(var y=h.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],p,c,v),v);else h.z=p,h.zlevel=c,v=Math.max(h.z2,v);if(g&&(g.z=p,g.zlevel=c,isFinite(v)&&(g.z2=v+2)),d){var x=h.textGuideLineConfig;d.z=p,d.zlevel=c,isFinite(v)&&(d.z2=v+(x&&x.showAbove?1:-1))}return v}function u(h,p){p.eachRendered(function(c){if(!tn(c)){var v=c.getTextContent(),g=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,p){var c=h.getModel("stateAnimation"),v=h.isAnimationEnabled(),g=c.get("duration"),d=g>0?{duration:g,delay:c.get("delay"),easing:c.get("easing")}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(tn(m))return;if(m instanceof Q&&Hm(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=d;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=d),x&&(x.stateTransition=d)}m.__dirty&&n(m)}})}V_=function(h){return new((function(p){L(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);v=v.parent}},c.prototype.enterEmphasis=function(v,g){Xi(v,g),Ve(h)},c.prototype.leaveEmphasis=function(v,g){qi(v,g),Ve(h)},c.prototype.enterBlur=function(v){Om(v),Ve(h)},c.prototype.leaveBlur=function(v){yh(v),Ve(h)},c.prototype.enterSelect=function(v){_h(v),Ve(h)},c.prototype.leaveSelect=function(v){xh(v),Ve(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(v){return h.getViewOfComponentModel(v)},c.prototype.getViewOfSeriesModel=function(v){return h.getViewOfSeriesModel(v)},c})(El))(h)},$_=function(h){function p(c,v){for(var g=0;g<c.length;g++){var d=c[g];d[Gc]=v}}S(Oo,function(c,v){h._messageCenter.on(v,function(g){if(eu[h.group]&&h[Gc]!==z_){if(g&&g.escapeConnect)return;var d=h.makeActionFromEvent(g),m=[];S(cn,function(y){y!==h&&y.group===h.group&&m.push(y)}),p(m,z_),S(m,function(y){y[Gc]!==ID&&y.dispatchAction(d)}),p(m,OD)}})})}})(),t})(Ht),tp=$l.prototype;tp.on=q_("on");tp.off=q_("off");tp.one=function(r,t,e){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(r,n)}this.on.call(this,r,n,e)};var RD=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Jl={},Oo={},Kc=[],jc=[],tu=[],J_={},Qc={},cn={},eu={},ND=+new Date-0,kD=+new Date-0,ep="_echarts_instance_";function zD(r,t,e){var i=!(e&&e.ssr);if(i){var n=rp(r);if(n)return n}var a=new $l(r,t,e);return a.id="ec_"+ND++,cn[a.id]=a,i&&Gf(r,ep,a.id),$_(a),Be.trigger("afterinit",a),a}function FD(r){if(R(r)){var t=r;r=null,S(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+kD++,S(t,function(e){e.group=r})}return eu[r]=!0,r}function t0(r){eu[r]=!1}var UD=t0;function BD(r){k(r)?r=cn[r]:r instanceof $l||(r=rp(r)),r instanceof $l&&!r.isDisposed()&&r.dispose()}function rp(r){return cn[Rd(r,ep)]}function VD(r){return cn[r]}function ip(r,t){J_[r]=t}function iu(r){$(jc,r)<0&&jc.push(r)}function nu(r,t){lp(Kc,r,t,CD)}function np(r){Ro("afterinit",r)}function ap(r){Ro("afterupdate",r)}function Ro(r,t){Be.on(r,t)}function ri(r,t,e){B(t)&&(e=t,t="");var i=U(r)?r.type:[r,r={event:t}][0];r.event=(r.event||i).toLowerCase(),t=r.event,!Oo[t]&&(Nt(k_.test(i)&&k_.test(t)),Jl[i]||(Jl[i]={action:e,actionInfo:r}),Oo[t]=i)}function op(r,t){na.register(r,t)}function HD(r){var t=na.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function sp(r,t){lp(tu,r,t,W_,"layout")}function Mr(r,t){lp(tu,r,t,Y_,"visual")}var G_=[];function lp(r,t,e,i,n){if((B(t)||U(t))&&(e=t,t=i),!($(G_,e)>=0)){G_.push(e);var a=Rc.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function au(r,t){Qc[r]=t}function GD(r){$o({createCanvas:r})}function up(r,t,e){var i=Vc("registerMap");i&&i(r,t,e)}function WD(r){var t=Vc("getMap");return t&&t(r)}var fp=Ty;Mr($c,Ky);Mr(ru,jy);Mr(ru,Qy);Mr($c,u_);Mr(ru,f_);Mr(X_,Bc);iu(Ll);nu(bD,mc);au("default",Oc);ri({type:qr,event:qr,update:qr},Et);ri({type:Za,event:Za,update:Za},Et);ri({type:Bn,event:Bn,update:Bn},Et);ri({type:Ka,event:Ka,update:Ka},Et);ri({type:Vn,event:Vn,update:Vn},Et);ip("light",r_);ip("dark",o_);var YD={};function No(r){return r==null?0:r.length||1}function e0(r){return r}var XD=(function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||e0,this._newKeyGetter=n||e0,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=i[s],u=No(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],h=No(u),p=No(f);if(h>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],a=e[n],o=No(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);e[n]=null}},r.prototype._initIndexMap=function(t,e,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!e){var l=e[s],u=No(l);u===0?(e[s]=o,a&&i.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),r0=XD;var qD=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function i0(r,t){var e={},i=e.encode={},n=V(),a=[],o=[],s={};S(r.dimensions,function(p){var c=r.getDimensionInfo(p),v=c.coordDim;if(v){var g=c.coordDimIndex;hp(i,v)[g]=p,c.isExtraCoord||(n.set(v,1),ZD(c.type)&&(a[0]=p),hp(s,v)[g]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(p)}Cl.each(function(d,m){var y=hp(i,m),_=c.otherDims[m];_!=null&&_!==!1&&(y[_]=c.name)})});var l=[],u={};n.each(function(p,c){var v=i[c];u[c]=v[0],l=l.concat(v)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=N(l,function(p){return r.getDimensionInfo(p).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e.userOutput=new qD(s,t),e}function hp(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function n0(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function ZD(r){return!(r==="ordinal"||r==="time")}var KD=(function(){function r(t){this.otherDims={},t!=null&&O(this,t)}return r})(),pa=KD;var jD=at(),QD={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},cp=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=vp(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return Z(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Il(this.source),i=!dp(t),n="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=e?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=QD[u]||"f",f&&(n+=f.uid),n+="$"}var c=this.source,v=[c.seriesLayoutBy,c.startIndex,n].join("$$");return{dimensions:a,hash:v}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function ou(r){return r instanceof cp}function pp(r){for(var t=V(),e=0;e<(r||[]).length;e++){var i=r[e],n=U(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function vp(r){var t=jD(r);return t.dimNameMap||(t.dimNameMap=pp(r.dimensionsDefine))}function dp(r){return r>30}var ko=U,ii=N,$D=typeof Int32Array=="undefined"?Array:Int32Array,JD="e\0\0",a0=-1,tM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],eM=["_approximateExtent"],o0,su,zo,Fo,mp,Uo,gp,rM=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;ou(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var h=i[f],p=k(h)?new pa({name:h}):h instanceof pa?h:new pa(h),c=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=c,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(c),a[c]=p,u[c]!=null&&(l=!0),p.createInvertedIndices&&(s[c]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),n&&(p.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=V();S(o,function(d){g.set(a[d].storeDimIndex,d)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(rt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var n=this,a;if(t instanceof wo&&(a=t),!a){var o=this.dimensions,s=aa(t)||Dt(t)?new Ol(t,o.length):t;a=new wo;var l=ii(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=i0(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=e[l],o&&gp(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==we&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Ut;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&Ld(h)&&(this.hasItemOption=!0),h){var p=h.name;a[f]==null&&p!=null&&(a[f]=ge(p,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=ge(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)gp(this,f);o0(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){ko(t)?O(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=zo(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},r.prototype.getId=function(t){return su(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,n=this._store;return R(t)?n.getValues(ii(t,function(a){return i._getStoreDimIndex(a)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i&&i[e];return n==null||isNaN(n)?a0:n},r.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},r.prototype.each=function(t,e,i){"use strict";B(t)&&(i=e,e=t,t=[]);var n=i||this,a=ii(Fo(t),this._getStoreDimIndex,this);this._store.each(a,n?nt(e,n):e)},r.prototype.filterSelf=function(t,e,i){"use strict";B(t)&&(i=e,e=t,t=[]);var n=i||this,a=ii(Fo(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?nt(e,n):e),this},r.prototype.selectRange=function(t){"use strict";var e=this,i={},n=tt(t),a=[];return S(n,function(o){var s=e._getStoreDimIndex(o);i[s]=t[o],a.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){"use strict";B(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},r.prototype.map=function(t,e,i,n){"use strict";var a=i||n||this,o=ii(Fo(t),this._getStoreDimIndex,this),s=Uo(this);return s._store=this._store.map(o,a?nt(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=this,o=i||n||this,s=ii(Fo(t),this._getStoreDimIndex,this);this._store.modify(s,o?nt(e,o):e)},r.prototype.downSample=function(t,e,i,n){var a=Uo(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.minmaxDownSample=function(t,e){var i=Uo(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},r.prototype.lttbDownSample=function(t,e){var i=Uo(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new ct(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new r0(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return su(t,i)},function(i){return su(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},ko(t)?O(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return n==null?this.getVisual(e):n},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),R(a)?a=a.slice():ko(a)&&(a=O({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,ko(e)?O(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){ko(t)?O(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;wm(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){S(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ii(this.dimensions,this._getDimInfo,this),this.hostModel)),mp(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];B(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(ya(arguments)))})},r.internalField=(function(){o0=function(t){var e=t._invertedIndicesMap;S(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new $D(o.categories.length);for(var l=0;l<i.length;l++)i[l]=a0;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},zo=function(t,e,i){return ge(t._getCategory(e,i),null)},su=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=zo(t,t._idDimIdx,e)),i==null&&(i=JD+e),i},Fo=function(t){return R(t)||(t=t!=null?[t]:[]),t},Uo=function(t){var e=new r(t._schema?t._schema:ii(t.dimensions,t._getDimInfo,t),t.hostModel);return mp(e,t),e},mp=function(t,e){S(tM.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,S(eM,function(i){t[i]=q(e[i])}),t._calculationInfo=O({},e._calculationInfo)},gp=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],l=n[e];if(s==null&&a!=null&&(i[e]=s=zo(t,a,e)),l==null&&o!=null&&(n[e]=l=zo(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}})(),r})(),lu=rM;var bp={};me(bp,{createDimensions:()=>s0,createList:()=>BM,createScale:()=>HM,createSymbol:()=>$e,createTextStyle:()=>WM,dataStack:()=>VM,enableHoverEmphasis:()=>bh,getECData:()=>ot,getLayoutRect:()=>ta,mixinAxisModelCommonMethods:()=>GM});function s0(r,t){return uu(r,t).dimensions}function uu(r,t){aa(r)||(r=oa(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=V(),a=[],o=nM(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&dp(o),l=i===r.dimensionsDefine,u=l?vp(r):pp(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=V(f),p=new Dc(o),c=0;c<p.length;c++)p[c]=-1;function v(D){var A=p[D];if(A<0){var M=i[D],E=U(M)?M:{name:M},I=new pa,P=E.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),E.type!=null&&(I.type=E.type),E.displayName!=null&&(I.displayName=E.displayName);var z=a.length;return p[D]=z,I.storeDimIndex=D,a.push(I),I}return a[A]}if(!s)for(var c=0;c<o;c++)v(c);h.each(function(D,A){var M=xt(D).slice();if(M.length===1&&!k(M[0])&&M[0]<0){h.set(A,!1);return}var E=h.set(A,[]);S(M,function(I,P){var z=k(I)?u.get(I):I;z!=null&&z<o&&(E[P]=z,d(v(z),A,P))})});var g=0;S(e,function(D){var A,M,E,I;if(k(D))A=D,I={};else{I=D,A=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=O({},I),I.ordinalMeta=P,M=I.dimsDef,E=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var z=h.get(A);if(z!==!1){if(z=xt(z),!z.length)for(var F=0;F<(M&&M.length||1);F++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&z.push(g++)}S(z,function(K,H){var W=v(K);if(l&&I.type!=null&&(W.type=I.type),d(Y(W,I),A,H),W.name==null&&M){var it=M[H];!U(it)&&(it={name:it}),W.name=W.displayName=it.name,W.defaultTooltip=it.defaultTooltip}E&&Y(W.otherDims,E)})}});function d(D,A,M){Cl.get(A)!=null?D.otherDims[A]=M:(D.coordDim=A,D.coordDimIndex=M,n.set(A,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var x=m||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)S(a,function(D){b(D)}),a.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var w=0;w<o;w++){var T=v(w),C=T.coordDim;C==null&&(T.coordDim=aM(x,n,_),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(Dl(r,w)===ee.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return iM(a),new cp({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function iM(r){for(var t=V(),e=0;e<r.length;e++){var i=r[e],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function nM(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return S(t,function(a){var o;U(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function aM(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var oM=(function(){function r(t){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=t}return r})();function l0(r){var t=r.get("coordinateSystem"),e=new oM(t),i=sM[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var sM={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",Yt).models[0],a=r.getReferringComponents("yAxis",Yt).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),va(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),va(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",Yt).models[0];t.coordSysDims=["single"],e.set("single",n),va(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",Yt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),va(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),va(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();S(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),va(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function va(r){return r.get("type")==="category"}function fu(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;lM(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,p;if(S(a,function(y,_){k(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(f=y))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,p="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,v=f.type,g=0;S(a,function(y){y.coordDim===c&&g++});var d={name:h,coordDim:c,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:p,coordDim:p,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(d.storeDimIndex=s.ensureCalculationDimension(p,v),m.storeDimIndex=s.ensureCalculationDimension(h,v)),o.appendCalculationDimension(d),o.appendCalculationDimension(m)):(a.push(d),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:h}}function lM(r){return!ou(r.schema)}function Ar(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function hu(r,t){return Ar(r,t)?r.getCalculationInfo("stackResultDimension"):t}function uM(r,t){var e=r.get("coordinateSystem"),i=na.get(e),n;return t&&t.coordSysDims&&(n=N(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=n0(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function fM(r,t,e){var i,n;return e&&S(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function hM(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=oa(r)):(n=i.getSource(),a=n.sourceFormat===Ut);var o=l0(t),s=uM(t,o),l=e.useEncodeDefaulter,u=B(l)?l:l?Tt(jg,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=uu(n,f),p=fM(h.dimensions,e.createInvertedIndices,o),c=a?null:i.getSharedDataStore(h),v=fu(t,{schema:h,store:c}),g=new lu(h,t);g.setCalculationInfo(v);var d=p!=null&&cM(n)?function(m,y,_,x){return x===p?_:this.defaultDimValueGetter(m,y,_,x)}:null;return g.hasItemOption=!1,g.initData(a?n:c,null,d),g}function cM(r){if(r.sourceFormat===Ut){var t=pM(r.data||[]);return!R(_r(t))}}function pM(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var cu=hM;var u0=(function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();Hr(u0);var ve=u0;var vM=0,dM=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++vM}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&N(i,mM);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!k(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=V(this.categories))},r})();function mM(r){return U(r)&&r.value!=null?r.value:r+""}var Bo=dM;function Vo(r){return r.type==="interval"||r.type==="log"}function h0(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=Rn(a/t,!0);e!=null&&o<e&&(o=n.interval=e),i!=null&&o>i&&(o=n.interval=i);var s=n.intervalPrecision=yp(o),l=n.niceTickExtent=[ht(Math.ceil(r[0]/o)*o,s),ht(Math.floor(r[1]/o)*o,s)];return gM(l,r),n}function pu(r){var t=Math.pow(10,On(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ht(e*t)}function yp(r){return Jt(r)+2}function f0(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function gM(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),f0(r,0,t),f0(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function ni(r,t){return r>=t[0]&&r<=t[1]}function ai(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function oi(r,t){return r*(t[1]-t[0])+t[0]}var c0=(function(r){L(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new Bo({})),R(n)&&(n=new Bo({categories:N(n,function(a){return U(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:k(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),ni(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),ai(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(oi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var u=i[o];n[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(ve);ve.registerClass(c0);var _p=c0;var pn=ht,p0=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return ni(e,this._extent)},t.prototype.normalize=function(e){return ai(e,this._extent)},t.prototype.scale=function(e){return oi(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=yp(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]<a[0]&&(e?s.push({value:pn(a[0]-i,o)}):s.push({value:n[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=pn(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(e?s.push({value:pn(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,f=[],h=s.value-l.value,p=h/e;u<e-1;){var c=pn(l.value+(u+1)*p);c>a[0]&&c<a[1]&&f.push(c),u++}n.push(f)}return n},t.prototype.getLabel=function(e,i){if(e==null)return"";var n=i&&i.precision;n==null?n=Jt(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=pn(e.value,n,!0);return vo(a)},t.prototype.calcNiceTicks=function(e,i,n){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=h0(a,e,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);e.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(i[0]=pn(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=pn(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t})(ve);ve.registerClass(p0);var Er=p0;var v0=typeof Float32Array!="undefined",yM=v0?Float32Array:Array;function Lr(r){return R(r)?v0?new Float32Array(r):r:new yM(r)}var _M="__ec_stack_";function d0(r){return r.get("stack")||_M+r.seriesIndex}function m0(r){return r.dim+r.index}function g0(r,t){var e=[];return t.eachSeriesByType(r,function(i){wM(i)&&e.push(i)}),e}function xM(r){var t={};S(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),p=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),v=h.getStore(),g=0,d=v.count();g<d;++g){var m=v.get(c,g);t[p]?t[p].push(m):t[p]=[m]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(l,u){return l-u});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function y0(r){var t=xM(r),e=[];return S(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),p=Math.abs(h[1]-h[0]);s=u?f/p*u:f}else{var c=i.getData();s=Math.abs(o[1]-o[0])/c.count()}var v=Ot(i.get("barWidth"),s),g=Ot(i.get("barMaxWidth"),s),d=Ot(i.get("barMinWidth")||(bM(i)?.5:1),s),m=i.get("barGap"),y=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:d,barGap:m,barCategoryGap:y,axisKey:m0(a),stackId:d0(i)})}),SM(e)}function SM(r){var t={};S(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var p=i.barMinWidth;p&&(l[u].minWidth=p);var c=i.barGap;c!=null&&(s.gap=c);var v=i.barCategoryGap;v!=null&&(s.categoryGap=v)});var e={};return S(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=tt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ot(s,o),f=Ot(i.gap,1),h=i.remainedWidth,p=i.autoWidthCount,c=(h-u)/(p+(p-1)*f);c=Math.max(c,0),S(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var x=m.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),m.width=x,h-=x+f*x,p--}else{var x=c;y&&y<x&&(x=Math.min(y,h)),_&&_>x&&(x=_),x!==c&&(m.width=x,h-=x+f*x,p--)}}),c=(h-u)/(p+(p-1)*f),c=Math.max(c,0);var v=0,g;S(a,function(m,y){m.width||(m.width=c),g=m,v+=m.width*(1+f)}),g&&(v-=g.width*f);var d=-v/2;S(a,function(m,y){e[n][y]=e[n][y]||{bandWidth:o,offset:d,width:m.width},d+=m.width*(1+f)})}),e}function _0(r,t,e){if(r&&t){var i=r[m0(t)];return i!=null&&e!=null?i[d0(e)]:i}}function wM(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function bM(r){return r.pipelineContext&&r.pipelineContext.large}var TM=function(r,t,e,i){for(;e<i;){var n=e+i>>>1;r[n][1]<t?e=n+1:i=n}return e},S0=(function(r){L(t,r);function t(e){var i=r.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return br(e.value,$h[Fg(an(this._minLevelUnit))]||$h.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Ug(e,i,n,o,a)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,n=[];if(!e)return n;n.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=PM(this._minLevelUnit,this._approxInterval,a,i);return n=n.concat(o),n.push({value:i[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=Se,i[1]+=Se),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-Se}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,n){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=du.length,l=Math.min(TM(du,this._approxInterval,0,s),s-1);this._interval=du[l][1],this._minLevelUnit=du[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return rt(e)?e:+zt(e)},t.prototype.contain=function(e){return ni(this.parse(e),this._extent)},t.prototype.normalize=function(e){return ai(this.parse(e),this._extent)},t.prototype.scale=function(e){return oi(e,this._extent)},t.type="time",t})(Er),du=[["second",yl],["minute",_l],["hour",Qn],["quarter-day",Qn*6],["half-day",Qn*12],["day",Se*1.2],["half-week",Se*3.5],["week",Se*7],["month",Se*31],["quarter",Se*95],["half-year",Qh/2],["year",Qh]];function CM(r,t,e,i){var n=zt(t),a=zt(e),o=function(v){return tc(n,v,i)===tc(a,v,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},p=function(){return h()&&o("second")},c=function(){return p()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return p();case"millisecond":return c()}}function DM(r,t){return r/=Se,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function MM(r){var t=30*Se;return r/=t,r>6?6:r>3?3:r>2?2:1}function AM(r){return r/=Qn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function x0(r,t){return r/=t?_l:yl,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function EM(r){return Rn(r,!0)}function LM(r,t,e){var i=new Date(r);switch(an(t)){case"year":case"month":i[ec(e)](0);case"day":i[rc(e)](1);case"hour":i[ic(e)](0);case"minute":i[nc(e)](0);case"second":i[ac(e)](0),i[oc(e)](0)}return i.getTime()}function PM(r,t,e,i){var n=1e4,a=Jh,o=0;function s(A,M,E,I,P,z,F){for(var K=new Date(M),H=M,W=K[I]();H<E&&H<=i[1];)F.push({value:H}),W+=A,K[P](W),H=K.getTime();F.push({value:H,notAdd:!0})}function l(A,M,E){var I=[],P=!M.length;if(!CM(an(A),i[0],i[1],e)){P&&(M=[{value:LM(new Date(i[0]),A,e)},{value:i[1]}]);for(var z=0;z<M.length-1;z++){var F=M[z].value,K=M[z+1].value;if(F!==K){var H=void 0,W=void 0,it=void 0,vt=!1;switch(A){case"year":H=Math.max(1,Math.round(t/Se/365)),W=xl(e),it=Vg(e);break;case"half-year":case"quarter":case"month":H=MM(t),W=nn(e),it=ec(e);break;case"week":case"half-week":case"day":H=DM(t,31),W=fo(e),it=rc(e),vt=!0;break;case"half-day":case"quarter-day":case"hour":H=AM(t),W=jn(e),it=ic(e);break;case"minute":H=x0(t,!0),W=ho(e),it=nc(e);break;case"second":H=x0(t,!1),W=co(e),it=ac(e);break;case"millisecond":H=EM(t),W=po(e),it=oc(e);break}s(H,F,K,W,it,vt,I),A==="year"&&E.length>1&&z===0&&E.unshift({value:E[0].value-H})}}for(var z=0;z<I.length;z++)E.push(I[z]);return I}}for(var u=[],f=[],h=0,p=0,c=0;c<a.length&&o++<n;++c){var v=an(a[c]);if(zg(a[c])){l(a[c],u[u.length-1]||[],f);var g=a[c+1]?an(a[c+1]):null;if(v!==g){if(f.length){p=h,f.sort(function(A,M){return A.value-M.value});for(var d=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(d.push(f[m]),y>=i[0]&&y<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&p>_/1.5||(u.push(d),h>_||r===a[c]))break}f=[]}}}for(var x=mt(N(u,function(A){return mt(A,function(M){return M.value>=i[0]&&M.value<=i[1]&&!M.notAdd})}),function(A){return A.length>0}),b=[],w=x.length-1,c=0;c<x.length;++c)for(var T=x[c],C=0;C<T.length;++C)b.push({value:T[C].value,level:w-c});b.sort(function(A,M){return A.value-M.value});for(var D=[],c=0;c<b.length;++c)(c===0||b[c].value!==b[c-1].value)&&D.push(b[c]);return D}ve.registerClass(S0);var w0=S0;var b0=ve.prototype,Ho=Er.prototype,IM=ht,OM=Math.floor,RM=Math.ceil,mu=Math.pow,Je=Math.log,xp=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Er,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,n=this._extent,a=i.getExtent(),o=Ho.getTicks.call(this,e);return N(o,function(s){var l=s.value,u=ht(mu(this.base,l));return u=l===n[0]&&this._fixMin?gu(u,a[0]):u,u=l===n[1]&&this._fixMax?gu(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,i){var n=Je(this.base);e=Je(Math.max(0,e))/n,i=Je(Math.max(0,i))/n,Ho.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=b0.getExtent.call(this);i[0]=mu(e,i[0]),i[1]=mu(e,i[1]);var n=this._originalScale,a=n.getExtent();return this._fixMin&&(i[0]=gu(i[0],a[0])),this._fixMax&&(i[1]=gu(i[1],a[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=Je(e[0])/Je(i),e[1]=Je(e[1])/Je(i),b0.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||n<=0)){var a=Ns(n),o=e/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[ht(RM(i[0]/a)*a),ht(OM(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Ho.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Je(e)/Je(this.base),ni(e,this._extent)},t.prototype.normalize=function(e){return e=Je(e)/Je(this.base),ai(e,this._extent)},t.prototype.scale=function(e){return e=oi(e,this._extent),mu(this.base,e)},t.type="log",t})(ve),T0=xp.prototype;T0.getMinorTicks=Ho.getMinorTicks;T0.getLabel=Ho.getLabel;function gu(r,t){return IM(r,Jt(t))}ve.registerClass(xp);var C0=xp;var NM=(function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;B(o)?this._modelMinNum=yu(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=yu(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(B(s)?this._modelMaxNum=yu(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=yu(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=R(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[rr(u[0],1),rr(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-a[0]*o),l==null&&(l=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=mi(s)||mi(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var p=this._determinedMin,c=this._determinedMax;return p!=null&&(s=p,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[zM[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=kM[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r})();var kM={min:"_determinedMin",max:"_determinedMax"},zM={min:"_dataMin",max:"_dataMax"};function D0(r,t,e){var i=r.rawExtentInfo;return i||(i=new NM(r,t,e),r.rawExtentInfo=i,i)}function yu(r,t){return t==null?null:mi(t)?NaN:r.parse(t)}function Sp(r,t){var e=r.type,i=D0(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=g0("bar",o),l=!1;if(S(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=y0(s),f=FM(n,a,t,u);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function FM(r,t,e,i){var n=e.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=_0(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;S(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;S(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,p=f/h-f;return t+=p*(l/u),r-=p*(s/u),{min:r,max:t}}function Go(r,t){var e=t,i=Sp(r,e),n=i.extent,a=e.get("splitNumber");r instanceof C0&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function _u(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new _p({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new w0({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(ve.getClass(t)||Er)}}function M0(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function vn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}})(t):k(t)?(function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a!=null?a:"");return o}})(t):B(t)?(function(i){return function(n,a){return e!=null&&(a=n.value-e),i(Wo(r,n),a,n.level!=null?{level:n.level}:null)}})(t):function(i){return r.scale.getLabel(i)}}function Wo(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function A0(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof _p?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=vn(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var h=i?i[f]:{value:a[0]+f},p=s(h,f),c=o.getTextRect(p),v=UM(c,o.get("rotate")||0);l?l.union(v):l=v}return l}}function UM(r,t){var e=t*Math.PI/180,i=r.width,n=r.height,a=i*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=i*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new X(r.x,r.y,a,o);return s}function xu(r){var t=r.get("interval");return t==null?"auto":t}function Su(r){return r.type==="category"&&xu(r.getLabelModel())===0}function E0(r,t){var e={};return S(r.mapDimensionsAll(t),function(i){e[hu(r,i)]=!0}),tt(e)}var wu=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function BM(r){return cu(null,r)}var VM={isDimensionStacked:Ar,enableDataStack:fu,getStackedDimension:hu};function HM(r,t){var e=t;t instanceof ct||(e=new ct(t));var i=_u(e);return i.setExtent(r[0],r[1]),Go(i,e),i}function GM(r){Rt(r,wu)}function WM(r,t){return t=t||{},wr(r,null,null,t.state!=="normal")}var L0=[],YM={registerPreprocessor:iu,registerProcessor:nu,registerPostInit:np,registerPostUpdate:ap,registerUpdateLifecycle:Ro,registerAction:ri,registerCoordinateSystem:op,registerLayout:sp,registerVisual:Mr,registerTransform:fp,registerLoading:au,registerMap:up,registerImpl:N_,PRIORITY:Jc,ComponentModel:lt,ComponentView:Gt,SeriesModel:Ue,ChartView:re,registerComponentModel:function(r){lt.registerClass(r)},registerComponentView:function(r){Gt.registerClass(r)},registerSeriesModel:function(r){Ue.registerClass(r)},registerChartView:function(r){re.registerClass(r)},registerSubTypeDefaulter:function(r,t){lt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){zf(r,t)}};function fr(r){if(R(r)){S(r,function(t){fr(t)});return}$(L0,r)>=0||(L0.push(r),B(r)&&(r={install:r}),r.install(YM))}var XM=1e-8;function P0(r,t){return Math.abs(r-t)<XM}function Tp(r,t,e){var i=0,n=r[0];if(!n)return!1;for(var a=1;a<r.length;a++){var o=r[a];i+=Oe(n[0],n[1],o[0],o[1],t,e),n=o}var s=r[0];return(!P0(n[0],s[0])||!P0(n[1],s[1]))&&(i+=Oe(n[0],n[1],s[0],s[1],t,e)),i!==0}var ZM=[];function Cp(r,t){for(var e=0;e<r.length;e++)Mt(r[e],r[e],t)}function I0(r,t,e,i){for(var n=0;n<r.length;n++){var a=r[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Te(t,t,a),Ce(e,e,a))}}function KM(r){for(var t=0,e=0,i=0,n=r.length,a=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;t+=f,e+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return t?[e/t/3,i/t/3,t]:[r[0][0]||0,r[0][1]||0]}var O0=(function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r})();var Dp=(function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r})();var Mp=(function(){function r(t){this.type="linestring",this.points=t}return r})();var R0=(function(r){L(t,r);function t(e,i,n){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,i,n=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return KM(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var i=this._rect;if(i&&!e)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return S(o,function(s){s.type==="polygon"?I0(s.exterior,n,a,e):S(s.points,function(l){I0(l,n,a,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new X(n[0],n[1],a[0]-n[0],a[1]-n[1]),e||(this._rect=i),i},t.prototype.contain=function(e){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(e[0],e[1]))return!1;t:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Tp(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Tp(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new X(e,i,n,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var p=f[h];p.type==="polygon"?(Cp(p.exterior,u),S(p.interiors,function(c){Cp(c,u)})):S(p.points,function(c){Cp(c,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var i=new t(e,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},t})(O0);var mB=(function(r){L(t,r);function t(e,i){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,i=e.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=vr(ZM),o=e;o&&!o.isGeoSVGGraphicRoot;)De(a,o.getLocalTransform(),a),o=o.parent;return dr(a,a),Mt(n,n,a),n},t})(O0);function jM(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var i=t.features;return S(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=N0(s,o,e);break;case"Polygon":Ap(s,o,e);break;case"MultiLineString":Ap(s,o,e);break;case"MultiPolygon":S(s,function(l,u){return Ap(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Ap(r,t,e){for(var i=0;i<r.length;i++)r[i]=N0(r[i],t[i],e)}function N0(r,t,e){for(var i=[],n=t[0],a=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/e,l/e])}return i}function bu(r,t){return r=jM(r),N(mt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,n=e.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new Dp(o[0],o.slice(1)));break;case"MultiPolygon":S(n.coordinates,function(l){l[0]&&a.push(new Dp(l[0],l.slice(1)))});break;case"LineString":a.push(new Mp([n.coordinates]));break;case"MultiLineString":a.push(new Mp(n.coordinates))}var s=new R0(i[t||"name"],a,i.cp);return s.properties=i,s})}var Ep={};me(Ep,{MAX_SAFE_INTEGER:()=>Td,asc:()=>Sd,getPercentWithPrecision:()=>wd,getPixelPrecision:()=>Rs,getPrecision:()=>Jt,getPrecisionSafe:()=>Uf,isNumeric:()=>Ua,isRadianAroundZero:()=>Ni,linearMap:()=>za,nice:()=>Rn,numericToNumber:()=>Ee,parseDate:()=>zt,quantile:()=>Cd,quantity:()=>Ns,quantityExponent:()=>On,reformIntervals:()=>Dd,remRadian:()=>Fa,round:()=>ht});var Lp={};me(Lp,{format:()=>br,parse:()=>zt});var Pp={};me(Pp,{Arc:()=>Qi,BezierCurve:()=>ao,BoundingRect:()=>X,Circle:()=>Zi,CompoundPath:()=>tl,Ellipse:()=>Ja,Group:()=>dt,Image:()=>se,IncrementalDisplayable:()=>al,Line:()=>_e,LinearGradient:()=>Wn,Polygon:()=>io,Polyline:()=>no,RadialGradient:()=>rl,Rect:()=>St,Ring:()=>ro,Sector:()=>ji,Text:()=>Ct,clipPointsByRect:()=>Bh,clipRectByRect:()=>Vh,createIcon:()=>so,extendPath:()=>Nh,extendShape:()=>Rh,getShapeClass:()=>kh,getTransform:()=>Fh,initProps:()=>Ke,makeImage:()=>oo,makePath:()=>qn,mergePath:()=>zh,registerShape:()=>xe,resizePath:()=>ll,updateProps:()=>ue});var Ip={};me(Ip,{addCommas:()=>vo,capitalFirst:()=>Wg,encodeHTML:()=>Pt,formatTime:()=>Gg,formatTpl:()=>Jn,getTextRect:()=>sc,getTooltipMarker:()=>wl,normalizeCssArray:()=>Kr,toCamelCase:()=>$n,truncateText:()=>jf});var Op={};me(Op,{bind:()=>nt,clone:()=>q,curry:()=>Tt,defaults:()=>Y,each:()=>S,extend:()=>O,filter:()=>mt,indexOf:()=>$,inherits:()=>ga,isArray:()=>R,isFunction:()=>B,isObject:()=>U,isString:()=>k,map:()=>N,merge:()=>et,reduce:()=>Wt});var Yo=at();function k0(r,t){var e=N(t,function(i){return r.scale.parse(i)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function z0(r){var t=r.getLabelModel().get("customValues");if(t){var e=vn(r),i=r.scale.getExtent(),n=k0(r,t),a=mt(n,function(o){return o>=i[0]&&o<=i[1]});return{labels:N(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?QM(r):JM(r)}function F0(r,t){var e=r.getTickModel().get("customValues");if(e){var i=r.scale.getExtent(),n=k0(r,e);return{ticks:mt(n,function(a){return a>=i[0]&&a<=i[1]})}}return r.type==="category"?$M(r,t):{ticks:N(r.scale.getTicks(),function(a){return a.value})}}function QM(r){var t=r.getLabelModel(),e=U0(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function U0(r,t){var e=B0(r,"labels"),i=xu(t),n=V0(e,i);if(n)return n;var a,o;return B(i)?a=Y0(r,i):(o=i==="auto"?tA(r):i,a=W0(r,o)),H0(e,i,{labels:a,labelCategoryInterval:o})}function $M(r,t){var e=B0(r,"ticks"),i=xu(t),n=V0(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),B(i))a=Y0(r,i,!0);else if(i==="auto"){var s=U0(r,r.getLabelModel());o=s.labelCategoryInterval,a=N(s.labels,function(l){return l.tickValue})}else o=i,a=W0(r,o,!0);return H0(e,i,{ticks:a,tickCategoryInterval:o})}function JM(r){var t=r.scale.getTicks(),e=vn(r);return{labels:N(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function B0(r,t){return Yo(r)[t]||(Yo(r)[t]=[])}function V0(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function H0(r,t,e){return r.push({key:t,value:e}),e}function tA(r){var t=Yo(r).autoInterval;return t!=null?t:Yo(r).autoInterval=r.calculateCategoryInterval()}function G0(r){var t=eA(r),e=vn(r),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),p=0,c=0;l<=a[1];l+=s){var v=0,g=0,d=Ln(e({value:l}),t.font,"center","top");v=d.width*1.3,g=d.height*1.3,p=Math.max(p,v,7),c=Math.max(c,g,7)}var m=p/f,y=c/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=Yo(r.model),b=r.getExtent(),w=x.lastAutoInterval,T=x.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=w:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}function eA(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function W0(r,t,e){var i=vn(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Su(r),p=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;p&&u!==a[0]&&g(a[0]);for(var v=u;v<=a[1];v+=l)g(v);c&&v-l!==a[1]&&g(a[1]);function g(d){var m={value:d};s.push(e?d:{formattedLabel:i(m),rawLabel:n.getLabel(m),tickValue:d})}return s}function Y0(r,t,e){var i=r.scale,n=vn(r),a=[];return S(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var X0=[0,1],rA=(function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Rs(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),q0(i,n.count())),za(t,X0,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),q0(i,n.count()));var a=za(t,i,X0,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=F0(this,e),n=i.ticks,a=N(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return iA(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=N(i,function(a){return N(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return z0(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return G0(this)},r})();function q0(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function iA(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;S(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];p(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&p(a[0],t[0].coord)&&t.unshift({coord:a[0]}),p(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&p(o.coord,a[1])&&t.push({coord:a[1]});function p(c,v){return c=ht(c),v=ht(v),h?c>v:c<v}}var Tu=rA;function nA(r){var t=lt.extend(r);return lt.registerClass(t),t}function aA(r){var t=Gt.extend(r);return Gt.registerClass(t),t}function oA(r){var t=Ue.extend(r);return Ue.registerClass(t),t}function sA(r){var t=re.extend(r);return re.registerClass(t),t}function Z0(r){for(var t=[],e=0;e<r.length;e++){var i=r[e];if(!i.defaultAttr.ignore){var n=i.label,a=n.getComputedTransform(),o=n.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Yn(o,a):null;t.push({label:n,labelLine:i.labelLine,rect:u,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}function K0(r){var t=[];r.sort(function(g,d){return d.priority-g.priority});var e=new X(0,0,0,0);function i(g){if(!g.ignore){var d=g.ensureState("emphasis");d.ignore==null&&(d.ignore=!1)}g.ignore=!0}for(var n=0;n<r.length;n++){var a=r[n],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,p=!1,c=0;c<t.length;c++){var v=t[c];if(e.intersect(v.rect)){if(o&&v.axisAligned){p=!0;break}if(v.obb||(v.obb=new Yn(v.localRect,v.transform)),h||(h=new Yn(s,l)),h.intersect(v.obb)){p=!0;break}}}p?(i(u),f&&i(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}var lA=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){if(0)var i;return cu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new dt,n=$e("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(n),n.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=$e(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Ue),j0=lA;function Cu(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=Dr(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(Dr(r,t,e[o]));return a.join(" ")}}function Q0(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!R(t))return t+"";for(var i=[],n=0;n<e.length;n++){var a=r.getDimensionIndex(e[n]);a>=0&&i.push(t[a])}return i.join(" ")}var uA=(function(r){L(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o){this.removeAll();var s=$e(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=fA,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Xi(this.childAt(0))},t.prototype.downplay=function(){qi(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,h)}else{var p=this.childAt(0);p.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?p.attr(c):ue(p,c,s,i),dg(p)}if(this._updateCommon(e,i,l,n,a),u){var p=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Ke(p,c,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,p,c,v,g,d,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,p=a.focus,c=a.blurScope,g=a.labelStatesModels,d=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),c=_.get("blurScope"),v=_.get("disabled"),g=Zn(y),d=_.getShallow("scale"),m=y.getShallow("cursor")}var x=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=Yl(e.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var w=e.getItemVisual(i,"style"),T=w.fill;if(s instanceof se){var C=s.style;s.useStyle(O({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(O({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(i,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;cl(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:E,inheritColor:T,defaultOpacity:w.opacity});function E(z){return M?e.getName(z):Cu(e,z)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=d==null||d===!0?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),ja(this,p,c,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=ot(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Xn(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Xn(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return d_(e.getItemVisual(i,"symbolSize"))},t})(dt);function fA(r,t){this.parent.drift(r,t)}var Xo=uA;function Np(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function $0(r){return r!=null&&!U(r)&&(r={isIgnore:r}),r||{}}function J0(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Zn(t),cursorStyle:t.get("cursor")}}var hA=(function(){function r(t){this.group=new dt,this._SymbolCtor=t||Xo}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=$0(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=J0(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var p=f(h);if(Np(t,p,h,e)){var c=new o(t,h,l,u);c.setPosition(p),t.setItemGraphicEl(h,c),i.add(c)}}).update(function(h,p){var c=a.getItemGraphicEl(p),v=f(h);if(!Np(t,v,h,e)){i.remove(c);return}var g=t.getItemVisual(h,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType();if(!c||d&&d!==g)i.remove(c),c=new o(t,h,l,u),c.setPosition(v);else{c.updateData(t,h,l,u);var m={x:v[0],y:v[1]};s?c.attr(m):ue(c,m,n)}i.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var p=a.getItemGraphicEl(h);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=J0(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=$0(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(Np(e,o,a,i)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){lo(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},i.hostModel)}):e.removeAll()},r})(),tx=hA;function Du(r,t,e){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=cA(n,e),o=i.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=N(r.dimensions,function(v){return t.mapDimension(v)}),p=!1,c=t.getCalculationInfo("stackResultDimension");return Ar(t,h[0])&&(p=!0,h[0]=c),Ar(t,h[1])&&(p=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function cA(r,t){var e=0,i=r.scale.getExtent();return t==="start"?e=i[0]:t==="end"?e=i[1]:rt(t)&&!isNaN(t)?e=t:i[0]>0?e=i[0]:i[1]<0&&(e=i[1]),e}function Mu(r,t,e,i){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function pA(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,n){e.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function kp(r,t,e,i,n,a,o,s){for(var l=pA(r,t),u=[],f=[],h=[],p=[],c=[],v=[],g=[],d=Du(n,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,w=void 0,T=void 0;switch(x.cmd){case"=":w=x.idx*2,T=x.idx1*2;var C=m[w],D=m[w+1],A=y[T],M=y[T+1];(isNaN(C)||isNaN(D))&&(C=A,D=M),u.push(C,D),f.push(A,M),h.push(e[w],e[w+1]),p.push(i[T],i[T+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var E=x.idx,I=d.dataDimsForPoint,P=n.dataToPoint([t.get(I[0],E),t.get(I[1],E)]);T=E*2,u.push(P[0],P[1]),f.push(y[T],y[T+1]);var z=Mu(d,n,t,E);h.push(z[0],z[1]),p.push(i[T],i[T+1]),g.push(t.getRawIndex(E));break;case"-":b=!1}b&&(c.push(x),v.push(v.length))}v.sort(function(bt,Ge){return g[bt]-g[Ge]});for(var F=u.length,K=Lr(F),H=Lr(F),W=Lr(F),it=Lr(F),vt=[],_=0;_<v.length;_++){var pt=v[_],gt=_*2,yt=pt*2;K[gt]=u[yt],K[gt+1]=u[yt+1],H[gt]=f[yt],H[gt+1]=f[yt+1],W[gt]=h[yt],W[gt+1]=h[yt+1],it[gt]=p[yt],it[gt+1]=p[yt+1],vt[_]=c[pt]}return{current:K,next:H,stackedOnCurrent:W,stackedOnNext:it,status:vt}}var si=Math.min,li=Math.max;function dn(r,t){return isNaN(r)||isNaN(t)}function zp(r,t,e,i,n,a,o,s,l){for(var u,f,h,p,c,v,g=e,d=0;d<i;d++){var m=t[g*2],y=t[g*2+1];if(g>=n||g<0)break;if(dn(m,y)){if(l){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](m,y),h=m,p=y;else{var _=m-u,x=y-f;if(_*_+x*x<.5){g+=a;continue}if(o>0){for(var b=g+a,w=t[b*2],T=t[b*2+1];w===m&&T===y&&d<i;)d++,b+=a,g+=a,w=t[b*2],T=t[b*2+1],m=t[g*2],y=t[g*2+1],_=m-u,x=y-f;var C=d+1;if(l)for(;dn(w,T)&&C<i;)C++,b+=a,w=t[b*2],T=t[b*2+1];var D=.5,A=0,M=0,E=void 0,I=void 0;if(C>=i||dn(w,T))c=m,v=y;else{A=w-u,M=T-f;var P=m-u,z=w-m,F=y-f,K=T-y,H=void 0,W=void 0;if(s==="x"){H=Math.abs(P),W=Math.abs(z);var it=A>0?1:-1;c=m-it*H*o,v=y,E=m+it*W*o,I=y}else if(s==="y"){H=Math.abs(F),W=Math.abs(K);var vt=M>0?1:-1;c=m,v=y-vt*H*o,E=m,I=y+vt*W*o}else H=Math.sqrt(P*P+F*F),W=Math.sqrt(z*z+K*K),D=W/(W+H),c=m-A*o*(1-D),v=y-M*o*(1-D),E=m+A*o*D,I=y+M*o*D,E=si(E,li(w,m)),I=si(I,li(T,y)),E=li(E,si(w,m)),I=li(I,si(T,y)),A=E-m,M=I-y,c=m-A*H/W,v=y-M*H/W,c=si(c,li(u,m)),v=si(v,li(f,y)),c=li(c,si(u,m)),v=li(v,si(f,y)),A=m-c,M=y-v,E=m+A*W/H,I=y+M*W/H}r.bezierCurveTo(h,p,c,v,m,y),h=E,p=I}else r.lineTo(m,y)}u=m,f=y,g+=a}return d}var ex=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),rx=(function(r){L(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ex},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&dn(n[o*2-2],n[o*2-1]);o--);for(;a<o&&dn(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=zp(e,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=ye.CMD,s,l,u=i==="x",f=[],h=0;h<a.length;){var p=a[h++],c=void 0,v=void 0,g=void 0,d=void 0,m=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[h++],l=a[h++];break;case o.L:if(c=a[h++],v=a[h++],_=u?(e-s)/(c-s):(e-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(c-s)*_+s;return u?[e,x]:[x,e]}s=c,l=v;break;case o.C:c=a[h++],v=a[h++],g=a[h++],d=a[h++],m=a[h++],y=a[h++];var b=u?Ci(s,c,g,m,e,f):Ci(l,v,d,y,e,f);if(b>0)for(var w=0;w<b;w++){var T=f[w];if(T<=1&&T>=0){var x=u?_t(l,v,d,y,T):_t(s,c,g,m,T);return u?[e,x]:[x,e]}}s=m,l=y;break}}},t})(Q);var vA=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(ex),ix=(function(r){L(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new vA},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&dn(n[s*2-2],n[s*2-1]);s--);for(;o<s&&dn(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=zp(e,n,o,s,s,1,i.smooth,l,i.connectNulls);zp(e,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,e.closePath()}},t})(Q);function nx(r,t,e,i,n){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new St({shape:{x:o,y:s,width:l,height:u}});if(t){var p=r.getBaseAxis(),c=p.isHorizontal(),v=p.inverse;c?(v&&(h.shape.x+=l),h.shape.width=0):(v||(h.shape.y+=u),h.shape.height=0);var g=B(n)?function(d){n(d,h)}:null;Ke(h,{shape:{width:l,height:u,x:o,y:s}},e,null,i,g)}return h}function ax(r,t,e){var i=r.getArea(),n=ht(i.r0,1),a=ht(i.r,1),o=new ji({shape:{cx:ht(r.cx,1),cy:ht(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,Ke(o,{shape:{endAngle:i.endAngle,r:a}},e)}return o}function ox(r,t){return r.type===t}function sx(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function lx(r){for(var t=1/0,e=1/0,i=-1/0,n=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[i,n]]}function ux(r,t){var e=lx(r),i=e[0],n=e[1],a=lx(t),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function fx(r){return rt(r)?r:r?.5:0}function dA(r,t,e){if(!e.valueDim)return[];for(var i=t.count(),n=Lr(i*2),a=0;a<i;a++){var o=Mu(e,r,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function ui(r,t,e,i,n){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],p=[];if(n){for(l=0;l<r.length;l+=2){var c=t||r;!isNaN(c[l])&&!isNaN(c[l+1])&&p.push(r[l],r[l+1])}r=p}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),i){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var v=(f[o]+h[o])/2,g=[];u[o]=g[o]=v,u[1-o]=f[1-o],g[1-o]=h[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function mA(r,t){var e=[],i=r.length,n,a;function o(f,h,p){var c=f.coord,v=(p-c)/(h.coord-c),g=_s(v,[f.color,h.color]);return{coord:p,color:g}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){a?e.push(o(a,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),a=l}return e}function gA(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=t.getAxis(n),u=N(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var p=mA(u,n==="x"?e.getWidth():e.getHeight()),c=p.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var v=10,g=p[0].coord-v,d=p[c-1].coord+v,m=d-g;if(m<.001)return"transparent";S(p,function(_){_.offset=(_.coord-g)/m}),p.push({offset:c?p[c-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:c?p[0].offset:.5,color:h[0]||"transparent"});var y=new Wn(0,0,0,0,p,!0);return y[n]=g,y[n+"2"]=d,y}}}function yA(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(n&&_A(a,t))){var o=t.mapDimension(a.dim),s={};return S(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function _A(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Xo.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function xA(r,t){return isNaN(r)||isNaN(t)}function SA(r){for(var t=r.length/2;t>0&&xA(r[t*2-2],r[t*2-1]);t--);return t-1}function hx(r,t){return[r[t*2],r[t*2+1]]}function wA(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function cx(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Ne.length;t++)if(r.get([Ne[t],"endLabel","show"]))return!0;return!1}function Fp(r,t,e,i){if(ox(t,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=cx(i)?function(c,v){r._endLabelOnDuring(c,v,o,s,a,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=nx(t,e,i,function(){var c=r._endLabel;c&&e&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=f.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=p*2):(h.x-=p,h.width+=p*2)}return l&&l(1,f),f}else return ax(t,e,i)}function bA(r,t){var e=t.getBaseAxis(),i=e.isHorizontal(),n=e.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var TA=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new dt,i=new tx;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e,this._changePolyState=nt(this._changePolyState,this)},t.prototype.render=function(e,i,n){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",p=this._coordSys,c=this._symbolDraw,v=this._polyline,g=this._polygon,d=this._lineGroup,m=!i.ssr&&e.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=Du(a,s,_),b=y&&dA(a,s,x),w=e.get("showSymbol"),T=e.get("connectNulls"),C=w&&!h&&yA(e,s,a),D=this._data;D&&D.eachItemGraphicEl(function(bt,Ge){bt.__temp&&(o.remove(bt),D.setItemGraphicEl(Ge,null))}),w||c.remove(),o.add(d);var A=h?!1:e.get("step"),M;a&&a.getArea&&e.get("clip",!0)&&(M=a.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var E=gA(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&A===this._step))w&&c.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(bt){return[f[bt*2],f[bt*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,M),A&&(b&&(b=ui(b,f,a,A,T)),f=ui(f,null,a,A,T)),v=this._newPolyline(f),y?g=this._newPolygon(f,b):g&&(d.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,je(E)),d.setClipPath(Fp(this,a,!0,e));else{y&&!g?g=this._newPolygon(f,b):g&&!y&&(d.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,je(E));var I=d.getClipPath();if(I){var P=Fp(this,a,!1,e);Ke(I,{shape:P.shape},e)}else d.setClipPath(Fp(this,a,!0,e));w&&c.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(bt){return[f[bt*2],f[bt*2+1]]}}),(!sx(this._stackedOnPoints,b)||!sx(this._points,f))&&(m?this._doUpdateAnimation(s,b,a,n,A,_,T):(A&&(b&&(b=ui(b,f,a,A,T)),f=ui(f,null,a,A,T)),v.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:b})))}var z=e.getModel("emphasis"),F=z.get("focus"),K=z.get("blurScope"),H=z.get("disabled");if(v.useStyle(Y(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),Th(v,e,"lineStyle"),v.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var W=v.getState("emphasis").style;W.lineWidth=+v.style.lineWidth+1}ot(v).seriesIndex=e.seriesIndex,ja(v,F,K,H);var it=fx(e.get("smooth")),vt=e.get("smoothMonotone");if(v.setShape({smooth:it,smoothMonotone:vt,connectNulls:T}),g){var pt=s.getCalculationInfo("stackedOnSeries"),gt=0;g.useStyle(Y(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),pt&&(gt=fx(pt.get("smooth"))),g.setShape({smooth:it,stackedOnSmooth:gt,smoothMonotone:vt,connectNulls:T}),Th(g,e,"areaStyle"),ot(g).seriesIndex=e.seriesIndex,ja(g,F,K,H)}var yt=this._changePolyState;s.eachItemGraphicEl(function(bt){bt&&(bt.onHoverStateChange=yt)}),this._polyline.onHoverStateChange=yt,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,v),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,i){ot(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,n,a){var o=e.getData(),s=Le(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var p=e.get("zlevel")||0,c=e.get("z")||0;u=new Xo(o,s),u.x=f,u.y=h,u.setZ(p,c);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=c,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else re.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=Le(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else re.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;gh(this._polyline,e),i&&gh(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new rx({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new ix({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");B(f)&&(f=f(null));var h=u.get("animationDelay")||0,p=B(h)?h(null):h;e.eachItemGraphicEl(function(c,v){var g=c;if(g){var d=[c.x,c.y],m=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,b=i.pointToCoord(d);a?(m=x.startAngle,y=x.endAngle,_=-b[1]/180*Math.PI):(m=x.r0,y=x.r,_=b[0])}else{var w=n;a?(m=w.x,y=w.x+w.width,_=c.x):(m=w.y+w.height,y=w.y,_=c.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var C=B(h)?h(v):f*T+p,D=g.getSymbolPath(),A=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(cx(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ct({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=SA(l);f>=0&&(cl(s,Zn(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,p,c){return c!=null?Q0(o,c):Cu(o,h)},enableTextSetter:!0},bA(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=n.getLayout("points"),p=n.hostModel,c=p.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,d=l.getBaseAxis(),m=d.isHorizontal(),y=d.inverse,_=i.shape,x=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?g:0)*(y?-1:1),w=(m?0:-g)*(y?-1:1),T=m?"x":"y",C=wA(h,x,T),D=C.range,A=D[1]-D[0],M=void 0;if(A>=1){if(A>1&&!c){var E=hx(h,D[0]);u.attr({x:E[0]+b,y:E[1]+w}),o&&(M=p.getRawValue(D[0]))}else{var E=f.getPointOn(x,T);E&&u.attr({x:E[0]+b,y:E[1]+w});var I=p.getRawValue(D[0]),P=p.getRawValue(D[1]);o&&(M=Wf(n,v,I,P,C.t))}a.lastFrameIndex=D[0]}else{var z=e===1||a.lastFrameIndex>0?D[0]:0,E=hx(h,z);o&&(M=p.getRawValue(z)),u.attr({x:E[0]+b,y:E[1]+w})}if(o){var F=Hh(u);typeof F.setLabelText=="function"&&F.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,p=kp(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),c=p.current,v=p.stackedOnCurrent,g=p.next,d=p.stackedOnNext;if(o&&(v=ui(p.stackedOnCurrent,p.current,n,o,l),c=ui(p.current,null,n,o,l),d=ui(p.stackedOnNext,p.next,n,o,l),g=ui(p.next,null,n,o,l)),ux(c,g)>3e3||f&&ux(v,d)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:d}));return}u.shape.__points=p.current,u.shape.points=c;var m={shape:{points:g}};p.current!==c&&(m.shape.__points=p.next),u.stopAnimation(),ue(u,m,h),f&&(f.setShape({points:c,stackedOnPoints:v}),f.stopAnimation(),ue(f,{shape:{stackedOnPoints:d}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var b=_[x].cmd;if(b==="="){var w=e.getItemGraphicEl(_[x].idx1);w&&y.push({el:w,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var D=y[C].el,A=y[C].ptIdx*2;D.x=T[A],D.y=T[A+1],D.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(re),px=TA;function Up(r,t){return{seriesType:r,plan:bo(),reset:function(e){var i=e.getData(),n=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(n){var s=N(n.dimensions,function(c){return i.mapDimension(c)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Ar(i,s[0])&&(s[0]=u),Ar(i,s[1])&&(s[1]=u);var f=i.getStore(),h=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(c,v){for(var g=c.end-c.start,d=o&&Lr(g*l),m=[],y=[],_=c.start,x=0;_<c.end;_++){var b=void 0;if(l===1){var w=f.get(h,_);b=n.dataToPoint(w,null,y)}else m[0]=f.get(h,_),m[1]=f.get(p,_),b=n.dataToPoint(m,null,y);o?(d[x++]=b[0],d[x++]=b[1]):v.setItemLayout(_,b.slice())}o&&v.setLayout("points",d)}}}}}}var CA={average:function(r){for(var t=0,e=0,i=0;i<r.length;i++)isNaN(r[i])||(t+=r[i],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},DA=function(r){return Math.round(r.length/2)};function Bp(r){return{seriesType:r,reset:function(t,e,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/p);if(isFinite(c)&&c>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/c));var v=void 0;k(a)?v=CA[a]:B(a)&&(v=a),v&&t.setData(n.downSample(n.mapDimension(u.dim),1/c,v,DA))}}}}}function Vp(r){r.registerChartView(px),r.registerSeriesModel(j0),r.registerLayout(Up("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Bp("line"))}var MA=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(lt),vx=MA;var Au=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Yt).models[0]},t.type="cartesian2dAxis",t})(lt);Rt(Au,wu);var dx={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:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},AA=et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},dx),Hp=et({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},dx),EA=et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Hp),LA=Y({logBase:10},Hp),mx={category:AA,value:Hp,time:EA,log:LA};var gx={value:1,category:1,time:1,log:1};function Eu(r,t,e,i){S(gx,function(n,a){var o=et(et({},mx[a],!0),i,!0),s=(function(l){L(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var p=jr(this),c=p?ea(f):{},v=h.getTheme();et(f,v.get(a+"Axis")),et(f,this.getDefaultOption()),f.type=yx(f),p&&Qr(f,c,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Bo.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",yx)}function yx(r){return r.type||(r.data?"category":"value")}var PA=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return N(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),mt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),_x=PA;var Lu=["x","y"];function xx(r){return r.type==="interval"||r.type==="time"}var IA=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Lu,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!xx(e)||!xx(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,p=o[0]-n[0]*f,c=o[1]-a[0]*h,v=this._transform=[f,0,0,h,p,c];this._invTransform=dr([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new X(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Mt(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(e[0]),u=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return Mt(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(i[0],i[1])-a+e,l=Math.max(n[0],n[1])-o+e;return new X(a,o,s,l)},t})(_x),Sx=IA;var OA=(function(r){L(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(Tu),bx=OA;function qo(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],p={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,v=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[p.onZero]=Math.max(Math.min(g,v[1]),v[0])}a.position=[u==="y"?v[p[l]]:h[0],u==="x"?v[p[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[s],a.labelOffset=o?v[p[s]]-v[p.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Or(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function Gp(r){return r.get("coordinateSystem")==="cartesian2d"}function Wp(r){var t={xAxisModel:null,yAxisModel:null};return S(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Yt).models[0];t[i]=a}),t}var Yp=Math.log;function Cx(r,t,e){var i=Er.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),l=Sp(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var p=Yp(r.base);u=[Yp(u[0])/p,Yp(u[1])/p]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=i.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var v=i.getInterval.call(r),g=u[0],d=u[1];if(f&&h)v=(d-g)/o;else if(f)for(d=u[0]+v*o;d<u[1]&&isFinite(d)&&isFinite(u[1]);)v=pu(v),d=u[0]+v*o;else if(h)for(g=u[1]-v*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=pu(v),g=u[1]-v*o;else{var m=r.getTicks().length-1;m>o&&(v=pu(v));var y=v*o;d=Math.ceil(u[1]/v)*v,g=ht(d-y),g<0&&u[0]>=0?(g=0,d=ht(y)):d>0&&u[1]<=0&&(d=0,g=-ht(y))}var _=(n[0].value-a[0].value)/s,x=(n[o].value-a[o].value)/s;if(i.setExtent.call(r,g+v*_,d+v*x),i.setInterval.call(r,v),(_||x)&&i.setNiceExtent.call(r,g+v,d-v),0)var b}var RA=(function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Lu,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=tt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var p=+l[h],c=o[p],v=c.model,g=c.scale;Vo(g)&&v.get("alignTicks")&&v.get("interval")==null?f.push(c):(Go(g,v),Vo(g)&&(s=c))}f.length&&(s||(s=f.pop(),Go(s.scale,s.model)),S(f,function(d){Cx(d.scale,d.model,s.scale)}))}}n(i.x),n(i.y);var a={};S(i.x,function(o){Dx(i,"y",o,a)}),S(i.y,function(o){Dx(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=ta(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(S(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=A0(u);if(f){var h=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+p,u.position==="top"?o.y+=f.height+p:u.position==="left"&&(o.x+=f.width+p)}}}),l()),S(this._coordsList,function(u){u.calcAffineTransform()});function l(){S(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],p=u.inverse?1:0;u.setExtent(h[p],h[1-p]),NA(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}U(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===e)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,i=t.xAxisModel||e&&e.getReferringComponents("xAxis",Yt).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Yt).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,$(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,S(s.x,function(f,h){S(s.y,function(p,c){var v="x"+h+"y"+c,g=new Sx(v);g.master=n,g.model=t,n._coordsMap[v]=g,n._coordsList.push(g),g.addAxis(f),g.addAxis(p)})});function u(f){return function(h,p){if(Xp(h,t)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var v=new bx(f,_u(h),[0,0],h.get("type"),c),g=v.type==="category";v.onBand=g&&h.get("boundaryGap"),v.inverse=h.get("inverse"),h.axis=v,v.model=h,v.grid=a,v.index=p,a._axesList.push(v),s[f][p]=v,l[f]++}}}},r.prototype._updateScale=function(t,e){S(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),t.eachSeries(function(n){if(Gp(n)){var a=Wp(n),o=a.xAxisModel,s=a.yAxisModel;if(!Xp(o,e)||!Xp(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),h=l.getAxis("y");i(u,f),i(u,h)}},this);function i(n,a){S(E0(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],i=[];return S(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);$(e,a)<0&&e.push(a),$(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},r.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(n){if(Gp(n)){var a=Wp(n),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=Lu,r})();function Xp(r,t){return r.getCoordSysModel()===t}function Dx(r,t,e,i){e.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Mx(n[l])&&(a=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&Mx(n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Mx(r){return r&&r.type!=="category"&&r.type!=="time"&&M0(r)}function NA(r,t){var e=r.getExtent(),i=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return i-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}var Ax=RA;var fi=Math.PI,mn=(function(){function r(t,e){this.group=new dt,this.opt=e,this.axisModel=t,Y(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new dt({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!Ex[t]},r.prototype.add=function(t){Ex[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var n=Fa(e-t),a,o;return Ni(n)?(o=i>0?"top":"bottom",a="center"):Ni(n-fi)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<fi?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),Ex={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Mt(s,s,o),Mt(l,l,o));var f=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new _e({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});en(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var p=t.get(["axisLine","symbol"]);if(p!=null){var c=t.get(["axisLine","symbolSize"]);k(p)&&(p=[p,p]),(k(c)||rt(c))&&(c=[c,c]);var v=Yl(t.get(["axisLine","symbolOffset"])||0,c),g=c[0],d=c[1];S([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(p[y]!=="none"&&p[y]!=null){var _=$e(p[y],-g/2,-d/2,g,d,f.stroke,!0),x=m.r+m.offset,b=u?l:s;_.attr({rotation:m.rotate,x:b[0]+x*Math.cos(r.rotation),y:b[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=FA(e,i,t,r),a=BA(e,i,t,r);if(zA(t,a,n),UA(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Z0(N(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));K0(o)}},axisName:function(r,t,e,i){var n=Or(r.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,Px(a)?r.labelOffset+o*l:0],p,c=t.get("nameRotate");c!=null&&(c=c*fi/180);var v;Px(a)?p=mn.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(p=kA(r.rotation,a,c||0,u),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(p.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),d=t.get("nameTruncate",!0)||{},m=d.ellipsis,y=Or(r.nameTruncateMaxWidth,d.maxWidth,v),_=new Ct({x:h[0],y:h[1],rotation:p.rotation,silent:mn.isLabelSilent(t),style:wr(s,{text:n,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(fl({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var x=mn.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,ot(_).eventData=x}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function kA(r,t,e,i){var n=Fa(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Ni(n-fi/2)?(o=l?"bottom":"top",a="center"):Ni(n-fi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<fi*1.5&&n>fi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function zA(r,t,e){if(!Su(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],p=e[e.length-2];i===!1?(He(a),He(u)):Lx(a,o)&&(i?(He(o),He(f)):(He(a),He(u))),n===!1?(He(s),He(h)):Lx(l,s)&&(n?(He(l),He(p)):(He(s),He(h)))}}function He(r){r&&(r.ignore=!0)}function Lx(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=vr([]);return yi(n,n,-r.rotation),e.applyTransform(De([],n,r.getLocalTransform())),i.applyTransform(De([],n,t.getLocalTransform())),e.intersect(i)}}function Px(r){return r==="middle"||r==="center"}function Ix(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Mt(o,o,t),Mt(s,s,t));var f=new _e({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});en(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f)}return a}function FA(r,t,e,i){var n=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),u=n.getTicksCoords(),f=Ix(u,t.transform,l,Y(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function UA(r,t,e,i){var n=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),u=Y(s.getLineStyle(),Y(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=Ix(o[f],t.transform,l,u,"minorticks_"+f),p=0;p<h.length;p++)r.add(h[p])}}function BA(r,t,e,i){var n=e.axis,a=Or(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(Or(i.labelRotate,o.get("rotate"))||0)*fi/180,f=mn.innerTextLayout(i.rotation,u,i.labelDirection),h=e.getCategories&&e.getCategories(!0),p=[],c=mn.isLabelSilent(e),v=e.get("triggerEvent");return S(l,function(g,d){var m=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,y=g.formattedLabel,_=g.rawLabel,x=o;if(h&&h[m]){var b=h[m];U(b)&&b.textStyle&&(x=new ct(b.textStyle,o,e.ecModel))}var w=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),T=n.dataToCoord(m),C=x.getShallow("align",!0)||f.textAlign,D=Z(x.getShallow("alignMinLabel",!0),C),A=Z(x.getShallow("alignMaxLabel",!0),C),M=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||f.textVerticalAlign,E=Z(x.getShallow("verticalAlignMinLabel",!0),M),I=Z(x.getShallow("verticalAlignMaxLabel",!0),M),P=new Ct({x:T,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(g.level||0),style:wr(x,{text:y,align:d===0?D:d===l.length-1?A:C,verticalAlign:d===0?E:d===l.length-1?I:M,fill:B(w)?w(n.type==="category"?_:n.type==="value"?m+"":m,d):w})});if(P.anid="label_"+m,fl({el:P,componentModel:e,itemName:y,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:d}}),v){var z=mn.makeAxisEventDataBase(e);z.targetType="axisLabel",z.value=_,z.tickIndex=d,n.type==="category"&&(z.dataIndex=m),ot(P).eventData=z}t.add(P),P.updateTransform(),p.push(P),r.add(P),P.decomposeTransform()}),p}}var Pu=mn;function Ox(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return VA(e,r,t),e.seriesInvolved&&GA(e,r),e}function VA(r,t,e){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];S(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=da(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(S(s.getAxes(),Tt(g,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var p=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(h.get(["axisPointer","axis"]));(p||c)&&S(v.baseAxes,Tt(g,c?"cross":!0,p)),c&&S(v.otherAxes,Tt(g,"cross",!1))}function g(d,m,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!d&&!Zp(_))){m==null&&(m=_.get("triggerTooltip")),_=d?HA(y,h,n,t,d,m):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),T=da(y.model),C=m||b||y.type==="category",D=r.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:Zp(_),seriesModels:[],linkGroup:null};u[T]=D,r.seriesInvolved=r.seriesInvolved||C;var A=WA(a,y);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[T]=D,M.mapper=a[A].mapper,D.linkGroup=M}}}})}function HA(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};S(s,function(p){l[p]=q(o.get(p))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&Y(u,h.textStyle)}}return r.model.getModel("axisPointer",new ct(l,e,i))}function GA(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!i||n==="none"||n===!1||n==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||S(r.coordSysAxesInfo[da(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function WA(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(qp(a[i+"AxisId"],e.id)||qp(a[i+"AxisIndex"],e.componentIndex)||qp(a[i+"AxisName"],e.name))return n}}function qp(r,t){return r==="all"||R(r)&&$(r,t)>=0||r===t}function Rx(r){var t=Iu(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=Zp(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Iu(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[da(r)]}function Nx(r){var t=Iu(r);return t&&t.axisPointerModel}function Zp(r){return!!r.get(["handle","show"])}function da(r){return r.type+"||"+r.id}var kx={},YA=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.axisPointerClass&&Rx(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,i,n,a){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=Nx(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){kx[e]=i},t.getAxisPointerClass=function(e){return e&&kx[e]},t.type="axis",t})(Gt),Ou=YA;var jp=at();function zx(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=jp(r).splitAreaColors,p=V(),c=0;if(h)for(var v=0;v<u.length;v++){var g=h.get(u[v].tickValue);if(g!=null){c=(g+(f-1)*v)%f;break}}var d=n.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=R(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,b=void 0,w=void 0;n.isHorizontal()?(_=d,x=l.y,b=y-_,w=l.height,d=_+b):(_=l.x,x=d,b=l.width,w=y-x,d=x+w);var T=u[v-1].tickValue;T!=null&&p.set(T,c),t.add(new St({anid:T!=null?"area_"+T:null,shape:{x:_,y:x,width:b,height:w},style:Y({fill:s[c]},m),autoBatch:!0,silent:!0})),c=(c+1)%f}jp(r).splitAreaColors=p}}}function Fx(r){jp(r).splitAreaColors=null}var XA=["axisLine","axisTickLabel","axisName"],qA=["splitArea","splitLine","minorSplitLine"],Ux=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new dt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=qo(s,e),u=new Pu(e,O({handleAutoShown:function(h){for(var p=s.coordinateSystem.getCartesians(),c=0;c<p.length;c++)if(Vo(p[c].getOtherAxis(e.axis).scale))return!0;return!1}},l));S(XA,u.add,u),this._axisGroup.add(u.getGroup()),S(qA,function(h){e.get([h,"show"])&&ZA[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Uh(o,this._axisGroup,e),r.prototype.render.call(this,e,i,n,a)}},t.prototype.remove=function(){Fx(this)},t.type="cartesianAxis",t})(Ou),ZA={splitLine:function(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=R(s)?s:[s];for(var f=i.coordinateSystem.getRect(),h=n.isHorizontal(),p=0,c=n.getTicksCoords({tickModel:a}),v=[],g=[],d=o.getLineStyle(),m=0;m<c.length;m++){var y=n.toGlobalCoord(c[m].coord);if(!(m===0&&!l||m===c.length-1&&!u)){var _=c[m].tickValue;h?(v[0]=y,v[1]=f.y,g[0]=y,g[1]=f.y+f.height):(v[0]=f.x,v[1]=y,g[0]=f.x+f.width,g[1]=y);var x=p++%s.length,b=new _e({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:Y({stroke:s[x]},d),silent:!0});en(b.shape,d.lineWidth),t.add(b)}}}},minorSplitLine:function(r,t,e,i){var n=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var f=[],h=[],p=o.getLineStyle(),c=0;c<u.length;c++)for(var v=0;v<u[c].length;v++){var g=n.toGlobalCoord(u[c][v].coord);l?(f[0]=g,f[1]=s.y,h[0]=g,h[1]=s.y+s.height):(f[0]=s.x,f[1]=g,h[0]=s.x+s.width,h[1]=g);var d=new _e({anid:"minor_line_"+u[c][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:p,silent:!0});en(d.shape,p.lineWidth),t.add(d)}},splitArea:function(r,t,e,i){zx(r,t,e,i)}},Qp=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(Ux);var Bx=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Qp.type,e}return t.type="yAxis",t})(Ux);var KA=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new St({shape:e.coordinateSystem.getRect(),style:Y({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Gt),Vx={offset:0};function Hx(r){r.registerComponentView(KA),r.registerComponentModel(vx),r.registerCoordinateSystem("cartesian2d",Ax),Eu(r,"x",Au,Vx),Eu(r,"y",Au,Vx),r.registerComponentView(Qp),r.registerComponentView(Bx),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var gn=at(),Gx=q,$p=nt,jA=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new dt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var p=Tt(Wx,e,h);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,e)}Xx(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var l=Iu(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=gn(t).pointerEl=new fe[a.type](Gx(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=gn(t).labelEl=new Ct(Gx(e.label));t.add(a),Yx(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=gn(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=gn(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Yx(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=so(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){os(u.event)},onmousedown:$p(this._onHandleDragMove,this,0,0),drift:$p(this._onHandleDragMove,this),ondragend:$p(this._onHandleDragEnd,this)}),i.add(n)),Xx(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");R(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Vl(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Wx(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Jp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Jp(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Jp(n)),gn(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Co(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r})();function Wx(r,t,e,i){qx(gn(e).lastProp,i)||(gn(e).lastProp=i,t?ue(e,i,r):(e.stopAnimation(),e.attr(i)))}function qx(r,t){if(U(r)&&U(t)){var e=!0;return S(t,function(i,n){e=e&&qx(r[n],i)}),!!e}else return r===t}function Yx(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Jp(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Xx(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}var Zx=jA;function Kx(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function QA(r,t,e,i,n){var a=e.get("value"),o=tv(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Kr(s.get("padding")||0),u=s.getFont(),f=Ln(o,u),h=n.position,p=f.width+l[1]+l[3],c=f.height+l[0]+l[2],v=n.align;v==="right"&&(h[0]-=p),v==="center"&&(h[0]-=p/2);var g=n.verticalAlign;g==="bottom"&&(h[1]-=c),g==="middle"&&(h[1]-=c/2),$A(h,p,c,i);var d=s.get("backgroundColor");(!d||d==="auto")&&(d=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:wr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:d}),z2:10}}function $A(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function tv(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Wo(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};S(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),k(o)?a=o.replace("{value}",a):B(o)&&(a=o(s))}return a}function ev(r,t,e){var i=Ye();return yi(i,i,e.rotation),Tn(i,i,e.position),ul([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function jx(r,t,e,i,n,a){var o=Pu.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),QA(t,i,n,a,{position:ev(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Qx(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function $x(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var JA=(function(r){L(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=tS(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=Kx(a),c=tE[u](s,h,f);c.style=p,e.graphicKey=c.type,e.pointer=c}var v=qo(l.model,n);jx(i,e,v,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=qo(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=ev(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=tS(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var p=(u[1]+u[0])/2,c=[p,p];c[f]=h[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:v[f]}},t})(Zx);function tS(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var tE={line:function(r,t,e){var i=Qx([t,e[0]],[t,e[1]],eS(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:$x([t-i/2,e[0]],[i,n],eS(r))}}};function eS(r){return r.dim==="x"?0:1}var rS=JA;var eE=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(lt),iS=eE;var Pr=at(),rE=S;function Ru(r,t,e){if(!G.node){var i=t.getZr();Pr(i).records||(Pr(i).records={}),iE(i,t);var n=Pr(i).records[r]||(Pr(i).records[r]={});n.handler=e}}function iE(r,t){if(Pr(r).initialized)return;Pr(r).initialized=!0,e("click",Tt(nS,"click")),e("mousemove",Tt(nS,"mousemove")),e("globalout",aE);function e(i,n){r.on(i,function(a){var o=oE(t);rE(Pr(r).records,function(s){s&&n(s,a,o.dispatchAction)}),nE(o.pendings,t)})}}function nE(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function aE(r,t,e){r.handler("leave",null,e)}function nS(r,t,e,i){t.handler(r,e,i)}function oE(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function Zo(r,t){if(!G.node){var e=t.getZr(),i=(Pr(e).records||{})[r];i&&(Pr(e).records[r]=null)}}var sE=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Ru("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){Zo("axisPointer",i)},t.prototype.dispose=function(e,i){Zo("axisPointer",i)},t.type="axisPointer",t})(Gt),oS=sE;function Ko(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Le(a,r);if(o==null||o<0||R(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,p=u.dim,c=h==="x"||h==="radius"?1:0,v=a.mapDimension(p),g=[];g[c]=a.get(v,o),g[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(a.getValues(N(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var d=s.getBoundingRect().clone();d.applyTransform(s.transform),e=[d.x+d.width/2,d.y+d.height/2]}return{point:e,el:s}}var sS=at();function rv(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||nt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Nu(n)&&(n=Ko({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Nu(n),u=a.axesInfo,f=s.axesInfo,h=i==="leave"||Nu(n),p={},c={},v={list:[],map:{}},g={showPointer:Tt(uE,c),showTooltip:Tt(fE,v)};S(s.coordSysMap,function(m,y){var _=l||m.containPoint(n);S(s.coordSysAxesInfo[y],function(x,b){var w=x.axis,T=vE(u,x);if(!h&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=w.pointToData(n)),C!=null&&lS(x,C,g,!1,p)}})});var d={};return S(f,function(m,y){var _=m.linkGroup;_&&!c[y]&&S(_.axesInfo,function(x,b){var w=c[b];if(x!==m&&w){var T=w.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,uS(x),uS(m)))),d[m.key]=T}})}),S(d,function(m,y){lS(f[y],m,g,!0,p)}),hE(c,f,p),cE(v,n,r,o),pE(f,o,e),p}}function lS(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=lE(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&O(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function lE(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return S(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,p;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,e);p=c.dataIndices,h=c.nestestValue}else{if(p=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!p.length)return;h=l.getData().get(f[0],p[0])}if(!(h==null||!isFinite(h))){var v=r-h,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,n=h,a.length=0),S(p,function(d){a.push({seriesIndex:l.seriesIndex,dataIndexInside:d,dataIndex:l.getData().getRawIndex(d)})}))}}),{payloadBatch:a,snapToValue:n}}function uE(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function fE(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=da(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function hE(r,t,e){var i=e.axesInfo=[];S(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function cE(r,t,e,i){if(Nu(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function pE(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=sS(i)[n]||{},o=sS(i)[n]={};S(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&S(h.seriesDataIndices,function(p){var c=p.seriesIndex+" | "+p.dataIndex;o[c]=p})});var s=[],l=[];S(a,function(u,f){!o[f]&&l.push(u)}),S(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function vE(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function uS(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function Nu(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ku(r){Ou.registerAxisPointerClass("CartesianAxisPointer",rS),r.registerComponentModel(iS),r.registerComponentView(oS),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!R(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Ox(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},rv)}function iv(r){fr(Hx),fr(ku)}var dE=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(lt),fS=dE;function zu(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function hS(r){if(G.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var nv=hS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cS=hS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function av(r,t){if(!r)return t;t=$n(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function pS(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var mE=av(cS,"transition"),ov=av(nv,"transform"),gE="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(G.transform3dSupported?"will-change:transform;":"");function yE(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function _E(r,t,e){if(!k(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=je(t);var a=yE(e),o=Math.max(Math.round(n)*1.5,6),s="",l=ov+":",u;$(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,p=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var v=t+" solid "+n+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function xE(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=G.transformSupported?","+ov+i:",left"+i+",top"+i),mE+":"+n}function vS(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!G.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=G.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+ov+":"+o+";":[["top",0],["left",0],[nv,o]]}function SE(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=Z(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),S(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function wE(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=kl(r,"html"),p=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+p),t&&n&&i.push(xE(n,e)),a&&i.push("background-color:"+a),S(["width","color","radius"],function(c){var v="border-"+c,g=$n(v),d=r.get(g);d!=null&&i.push(v+":"+d+(c==="color"?"":"px"))}),i.push(SE(f)),h!=null&&i.push("padding:"+Kr(h).join("px ")+"px"),i.join(";")+";"}function dS(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&xv(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var bE=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,G.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(k(a)?document.querySelector(a):vi(a)?a:B(a)&&a(t.getDom()));dS(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();ie(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=pS(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=gE+wE(t,!this._firstShow,this._longHide)+vS(a[0],a[1],!0)+("border-color:"+je(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(k(a)&&i.get("trigger")==="item"&&!zu(i)&&(s=_E(i,n,a)),k(t))o.innerHTML=t+s;else if(t){o.innerHTML="",R(t)||(t=[t]);for(var l=0;l<t.length;l++)vi(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(dS(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=vS(i[0],i[1]);S(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",G.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(nt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r})(),mS=bE;var TE=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),yS(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,i,n,a){var o=this;U(t)&&Ft(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Ct({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:kl(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),S(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),S(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=gS(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;yS(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=hi(a.borderWidth||0),s=gS(a);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(nt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function hi(r){return Math.max(0,r)}function gS(r){var t=hi(r.shadowBlur||0),e=hi(r.shadowOffsetX||0),i=hi(r.shadowOffsetY||0);return{left:hi(t-e),right:hi(t+e),top:hi(t-i),bottom:hi(t+i)}}function yS(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var _S=TE;var CE=new St({shape:{x:-1,y:-1,width:2,height:2}}),DE=(function(r){L(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(G.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=Nd(n.get("renderMode"));this._tooltipContent=a==="richText"?new _S(i):new mS(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(G.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Vl(this,"_updatePosition",50,"fixRate"):Co(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");Ru("itemTooltip",this._api,nt(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||G.node||!n.getDom())){var o=xS(a,n);this._ticket="";var s=a.dataByCoordSys,l=LE(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=CE;f.x=a.x,f.y=a.y,f.update(),ot(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(e,i,n,a))return;var h=Ko(a,i),p=h.point[0],c=h.point[1];p!=null&&c!=null&&this._tryShow({offsetX:p,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,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(xS(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=jo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=ot(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;fn(n,function(f){if(ot(f).dataIndex!=null)return l=f,!0;if(ot(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,i):u?this._showComponentItemTooltip(e,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=nt(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=jo([i.tooltipOption],a),l=this._renderMode,u=[],f=un("section",{blocks:[],noHeader:!0}),h=[],p=new zl;S(e,function(y){S(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!x||b==null)){var w=tv(b,x.axis,n,_.seriesDataIndices,_.valueLabelOpt),T=un("section",{header:w,noHeader:!kt(w),sortBlocks:!0,blocks:[]});f.blocks.push(T),S(_.seriesDataIndices,function(C){var D=n.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,M=D.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Wo(x.axis,{value:b}),M.axisValueLabel=w,M.marker=p.makeTooltipMarker("item",je(M.color),l);var E=bc(D.formatTooltip(A,!0,null)),I=E.frag;if(I){var P=jo([D],a).get("valueFormatter");T.blocks.push(P?O({valueFormatter:P},I):I)}E.text&&h.push(E.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=i.position,v=s.get("order"),g=Ec(f,p,l,v,n.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var d=l==="richText"?`
17
+
18
+ `:"<br/>",m=h.join(d);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],c,null,p)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=ot(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,p=u.getData(h),c=this._renderMode,v=e.positionDefault,g=jo([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),d=g.get("trigger");if(!(d!=null&&d!=="item")){var m=u.getDataParams(f,h),y=new zl;m.marker=y.makeTooltipMarker("item",je(m.color),c);var _=bc(u.formatTooltip(f,!1,h)),x=g.get("order"),b=g.get("valueFormatter"),w=_.frag,T=w?Ec(b?O({valueFormatter:b},w):w,y,c,x,a.get("useUTC"),g.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,T,m,C,e.offsetX,e.offsetY,e.position,e.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=ot(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(k(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=q(l),l.content=Pt(l.content));var h=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&h.push(p),h.push({formatter:l.content});var c=e.positionDefault,v=jo(h,this._tooltipModel,c?{position:c}:null),g=v.get("content"),d=Math.random()+"",m=new zl;this._showOrMove(v,function(){var y=q(v.get("formatterParams")||{});this._showTooltipContent(v,g,y,d,e.offsetX,e.offsetY,e.position,i,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var p=e.get("formatter");l=l||e.get("position");var c=i,v=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),g=v.color;if(p)if(k(p)){var d=e.ecModel.get("useUTC"),m=R(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;c=p,y&&(c=br(m.axisValue,c,d)),c=Jn(c,n,!0)}else if(B(p)){var _=nt(function(x,b){x===this._ticket&&(h.setContent(b,f,e,g,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=a,c=p(n,a,_)}else c=p;h.setContent(c,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||R(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!R(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),p=e.get("align"),c=e.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),B(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:h.slice()})),R(i))n=Ot(i[0],u),a=Ot(i[1],f);else if(U(i)){var g=i;g.width=h[0],g.height=h[1];var d=ta(g,{width:u,height:f});n=d.x,a=d.y,p=null,c=null}else if(k(i)&&l){var m=EE(i,v,h,e.get("borderWidth"));n=m[0],a=m[1]}else{var m=ME(n,a,o,u,f,p?null:20,c?null:20);n=m[0],a=m[1]}if(p&&(n-=SS(p)?h[0]/2:p==="right"?h[0]:0),c&&(a-=SS(c)?h[1]/2:c==="bottom"?h[1]:0),zu(e)){var m=AE(n,a,o,u,f);n=m[0],a=m[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&S(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&S(u,function(p,c){var v=h[c]||{},g=p.seriesDataIndices||[],d=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&g.length===d.length,o&&S(g,function(m,y){var _=d[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&S(p.seriesDataIndices,function(m){var y=m.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){G.node||!i.getDom()||(Co(this,"_updatePosition"),this._tooltipContent.dispose(),Zo("itemTooltip",i))},t.type="tooltip",t})(Gt);function jo(r,t,e){var i=t.ecModel,n;e?(n=new ct(e,i,i),n=new ct(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof ct&&(o=o.get("tooltip",!0)),k(o)&&(o={formatter:o}),o&&(n=new ct(o,n,i)))}return n}function xS(r,t){return r.dispatchAction||nt(t.dispatchAction,t)}function ME(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function AE(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function EE(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function SS(r){return r==="center"||r==="middle"}function LE(r,t,e){var i=Va(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Vr(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ot(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var wS=DE;function sv(r){fr(ku),r.registerComponentModel(fS),r.registerComponentView(wS),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Et),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Et)}function bS(r,t,e){var i=$t.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var PE=(function(r){L(t,r);function t(e,i,n){var a=r.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;n=n||Ei,typeof e=="string"?o=bS(e,i,n):U(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(xa(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,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 e=this.dpr;this.domBack=bS("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new X(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new X(0,0,0,0);_.copy(y),o.push(_)}else{for(var x=!1,b=1/0,w=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(y)){var D=new X(0,0,0,0);D.copy(C),D.union(y),o[T]=D,x=!0;break}else if(l){u.copy(y),u.union(C);var A=y.width*y.height,M=C.width*C.height,E=u.width*u.height,I=E-A-M;I<b&&(b=I,w=T)}}if(l&&(o[w].union(y),x=!0),!x){var _=new X(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var p=e[h];if(p){var c=p.shouldBePainted(n,a,!0,!0),v=p.__isRendered&&(p.__dirty&Lt||!c)?p.getPrevPaintRect():null;v&&f(v);var g=c&&(p.__dirty&Lt||!p.__isRendered)?p.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var p=i[h],c=p&&p.shouldBePainted(n,a,!0,!0);if(p&&(!c||!p.__zr)&&p.__isRendered){var v=p.getPrevPaintRect();v&&f(v)}}var d;do{d=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var m=h+1;m<o.length;)o[h].intersect(o[m])?(d=!0,o[h].union(o[m]),o.splice(m,1)):m++;h++}}while(d);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var c=this.domBack;function v(g,d,m,y){if(o.clearRect(g,d,m,y),i&&i!=="transparent"){var _=void 0;if(hr(i)){var x=i.global||i.__width===m&&i.__height===y;_=x&&i.__canvasGradient||Ao(o,i,{x:0,y:0,width:m,height:y}),i.__canvasGradient=_,i.__width=m,i.__height=y}else Wu(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=Kl(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(g,d,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,g,d,m,y),o.restore())}!n||u?v(0,0,s,l):n.length&&S(n,function(g){v(g.x*h,g.y*h,g.width*h,g.height*h)})},t})(Ht),Fu=PE;var TS=1e5,yn=314159,Uu=.01,IE=.001;function OE(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function RE(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var NE=(function(){function r(t,e,i,n){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=i=O({},i||{}),this.dpr=i.devicePixelRatio||Ei,this._singleCanvas=a,this.root=t;var o=t.style;o&&(xa(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,p=f.height;i.width!=null&&(h=i.width),i.height!=null&&(p=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=p*this.dpr,this._width=h,this._height=p;var c=new Fu(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[yn]=c,c.zlevel=yn,s.push(yn),this._domRoot=t}else{this._width=Eo(t,0,i),this._height=Eo(t,1,i);var u=this._domRoot=RE(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(TS)),a||(a=i.ctx,a.save()),ti(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(TS)},r.prototype.paintOne=function(t,e){ha(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Ma(function(){l._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(yn).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||i)&&a.push(u)}for(var f=!0,h=!1,p=function(g){var d=a[g],m=d.ctx,y=o&&d.createRepaintRects(t,e,c._width,c._height),_=i?d.__startIndex:d.__drawIndex,x=!i&&d.incremental&&Date.now,b=x&&Date.now(),w=d.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(d.__startIndex===d.__endIndex)d.clear(!1,w,y);else if(_===d.__startIndex){var T=t[_];(!T.incremental||!T.notClear||i)&&d.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=d.__startIndex);var C,D=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=_;C<d.__endIndex;C++){var z=t[C];if(z.__inHover&&(h=!0),n._doPaintEl(z,d,o,I,P,C===d.__endIndex-1),x){var F=Date.now()-b;if(F>15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=d.__endIndex;else for(var A=c.dpr,M=0;M<y.length;++M){var E=y[M];m.save(),m.beginPath(),m.rect(E.x*A,E.y*A,E.width*A,E.height*A),m.clip(),D(E),m.restore()}else m.save(),D(),m.restore();d.__drawIndex=C,d.__drawIndex<d.__endIndex&&(f=!1)},c=this,v=0;v<a.length;v++)p(v);return G.wxa&&S(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(ti(s,t,a,o),t.setPrevPaintRect(l))}else ti(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=yn);var i=this._layers[t];return i||(i=new Fu("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?et(i,this._layerConfig[t],!0):this._layerConfig[t-Uu]&&et(i,this._layerConfig[t-Uu],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,l=-1;if(!i[t]&&OE(e)){if(a>0&&t>n[0]){for(l=0;l<a-1&&!(n[l]<t&&n[l+1]>t);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,p){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var n=t[l],u=n.zlevel,f=void 0;s!==u&&(s=u,o=0),n.incremental?(f=this.getLayer(u+IE,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Uu:0),this._needsManuallyCompositing),f.__builtin__||di("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),n.__dirty&Lt&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,p){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,S(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?et(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+Uu){var o=this._layers[a];et(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice($(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=Eo(a,0,n),e=Eo(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(yn).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[yn].dom;var e=new Fu("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];ti(i,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})(),CS=NE;function lv(r){r.registerPainter("canvas",CS)}fr([Vp,iv,sv,lv]);window.echarts=Rp;})();